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
627 aros_host_x11_libdirs
628 aros_host_x11_includes
632 aros_default_wbheight
638 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
645 aros_target_strip_flags
652 aros_kernel_objcflags
671 aros_target_cc_includes
691 aros_target_bootloader
711 aros_amigaos_compliance
717 aros_target_toolchain
726 aros_cflags_iquote_end
728 kernel_cflags_iquote_end
730 host_cflags_iquote_end
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
842 program_transform_name
855 enable_option_checking
864 enable_target_variant
870 enable_amigaos_compliance
872 with_kernel_tool_prefix
883 enable_palm_debug_hack
885 enable_nesting_supervisor
897 ac_precious_vars
='build_alias
912 # Initialize some variables set by options.
914 ac_init_version
=false
915 ac_unrecognized_opts
=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name
=s
,x
,x
,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir
='${exec_prefix}/bin'
941 sbindir
='${exec_prefix}/sbin'
942 libexecdir
='${exec_prefix}/libexec'
943 datarootdir
='${prefix}/share'
944 datadir
='${datarootdir}'
945 sysconfdir
='${prefix}/etc'
946 sharedstatedir
='${prefix}/com'
947 localstatedir
='${prefix}/var'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=no
;;
1031 -docdir |
--docdir |
--docdi |
--doc |
--do)
1033 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1034 docdir
=$ac_optarg ;;
1036 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1038 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1039 dvidir
=$ac_optarg ;;
1041 -enable-* |
--enable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error $?
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
1177 -program-transform-name=* |
--program-transform-name=* \
1178 |
--program-transform-nam=* |
--program-transform-na=* \
1179 |
--program-transform-n=* |
--program-transform-=* \
1180 |
--program-transform=* |
--program-transfor=* \
1181 |
--program-transfo=* |
--program-transf=* \
1182 |
--program-trans=* |
--program-tran=* \
1183 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1184 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1202 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1204 sbindir
=$ac_optarg ;;
1206 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1207 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1208 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1210 ac_prev
=sharedstatedir
;;
1211 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1212 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1213 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1215 sharedstatedir
=$ac_optarg ;;
1217 -site |
--site |
--sit)
1219 -site=* |
--site=* |
--sit=*)
1222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1225 srcdir
=$ac_optarg ;;
1227 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1228 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1229 ac_prev
=sysconfdir
;;
1230 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1231 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1232 sysconfdir
=$ac_optarg ;;
1234 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1235 ac_prev
=target_alias
;;
1236 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1237 target_alias
=$ac_optarg ;;
1239 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1242 -version |
--version |
--versio |
--versi |
--vers |
-V)
1243 ac_init_version
=: ;;
1246 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1249 as_fn_error $?
"invalid package name: $ac_useropt"
1250 ac_useropt_orig
=$ac_useropt
1251 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep
=', ';;
1259 eval with_
$ac_useropt=\
$ac_optarg ;;
1261 -without-* |
--without-*)
1262 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1265 as_fn_error $?
"invalid package name: $ac_useropt"
1266 ac_useropt_orig
=$ac_useropt
1267 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep
=', ';;
1275 eval with_
$ac_useropt=no
;;
1278 # Obsolete; use --with-x.
1281 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1282 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1283 ac_prev
=x_includes
;;
1284 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1285 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1286 x_includes
=$ac_optarg ;;
1288 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1289 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1290 ac_prev
=x_libraries
;;
1291 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1292 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1293 x_libraries
=$ac_optarg ;;
1295 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1300 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1304 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1306 eval $ac_envvar=\
$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 if test -n "$ac_prev"; then
1321 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $?
"missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val
=\$
$ac_var
1340 # Remove trailing slashes.
1343 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\
$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$
]* | ?
:[\\/]* ) continue;;
1349 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1351 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target
=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x
; then
1363 if test "x$build_alias" = x
; then
1364 cross_compiling
=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --x-includes=DIR X include files are
in DIR
1511 --x-libraries=DIR X library files are
in DIR
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 if test -n "$ac_init_help"; then
1524 --disable-option-checking ignore unrecognized
--enable/--with options
1525 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1526 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1527 --enable-build-type=TYPE
1528 Select the build
type. Available types are
:
1529 personal
, nightly
, snapshot
, milestone
, release. Do
1530 NOT use this option unless you know what you are
1531 doing
! (default
=personal
)
1532 --enable-debug=list Enable different types of debug. Commas or
1533 whitespaces can be used to separate the items
in the
1534 list. Available types of debug are
: all
, none
,
1535 messages
, stack
, mungwall
, modules
, symbols. If no
1536 list is provided
then "all" is assumed.
1538 --disable-crosstools Do not build cross-compiler toolchain
1539 --enable-distcc Use distcc as a front end to the compiler
1541 --enable-ccache Use ccache as a front end to the compiler
1543 --enable-target-variant=NAME
1544 Enable a specific target variant
(default
=none
)
1545 --enable-amigaos-compliance=VERSION
1546 Enforce userspace AmigaOS compliance to a specific
1547 KickStart version
(default
=none
).
1548 --enable-palm-debug-hack
1549 Enable palm debug output hack
in palm native
1551 --enable-usb30-code Enable usb3.0 code
(default
=no
)
1552 --enable-nesting-supervisor
1553 Enable nesting supervisor support
in unix
1555 --disable-mmu Disable MMU support
(default
=enabled
)
1556 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1557 --enable-x11-shm use X11 shared memory
(default
=auto
)
1558 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1559 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1560 --disable-sdltest Do not try to compile and run a
test SDL program
1561 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1564 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1565 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1566 --with-kernel-gcc-version=VERSION
1567 Use
host gcc-VERSION
for building AROS
1568 --with-gcc-version=VERSION
1569 Use
host gcc-VERSION
for building AROS
1570 --with-optimization=FLAGS
1571 Use optimization flags FLAGS
(default
=-O2).
1572 --with-paranoia=FLAGS CC flags to
enable paranoia
1573 --with-xcode=PATH Specify XCode path
for iOS targets
1574 (default
=/Developer
).
1575 --with-sdk-version=VERSION
1576 Use iOS SDK version VERSION
(default
=4.1).
1577 --with-sdk=PATH Specify Android SDK path
1578 (default
=$default_android_sdk).
1579 --with-ndk=PATH Specify Android NDK path
(default
=none
).
1580 --with-sdk-version=LEVEL
1581 Use Android SDK
for API LEVEL
(default
=12).
1582 --with-ndk-version=LEVEL
1583 Use Android NDK
for API LEVEL
(default
=9).
1584 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1585 --with-kernel-tool-prefix=...
1586 Specify crosscompile toolchain prefix
for kernel
1588 --with-cpu=<spec
> Specify minumum CPU
(default
=$gcc_default_cpu).
1589 --with-fpu=<spec
> Specify minumum FPU
(default
=$gcc_default_fpu).
1590 --with-float=<spec
> Specify floating point ABI
1591 (default
=$gcc_default_float_abi).
1592 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1593 --with-portssources=DIR Where to download sourcecode
for external ports
1594 --with-bootloader=NAME Use a specific bootloader
1595 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1596 --with-theme=NAME Use a specific GUI Theme
1597 --with-resolution=XRESxYRESxDEPTH
1598 Default resolution of the initial WorkbenchScreen
1599 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1600 --with-x use the X Window System
1601 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1602 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1604 Some influential environment variables
:
1605 CC C compiler
command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1608 nonstandard directory
<lib dir
>
1609 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1610 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1611 you have headers
in a nonstandard directory
<include dir
>
1612 CXX C
++ compiler
command
1613 CXXFLAGS C
++ compiler flags
1615 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1617 Use these variables to override the choices made by
`configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1650 .) # We are building in place.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1684 generated by GNU Autoconf 2.68
1686 Copyright (C) 2010 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1707 *) ac_try_echo
=$ac_try;;
1709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1713 if test -s conftest.err
; then
1714 grep -v '^ *+' conftest.err
>conftest.er1
1715 cat conftest.er1
>&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.
$ac_objext; then :
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.
$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status
$ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile
()
1740 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1741 rm -f conftest.
$ac_objext
1742 if { { ac_try
="$ac_compile"
1744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1782 *) ac_try_echo
=$ac_try;;
1784 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1788 if test -s conftest.err
; then
1789 grep -v '^ *+' conftest.err
>conftest.er1
1790 cat conftest.er1
>&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i
&& {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.
$ac_ext >&5
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status
$ac_retval
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 if eval \
${$3+:} false
; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \
${$3+:} false
; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile
"$LINENO"; then :
1837 ac_header_compiler
=yes
1839 ac_header_compiler
=no
1841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp
"$LINENO"; then :
1853 ac_header_preproc
=yes
1855 ac_header_preproc
=no
1857 rm -f conftest.err conftest.i conftest.
$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1903 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1904 if { { ac_try
="$ac_link"
1906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1917 *) ac_try_echo
=$ac_try;;
1919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.
$ac_ext >&5
1931 ac_retval
=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status
$ac_retval
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile
()
1945 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \
${$3+:} false
; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 rm -f conftest.
$ac_objext conftest
$ac_exeext
1977 if { { ac_try
="$ac_link"
1979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2017 # ----------------------------------------------------
2018 # Tries to find if the field MEMBER exists in type AGGR, after including
2019 # INCLUDES, setting cache variable VAR accordingly.
2020 ac_fn_c_check_member ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2024 $as_echo_n "checking for $2.$3... " >&6; }
2025 if eval \${$4+:} false; then :
2026 $as_echo_n "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"; then :
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2051 if (sizeof ac_aggr.$3)
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_member
2073 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2074 # ---------------------------------------------
2075 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2077 ac_fn_c_check_decl ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2081 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2083 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2093 #ifndef $as_decl_name
2095 (void) $as_decl_use;
2097 (void) $as_decl_name;
2105 if ac_fn_c_try_compile "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_decl
2119 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120 # -------------------------------------------
2121 # Tests whether TYPE exists after having included INCLUDES, setting cache
2122 # variable VAR accordingly.
2123 ac_fn_c_check_type ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if eval \${$3+:} false; then :
2129 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_type
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2196 # include <limits.h>
2198 # include <assert.h>
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2225 if ac_fn_c_try_link "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext \
2231 conftest$ac_exeext conftest.$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_func
2239 cat >config.log <<_ACEOF
2240 This file contains any messages produced by compilers while
2241 running configure, to aid debugging if configure makes a mistake.
2243 It was created by $as_me, which was
2244 generated by GNU Autoconf 2.68. Invocation command line was
2256 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2257 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2258 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2259 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2260 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2262 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2263 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2265 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2266 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2267 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2268 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2269 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2270 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2271 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 $as_echo "PATH: $as_dir"
2296 # Keep a trace of the command line.
2297 # Strip out --no-create and --no-recursion so they do not pile up.
2298 # Strip out --silent because we don't want to record it for future runs.
2299 # Also quote any args containing shell meta-characters.
2300 # Make two passes to allow for proper duplicate-argument suppression.
2304 ac_must_keep_next=false
2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312 | -silent | --silent | --silen | --sile | --sil)
2315 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320 as_fn_append ac_configure_args1 " '$ac_arg'"
2321 if test $ac_must_keep_next = true; then
2322 ac_must_keep_next=false # Got value, back to normal.
2325 *=* | --config-cache | -C | -disable-* | --disable-* \
2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328 | -with-* | --with-* | -without-* | --without-* | --x)
2329 case "$ac_configure_args0 " in
2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2333 -* ) ac_must_keep_next=true ;;
2336 as_fn_append ac_configure_args " '$ac_arg'"
2341 { ac_configure_args0=; unset ac_configure_args0;}
2342 { ac_configure_args1=; unset ac_configure_args1;}
2344 # When interrupted or exit'd, cleanup temporary files, and complete
2345 # config.log. We remove comments because anyway the quotes in there
2346 # would cause problems or look ugly.
2347 # WARNING: Use '\'' to represent an apostrophe within the trap.
2348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349 trap 'exit_status=$?
2350 # Save into config.log some information that might help in debugging.
2354 $as_echo "## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##"
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2361 eval ac_val=\$$ac_var
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2376 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2390 $as_echo "## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##"
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2398 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 $as_echo "$ac_var='\''$ac_val'\''"
2404 if test -n "$ac_subst_files"; then
2405 $as_echo "## ------------------- ##
2406 ## File substitutions. ##
2407 ## ------------------- ##"
2409 for ac_var in $ac_subst_files
2411 eval ac_val=\$$ac_var
2413 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 $as_echo "$ac_var='\''$ac_val'\''"
2420 if test -s confdefs.h; then
2421 $as_echo "## ----------- ##
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2477 if test -n "$CONFIG_SITE"; then
2478 # We do not want a PATH search for config.site.
2479 case $CONFIG_SITE in #((
2480 -*) ac_site_file1=./$CONFIG_SITE;;
2481 */*) ac_site_file1=$CONFIG_SITE;;
2482 *) ac_site_file1=./$CONFIG_SITE;;
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 test "x$ac_site_file" = xNONE && continue
2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "failed to load site
script $ac_site_file
2502 See \
`config.log' for more details" "$LINENO" 5; }
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 as_fn_append ac_header_list " stdlib.h"
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_header_list " sys/param.h"
2526 # Check that the precious variables saved in the cache have kept the same
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2537 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2541 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x
$ac_old_val`
2548 ac_new_val_w=`echo x
$ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2552 ac_cache_corrupted=:
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Check what host we are running on.
2626 # If a target is not suggested, we use this one.
2627 # Note that what we call a target, Autoconf calls a host.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653 ac_save_IFS=$IFS; IFS='-'
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2663 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2700 # The AROS target is slightly different to the normal GNU style
2701 # format. We don't have the middle part, and we reverse the order
2702 # of the $(CPU) and $(OS) bits.
2704 # Don't strip the version of the target yet, it might be
2705 # useful on some systems.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2708 $as_echo_n "checking for AROS style target... " >&6; }
2710 if test "$target" = "NONE" ; then
2711 target=$host_os-$host_cpu
2713 if test "$target" = "" ; then
2714 target=$host_os-$host_cpu
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2718 $as_echo "$target" >&6; }
2720 if test "$host_os" = "mingw32" ; then
2724 # Don't know where else to put this...
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2726 $as_echo_n "checking building AROS in... " >&6; }
2727 AROS_BUILDDIR=`${PWDCMD-pwd}`
2728 AROS_BUILDDIR_UNIX=${PWD}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2730 $as_echo "$AROS_BUILDDIR" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2733 $as_echo_n "checking AROS source in... " >&6; }
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2737 $as_echo "$SRCDIR" >&6; }
2739 # Parse the target field into something useful.
2741 target_os=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\1/'`
2742 target_cpu=`echo $target |
sed 's/^\([^-].*\)-\(.*\)$/\2/'`
2745 # Some debug output, to be removed again.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target system (debug output)" >&5
2747 $as_echo_n "checking for target system (debug output)... " >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
2749 $as_echo "$target_os" >&6; }
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target cpu (debug output)" >&5
2751 $as_echo_n "checking for target cpu (debug output)... " >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5
2753 $as_echo "$target_cpu" >&6; }
2755 aros_default_wbwidth=800
2756 aros_default_wbheight=600
2757 aros_default_wbdepth=4
2760 # The first step is to find the host binaries.
2761 # Check for a compiler.
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2806 if test -z "$ac_cv_prog_CC"; then
2808 # Extract the first word of "gcc", so it can be a program name with args.
2809 set dummy gcc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="gcc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838 $as_echo "$ac_ct_CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2844 if test "x$ac_ct_CC" = x; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2859 if test -z "$CC"; then
2860 if test -n "$ac_tool_prefix"; then
2861 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2862 set dummy ${ac_tool_prefix}cc; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="${ac_tool_prefix}cc"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2900 if test -z "$CC"; then
2901 # Extract the first word of "cc", so it can be a program name with args.
2902 set dummy cc; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if ${ac_cv_prog_CC+:} false; then :
2906 $as_echo_n "(cached) " >&6
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2920 ac_prog_rejected=yes
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test $ac_prog_rejected = yes; then
2932 # We found a bogon in the path, so make sure we never use it.
2933 set dummy $ac_cv_prog_CC
2935 if test $# != 0; then
2936 # We chose a different compiler from the bogus one.
2937 # However, it has the same basename, so the bogon will be chosen
2938 # first if we set CC to just the basename; use the full file name.
2940 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 if test -n "$CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 $as_echo "$CC" >&6; }
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2956 if test -z "$CC"; then
2957 if test -n "$ac_tool_prefix"; then
2958 for ac_prog in cl.exe
2960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_CC+:} false; then :
2965 $as_echo_n "(cached) " >&6
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2997 test -n "$CC" && break
3000 if test -z "$CC"; then
3002 for ac_prog in cl.exe
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$ac_ct_CC" && break
3044 if test "x$ac_ct_CC" = x; then
3047 case $cross_compiling:$ac_tool_warned in
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3060 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3063 See \
`config.log' for more details" "$LINENO" 5; }
3065 # Provide some information about the compiler.
3066 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3069 for ac_option in --version -v -V -qversion; do
3070 { { ac_try="$ac_compiler $ac_option >&5"
3072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3073 *) ac_try_echo
=$ac_try;;
3075 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3079 if test -s conftest.err
; then
3081 ... rest of stderr output deleted ...
3082 10q' conftest.err
>conftest.er1
3083 cat conftest.er1
>&5
3085 rm -f conftest.er1 conftest.err
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }
3090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3101 ac_clean_files_save
=$ac_clean_files
3102 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3103 # Try to create an executable without -o first, disregard a.out.
3104 # It will help us diagnose broken compilers, and finding out an intuition
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3107 $as_echo_n "checking whether the C compiler works... " >&6; }
3108 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110 # The possible output files:
3111 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3114 for ac_file
in $ac_files
3117 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3118 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3123 if { { ac_try
="$ac_link_default"
3125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_link_default") 2>&5
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3135 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3136 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3137 # so that the user can short-circuit this test for compilers unknown to
3139 for ac_file in $ac_files ''
3141 test -f "$ac_file" || continue
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3146 # We found the default executable, but exeext='' is most
3150 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 # We set ac_cv_exeext here because the later test for it is not
3155 # safe: cross compilers may not add the suffix if given an `-o'
3156 # argument, so we may need to know it at that point already.
3157 # Even if this section looks crufty: it has the advantage of
3164 test "$ac_cv_exeext" = no && ac_cv_exeext=
3169 if test -z "$ac_file"; then :
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 $as_echo "$as_me: failed program was:" >&5
3173 sed 's
/^
/|
/' conftest.$ac_ext >&5
3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3176 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3177 as_fn_error 77 "C compiler cannot create executables
3178 See \`config.log
' for more details" "$LINENO" 5; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 $as_echo_n "checking for C compiler default output file name... " >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3186 $as_echo "$ac_file" >&6; }
3187 ac_exeext=$ac_cv_exeext
3189 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3192 $as_echo_n "checking for suffix of executables... " >&6; }
3193 if { { ac_try="$ac_link"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3205 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3206 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3208 for ac_file
in conftest.exe conftest conftest.
*; do
3209 test -f "$ac_file" ||
continue
3211 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3212 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3221 See \`config.log' for more details" "$LINENO" 5; }
3223 rm -f conftest conftest
$ac_cv_exeext
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3225 $as_echo "$ac_cv_exeext" >&6; }
3227 rm -f conftest.
$ac_ext
3228 EXEEXT
=$ac_cv_exeext
3230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3236 FILE *f = fopen ("conftest.out", "w");
3237 return ferror (f) || fclose (f) != 0;
3243 ac_clean_files
="$ac_clean_files conftest.out"
3244 # Check that the compiler produces executables we can run. If not, either
3245 # the compiler is broken, or we cross compile.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3247 $as_echo_n "checking whether we are cross compiling... " >&6; }
3248 if test "$cross_compiling" != yes; then
3249 { { ac_try
="$ac_link"
3251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3260 if { ac_try='./conftest$ac_cv_exeext'
3261 { { case "(($ac_try" in
3262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3263 *) ac_try_echo
=$ac_try;;
3265 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_try") 2>&5
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; }; then
3273 if test "$cross_compiling" = maybe
; then
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $?
"cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details" "$LINENO" 5; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3285 $as_echo "$cross_compiling" >&6; }
3287 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3288 ac_clean_files
=$ac_clean_files_save
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3290 $as_echo_n "checking for suffix of object files... " >&6; }
3291 if ${ac_cv_objext+:} false
; then :
3292 $as_echo_n "(cached) " >&6
3294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 rm -f conftest.o conftest.obj
3306 if { { ac_try
="$ac_compile"
3308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 $as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_compile") 2>&5
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 for ac_file in conftest.o conftest.obj conftest.*; do
3318 test -f "$ac_file" || continue;
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3321 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3332 See \
`config.log' for more details" "$LINENO" 5; }
3334 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3337 $as_echo "$ac_cv_objext" >&6; }
3338 OBJEXT=$ac_cv_objext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3341 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3342 if ${ac_cv_c_compiler_gnu+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3359 if ac_fn_c_try_compile "$LINENO"; then :
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3369 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3370 if test $ac_compiler_gnu = yes; then
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3378 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3379 if ${ac_cv_prog_cc_g+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3397 if ac_fn_c_try_compile "$LINENO"; then :
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_c_werror_flag=$ac_save_c_werror_flag
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_c_werror_flag=$ac_save_c_werror_flag
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3439 $as_echo "$ac_cv_prog_cc_g" >&6; }
3440 if test "$ac_test_CFLAGS" = set; then
3441 CFLAGS=$ac_save_CFLAGS
3442 elif test $ac_cv_prog_cc_g = yes; then
3443 if test "$GCC" = yes; then
3449 if test "$GCC" = yes; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3456 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3457 if ${ac_cv_prog_cc_c89+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 ac_cv_prog_cc_c89=no
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3482 s = g (p, va_arg (v,int));
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3525 rm -f conftest.$ac_ext
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 case $ac_cv_prog_cc_stdc in #(
3554 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3558 if ${ac_cv_prog_cc_c99+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_cv_prog_cc_c99=no
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3566 #include <stdbool.h>
3571 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3572 #define debug(...) fprintf (stderr, __VA_ARGS__)
3573 #define showlist(...) puts (#__VA_ARGS__)
3574 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3576 test_varargs_macros (void)
3581 debug ("X = %d\n", x);
3582 showlist (The first, second, and third items.);
3583 report (x>y, "x is %d but y is %d", x, y);
3586 // Check long long types.
3587 #define BIG64 18446744073709551615ull
3588 #define BIG32 4294967295ul
3589 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3591 your preprocessor is broken;
3595 your preprocessor is broken;
3597 static long long int bignum = -9223372036854775807LL;
3598 static unsigned long long int ubignum = BIG64;
3600 struct incomplete_array
3608 const wchar_t *name;
3612 typedef const char *ccp;
3615 test_restrict (ccp restrict text)
3617 // See if C++-style comments work.
3618 // Iterate through items via the restricted pointer.
3619 // Also check for declarations in for loops.
3620 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3625 // Check varargs and va_copy.
3627 test_varargs (const char *format, ...)
3630 va_start (args, format);
3632 va_copy (args_copy, args);
3643 str = va_arg (args_copy, const char *);
3646 number = va_arg (args_copy, int);
3649 fnumber = va_arg (args_copy, double);
3664 _Bool success = false;
3667 if (test_restrict ("String literal") == 0)
3669 char *restrict newvar = "Another string";
3672 test_varargs ("s, d' f .", "string", 65, 34.234);
3673 test_varargs_macros ();
3675 // Check flexible array members.
3676 struct incomplete_array *ia =
3677 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3679 for (int i = 0; i < ia->datasize; ++i)
3680 ia->data[i] = i * 1.234;
3682 // Check named initializers.
3683 struct named_init ni = {
3685 .name = L"Test wide string",
3686 .average = 543.34343,
3691 int dynamic_array[ni.number];
3692 dynamic_array[ni.number - 1] = 543;
3694 // work around unused variable warnings
3695 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3696 || dynamic_array[ni.number - 1] != 543);
3702 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3704 CC="$ac_save_CC $ac_arg"
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_c99=$ac_arg
3708 rm -f core conftest.err conftest.$ac_objext
3709 test "x$ac_cv_prog_cc_c99" != "xno" && break
3711 rm -f conftest.$ac_ext
3716 case "x$ac_cv_prog_cc_c99" in
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3719 $as_echo "none needed" >&6; } ;;
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3722 $as_echo "unsupported" >&6; } ;;
3724 CC="$CC $ac_cv_prog_cc_c99"
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3726 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3728 if test "x$ac_cv_prog_cc_c99" != xno; then :
3729 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3732 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3733 if ${ac_cv_prog_cc_c89+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 ac_cv_prog_cc_c89=no
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3742 #include <sys/types.h>
3743 #include <sys/stat.h>
3744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3745 struct buf { int x; };
3746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3747 static char *e (p, i)
3753 static char *f (char * (*g) (char **, int), char **p, ...)
3758 s = g (p, va_arg (v,int));
3763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3764 function prototypes and stuff, but not '\xHH' hex character constants.
3765 These don't provoke an error unfortunately, instead are silently treated
3766 as 'x'. The following induces an error, until -std is added to get
3767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3768 array size at least. It's necessary to write '\x00'==0 to get something
3769 that's true only with -std. */
3770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3773 inside strings and character constants. */
3775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 CC="$ac_save_CC $ac_arg"
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_c89=$ac_arg
3798 rm -f core conftest.err conftest.$ac_objext
3799 test "x$ac_cv_prog_cc_c89" != "xno" && break
3801 rm -f conftest.$ac_ext
3806 case "x$ac_cv_prog_cc_c89" in
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3809 $as_echo "none needed" >&6; } ;;
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3812 $as_echo "unsupported" >&6; } ;;
3814 CC="$CC $ac_cv_prog_cc_c89"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3816 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3818 if test "x$ac_cv_prog_cc_c89" != xno; then :
3819 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3821 ac_cv_prog_cc_stdc=no
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3828 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3829 if ${ac_cv_prog_cc_stdc+:} false; then :
3830 $as_echo_n "(cached) " >&6
3833 case $ac_cv_prog_cc_stdc in #(
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;; #(
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;; #(
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3842 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3846 ac_cpp='$CXXCPP $CPPFLAGS'
3847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3850 if test -z "$CXX"; then
3851 if test -n "$CCC"; then
3854 if test -n "$ac_tool_prefix"; then
3855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if ${ac_cv_prog_CXX+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -n "$CXX"; then
3865 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 if test -n "$CXX"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3887 $as_echo "$CXX" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3894 test -n "$CXX" && break
3897 if test -z "$CXX"; then
3899 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3901 # Extract the first word of "$ac_prog", so it can be a program name with args.
3902 set dummy $ac_prog; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 if test -n "$ac_ct_CXX"; then
3909 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_ac_ct_CXX="$ac_prog"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3929 if test -n "$ac_ct_CXX"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3931 $as_echo "$ac_ct_CXX" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3938 test -n "$ac_ct_CXX" && break
3941 if test "x$ac_ct_CXX" = x; then
3944 case $cross_compiling:$ac_tool_warned in
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948 ac_tool_warned=yes ;;
3956 # Provide some information about the compiler.
3957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3960 for ac_option in --version -v -V -qversion; do
3961 { { ac_try="$ac_compiler $ac_option >&5"
3963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3964 *) ac_try_echo
=$ac_try;;
3966 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3970 if test -s conftest.err
; then
3972 ... rest of stderr output deleted ...
3973 10q' conftest.err
>conftest.er1
3974 cat conftest.er1
>&5
3976 rm -f conftest.er1 conftest.err
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3983 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
4000 if ac_fn_cxx_try_compile
"$LINENO"; then :
4005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4006 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4010 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4016 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4017 ac_save_CXXFLAGS
=$CXXFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4019 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4020 if ${ac_cv_prog_cxx_g+:} false
; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4024 ac_cxx_werror_flag
=yes
4027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_cxx_try_compile
"$LINENO"; then :
4039 ac_cv_prog_cxx_g
=yes
4042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_cxx_try_compile
"$LINENO"; then :
4056 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_cxx_try_compile
"$LINENO"; then :
4070 ac_cv_prog_cxx_g
=yes
4072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4077 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4080 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4081 if test "$ac_test_CXXFLAGS" = set; then
4082 CXXFLAGS
=$ac_save_CXXFLAGS
4083 elif test $ac_cv_prog_cxx_g = yes; then
4084 if test "$GXX" = yes; then
4090 if test "$GXX" = yes; then
4097 ac_cpp
='$CPP $CPPFLAGS'
4098 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4103 ac_cpp
='$CPP $CPPFLAGS'
4104 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4109 # On Suns, sometimes $CPP names a directory.
4110 if test -n "$CPP" && test -d "$CPP"; then
4113 if test -z "$CPP"; then
4114 if ${ac_cv_prog_CPP+:} false
; then :
4115 $as_echo_n "(cached) " >&6
4117 # Double quotes because CPP needs to be expanded
4118 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4121 for ac_c_preproc_warn_flag
in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4132 # include <limits.h>
4134 # include <assert.h>
4138 if ac_fn_c_try_cpp
"$LINENO"; then :
4141 # Broken: fails on valid input.
4144 rm -f conftest.err conftest.i conftest.
$ac_ext
4146 # OK, works on sane cases. Now check whether nonexistent headers
4147 # can be detected and how.
4148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <ac_nonexistent.h>
4152 if ac_fn_c_try_cpp
"$LINENO"; then :
4153 # Broken: success on invalid input.
4156 # Passes both tests.
4160 rm -f conftest.err conftest.i conftest.
$ac_ext
4163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4164 rm -f conftest.i conftest.err conftest.
$ac_ext
4165 if $ac_preproc_ok; then :
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4178 $as_echo "$CPP" >&6; }
4180 for ac_c_preproc_warn_flag
in '' yes
4182 # Use a header file that comes with gcc, so configuring glibc
4183 # with a fresh cross-compiler works.
4184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4185 # <limits.h> exists even on freestanding compilers.
4186 # On the NeXT, cc -E runs the code through the compiler's parser,
4187 # not just through cpp. "Syntax error" is here to catch this case.
4188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4191 # include <limits.h>
4193 # include <assert.h>
4197 if ac_fn_c_try_cpp
"$LINENO"; then :
4200 # Broken: fails on valid input.
4203 rm -f conftest.err conftest.i conftest.
$ac_ext
4205 # OK, works on sane cases. Now check whether nonexistent headers
4206 # can be detected and how.
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <ac_nonexistent.h>
4211 if ac_fn_c_try_cpp
"$LINENO"; then :
4212 # Broken: success on invalid input.
4215 # Passes both tests.
4219 rm -f conftest.err conftest.i conftest.
$ac_ext
4222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4223 rm -f conftest.i conftest.err conftest.
$ac_ext
4224 if $ac_preproc_ok; then :
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4230 See \`config.log' for more details" "$LINENO" 5; }
4234 ac_cpp
='$CPP $CPPFLAGS'
4235 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4240 # Check for a compatible awk
4241 for ac_prog
in gawk nawk
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy
$ac_prog; ac_word
=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_prog_AWK+:} false
; then :
4248 $as_echo_n "(cached) " >&6
4250 if test -n "$AWK"; then
4251 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir
=.
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_AWK
="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 if test -n "$AWK"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4273 $as_echo "$AWK" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$AWK" && break
4283 if test "$AWK" = ""; then
4284 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4286 # Extract the first word of "mmake", so it can be a program name with args.
4287 set dummy mmake
; ac_word
=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_MMAKE+:} false
; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$MMAKE"; then
4294 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_MMAKE
="mmake "
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 MMAKE
=$ac_cv_prog_MMAKE
4314 if test -n "$MMAKE"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4316 $as_echo "$MMAKE" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4324 # Perform some default variable assignments. Note all of these will be
4325 # Regenerated from the script, so there is no need to cache them.
4327 aros_host_cpp
="$CPP"
4329 aros_host_cxx
="$CXX"
4330 if test "$GCC" = "yes"; then
4331 aros_gcc_ld
=`$CC -print-prog-name=ld`
4332 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4333 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_path_aros_host_ld+:} false
; then :
4337 $as_echo_n "(cached) " >&6
4339 case $aros_host_ld in
4341 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4345 for as_dir
in `dirname $aros_gcc_ld`
4348 test -z "$as_dir" && as_dir
=.
4349 for ac_exec_ext
in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 aros_host_ld
=$ac_cv_path_aros_host_ld
4363 if test -n "$aros_host_ld"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4365 $as_echo "$aros_host_ld" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4373 if test "$aros_host_ld" = ""; then
4374 # Extract the first word of "ld", so it can be a program name with args.
4375 set dummy ld
; ac_word
=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_path_aros_host_ld+:} false
; then :
4379 $as_echo_n "(cached) " >&6
4381 case $aros_host_ld in
4383 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir
=.
4391 for ac_exec_ext
in '' $ac_executable_extensions; do
4392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 aros_host_ld
=$ac_cv_path_aros_host_ld
4405 if test -n "$aros_host_ld"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4407 $as_echo "$aros_host_ld" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4415 if test "$aros_host_ld" = ""; then
4416 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4418 aros_host_make
="make"
4419 aros_host_cflags
=$CFLAGS
4420 aros_host_cxxflags
=$CXXFLAGS
4421 aros_host_ldflags
=$LDFLAGS
4422 aros_host_debug
="-g -O0"
4423 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4424 aros_host_mkargs
="--no-print-directory"
4425 aros_host_exe_suffix
="$EXEEXT"
4426 aros_host_lib_suffix
=""
4428 # Ignore all compliance, AROS ROMs = 0
4429 # KickStart v1.0 = 30
4430 # KickStart v1.3 = 34
4431 # KickStart v2.0 = 37
4432 # KickStart v3.0 = 39
4433 # KickStart v3.1 = 40
4435 aros_amigaos_compliance
=0
4437 for ac_prog
in aclocal aclocal19 aclocal-1.9
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy
$ac_prog; ac_word
=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_prog_aros_host_aclocal+:} false
; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$aros_host_aclocal"; then
4447 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4467 if test -n "$aros_host_aclocal"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4469 $as_echo "$aros_host_aclocal" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$aros_host_aclocal" && break
4479 for ac_prog
in autoconf autoconf259 autoconf253
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy
$ac_prog; ac_word
=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_prog_aros_host_autoconf+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -n "$aros_host_autoconf"; then
4489 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_exec_ext
in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4509 if test -n "$aros_host_autoconf"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4511 $as_echo "$aros_host_autoconf" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4518 test -n "$aros_host_autoconf" && break
4521 for ac_prog
in autoheader autoheader259 autoheader253
4523 # Extract the first word of "$ac_prog", so it can be a program name with args.
4524 set dummy
$ac_prog; ac_word
=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if ${ac_cv_prog_aros_host_autoheader+:} false
; then :
4528 $as_echo_n "(cached) " >&6
4530 if test -n "$aros_host_autoheader"; then
4531 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir
=.
4538 for ac_exec_ext
in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4551 if test -n "$aros_host_autoheader"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4553 $as_echo "$aros_host_autoheader" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4560 test -n "$aros_host_autoheader" && break
4563 for ac_prog
in automake automake19 automake-1.9
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy
$ac_prog; ac_word
=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_aros_host_automake+:} false
; then :
4570 $as_echo_n "(cached) " >&6
4572 if test -n "$aros_host_automake"; then
4573 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir
=.
4580 for ac_exec_ext
in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_aros_host_automake
="$ac_prog"
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 aros_host_automake
=$ac_cv_prog_aros_host_automake
4593 if test -n "$aros_host_automake"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4595 $as_echo "$aros_host_automake" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4602 test -n "$aros_host_automake" && break
4606 if test "$aros_host_aclocal" = ""; then
4607 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4609 if test "$aros_host_automake" = ""; then
4610 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4613 case "$aros_host_cc" in
4615 aros_host_cc_pipe
="-pipe"
4618 aros_host_cc_pipe
=""
4621 aros_host_cc_pipe
=""
4625 aros_kernel_cc_includes
=""
4626 aros_target_cc_includes
=""
4628 # ----------------------------------------------------------------------------------------
4629 # Host-specific defaults
4631 # This is the main host configuration section. It is where the host
4632 # can change the values of any variables it needs to change. We do
4633 # not look at anything that compiles to the target yet, we'll get
4638 aros_host_arch
="aros"
4639 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4642 aros_host_cpu
="i386"
4645 aros_host_cpu
="x86_64"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4652 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4653 aros_host_cpu
="$host_cpu"
4659 aros_host_arch
="linux"
4660 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4661 android_build_os
="linux-x86"
4662 android_tool
="android"
4663 default_android_sdk
="/opt/android-sdk-linux_x86"
4666 aros_host_cpu
="i386"
4669 aros_host_cpu
="x86_64"
4672 aros_host_cpu
="m68k"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4682 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4683 aros_host_cpu
="$host_cpu"
4689 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4690 aros_host_make
="gmake"
4691 aros_host_arch
="freebsd"
4692 aros_host_cpu
="i386"
4694 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4698 aros_object_format
="elf_i386"
4702 aros_object_format
="elf_i386_fbsd"
4709 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4710 aros_host_arch
="darwin"
4711 android_build_os
="darwin-x86"
4712 android_tool
="android"
4713 default_android_sdk
="/android-sdk-mac_x86"
4716 aros_host_cpu
="i386"
4719 aros_host_cpu
="x86_64"
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4726 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4727 aros_host_cpu
="$host_cpu"
4731 aros_host_ldflags
="$aros_host_ldflags -liconv"
4736 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4737 aros_host_make
="gmake"
4738 aros_host_arch
="dragonfly"
4741 aros_host_cpu
="i386"
4744 aros_host_cpu
="x86_64"
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4748 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4749 aros_host_cpu
="$host_cpu"
4755 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4756 aros_host_make
="gmake"
4757 aros_host_arch
="netbsd"
4760 aros_host_cpu
="i386"
4763 aros_host_cpu
="m68k"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4767 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4768 aros_host_cpu
="$host_cpu"
4771 aros_host_lib_suffix
=".0.0"
4775 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4776 aros_host_make
="gmake"
4777 aros_host_arch
="openbsd"
4780 aros_host_cpu
="i386"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4784 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4785 aros_host_cpu
="$host_cpu"
4791 aros_host_arch
="solaris"
4792 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4795 aros_host_cpu
="i386"
4798 aros_host_cpu
="sparc"
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4802 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4803 aros_host_cpu
="$host_cpu"
4809 aros_host_arch
="morphos"
4814 aros_host_arch
="amiga"
4819 TOUCH
="/gg/bin/touch"
4822 aros_host_cpu
="m68k"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4829 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4830 aros_host_cpu
="$host_cpu"
4836 aros_host_arch
="cygwin"
4837 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4838 android_build_os
="windows"
4839 android_tool
="android.bat"
4840 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4844 aros_host_cpu
="i386"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4848 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4849 aros_host_cpu
="$host_cpu"
4855 aros_host_arch
="mingw32"
4856 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4857 android_build_os
="windows"
4858 android_tool
="android.bat"
4859 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4865 $as_echo_n "checking for Windows native gcc target... " >&6; }
4866 host_cpu
=`gcc -dumpmachine`
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4868 $as_echo "$host_cpu" >&6; }
4875 aros_host_cpu
="i386"
4879 aros_host_cpu
="i386"
4883 aros_host_cpu
="x86_64"
4884 aros_host_cflags
="$aros_host_cflags -isystem /mingw/include"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4889 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4890 aros_host_cpu
="$host_cpu"
4895 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4899 # Extract the first word of "ar", so it can be a program name with args.
4900 set dummy
ar; ac_word
=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_prog_aros_host_ar+:} false
; then :
4904 $as_echo_n "(cached) " >&6
4906 if test -n "$aros_host_ar"; then
4907 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir
=.
4914 for ac_exec_ext
in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_aros_host_ar
="ar cr"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 aros_host_ar
=$ac_cv_prog_aros_host_ar
4927 if test -n "$aros_host_ar"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4929 $as_echo "$aros_host_ar" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4936 if test "$aros_host_ar" = ""; then
4937 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib
; ac_word
=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_prog_aros_host_ranlib+:} false
; then :
4944 $as_echo_n "(cached) " >&6
4946 if test -n "$aros_host_ranlib"; then
4947 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 for ac_exec_ext
in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_aros_host_ranlib
="ranlib "
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4967 if test -n "$aros_host_ranlib"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4969 $as_echo "$aros_host_ranlib" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4976 if test "$aros_host_ranlib" = ""; then
4977 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4979 # Extract the first word of "strip", so it can be a program name with args.
4980 set dummy strip
; ac_word
=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_aros_host_strip+:} false
; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -n "$aros_host_strip"; then
4987 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir
=.
4994 for ac_exec_ext
in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_aros_host_strip
="strip "
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 aros_host_strip
=$ac_cv_prog_aros_host_strip
5007 if test -n "$aros_host_strip"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
5009 $as_echo "$aros_host_strip" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 if test "$aros_host_strip" = ""; then
5017 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5020 # Extract the first word of "rm", so it can be a program name with args.
5021 set dummy
rm; ac_word
=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_RM+:} false
; then :
5025 $as_echo_n "(cached) " >&6
5027 if test -n "$RM"; then
5028 ac_cv_prog_RM
="$RM" # Let the user override the test.
5030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir
=.
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_RM
="rm -rf"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 if test -n "$RM"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5050 $as_echo "$RM" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5057 if test "$RM" = ""; then
5058 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5060 # Extract the first word of "cp", so it can be a program name with args.
5061 set dummy
cp; ac_word
=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_CP+:} false
; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -n "$CP"; then
5068 ac_cv_prog_CP
="$CP" # Let the user override the test.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 if test -n "$CP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5090 $as_echo "$CP" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 if test "$CP" = ""; then
5098 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5100 # Extract the first word of "mv", so it can be a program name with args.
5101 set dummy
mv; ac_word
=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_MV+:} false
; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$MV"; then
5108 ac_cv_prog_MV
="$MV" # Let the user override the test.
5110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir
=.
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 if test -n "$MV"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5130 $as_echo "$MV" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5137 if test "$MV" = ""; then
5138 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5140 # Extract the first word of "echo", so it can be a program name with args.
5141 set dummy
echo; ac_word
=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if ${ac_cv_prog_ECHO+:} false
; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$ECHO"; then
5148 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir
=.
5155 for ac_exec_ext
in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ECHO
="echo "
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 ECHO
=$ac_cv_prog_ECHO
5168 if test -n "$ECHO"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5170 $as_echo "$ECHO" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 if test "$ECHO" = ""; then
5178 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5180 # Extract the first word of "mkdir", so it can be a program name with args.
5181 set dummy mkdir
; ac_word
=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_prog_MKDIR+:} false
; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$MKDIR"; then
5188 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
5190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir
=.
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_MKDIR
="mkdir -p"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 MKDIR
=$ac_cv_prog_MKDIR
5208 if test -n "$MKDIR"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5210 $as_echo "$MKDIR" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 if test "$MKDIR" = ""; then
5218 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5220 # Extract the first word of "touch", so it can be a program name with args.
5221 set dummy
touch; ac_word
=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_prog_TOUCH+:} false
; then :
5225 $as_echo_n "(cached) " >&6
5227 if test -n "$TOUCH"; then
5228 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
5230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir
=.
5235 for ac_exec_ext
in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_TOUCH
="touch "
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 TOUCH
=$ac_cv_prog_TOUCH
5248 if test -n "$TOUCH"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5250 $as_echo "$TOUCH" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 if test "$TOUCH" = ""; then
5258 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5260 # Extract the first word of "sort", so it can be a program name with args.
5261 set dummy
sort; ac_word
=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_SORT+:} false
; then :
5265 $as_echo_n "(cached) " >&6
5267 if test -n "$SORT"; then
5268 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_prog_SORT
="sort "
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 SORT
=$ac_cv_prog_SORT
5288 if test -n "$SORT"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5290 $as_echo "$SORT" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5297 if test "$SORT" = ""; then
5298 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5300 # Extract the first word of "uniq", so it can be a program name with args.
5301 set dummy
uniq; ac_word
=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_UNIQ+:} false
; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -n "$UNIQ"; then
5308 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
5310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir
=.
5315 for ac_exec_ext
in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_UNIQ
="uniq "
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 UNIQ
=$ac_cv_prog_UNIQ
5328 if test -n "$UNIQ"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5330 $as_echo "$UNIQ" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5337 if test "$UNIQ" = ""; then
5338 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 # Extract the first word of "true", so it can be a program name with args.
5341 set dummy true
; ac_word
=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_NOP+:} false
; then :
5345 $as_echo_n "(cached) " >&6
5347 if test -n "$NOP"; then
5348 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
5350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir
=.
5355 for ac_exec_ext
in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_NOP
="true "
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 if test -n "$NOP"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5370 $as_echo "$NOP" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 if test "$NOP" = ""; then
5378 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5380 # Extract the first word of "cat", so it can be a program name with args.
5381 set dummy
cat; ac_word
=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_CAT+:} false
; then :
5385 $as_echo_n "(cached) " >&6
5387 if test -n "$CAT"; then
5388 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir
=.
5395 for ac_exec_ext
in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_CAT
="cat "
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 if test -n "$CAT"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5410 $as_echo "$CAT" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 if test "$CAT" = ""; then
5418 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5420 # Extract the first word of "bison", so it can be a program name with args.
5421 set dummy bison
; ac_word
=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_BISON+:} false
; then :
5425 $as_echo_n "(cached) " >&6
5427 if test -n "$BISON"; then
5428 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 for ac_exec_ext
in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_BISON
="bison "
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 BISON
=$ac_cv_prog_BISON
5448 if test -n "$BISON"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5450 $as_echo "$BISON" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5457 if test "$BISON" = ""; then
5458 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5460 # Extract the first word of "flex", so it can be a program name with args.
5461 set dummy flex
; ac_word
=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_FLEX+:} false
; then :
5465 $as_echo_n "(cached) " >&6
5467 if test -n "$FLEX"; then
5468 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir
=.
5475 for ac_exec_ext
in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_FLEX
="flex "
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 FLEX
=$ac_cv_prog_FLEX
5488 if test -n "$FLEX"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5490 $as_echo "$FLEX" >&6; }
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5497 if test "$FLEX" = ""; then
5498 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5500 # Extract the first word of "pngtopnm", so it can be a program name with args.
5501 set dummy pngtopnm
; ac_word
=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if ${ac_cv_prog_PNGTOPNM+:} false
; then :
5505 $as_echo_n "(cached) " >&6
5507 if test -n "$PNGTOPNM"; then
5508 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5514 test -z "$as_dir" && as_dir
=.
5515 for ac_exec_ext
in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_PNGTOPNM
="pngtopnm "
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5528 if test -n "$PNGTOPNM"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5530 $as_echo "$PNGTOPNM" >&6; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5537 if test "$PNGTOPNM" = ""; then
5538 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5540 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5541 set dummy ppmtoilbm
; ac_word
=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_PPMTOILBM+:} false
; then :
5545 $as_echo_n "(cached) " >&6
5547 if test -n "$PPMTOILBM"; then
5548 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir
=.
5555 for ac_exec_ext
in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5568 if test -n "$PPMTOILBM"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5570 $as_echo "$PPMTOILBM" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5577 if test "$PPMTOILBM" = ""; then
5578 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5580 # Extract the first word of "sed", so it can be a program name with args.
5581 set dummy
sed; ac_word
=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_SED+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$SED"; then
5588 ac_cv_prog_SED
="$SED" # Let the user override the test.
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_SED
="sed "
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 if test -n "$SED"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5610 $as_echo "$SED" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5617 if test "$SED" = ""; then
5618 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5620 # Extract the first word of "chmod", so it can be a program name with args.
5621 set dummy
chmod; ac_word
=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_CHMOD+:} false
; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$CHMOD"; then
5628 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir
=.
5635 for ac_exec_ext
in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_CHMOD
="chmod "
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 CHMOD
=$ac_cv_prog_CHMOD
5648 if test -n "$CHMOD"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5650 $as_echo "$CHMOD" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5657 if test "$CHMOD" = ""; then
5658 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5660 # Extract the first word of "patch", so it can be a program name with args.
5661 set dummy
patch; ac_word
=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_PATCH+:} false
; then :
5665 $as_echo_n "(cached) " >&6
5667 if test -n "$PATCH"; then
5668 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir
=.
5675 for ac_exec_ext
in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_PATCH
="patch "
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 PATCH
=$ac_cv_prog_PATCH
5688 if test -n "$PATCH"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5690 $as_echo "$PATCH" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5697 if test "$PATCH" = ""; then
5698 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5705 if test -n "$PYTHON"; then
5706 # If the user set $PYTHON, use it and don't search something else.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5708 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5709 prog
="import sys, string
5710 # split strings by '.' and convert to numeric. Append some zeros
5711 # because we need at least 4 digits for the hex conversion.
5712 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5714 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5715 sys.exit(sys.hexversion < minverhex)"
5716 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5717 ($PYTHON -c "$prog") >&5 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; then :
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5724 as_fn_error $?
"too old" "$LINENO" 5
5726 am_display_PYTHON
=$PYTHON
5728 # Otherwise, try each interpreter until we find one that satisfies
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5731 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5732 if ${am_cv_pathless_PYTHON+:} false
; then :
5733 $as_echo_n "(cached) " >&6
5736 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
5737 test "$am_cv_pathless_PYTHON" = none
&& break
5738 prog
="import sys, string
5739 # split strings by '.' and convert to numeric. Append some zeros
5740 # because we need at least 4 digits for the hex conversion.
5741 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5743 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5744 sys.exit(sys.hexversion < minverhex)"
5745 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5746 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; then :
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5755 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5756 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5757 if test "$am_cv_pathless_PYTHON" = none
; then
5760 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5761 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_path_PYTHON+:} false
; then :
5765 $as_echo_n "(cached) " >&6
5769 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir
=.
5777 for ac_exec_ext
in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 PYTHON
=$ac_cv_path_PYTHON
5791 if test -n "$PYTHON"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5793 $as_echo "$PYTHON" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5801 am_display_PYTHON
=$am_cv_pathless_PYTHON
5805 if test "$PYTHON" = :; then
5806 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5811 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5812 if ${am_cv_python_version+:} false
; then :
5813 $as_echo_n "(cached) " >&6
5815 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5818 $as_echo "$am_cv_python_version" >&6; }
5819 PYTHON_VERSION
=$am_cv_python_version
5823 PYTHON_PREFIX
='${prefix}'
5825 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5830 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5831 if ${am_cv_python_platform+:} false
; then :
5832 $as_echo_n "(cached) " >&6
5834 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5837 $as_echo "$am_cv_python_platform" >&6; }
5838 PYTHON_PLATFORM
=$am_cv_python_platform
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5844 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5845 if ${am_cv_python_pythondir+:} false
; then :
5846 $as_echo_n "(cached) " >&6
5848 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5849 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5852 $as_echo "$am_cv_python_pythondir" >&6; }
5853 pythondir
=$am_cv_python_pythondir
5857 pkgpythondir
=\
${pythondir}/$PACKAGE
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5861 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5862 if ${am_cv_python_pyexecdir+:} false
; then :
5863 $as_echo_n "(cached) " >&6
5865 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5866 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5869 $as_echo "$am_cv_python_pyexecdir" >&6; }
5870 pyexecdir
=$am_cv_python_pyexecdir
5874 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5892 # Check for some includes for the X11 HIDD and the kernel
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5897 if ${ac_cv_path_GREP+:} false
; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found
=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5904 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5907 test -z "$as_dir" && as_dir
=.
5908 for ac_prog
in grep ggrep
; do
5909 for ac_exec_ext
in '' $ac_executable_extensions; do
5910 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5912 # Check for GNU ac_path_GREP and select it if it is found.
5913 # Check for GNU $ac_path_GREP
5914 case `"$ac_path_GREP" --version 2>&1` in
5916 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5919 $as_echo_n 0123456789 >"conftest.in"
5922 cat "conftest.in" "conftest.in" >"conftest.tmp"
5923 mv "conftest.tmp" "conftest.in"
5924 cp "conftest.in" "conftest.nl"
5925 $as_echo 'GREP' >> "conftest.nl"
5926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5927 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5928 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5930 # Best one so far, save it but keep looking for a better one
5931 ac_cv_path_GREP
="$ac_path_GREP"
5932 ac_path_GREP_max
=$ac_count
5934 # 10*(2^10) chars as input seems more than enough
5935 test $ac_count -gt 10 && break
5937 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5940 $ac_path_GREP_found && break 3
5945 if test -z "$ac_cv_path_GREP"; then
5946 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5949 ac_cv_path_GREP
=$GREP
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5954 $as_echo "$ac_cv_path_GREP" >&6; }
5955 GREP
="$ac_cv_path_GREP"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5959 $as_echo_n "checking for egrep... " >&6; }
5960 if ${ac_cv_path_EGREP+:} false
; then :
5961 $as_echo_n "(cached) " >&6
5963 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5964 then ac_cv_path_EGREP
="$GREP -E"
5966 if test -z "$EGREP"; then
5967 ac_path_EGREP_found
=false
5968 # Loop through the user's path and test for each of PROGNAME-LIST
5969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5970 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5973 test -z "$as_dir" && as_dir
=.
5974 for ac_prog
in egrep; do
5975 for ac_exec_ext
in '' $ac_executable_extensions; do
5976 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5978 # Check for GNU ac_path_EGREP and select it if it is found.
5979 # Check for GNU $ac_path_EGREP
5980 case `"$ac_path_EGREP" --version 2>&1` in
5982 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5985 $as_echo_n 0123456789 >"conftest.in"
5988 cat "conftest.in" "conftest.in" >"conftest.tmp"
5989 mv "conftest.tmp" "conftest.in"
5990 cp "conftest.in" "conftest.nl"
5991 $as_echo 'EGREP' >> "conftest.nl"
5992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5993 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5994 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5996 # Best one so far, save it but keep looking for a better one
5997 ac_cv_path_EGREP
="$ac_path_EGREP"
5998 ac_path_EGREP_max
=$ac_count
6000 # 10*(2^10) chars as input seems more than enough
6001 test $ac_count -gt 10 && break
6003 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6006 $ac_path_EGREP_found && break 3
6011 if test -z "$ac_cv_path_EGREP"; then
6012 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6015 ac_cv_path_EGREP
=$EGREP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6021 $as_echo "$ac_cv_path_EGREP" >&6; }
6022 EGREP
="$ac_cv_path_EGREP"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6026 $as_echo_n "checking for ANSI C header files... " >&6; }
6027 if ${ac_cv_header_stdc+:} false
; then :
6028 $as_echo_n "(cached) " >&6
6030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6045 if ac_fn_c_try_compile
"$LINENO"; then :
6046 ac_cv_header_stdc
=yes
6048 ac_cv_header_stdc
=no
6050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6052 if test $ac_cv_header_stdc = yes; then
6053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev
/null
2>&1; then :
6063 ac_cv_header_stdc
=no
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "free" >/dev
/null
2>&1; then :
6080 ac_cv_header_stdc
=no
6086 if test $ac_cv_header_stdc = yes; then
6087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6088 if test "$cross_compiling" = yes; then :
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6095 #if ((' ' & 0x0FF) == 0x020)
6096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6099 # define ISLOWER(c) \
6100 (('a' <= (c) && (c) <= 'i') \
6101 || ('j' <= (c) && (c) <= 'r') \
6102 || ('s' <= (c) && (c) <= 'z'))
6103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6111 for (i = 0; i < 256; i++)
6112 if (XOR (islower (i), ISLOWER (i))
6113 || toupper (i) != TOUPPER (i))
6118 if ac_fn_c_try_run
"$LINENO"; then :
6121 ac_cv_header_stdc
=no
6123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6130 $as_echo "$ac_cv_header_stdc" >&6; }
6131 if test $ac_cv_header_stdc = yes; then
6133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6137 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6138 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6139 inttypes.h stdint.h unistd.h
6141 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6144 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6145 cat >>confdefs.h
<<_ACEOF
6146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154 for ac_header
in sys
/ipc.h sys
/shm.h \
6155 sys
/mmap.h sys
/mman.h sysexits.h \
6156 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
6159 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6160 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6161 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6162 cat >>confdefs.h
<<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6171 for ac_header
in sys
/mount.h
6173 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6175 if test "x$ac_cv_header_sys_mount_h" = xyes
; then :
6176 cat >>confdefs.h
<<_ACEOF
6177 #define HAVE_SYS_MOUNT_H 1
6186 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6187 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6189 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6190 if eval \
${$as_ac_Header+:} false
; then :
6191 $as_echo_n "(cached) " >&6
6193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <sys/types.h>
6207 if ac_fn_c_try_compile
"$LINENO"; then :
6208 eval "$as_ac_Header=yes"
6210 eval "$as_ac_Header=no"
6212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 eval ac_res
=\$
$as_ac_Header
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6216 $as_echo "$ac_res" >&6; }
6217 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6218 cat >>confdefs.h
<<_ACEOF
6219 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6222 ac_header_dirent
=$ac_hdr; break
6226 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6227 if test $ac_header_dirent = dirent.h
; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6229 $as_echo_n "checking for library containing opendir... " >&6; }
6230 if ${ac_cv_search_opendir+:} false
; then :
6231 $as_echo_n "(cached) " >&6
6233 ac_func_search_save_LIBS
=$LIBS
6234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6237 /* Override any GCC internal prototype to avoid an error.
6238 Use char because int might match the return type of a GCC
6239 builtin and then its argument prototype would still apply. */
6252 for ac_lib
in '' dir
; do
6253 if test -z "$ac_lib"; then
6254 ac_res
="none required"
6257 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6259 if ac_fn_c_try_link
"$LINENO"; then :
6260 ac_cv_search_opendir
=$ac_res
6262 rm -f core conftest.err conftest.
$ac_objext \
6264 if ${ac_cv_search_opendir+:} false
; then :
6268 if ${ac_cv_search_opendir+:} false
; then :
6271 ac_cv_search_opendir
=no
6274 LIBS
=$ac_func_search_save_LIBS
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6277 $as_echo "$ac_cv_search_opendir" >&6; }
6278 ac_res
=$ac_cv_search_opendir
6279 if test "$ac_res" != no
; then :
6280 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6286 $as_echo_n "checking for library containing opendir... " >&6; }
6287 if ${ac_cv_search_opendir+:} false
; then :
6288 $as_echo_n "(cached) " >&6
6290 ac_func_search_save_LIBS
=$LIBS
6291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6294 /* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
6309 for ac_lib
in '' x
; do
6310 if test -z "$ac_lib"; then
6311 ac_res
="none required"
6314 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6316 if ac_fn_c_try_link
"$LINENO"; then :
6317 ac_cv_search_opendir
=$ac_res
6319 rm -f core conftest.err conftest.
$ac_objext \
6321 if ${ac_cv_search_opendir+:} false
; then :
6325 if ${ac_cv_search_opendir+:} false
; then :
6328 ac_cv_search_opendir
=no
6331 LIBS
=$ac_func_search_save_LIBS
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6334 $as_echo "$ac_cv_search_opendir" >&6; }
6335 ac_res
=$ac_cv_search_opendir
6336 if test "$ac_res" != no
; then :
6337 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6344 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6345 if ${ac_cv_header_stat_broken+:} false
; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 #include <sys/types.h>
6351 #include <sys/stat.h>
6353 #if defined S_ISBLK && defined S_IFDIR
6354 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6357 #if defined S_ISBLK && defined S_IFCHR
6358 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6361 #if defined S_ISLNK && defined S_IFREG
6362 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6365 #if defined S_ISSOCK && defined S_IFREG
6366 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6370 if ac_fn_c_try_compile
"$LINENO"; then :
6371 ac_cv_header_stat_broken
=no
6373 ac_cv_header_stat_broken
=yes
6375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6378 $as_echo "$ac_cv_header_stat_broken" >&6; }
6379 if test $ac_cv_header_stat_broken = yes; then
6381 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6386 $as_echo_n "checking for ANSI C header files... " >&6; }
6387 if ${ac_cv_header_stdc+:} false
; then :
6388 $as_echo_n "(cached) " >&6
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6405 if ac_fn_c_try_compile
"$LINENO"; then :
6406 ac_cv_header_stdc
=yes
6408 ac_cv_header_stdc
=no
6410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 if test $ac_cv_header_stdc = yes; then
6413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6420 $EGREP "memchr" >/dev
/null
2>&1; then :
6423 ac_cv_header_stdc
=no
6429 if test $ac_cv_header_stdc = yes; then
6430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437 $EGREP "free" >/dev
/null
2>&1; then :
6440 ac_cv_header_stdc
=no
6446 if test $ac_cv_header_stdc = yes; then
6447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6448 if test "$cross_compiling" = yes; then :
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6455 #if ((' ' & 0x0FF) == 0x020)
6456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6459 # define ISLOWER(c) \
6460 (('a' <= (c) && (c) <= 'i') \
6461 || ('j' <= (c) && (c) <= 'r') \
6462 || ('s' <= (c) && (c) <= 'z'))
6463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6471 for (i = 0; i < 256; i++)
6472 if (XOR (islower (i), ISLOWER (i))
6473 || toupper (i) != TOUPPER (i))
6478 if ac_fn_c_try_run
"$LINENO"; then :
6481 ac_cv_header_stdc
=no
6483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6490 $as_echo "$ac_cv_header_stdc" >&6; }
6491 if test $ac_cv_header_stdc = yes; then
6493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6498 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6499 if ${ac_cv_header_sys_wait_h+:} false
; then :
6500 $as_echo_n "(cached) " >&6
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #include <sys/types.h>
6505 #include <sys/wait.h>
6507 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6510 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6518 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6523 if ac_fn_c_try_compile
"$LINENO"; then :
6524 ac_cv_header_sys_wait_h
=yes
6526 ac_cv_header_sys_wait_h
=no
6528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6531 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6532 if test $ac_cv_header_sys_wait_h = yes; then
6534 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6539 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6540 if ${ac_cv_header_time+:} false
; then :
6541 $as_echo_n "(cached) " >&6
6543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <sys/types.h>
6546 #include <sys/time.h>
6552 if ((struct tm *) 0)
6558 if ac_fn_c_try_compile
"$LINENO"; then :
6559 ac_cv_header_time
=yes
6561 ac_cv_header_time
=no
6563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6566 $as_echo "$ac_cv_header_time" >&6; }
6567 if test $ac_cv_header_time = yes; then
6569 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6573 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6574 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
6576 cat >>confdefs.h
<<_ACEOF
6577 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6581 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6586 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6587 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
6589 cat >>confdefs.h
<<_ACEOF
6590 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6594 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6597 case " $LIBOBJS " in
6598 *" fileblocks.$ac_objext "* ) ;;
6599 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6606 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6607 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
; then :
6609 cat >>confdefs.h
<<_ACEOF
6610 #define HAVE_STRUCT_STAT_ST_RDEV 1
6614 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6620 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6621 if ${ac_cv_struct_tm+:} false
; then :
6622 $as_echo_n "(cached) " >&6
6624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626 #include <sys/types.h>
6633 int *p = &tm.tm_sec;
6639 if ac_fn_c_try_compile
"$LINENO"; then :
6640 ac_cv_struct_tm
=time.h
6642 ac_cv_struct_tm
=sys
/time.h
6644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6647 $as_echo "$ac_cv_struct_tm" >&6; }
6648 if test $ac_cv_struct_tm = sys
/time.h
; then
6650 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6654 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6655 #include <$ac_cv_struct_tm>
6658 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
6660 cat >>confdefs.h
<<_ACEOF
6661 #define HAVE_STRUCT_TM_TM_ZONE 1
6667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6669 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6672 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6674 if test "x$ac_cv_have_decl_tzname" = xyes
; then :
6680 cat >>confdefs.h
<<_ACEOF
6681 #define HAVE_DECL_TZNAME $ac_have_decl
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6685 $as_echo_n "checking for tzname... " >&6; }
6686 if ${ac_cv_var_tzname+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6692 #if !HAVE_DECL_TZNAME
6693 extern char *tzname[];
6699 return tzname[0][0];
6704 if ac_fn_c_try_link
"$LINENO"; then :
6705 ac_cv_var_tzname
=yes
6709 rm -f core conftest.err conftest.
$ac_objext \
6710 conftest
$ac_exeext conftest.
$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6713 $as_echo "$ac_cv_var_tzname" >&6; }
6714 if test $ac_cv_var_tzname = yes; then
6716 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6721 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6722 if test "x$ac_cv_type_off_t" = xyes
; then :
6726 cat >>confdefs.h
<<_ACEOF
6727 #define off_t long int
6732 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6733 if test "x$ac_cv_type_pid_t" = xyes
; then :
6737 cat >>confdefs.h
<<_ACEOF
6743 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6744 if test "x$ac_cv_type_size_t" = xyes
; then :
6748 cat >>confdefs.h
<<_ACEOF
6749 #define size_t unsigned int
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6755 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6756 if ${ac_cv_type_uid_t+:} false
; then :
6757 $as_echo_n "(cached) " >&6
6759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <sys/types.h>
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "uid_t" >/dev
/null
2>&1; then :
6766 ac_cv_type_uid_t
=yes
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6774 $as_echo "$ac_cv_type_uid_t" >&6; }
6775 if test $ac_cv_type_uid_t = no
; then
6777 $as_echo "#define uid_t int" >>confdefs.h
6780 $as_echo "#define gid_t int" >>confdefs.h
6785 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6786 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
; then :
6788 cat >>confdefs.h
<<_ACEOF
6789 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6796 # Look for some functions
6797 for ac_func
in getpagesize kqueue statfs statvfs \
6798 clone kse_create rfork_thread thr_create sa_register \
6799 getcontext makecontext setcontext sigaltstack swapcontext
6801 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6802 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6803 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6804 cat >>confdefs.h
<<_ACEOF
6805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6815 for ac_header
in $ac_header_list
6817 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6818 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6820 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6821 cat >>confdefs.h
<<_ACEOF
6822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836 for ac_func
in getpagesize
6838 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6839 if test "x$ac_cv_func_getpagesize" = xyes
; then :
6840 cat >>confdefs.h
<<_ACEOF
6841 #define HAVE_GETPAGESIZE 1
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6848 $as_echo_n "checking for working mmap... " >&6; }
6849 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
6850 $as_echo_n "(cached) " >&6
6852 if test "$cross_compiling" = yes; then :
6853 ac_cv_func_mmap_fixed_mapped
=no
6855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 $ac_includes_default
6858 /* malloc might have been renamed as rpl_malloc. */
6861 /* Thanks to Mike Haertel and Jim Avera for this test.
6862 Here is a matrix of mmap possibilities:
6863 mmap private not fixed
6864 mmap private fixed at somewhere currently unmapped
6865 mmap private fixed at somewhere already mapped
6866 mmap shared not fixed
6867 mmap shared fixed at somewhere currently unmapped
6868 mmap shared fixed at somewhere already mapped
6869 For private mappings, we should verify that changes cannot be read()
6870 back from the file, nor mmap's back from the file at a different
6871 address. (There have been systems where private was not correctly
6872 implemented like the infamous i386 svr4.0, and systems where the
6873 VM page cache was not coherent with the file system buffer cache
6874 like early versions of FreeBSD and possibly contemporary NetBSD.)
6875 For shared mappings, we should conversely verify that changes get
6876 propagated back to all the places they're supposed to be.
6878 Grep wants private fixed already mapped.
6879 The main things grep needs to know about mmap are:
6880 * does it exist and is it safe to write into the mmap'd area
6881 * how to use it (BSD variants) */
6884 #include <sys/mman.h>
6886 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6890 /* This mess was copied from the GNU getpagesize.h. */
6891 #ifndef HAVE_GETPAGESIZE
6892 # ifdef _SC_PAGESIZE
6893 # define getpagesize() sysconf(_SC_PAGESIZE)
6894 # else /* no _SC_PAGESIZE */
6895 # ifdef HAVE_SYS_PARAM_H
6896 # include <sys/param.h>
6897 # ifdef EXEC_PAGESIZE
6898 # define getpagesize() EXEC_PAGESIZE
6899 # else /* no EXEC_PAGESIZE */
6901 # define getpagesize() NBPG * CLSIZE
6904 # endif /* no CLSIZE */
6905 # else /* no NBPG */
6907 # define getpagesize() NBPC
6908 # else /* no NBPC */
6910 # define getpagesize() PAGESIZE
6911 # endif /* PAGESIZE */
6912 # endif /* no NBPC */
6913 # endif /* no NBPG */
6914 # endif /* no EXEC_PAGESIZE */
6915 # else /* no HAVE_SYS_PARAM_H */
6916 # define getpagesize() 8192 /* punt totally */
6917 # endif /* no HAVE_SYS_PARAM_H */
6918 # endif /* no _SC_PAGESIZE */
6920 #endif /* no HAVE_GETPAGESIZE */
6925 char *data, *data2, *data3;
6930 pagesize = getpagesize ();
6932 /* First, make a file with some known garbage in it. */
6933 data = (char *) malloc (pagesize);
6936 for (i = 0; i < pagesize; ++i)
6937 *(data + i) = rand ();
6939 fd = creat ("conftest.mmap", 0600);
6942 if (write (fd, data, pagesize) != pagesize)
6946 /* Next, check that the tail of a page is zero-filled. File must have
6947 non-zero length, otherwise we risk SIGBUS for entire page. */
6948 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6952 if (write (fd2, cdata2, 1) != 1)
6954 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6955 if (data2 == MAP_FAILED)
6957 for (i = 0; i < pagesize; ++i)
6961 if (munmap (data2, pagesize))
6964 /* Next, try to mmap the file at a fixed address which already has
6965 something else allocated at it. If we can, also make sure that
6966 we see the same garbage. */
6967 fd = open ("conftest.mmap", O_RDWR);
6970 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6971 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6973 for (i = 0; i < pagesize; ++i)
6974 if (*(data + i) != *(data2 + i))
6977 /* Finally, make sure that changes to the mapped area do not
6978 percolate back to the file as seen by read(). (This is a bug on
6979 some variants of i386 svr4.0.) */
6980 for (i = 0; i < pagesize; ++i)
6981 *(data2 + i) = *(data2 + i) + 1;
6982 data3 = (char *) malloc (pagesize);
6985 if (read (fd, data3, pagesize) != pagesize)
6987 for (i = 0; i < pagesize; ++i)
6988 if (*(data + i) != *(data3 + i))
6994 if ac_fn_c_try_run
"$LINENO"; then :
6995 ac_cv_func_mmap_fixed_mapped
=yes
6997 ac_cv_func_mmap_fixed_mapped
=no
6999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7005 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7006 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7008 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7011 rm -f conftest.mmap conftest.txt
7016 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
7017 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
7018 aros_config_ldflags
=""
7020 aros_shared_default
=yes
7022 aros_shared_cflags
="-fPIC"
7023 aros_shared_aflags
=""
7024 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7025 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7027 aros_kernel_ar_flags
="cr"
7028 aros_target_ar_flags
="cr"
7029 aros_target_nm_flags
="-C -ul"
7030 aros_target_strip_flags
="--strip-unneeded -R.comment"
7035 aros_target_genmap
="-Wl,-Map -Xlinker"
7037 # Native flavour stuff
7038 aros_serial_debug
="0"
7040 # Palm native flavour stuff
7041 aros_palm_debug_hack
="0"
7043 # Unix flavour stuff
7044 aros_nesting_supervisor
="0"
7046 # Collect-aros stuff: "-ius" to ignore undefined symbols
7047 ignore_undefined_symbols
=""
7049 # Check for X11 by default
7052 # Leave at 'none' for no external toolchain
7053 kernel_tool_prefix
="none"
7055 #-----------------------------------------------------------------------------
7058 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7059 # it switched on by default, and we use the host compiler, so it compiles AROS
7060 # code with this enabled resulting in link failures as we don't have support
7063 # We use two methods to disable it. For the host compiler (used to compile
7064 # some hosted modules), we test to see if the compiler supports stack
7065 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7066 # work on all platforms.
7068 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7069 # (this is done unconditionally, as it should have no effect on compilers
7070 # without the stack protection feature). This may be specific to the way that
7071 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7072 # strong enough to disable it in a generic way though, so we'll live with it
7073 # until another vendor ships GCC with it enabled in a different way, and deal
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7078 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7079 save_cflags
="$CFLAGS"
7080 CFLAGS
="$CFLAGS -fno-stack-protector"
7081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7092 if ac_fn_c_try_compile
"$LINENO"; then :
7093 use_no_stack_protector
="yes"
7095 use_no_stack_protector
="no"
7097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7099 $as_echo "$use_no_stack_protector" >&6; }
7100 if test "x-$use_no_stack_protector" = "x-yes" ; then
7101 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
7103 CFLAGS
="$save_cflags"
7105 #-----------------------------------------------------------------------------
7107 # Disable pointer-signedness warnings if the compiler recognises the option
7108 # (this only works for the host compiler at the moment)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7111 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7112 save_cflags
="$CFLAGS"
7113 CFLAGS
="$CFLAGS -Wno-pointer-sign"
7114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_c_try_compile
"$LINENO"; then :
7126 use_no_sign_warning
="yes"
7128 use_no_sign_warning
="no"
7130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7132 $as_echo "$use_no_sign_warning" >&6; }
7133 if test "x-$use_no_sign_warning" = "x-yes" ; then
7134 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
7136 CFLAGS
="$save_cflags"
7138 #-----------------------------------------------------------------------------
7140 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7143 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7144 save_cflags
="$CFLAGS"
7145 CFLAGS
="$CFLAGS -fgnu89-inline"
7146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7157 if ac_fn_c_try_compile
"$LINENO"; then :
7158 use_gnu89_inline
="yes"
7160 use_gnu89_inline
="no"
7162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7164 $as_echo "$use_gnu89_inline" >&6; }
7165 if test "x-$use_gnu89_inline" = "x-yes" ; then
7166 gnu89_inline
="-fgnu89-inline"
7168 CFLAGS
="$save_cflags"
7170 #-----------------------------------------------------------------------------
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7173 $as_echo_n "checking for type of build... " >&6; }
7174 # Check whether --enable-build_type was given.
7175 if test "${enable_build_type+set}" = set; then :
7176 enableval
=$enable_build_type; build_type
=$enableval
7178 build_type
="personal"
7182 if test "$build_type" = "nightly"; then
7183 build_type_string
="NIGHTLY"
7184 elif test "$build_type" = "snapshot"; then
7185 build_type_string
="SNAPSHOT"
7186 elif test "$build_type" = "milestone"; then
7187 build_type_string
="MILESTONE"
7188 elif test "$build_type" = "release"; then
7189 build_type_string
="RELEASE"
7191 build_type_string
="PERSONAL"
7192 build_type
="personal"
7195 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7198 $as_echo "$build_type" >&6; }
7200 #-----------------------------------------------------------------------------
7201 all_debug_types
="messages stack modules mungwall symbols"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7204 $as_echo_n "checking which debug types to enable... " >&6; }
7205 # Check whether --enable-debug was given.
7206 if test "${enable_debug+set}" = set; then :
7207 enableval
=$enable_debug; debug
="$enableval"
7213 if test "$debug" = "" -o "$debug" = "no"; then
7215 elif test "$debug" = "yes"; then
7219 if test "$debug" = "all" ; then
7220 debug
="messages stack modules symbols"
7221 for d
in $all_debug_types; do
7222 export aros_
${d}_debug
="1"
7225 for d
in $all_debug_types; do
7226 export aros_
${d}_debug
="0"
7230 if test "$debug" != "none"; then
7231 debug
=`echo $debug | sed s/,/\ /g`
7234 for d2
in $all_debug_types; do
7235 if test "$d2" = "$d"; then
7240 if test "$found" = "0"; then
7241 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7243 export aros_
${d}_debug
="1"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7248 $as_echo "$debug" >&6; }
7250 if test "$aros_messages_debug" = "1"; then
7251 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
7253 aros_messages_debug
=""
7255 if test "$aros_symbols_debug" = "1"; then
7256 aros_symbols_debug
="-g"
7258 aros_symbols_debug
=""
7261 # These are the flags to pass when compiling debugged programs
7262 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
7263 aros_debug_aflags
=""
7264 aros_debug_ldflags
="$aros_symbols_debug"
7266 #-----------------------------------------------------------------------------
7267 # Checking if we should build crosstools..
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7269 $as_echo_n "checking whether to build crosstools... " >&6; }
7270 # Check whether --enable-crosstools was given.
7271 if test "${enable_crosstools+set}" = set; then :
7272 enableval
=$enable_crosstools; crosstools
="$enableval"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7278 $as_echo "$crosstools" >&6; }
7280 #-----------------------------------------------------------------------------
7281 # Checking for distcc and ccache.
7283 # Always apply the transforms in this particular order. Basically you should
7284 # always run 'ccache distcc compiler' in that order for the best performance.
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7287 $as_echo_n "checking whether to enable distcc... " >&6; }
7288 # Check whether --enable-distcc was given.
7289 if test "${enable_distcc+set}" = set; then :
7290 enableval
=$enable_distcc; distcc
="$enableval"
7295 if test "$distcc" != "" -a "$distcc" != "no"; then
7296 # AC_CHECK_PROG will print out the result in this case
7297 # Extract the first word of "distcc", so it can be a program name with args.
7298 set dummy distcc
; ac_word
=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_path_DISTCC+:} false
; then :
7302 $as_echo_n "(cached) " >&6
7306 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
7309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir
=.
7314 for ac_exec_ext
in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
7328 DISTCC
=$ac_cv_path_DISTCC
7329 if test -n "$DISTCC"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7331 $as_echo "$DISTCC" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7344 $as_echo_n "checking whether to enable ccache... " >&6; }
7345 # Check whether --enable-ccache was given.
7346 if test "${enable_ccache+set}" = set; then :
7347 enableval
=$enable_ccache; ccache
="$enableval"
7352 if test "$ccache" != "" -a "$ccache" != "no"; then
7353 # AC_CHECK_PROG will print out the result in this case
7354 # Extract the first word of "ccache", so it can be a program name with args.
7355 set dummy ccache
; ac_word
=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if ${ac_cv_prog_CCACHE+:} false
; then :
7359 $as_echo_n "(cached) " >&6
7361 if test -n "$CCACHE"; then
7362 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
7364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir
=.
7369 for ac_exec_ext
in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_prog_CCACHE
="ccache"
7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 CCACHE
=$ac_cv_prog_CCACHE
7382 if test -n "$CCACHE"; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7384 $as_echo "$CCACHE" >&6; }
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 #-----------------------------------------------------------------------------
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7398 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7400 # Check whether --with-gcc-version was given.
7401 if test "${with_gcc_version+set}" = set; then :
7402 withval
=$with_gcc_version; kernel_tool_version
="$withval"
7404 kernel_tool_version
="default"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7408 $as_echo "$kernel_tool_version" >&6; }
7410 #-----------------------------------------------------------------------------
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7412 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7414 # Check whether --with-gcc-version was given.
7415 if test "${with_gcc_version+set}" = set; then :
7416 withval
=$with_gcc_version; target_tool_version
="$withval"
7418 target_tool_version
="default"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7422 $as_echo "$target_tool_version" >&6; }
7424 #-----------------------------------------------------------------------------
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7426 $as_echo_n "checking what optimization flags to use... " >&6; }
7428 # Check whether --with-optimization was given.
7429 if test "${with_optimization+set}" = set; then :
7430 withval
=$with_optimization; optimization
="$withval"
7432 optimization
="unknown"
7435 if test "$optimization" = "unknown"; then
7436 if test "$debug" != "none"; then
7442 aros_config_cflags
="$aros_config_cflags $optimization"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7444 $as_echo "$optimization" >&6; }
7446 #-----------------------------------------------------------------------------
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7448 $as_echo_n "checking what paranoia flags to use... " >&6; }
7450 # Check whether --with-paranoia was given.
7451 if test "${with_paranoia+set}" = set; then :
7452 withval
=$with_paranoia; paranoia_flags
="$withval"
7454 paranoia_flags
="default"
7457 if test "$paranoia_flags" = "default"; then
7459 else if test "$paranoia_flags" = "yes"; then
7460 paranoia_flags
="-Wall -Werror"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7463 $as_echo "$paranoia_flags" >&6; }
7464 aros_config_cflags
="$aros_config_cflags $paranoia_flags"
7466 #-----------------------------------------------------------------------------
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7468 $as_echo_n "checking what target variant to enable... " >&6; }
7469 # Check whether --enable-target_variant was given.
7470 if test "${enable_target_variant+set}" = set; then :
7471 enableval
=$enable_target_variant; target_variant
=$enableval
7476 if test "$target_variant" = ""; then
7477 aros_target_variant
=""
7478 aros_target_suffix
=""
7481 aros_target_variant
="$target_variant"
7482 aros_target_suffix
="-$target_variant"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7485 $as_echo "$enableval" >&6; }
7487 #-----------------------------------------------------------------------------
7488 # Target-specific defaults. You can override then on a per-target basis.
7490 # Bootloader name. Currently used by PC target.
7491 target_bootloader
="none"
7493 #-----------------------------------------------------------------------------
7494 # Additional options for some specific targets
7496 case "$aros_target_variant" in
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7499 $as_echo_n "checking XCode path... " >&6; }
7501 # Check whether --with-xcode was given.
7502 if test "${with_xcode+set}" = set; then :
7503 withval
=$with_xcode; aros_xcode_path
="$withval"
7505 aros_xcode_path
="/Developer"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7509 $as_echo "$aros_xcode_path" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7512 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7514 # Check whether --with-sdk-version was given.
7515 if test "${with_sdk_version+set}" = set; then :
7516 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7518 aros_sdk_version
="4.1"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7522 $as_echo "$aros_sdk_version" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7528 $as_echo_n "checking Android SDK path... " >&6; }
7530 # Check whether --with-sdk was given.
7531 if test "${with_sdk+set}" = set; then :
7532 withval
=$with_sdk; aros_android_sdk
="$withval"
7534 aros_android_sdk
=$default_android_sdk
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7538 $as_echo "$aros_android_sdk" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7541 $as_echo_n "checking Android NDK path... " >&6; }
7543 # Check whether --with-ndk was given.
7544 if test "${with_ndk+set}" = set; then :
7545 withval
=$with_ndk; aros_android_ndk
="$withval"
7547 aros_android_ndk
="none"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7551 $as_echo "$aros_android_ndk" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7554 $as_echo_n "checking what Android SDK version to use... " >&6; }
7556 # Check whether --with-sdk-version was given.
7557 if test "${with_sdk_version+set}" = set; then :
7558 withval
=$with_sdk_version; aros_sdk_version
="$withval"
7560 aros_sdk_version
="12"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7564 $as_echo "$aros_sdk_version" >&6; }
7566 if test "$aros_android_ndk" != "none"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7568 $as_echo_n "checking what Android NDK version to use... " >&6; }
7570 # Check whether --with-ndk-version was given.
7571 if test "${with_ndk_version+set}" = set; then :
7572 withval
=$with_ndk_version; aros_ndk_version
="$withval"
7574 aros_ndk_version
="9"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7578 $as_echo "$aros_ndk_version" >&6; }
7581 export PATH
="$aros_android_sdk/tools:$PATH"
7582 # Extract the first word of "$android_tool", so it can be a program name with args.
7583 set dummy
$android_tool; ac_word
=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_path_android_tool+:} false
; then :
7587 $as_echo_n "(cached) " >&6
7589 case $android_tool in
7591 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir
=.
7599 for ac_exec_ext
in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 android_tool
=$ac_cv_path_android_tool
7613 if test -n "$android_tool"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7615 $as_echo "$android_tool" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 if test "$android_tool" = ""; then
7623 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7626 aros_android_level
=android-
$aros_sdk_version
7627 if test ! -d $aros_android_sdk/platforms
/$aros_android_level; then
7628 echo "Platform $aros_android_level is not installed in your SDK"
7629 echo "Use --with-sdk-version=<API level number> to select another platform version"
7630 echo "You can check what plaform versions are installed in your SDK"
7631 echo "by examining contents of $aros_android_sdk/platforms directory"
7632 as_fn_error $?
"Android platform $aros_android_level is not installed" "$LINENO" 5
7635 # Extract the first word of "ant", so it can be a program name with args.
7636 set dummy ant
; ac_word
=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_path_ant+:} false
; then :
7640 $as_echo_n "(cached) " >&6
7644 ac_cv_path_ant
="$ant" # Let the user override the test with a path.
7647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir
=.
7652 for ac_exec_ext
in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_path_ant
="$as_dir/$ac_word$ac_exec_ext"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 if test -n "$ant"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7668 $as_echo "$ant" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7675 if test "$ant" = ""; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7677 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7680 if test "$host_os" = "mingw32"; then
7681 android_tool
="cmd //c $android_tool"
7687 #-----------------------------------------------------------------------------
7689 # This is the target configuration switch.
7690 case "$target_os" in
7692 aros_target_arch
="linux"
7693 aros_target_family
="unix"
7694 case "$target_cpu" in
7696 aros_target_cpu
="m68k"
7697 aros_object_format
="m68kelf"
7698 aros_flavour
="emulcompat"
7699 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7700 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7701 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7702 gcc_target_cpu
="mc68000"
7705 aros_target_cpu
="i386"
7706 aros_object_format
="elf_i386"
7707 aros_flavour
="emulation"
7708 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7709 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7710 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7711 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7712 aros_config_ldflags
="-m32 -march=i486"
7713 aros_kernel_ldflags
="-melf_i386"
7714 aros_default_wbdepth
=8
7715 gcc_target_cpu
="i386"
7716 pci_hidd_target
="hidd-pci-linux"
7717 android_tool_dir_prefix
="x86"
7718 android_tool_prefix
="i686-android-linux"
7719 android_ndk_arch
="x86"
7722 aros_target_cpu
="x86_64"
7723 aros_object_format
="elf_x86_64"
7724 aros_flavour
="emulation"
7725 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7726 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7727 aros_default_wbdepth
=8
7728 pci_hidd_target
="hidd-pci-linux"
7731 aros_target_cpu
="ppc"
7732 aros_object_format
="elf32ppc"
7733 aros_flavour
="emulation"
7734 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7735 aros_default_wbdepth
=8
7736 gcc_target_cpu
="ppc"
7739 # Same as powerpc, but I need this for the nightly build to work again.
7740 # Actually, the nightly should be made working with powerpc target.
7741 # That just was too much work for the moment, another week or two.
7743 aros_target_cpu
="ppc"
7744 aros_object_format
="elf32ppc"
7745 aros_flavour
="emulation"
7746 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7747 aros_default_wbdepth
=8
7748 gcc_target_cpu
="ppc"
7751 aros_target_cpu
="arm"
7752 aros_object_format
="armelf_linux_eabi"
7753 aros_flavour
="emulation"
7754 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7755 gcc_target_cpu
="arm"
7756 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7757 aros_config_aflags
="$aros_config_aflags -fno-strict-aliasing"
7758 aros_arch_libs
="-laeabi"
7759 android_tool_dir_prefix
="arm-linux-androideabi"
7760 android_tool_prefix
="arm-linux-androideabi"
7761 android_ndk_arch
="arm"
7762 if test "$aros_host_cpu" != "arm" ; then
7763 kernel_tool_prefix
="arm-linux-gnueabi-"
7767 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7770 case "$aros_target_variant" in
7773 if test "$android_ndk_arch" = ""; then
7774 as_fn_error $?
"\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7777 aros_default_wbwidth
=320
7778 aros_default_wbheight
=480
7779 if test "$aros_android_ndk" = "none"; then
7780 aros_kernel_cflags
="-mandroid"
7781 aros_kernel_ldflags
="-mandroid"
7784 export PATH
="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7785 aros_android_ndk
="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7786 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7787 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7788 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7789 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7792 x11_hidd_target
=kernel-hidd-androidgfx-kobj
7793 # Disable implicit PIC mode
7794 aros_kernel_cflags
="$aros_kernel_cflags -fno-pic"
7795 aros_target_cflags
="$aros_target_cflags -fno-pic"
7796 kernel_tool_prefix
="$android_tool_prefix-"
7802 aros_target_arch
="pc"
7803 aros_shared_default
="no"
7804 target_bootloader
="grub2"
7805 case "$target_cpu" in
7807 aros_target_cpu
="i386"
7810 if test "$aros_object_format" = "" ; then
7811 aros_object_format
="elf_i386"
7813 aros_flavour
="standalone"
7814 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7815 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7816 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7817 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7818 aros_config_ldflags
="-m32 -march=i486"
7819 aros_kernel_ldflags
="-melf_i386"
7820 aros_default_wbwidth
=640
7821 aros_default_wbheight
=480
7822 gcc_target_cpu
="i386"
7825 aros_target_cpu
="x86_64"
7827 if test "$aros_object_format" = "" ; then
7828 aros_object_format
="elf_x86_64"
7830 aros_flavour
="standalone"
7831 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7832 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7833 aros_kernel_ldflags
=""
7834 aros_default_wbwidth
=640
7835 aros_default_wbheight
=480
7838 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7844 aros_target_arch
="prep"
7845 aros_shared_default
="no"
7846 aros_target_cpu
="ppc"
7847 aros_object_format
="elf32ppc"
7848 aros_flavour
="ppcnative"
7849 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7850 aros_kernel_ldflags
=""
7851 aros_default_wbwidth
=640
7852 aros_default_wbheight
=480
7853 gcc_target_cpu
="ppc"
7857 aros_target_arch
="freebsd"
7858 aros_target_family
="unix"
7859 aros_target_cpu
="i386"
7860 aros_flavour
="emulation"
7861 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7862 gcc_target_cpu
="i386"
7864 aros_target_strip_flags
="-x"
7868 aros_target_arch
="darwin"
7869 aros_target_family
="unix"
7870 aros_flavour
="emulation"
7871 case "$target_cpu" in
7873 aros_ios_platform
="iPhoneSimulator"
7874 aros_target_cpu
="i386"
7875 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7876 aros_kernel_ldflags
=""
7877 aros_macosx_version
="10.4"
7878 aros_default_wbdepth
=8
7879 gcc_target_cpu
="i386"
7880 aros_object_format
="elf_i386"
7881 aros_kernel_ar_flags
="-cr"
7882 aros_target_strip_flags
="-x"
7883 kernel_tool_flags
="-m32"
7886 aros_target_cpu
="x86_64"
7887 aros_object_format
="elf_x86_64"
7888 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7889 aros_macosx_version
="10.6"
7890 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7891 aros_kernel_cflags
="-m64"
7892 aros_kernel_ldflags
="-m64"
7893 aros_target_cflags
="-mcmodel=large"
7894 aros_default_wbdepth
=8
7896 aros_kernel_ar_flags
="-cr"
7898 aros_kernel_ranlib
="ranlib"
7901 aros_target_cpu
="ppc"
7902 aros_object_format
="elf32ppc"
7903 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7904 aros_kernel_ldflags
=""
7905 aros_macosx_version
="10.0"
7906 aros_default_wbdepth
=8
7907 gcc_target_cpu
="ppc"
7909 aros_kernel_ar_flags
="-cr"
7910 aros_kernel_ld
="ld -arch ppc"
7911 aros_kernel_ranlib
="ranlib -arch ppc"
7912 kernel_tool_prefix
="powerpc-apple-darwin10-"
7915 aros_ios_platform
="iPhoneOS"
7916 aros_target_cpu
="arm"
7917 aros_object_format
="armelf_linux_eabi"
7918 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7919 aros_arch_libs
="-laeabi"
7920 aros_default_wbdepth
=8
7921 gcc_target_cpu
="arm"
7923 aros_kernel_ar_flags
="-cr"
7924 aros_kernel_ld
="ld -arch arm"
7925 aros_kernel_ranlib
="ranlib -arch arm"
7926 kernel_tool_prefix
="arm-apple-darwin10-"
7927 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7930 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7933 case "$aros_target_variant" in
7935 aros_ios_version
="3.0"
7936 aros_default_wbwidth
=320
7937 aros_default_wbheight
=480
7938 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7939 kernel_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7940 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7942 # This is here because it may depend on iOS or SDK version
7943 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7944 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7945 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7948 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7949 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7955 aros_target_arch
="dragonfly"
7956 aros_target_family
="unix"
7957 aros_flavour
="emulation"
7958 case "$target_cpu" in
7960 aros_target_cpu
="i386"
7961 aros_object_format
="elf_i386"
7962 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7965 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7966 aros_target_cpu
="x86_64"
7967 aros_object_format
="elf_x86_64"
7968 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7971 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7977 aros_target_arch
="netbsd"
7978 aros_target_family
="unix"
7979 case "$target_cpu" in
7981 aros_target_cpu
="m68k"
7982 aros_object_format
="m68kelf"
7983 aros_flavour
="emulcompat"
7984 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7985 gcc_target_cpu
="mc68000"
7988 aros_target_cpu
="i386"
7989 aros_object_format
="elf_i386"
7990 aros_flavour
="emulation"
7991 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7992 aros_default_wbdepth
=8
7993 gcc_target_cpu
="i386"
7996 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7999 aros_target_genmap
="-Wl,-M -Xlinker >"
8000 aros_flavour
="emulation"
8001 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8005 aros_target_arch
="openbsd"
8006 aros_target_family
="unix"
8007 case "$target_cpu" in
8009 aros_target_cpu
="i386"
8010 aros_object_format
="elf_i386"
8011 aros_flavour
="emulation"
8012 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8013 gcc_target_cpu
="i386"
8016 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8019 aros_target_genmap
="-Wl,-M -Xlinker >"
8020 aros_target_nm_flags
="-u"
8021 aros_flavour
="emulation"
8025 aros_target_arch
="solaris"
8026 aros_target_family
="unix"
8027 case "$target_cpu" in
8029 aros_target_cpu
="i386"
8030 aros_object_format
="elf_i386"
8031 aros_flavour
="emulation"
8032 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8033 aros_default_wbdepth
=8
8034 gcc_target_cpu
="i386"
8037 aros_target_cpu
="sparc"
8038 aros_object_format
="elf_sparc"
8039 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8040 gcc_target_cpu
="sparc"
8043 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8046 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
8047 aros_flavour
="emulation"
8051 aros_target_arch
="morphos"
8052 aros_shared_default
="no"
8053 aros_target_cpu
="ppc"
8054 aros_object_format
="elf_ppc"
8055 aros_flavour
="nativecompat"
8056 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8057 gcc_target_cpu
="ppc"
8061 aros_target_arch
="sam440"
8062 aros_shared_default
="no"
8063 aros_target_cpu
="ppc"
8064 aros_object_format
="elf32ppc"
8065 aros_flavour
="ppcnative"
8066 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8067 aros_kernel_ldflags
=""
8068 aros_default_wbwidth
=1024
8069 aros_default_wbheight
=768
8070 aros_default_wbdepth
=24
8071 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8072 gcc_target_cpu
="powerpc"
8076 aros_target_arch
="efika"
8077 aros_shared_default
="no"
8078 aros_target_cpu
="arm"
8079 aros_object_format
="armelf_linux_eabi"
8080 aros_flavour
="standalone"
8081 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8082 aros_kernel_ldflags
=""
8083 aros_default_wbwidth
=1024
8084 aros_default_wbheight
=600
8085 aros_arch_libs
="-laeabi"
8086 gcc_default_cpu
="armv7-a"
8087 gcc_default_fpu
="vfpv3"
8088 gcc_default_float_abi
="softfp"
8089 aros_config_cflags
="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8090 aros_config_aflags
="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8094 aros_target_arch
="chrp"
8095 aros_shared_default
="no"
8096 aros_target_cpu
="ppc"
8097 aros_object_format
="elf32ppc"
8098 aros_flavour
="ppcnative"
8099 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
8100 aros_kernel_ldflags
=""
8101 aros_default_wbwidth
=640
8102 aros_default_wbheight
=480
8103 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8104 gcc_target_cpu
="powerpc"
8105 case "$aros_target_variant" in
8107 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8113 aros_target_arch
="amiga"
8114 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8115 aros_shared_default
="no"
8117 case "$target_cpu" in
8119 # Check whether --enable-amigaos_compliance was given.
8120 if test "${enable_amigaos_compliance+set}" = set; then :
8121 enableval
=$enable_amigaos_compliance; aros_amigaos_compliance
="$enableval"
8125 aros_target_cpu
="m68k"
8126 aros_object_format
="m68kelf"
8127 aros_flavour
="standcompat"
8128 gcc_target_cpu
="m68000"
8129 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8130 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
8131 # Needed to get the correct multilib
8132 aros_config_ldflags
="-${gcc_target_cpu}"
8133 aros_shared_ldflags
="-${gcc_target_cpu}"
8134 aros_kernel_ldflags
="-${gcc_target_cpu}"
8135 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
8136 aros_target_strip_flags
="-R.comment --strip-debug"
8137 aros_default_wbwidth
=640
8138 aros_default_wbheight
=256
8139 aros_default_wbdepth
=2
8143 aros_flavour
="native"
8144 gcc_target_cpu
="ppc"
8147 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8153 aros_target_arch
="mingw32"
8154 aros_shared_default
="no"
8155 aros_flavour
="emulation"
8156 aros_shared_cflags
=""
8159 case "$target_cpu" in
8161 aros_target_cpu
="i386"
8162 aros_object_format
="elf_i386"
8163 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
8164 aros_default_wbdepth
=8
8165 gcc_target_cpu
="i386"
8167 kernel_tool_prefix
="i386-mingw32-"
8170 aros_target_cpu
="x86_64"
8171 aros_object_format
="elf_x86_64"
8172 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8173 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
8174 aros_default_wbdepth
=8
8175 kernel_tool_prefix
="x86_64-w64-mingw32-"
8178 aros_target_cpu
="arm"
8179 aros_object_format
="armelf_linux_eabi"
8180 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
8181 aros_arch_libs
="-laeabi"
8182 aros_default_wbdepth
=8
8183 gcc_target_cpu
="arm"
8184 gcc_default_float_abi
="soft"
8185 kernel_tool_prefix
="arm-mingw32ce-"
8186 aros_default_wbwidth
=160
8187 aros_default_wbheight
=160
8190 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8193 if test $host_os = "cygwin"; then
8194 aros_kernel_cflags
="-mno-cygwin"
8198 aros_target_arch
="pp"
8199 aros_shared_default
="no"
8200 case "$target_cpu" in
8202 aros_target_cpu
="m68k"
8203 aros_object_format
="m68kelf"
8204 aros_flavour
="palmnative"
8205 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8206 aros_default_wbwidth
=160
8207 aros_default_wbheight
=160
8208 aros_default_wbdepth
=1
8209 aros_target_ar_flags
="cru"
8210 aros_compiler_libs
="-lgcc1"
8211 aros_shared_default
=no
8212 aros_shared_cflags
="-fpic"
8213 aros_shared_aflags
=""
8214 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8215 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8216 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8217 aros_debug_aflags
=""
8218 aros_debug_ldflags
="$aros_symbols_debug"
8219 aros_mungwall_debug
="0"
8220 aros_modules_debug
="0"
8221 gcc_target_cpu
="mc68000"
8222 ignore_undefined_symbols
="-ius"
8225 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8231 aros_target_arch
="mac"
8232 aros_shared_default
="no"
8233 case "$target_cpu" in
8235 aros_target_cpu
="m68k"
8236 aros_object_format
="m68kelf"
8237 aros_flavour
="mac68knative"
8238 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
8239 aros_default_wbwidth
=512
8240 aros_default_wbheight
=384
8241 aros_default_wbdepth
=8
8242 aros_target_ar_flags
="cru"
8243 aros_compiler_libs
="-lgcc1"
8244 aros_shared_default
=no
8245 aros_shared_cflags
="-fpic"
8246 aros_shared_aflags
=""
8247 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
8248 aros_kernel_ldflags
="-Wl,-rpath,./lib"
8249 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug -mc68000"
8250 aros_debug_aflags
=""
8251 aros_debug_ldflags
="$aros_symbols_debug"
8252 aros_mungwall_debug
="0"
8253 aros_modules_debug
="0"
8254 gcc_target_cpu
="mc68000"
8255 ignore_undefined_symbols
="-ius"
8258 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8264 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
8268 #-----------------------------------------------------------------------------
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8270 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8272 # Check whether --with-crosstools was given.
8273 if test "${with_crosstools+set}" = set; then :
8274 withval
=$with_crosstools; with_crosstools
=$withval
8276 with_crosstools
="default"
8279 if test "$with_crosstools" = "default"; then
8280 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8282 # Disable building crosstools if we are using an external set - otherwise
8283 # we may attempt to overwrite them if the tools-crosstools target is made!
8285 AROS_CROSSTOOLSDIR
="$with_crosstools"
8286 PATH
="$AROS_CROSSTOOLSDIR:$PATH"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8289 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8292 $as_echo_n "checking Kernel tool prefix... " >&6; }
8294 # Check whether --with-kernel-tool-prefix was given.
8295 if test "${with_kernel_tool_prefix+set}" = set; then :
8296 withval
=$with_kernel_tool_prefix; kernel_tool_prefix
="$withval"
8298 kernel_tool_prefix
="$kernel_tool_prefix"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8302 $as_echo "$kernel_tool_prefix" >&6; }
8304 target_tool_prefix
=${target_cpu}-aros-
8306 # Now process extra architecture-specific options.
8307 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8308 # as well as floating-point ABI.
8309 case "$aros_target_cpu" in
8311 if test "$gcc_default_cpu" = ""; then
8312 gcc_default_cpu
="armv6"
8314 if test "$gcc_default_fpu" = ""; then
8315 gcc_default_fpu
="vfp"
8317 if test "$gcc_default_float_abi" = ""; then
8318 gcc_default_float_abi
="softfp"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8322 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8324 # Check whether --with-cpu was given.
8325 if test "${with_cpu+set}" = set; then :
8326 withval
=$with_cpu; aros_gcc_cpu
="$withval"
8328 aros_gcc_cpu
=$gcc_default_cpu
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8332 $as_echo "$aros_gcc_cpu" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8335 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8337 # Check whether --with-fpu was given.
8338 if test "${with_fpu+set}" = set; then :
8339 withval
=$with_fpu; aros_gcc_fpu
="$withval"
8341 aros_gcc_fpu
=$gcc_default_fpu
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8345 $as_echo "$aros_gcc_fpu" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8348 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8350 # Check whether --with-float was given.
8351 if test "${with_float+set}" = set; then :
8352 withval
=$with_float; aros_gcc_float_abi
="$withval"
8354 aros_gcc_float_abi
=$gcc_default_float_abi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8358 $as_echo "$aros_gcc_float_abi" >&6; }
8360 aros_config_cflags
="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8361 aros_config_aflags
="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8365 # Some formats need custom ELF specs.
8366 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8367 if test -f $SRCDIR/config
/${aros_object_format}-specs.
in; then
8368 elf_specs_in
=config
/${aros_object_format}-specs.
in
8370 elf_specs_in
=config
/elf-specs.
in
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8374 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8376 # Check whether --with-aros-gcc was given.
8377 if test "${with_aros_gcc+set}" = set; then :
8378 withval
=$with_aros_gcc; aros_gcc_version
="-$withval"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8384 $as_echo "$aros_gcc_version" >&6; }
8386 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8387 # Since we override specs, we may need to put these defines there
8388 if test "$gcc_target_cpu" != ""; then
8389 gcc_target_cpu
="-D__${gcc_target_cpu}__"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8393 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8395 # Check whether --with-portssources was given.
8396 if test "${with_portssources+set}" = set; then :
8397 withval
=$with_portssources; with_portssrcdir
=$withval
8399 with_portssrcdir
="default"
8402 if test "$with_portssrcdir" = "default"; then
8403 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
8405 AROS_PORTSSRCDIR
="$with_portssrcdir"
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8408 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8411 $as_echo_n "checking which bootloader to use... " >&6; }
8413 # Check whether --with-bootloader was given.
8414 if test "${with_bootloader+set}" = set; then :
8415 withval
=$with_bootloader; target_bootloader
=$withval
8417 target_bootloader
=$target_bootloader
8420 if test "$target_bootloader" = "none"; then
8421 aros_target_bootloader
=""
8423 aros_target_bootloader
="$target_bootloader"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8426 $as_echo "$target_bootloader" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8429 $as_echo_n "checking which icon-set to use... " >&6; }
8431 # Check whether --with-iconset was given.
8432 if test "${with_iconset+set}" = set; then :
8433 withval
=$with_iconset; target_iconset
=$withval
8435 target_iconset
="default"
8438 if test "$target_iconset" = "default"; then
8439 aros_target_iconset
="Gorilla"
8440 target_iconset
="default (Gorilla)"
8442 aros_target_iconset
="$target_iconset"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8445 $as_echo "$target_iconset" >&6; }
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8448 $as_echo_n "checking which GUI Theme to use... " >&6; }
8450 # Check whether --with-theme was given.
8451 if test "${with_theme+set}" = set; then :
8452 withval
=$with_theme; target_guitheme
=$withval
8454 target_guitheme
="default"
8457 if test "$target_guitheme" = "default"; then
8458 aros_target_guitheme
="Ice"
8460 aros_target_guitheme
="$target_guitheme"
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8463 $as_echo "$aros_target_guitheme" >&6; }
8465 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8468 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8469 # If host = target CPU, let's try to use the
8470 # host's toolchains if no others were requested
8471 if test "$kernel_tool_prefix" = "none" ; then
8472 kernel_tool_prefix
=""
8478 if test "$aros_host_cpu" == "x86_64" ; then
8479 if test "$aros_target_cpu" == "i386" ; then
8480 if test "$aros_target_arch" != "mingw32"; then
8482 kernel_tool_prefix
=""
8487 if test "$aros_host_arch" == "darwin" ; then
8488 if test "$aros_target_arch" != "darwin" ; then
8492 kernel_tool_prefix
=""
8496 if test "$aros_host_arch" == "mingw32" ; then
8497 if test "$aros_target_arch" != "mingw32" ; then
8502 #######################################################################
8503 ## Compute what toolchains to use, and their paths ##
8504 #######################################################################
8506 # This takes, as input:
8507 # crosstools {yes,no}
8508 # aros_gcc_version {default,[version]}
8509 # kernel_tool_prefix {none,[some-arch-os-]}
8510 # target_tool_prefix ${target_cpu}-aros-
8513 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8514 # Where the 'kernel' binaries are located
8515 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8516 # Where the 'target' binaries are located
8517 # (not the symlink farm - that is aros_target_*!)
8520 # if crosstools then
8521 # if kernel_tools_prefix = "no-kernel-prefix-"
8522 # aros_kernel_* = crosstools cc paths
8523 # aros_kernel_cc = elf cc wrapper around crosstools cc
8525 # VALIDATE(${kernel_tools_prefix}*)
8526 # aros_kernel_* = ${kernel_tools_prefix}*
8527 # if ${kernel_tools_prefix}cc is an AROS gcc
8528 # aros_kernel_cc = ${kernel_tools_prefix}cc
8530 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8534 # orig_target_* = aros built crosstools
8535 # orig_target_cc = elf cc wrapper around crosstools cc
8537 # VALIDATE(${kernel_tools_prefix}*)
8539 # orig_target_* = aros_kernel_*
8540 # if aros_kernel_cc is an AROS gcc
8541 # orig_target_cc = aros_kernel_cc
8543 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8549 $as_echo_n "checking whether to use external toolchain... " >&6; }
8550 if test "$kernel_tool_prefix" = "none" ; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; };
8553 if test "$crosstools" != "yes"; then
8554 as_fn_error $?
"--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8556 # We are building AROS crosstools, and no kernel
8557 # tools specified - assume target tools == kernel tools
8558 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8559 aros_kernel_cc
="${tmp_tool_prefix}gcc${aros_gcc_version}"
8560 aros_kernel_cxx
="${tmp_tool_prefix}g++${aros_gcc_version}"
8561 aros_kernel_cpp
="${tmp_tool_prefix}cpp"
8562 aros_kernel_ld
="${tmp_tool_prefix}ld"
8563 aros_kernel_as
="${tmp_tool_prefix}as"
8564 aros_kernel_ar
="${tmp_tool_prefix}ar"
8565 aros_kernel_ranlib
="${tmp_tool_prefix}ranlib"
8566 aros_kernel_nm
="${tmp_tool_prefix}nm"
8567 aros_kernel_strip
="${tmp_tool_prefix}strip"
8568 aros_kernel_objcopy
="${tmp_tool_prefix}objcopy"
8569 aros_kernel_objdump
="${tmp_tool_prefix}objdump"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572 $as_echo "yes" >&6; };
8573 # Kernel tools specified - find them
8574 # Note that 'normally', aros_kernel_* overrides will
8575 # empty, unless specified in the per-arch sections above.
8578 if test "$aros_kernel_cpp" = ""; then
8579 if test "$cross_compiling" = "yes" ; then
8580 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8581 set dummy
${kernel_tool_prefix}cpp
; ac_word
=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8585 $as_echo_n "(cached) " >&6
8587 case $aros_kernel_cpp in
8589 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8596 test -z "$as_dir" && as_dir
=.
8597 for ac_exec_ext
in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8611 if test -n "$aros_kernel_cpp"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8613 $as_echo "$aros_kernel_cpp" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test "$GCC" = "yes"; then
8622 aros_gcc_cpp
=`$CC -print-prog-name=cpp`
8623 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8624 set dummy
`basename $aros_gcc_cpp`; ac_word
=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8628 $as_echo_n "(cached) " >&6
8630 case $aros_kernel_cpp in
8632 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8636 for as_dir
in `dirname $aros_gcc_cpp`
8639 test -z "$as_dir" && as_dir
=.
8640 for ac_exec_ext
in '' $ac_executable_extensions; do
8641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8642 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8654 if test -n "$aros_kernel_cpp"; then
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8656 $as_echo "$aros_kernel_cpp" >&6; }
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8659 $as_echo "no" >&6; }
8664 if test "$aros_kernel_cpp" = ""; then
8665 # Extract the first word of "cpp", so it can be a program name with args.
8666 set dummy cpp
; ac_word
=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8670 $as_echo_n "(cached) " >&6
8672 case $aros_kernel_cpp in
8674 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8681 test -z "$as_dir" && as_dir
=.
8682 for ac_exec_ext
in '' $ac_executable_extensions; do
8683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8696 if test -n "$aros_kernel_cpp"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8698 $as_echo "$aros_kernel_cpp" >&6; }
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701 $as_echo "no" >&6; }
8708 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8709 set dummy
$aros_kernel_cpp; ac_word
=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if ${ac_cv_path_aros_kernel_cpp+:} false
; then :
8713 $as_echo_n "(cached) " >&6
8715 case $aros_kernel_cpp in
8717 ac_cv_path_aros_kernel_cpp
="$aros_kernel_cpp" # Let the user override the test with a path.
8720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir
=.
8725 for ac_exec_ext
in '' $ac_executable_extensions; do
8726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8727 ac_cv_path_aros_kernel_cpp
="$as_dir/$ac_word$ac_exec_ext"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 aros_kernel_cpp
=$ac_cv_path_aros_kernel_cpp
8739 if test -n "$aros_kernel_cpp"; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8741 $as_echo "$aros_kernel_cpp" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8750 if test "$aros_kernel_cpp" = ""; then
8751 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8753 if test "x$aros_kernel_cc" = "x"; then
8754 aros_kernel_cc
=${kernel_tool_prefix}gcc
8757 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8758 if test "$cross_compiling" = "yes" ; then
8759 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8760 set dummy
${kernel_tool_prefix}cc
; ac_word
=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8764 $as_echo_n "(cached) " >&6
8766 case $aros_kernel_cc in
8768 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8775 test -z "$as_dir" && as_dir
=.
8776 for ac_exec_ext
in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8790 if test -n "$aros_kernel_cc"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8792 $as_echo "$aros_kernel_cc" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8800 if test "$GCC" = "yes"; then
8801 aros_gcc_cc
=`$CC -print-prog-name=cc`
8802 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8803 set dummy
`basename $aros_gcc_cc`; ac_word
=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8807 $as_echo_n "(cached) " >&6
8809 case $aros_kernel_cc in
8811 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8815 for as_dir
in `dirname $aros_gcc_cc`
8818 test -z "$as_dir" && as_dir
=.
8819 for ac_exec_ext
in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8833 if test -n "$aros_kernel_cc"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8835 $as_echo "$aros_kernel_cc" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8843 if test "$aros_kernel_cc" = ""; then
8844 # Extract the first word of "cc", so it can be a program name with args.
8845 set dummy cc
; ac_word
=$2
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847 $as_echo_n "checking for $ac_word... " >&6; }
8848 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8849 $as_echo_n "(cached) " >&6
8851 case $aros_kernel_cc in
8853 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8860 test -z "$as_dir" && as_dir
=.
8861 for ac_exec_ext
in '' $ac_executable_extensions; do
8862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8875 if test -n "$aros_kernel_cc"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8877 $as_echo "$aros_kernel_cc" >&6; }
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8887 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8888 set dummy
$aros_kernel_cc${aros_gcc_version}; ac_word
=$2
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890 $as_echo_n "checking for $ac_word... " >&6; }
8891 if ${ac_cv_path_aros_kernel_cc+:} false
; then :
8892 $as_echo_n "(cached) " >&6
8894 case $aros_kernel_cc in
8896 ac_cv_path_aros_kernel_cc
="$aros_kernel_cc" # Let the user override the test with a path.
8899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8903 test -z "$as_dir" && as_dir
=.
8904 for ac_exec_ext
in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_path_aros_kernel_cc
="$as_dir/$ac_word$ac_exec_ext"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 aros_kernel_cc
=$ac_cv_path_aros_kernel_cc
8918 if test -n "$aros_kernel_cc"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8920 $as_echo "$aros_kernel_cc" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8929 if test "$aros_kernel_cc" = ""; then
8930 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8932 if test "x$aros_kernel_cxx" = "x"; then
8933 aros_kernel_cxx
=${kernel_tool_prefix}g
++
8936 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8937 if test "$cross_compiling" = "yes" ; then
8938 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8939 set dummy
${kernel_tool_prefix}cxx
; ac_word
=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
8943 $as_echo_n "(cached) " >&6
8945 case $aros_kernel_cxx in
8947 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
8950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8954 test -z "$as_dir" && as_dir
=.
8955 for ac_exec_ext
in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
8969 if test -n "$aros_kernel_cxx"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8971 $as_echo "$aros_kernel_cxx" >&6; }
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 if test "$GCC" = "yes"; then
8980 aros_gcc_cxx
=`$CC -print-prog-name=cxx`
8981 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8982 set dummy
`basename $aros_gcc_cxx`; ac_word
=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
8986 $as_echo_n "(cached) " >&6
8988 case $aros_kernel_cxx in
8990 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
8993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8994 for as_dir
in `dirname $aros_gcc_cxx`
8997 test -z "$as_dir" && as_dir
=.
8998 for ac_exec_ext
in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9012 if test -n "$aros_kernel_cxx"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9014 $as_echo "$aros_kernel_cxx" >&6; }
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9022 if test "$aros_kernel_cxx" = ""; then
9023 # Extract the first word of "cxx", so it can be a program name with args.
9024 set dummy cxx
; ac_word
=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9030 case $aros_kernel_cxx in
9032 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9039 test -z "$as_dir" && as_dir
=.
9040 for ac_exec_ext
in '' $ac_executable_extensions; do
9041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9054 if test -n "$aros_kernel_cxx"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9056 $as_echo "$aros_kernel_cxx" >&6; }
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9066 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9067 set dummy
$aros_kernel_cxx${aros_gcc_version}; ac_word
=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if ${ac_cv_path_aros_kernel_cxx+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 case $aros_kernel_cxx in
9075 ac_cv_path_aros_kernel_cxx
="$aros_kernel_cxx" # Let the user override the test with a path.
9078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9082 test -z "$as_dir" && as_dir
=.
9083 for ac_exec_ext
in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_path_aros_kernel_cxx
="$as_dir/$ac_word$ac_exec_ext"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9096 aros_kernel_cxx
=$ac_cv_path_aros_kernel_cxx
9097 if test -n "$aros_kernel_cxx"; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9099 $as_echo "$aros_kernel_cxx" >&6; }
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9108 # If it's set, make sure it's really there
9109 if test "x$aros_kernel_cxx" != "x" ; then
9110 if test "$aros_kernel_cxx" = ""; then
9111 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9115 if test "$aros_kernel_ld" = ""; then
9116 if test "$cross_compiling" = "yes" ; then
9117 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9118 set dummy
${kernel_tool_prefix}ld
; ac_word
=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9122 $as_echo_n "(cached) " >&6
9124 case $aros_kernel_ld in
9126 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir
=.
9134 for ac_exec_ext
in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9148 if test -n "$aros_kernel_ld"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9150 $as_echo "$aros_kernel_ld" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9158 if test "$GCC" = "yes"; then
9159 aros_gcc_ld
=`$CC -print-prog-name=ld`
9160 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9161 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9165 $as_echo_n "(cached) " >&6
9167 case $aros_kernel_ld in
9169 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9173 for as_dir
in `dirname $aros_gcc_ld`
9176 test -z "$as_dir" && as_dir
=.
9177 for ac_exec_ext
in '' $ac_executable_extensions; do
9178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9179 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9190 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9191 if test -n "$aros_kernel_ld"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9193 $as_echo "$aros_kernel_ld" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9201 if test "$aros_kernel_ld" = ""; then
9202 # Extract the first word of "ld", so it can be a program name with args.
9203 set dummy ld
; ac_word
=$2
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205 $as_echo_n "checking for $ac_word... " >&6; }
9206 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9207 $as_echo_n "(cached) " >&6
9209 case $aros_kernel_ld in
9211 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9218 test -z "$as_dir" && as_dir
=.
9219 for ac_exec_ext
in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9233 if test -n "$aros_kernel_ld"; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9235 $as_echo "$aros_kernel_ld" >&6; }
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9245 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9246 set dummy
$aros_kernel_ld; ac_word
=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if ${ac_cv_path_aros_kernel_ld+:} false
; then :
9250 $as_echo_n "(cached) " >&6
9252 case $aros_kernel_ld in
9254 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
9257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9261 test -z "$as_dir" && as_dir
=.
9262 for ac_exec_ext
in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
9276 if test -n "$aros_kernel_ld"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9278 $as_echo "$aros_kernel_ld" >&6; }
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9287 if test "$aros_kernel_ld" = ""; then
9288 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9291 if test "$aros_kernel_as" = ""; then
9292 if test "$cross_compiling" = "yes" ; then
9293 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9294 set dummy
${kernel_tool_prefix}as
; ac_word
=$2
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 $as_echo_n "checking for $ac_word... " >&6; }
9297 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9298 $as_echo_n "(cached) " >&6
9300 case $aros_kernel_as in
9302 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9309 test -z "$as_dir" && as_dir
=.
9310 for ac_exec_ext
in '' $ac_executable_extensions; do
9311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9312 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9323 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9324 if test -n "$aros_kernel_as"; then
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9326 $as_echo "$aros_kernel_as" >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9334 if test "$GCC" = "yes"; then
9335 aros_gcc_as
=`$CC -print-prog-name=as`
9336 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9337 set dummy
`basename $aros_gcc_as`; ac_word
=$2
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9339 $as_echo_n "checking for $ac_word... " >&6; }
9340 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9341 $as_echo_n "(cached) " >&6
9343 case $aros_kernel_as in
9345 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9349 for as_dir
in `dirname $aros_gcc_as`
9352 test -z "$as_dir" && as_dir
=.
9353 for ac_exec_ext
in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9355 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9367 if test -n "$aros_kernel_as"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9369 $as_echo "$aros_kernel_as" >&6; }
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9377 if test "$aros_kernel_as" = ""; then
9378 # Extract the first word of "as", so it can be a program name with args.
9379 set dummy as
; ac_word
=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9383 $as_echo_n "(cached) " >&6
9385 case $aros_kernel_as in
9387 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9394 test -z "$as_dir" && as_dir
=.
9395 for ac_exec_ext
in '' $ac_executable_extensions; do
9396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9409 if test -n "$aros_kernel_as"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9411 $as_echo "$aros_kernel_as" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9421 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9422 set dummy
$aros_kernel_as; ac_word
=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if ${ac_cv_path_aros_kernel_as+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9428 case $aros_kernel_as in
9430 ac_cv_path_aros_kernel_as
="$aros_kernel_as" # Let the user override the test with a path.
9433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9437 test -z "$as_dir" && as_dir
=.
9438 for ac_exec_ext
in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_kernel_as
="$as_dir/$ac_word$ac_exec_ext"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 aros_kernel_as
=$ac_cv_path_aros_kernel_as
9452 if test -n "$aros_kernel_as"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9454 $as_echo "$aros_kernel_as" >&6; }
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9463 if test "$aros_kernel_as" = ""; then
9464 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
9467 if test "$aros_kernel_ar" = ""; then
9468 if test "$cross_compiling" = "yes" ; then
9469 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9470 set dummy
${kernel_tool_prefix}ar; ac_word
=$2
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9472 $as_echo_n "checking for $ac_word... " >&6; }
9473 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9474 $as_echo_n "(cached) " >&6
9476 case $aros_kernel_ar in
9478 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9485 test -z "$as_dir" && as_dir
=.
9486 for ac_exec_ext
in '' $ac_executable_extensions; do
9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9488 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9500 if test -n "$aros_kernel_ar"; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9502 $as_echo "$aros_kernel_ar" >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505 $as_echo "no" >&6; }
9510 if test "$GCC" = "yes"; then
9511 aros_gcc_ar
=`$CC -print-prog-name=ar`
9512 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9513 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9517 $as_echo_n "(cached) " >&6
9519 case $aros_kernel_ar in
9521 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9525 for as_dir
in `dirname $aros_gcc_ar`
9528 test -z "$as_dir" && as_dir
=.
9529 for ac_exec_ext
in '' $ac_executable_extensions; do
9530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9531 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9543 if test -n "$aros_kernel_ar"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9545 $as_echo "$aros_kernel_ar" >&6; }
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9553 if test "$aros_kernel_ar" = ""; then
9554 # Extract the first word of "ar", so it can be a program name with args.
9555 set dummy
ar; ac_word
=$2
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9557 $as_echo_n "checking for $ac_word... " >&6; }
9558 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9559 $as_echo_n "(cached) " >&6
9561 case $aros_kernel_ar in
9563 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9570 test -z "$as_dir" && as_dir
=.
9571 for ac_exec_ext
in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9585 if test -n "$aros_kernel_ar"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9587 $as_echo "$aros_kernel_ar" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9597 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9598 set dummy
$aros_kernel_ar; ac_word
=$2
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9600 $as_echo_n "checking for $ac_word... " >&6; }
9601 if ${ac_cv_path_aros_kernel_ar+:} false
; then :
9602 $as_echo_n "(cached) " >&6
9604 case $aros_kernel_ar in
9606 ac_cv_path_aros_kernel_ar
="$aros_kernel_ar" # Let the user override the test with a path.
9609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9613 test -z "$as_dir" && as_dir
=.
9614 for ac_exec_ext
in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_path_aros_kernel_ar
="$as_dir/$ac_word$ac_exec_ext"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 aros_kernel_ar
=$ac_cv_path_aros_kernel_ar
9628 if test -n "$aros_kernel_ar"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9630 $as_echo "$aros_kernel_ar" >&6; }
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9639 if test "$aros_kernel_ar" = ""; then
9640 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9643 if test "$aros_kernel_ranlib" = ""; then
9644 if test "$cross_compiling" = "yes" ; then
9645 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9646 set dummy
${kernel_tool_prefix}ranlib
; ac_word
=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9650 $as_echo_n "(cached) " >&6
9652 case $aros_kernel_ranlib in
9654 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir
=.
9662 for ac_exec_ext
in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9676 if test -n "$aros_kernel_ranlib"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9678 $as_echo "$aros_kernel_ranlib" >&6; }
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 $as_echo "no" >&6; }
9686 if test "$GCC" = "yes"; then
9687 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9688 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9689 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691 $as_echo_n "checking for $ac_word... " >&6; }
9692 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9693 $as_echo_n "(cached) " >&6
9695 case $aros_kernel_ranlib in
9697 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9701 for as_dir
in `dirname $aros_gcc_ranlib`
9704 test -z "$as_dir" && as_dir
=.
9705 for ac_exec_ext
in '' $ac_executable_extensions; do
9706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9719 if test -n "$aros_kernel_ranlib"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9721 $as_echo "$aros_kernel_ranlib" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9729 if test "$aros_kernel_ranlib" = ""; then
9730 # Extract the first word of "ranlib", so it can be a program name with args.
9731 set dummy ranlib
; ac_word
=$2
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 $as_echo_n "checking for $ac_word... " >&6; }
9734 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9735 $as_echo_n "(cached) " >&6
9737 case $aros_kernel_ranlib in
9739 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9746 test -z "$as_dir" && as_dir
=.
9747 for ac_exec_ext
in '' $ac_executable_extensions; do
9748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9749 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9761 if test -n "$aros_kernel_ranlib"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9763 $as_echo "$aros_kernel_ranlib" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9773 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9774 set dummy
$aros_kernel_ranlib; ac_word
=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if ${ac_cv_path_aros_kernel_ranlib+:} false
; then :
9778 $as_echo_n "(cached) " >&6
9780 case $aros_kernel_ranlib in
9782 ac_cv_path_aros_kernel_ranlib
="$aros_kernel_ranlib" # Let the user override the test with a path.
9785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9789 test -z "$as_dir" && as_dir
=.
9790 for ac_exec_ext
in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_path_aros_kernel_ranlib
="$as_dir/$ac_word$ac_exec_ext"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803 aros_kernel_ranlib
=$ac_cv_path_aros_kernel_ranlib
9804 if test -n "$aros_kernel_ranlib"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9806 $as_echo "$aros_kernel_ranlib" >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9815 if test "$aros_kernel_ranlib" = ""; then
9816 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9819 if test "$aros_kernel_nm" = ""; then
9820 if test "$cross_compiling" = "yes" ; then
9821 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9822 set dummy
${kernel_tool_prefix}nm
; ac_word
=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9826 $as_echo_n "(cached) " >&6
9828 case $aros_kernel_nm in
9830 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9837 test -z "$as_dir" && as_dir
=.
9838 for ac_exec_ext
in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9852 if test -n "$aros_kernel_nm"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9854 $as_echo "$aros_kernel_nm" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9862 if test "$GCC" = "yes"; then
9863 aros_gcc_nm
=`$CC -print-prog-name=nm`
9864 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9865 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9869 $as_echo_n "(cached) " >&6
9871 case $aros_kernel_nm in
9873 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9877 for as_dir
in `dirname $aros_gcc_nm`
9880 test -z "$as_dir" && as_dir
=.
9881 for ac_exec_ext
in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9895 if test -n "$aros_kernel_nm"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9897 $as_echo "$aros_kernel_nm" >&6; }
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9905 if test "$aros_kernel_nm" = ""; then
9906 # Extract the first word of "nm", so it can be a program name with args.
9907 set dummy nm
; ac_word
=$2
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 $as_echo_n "checking for $ac_word... " >&6; }
9910 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9911 $as_echo_n "(cached) " >&6
9913 case $aros_kernel_nm in
9915 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9922 test -z "$as_dir" && as_dir
=.
9923 for ac_exec_ext
in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9937 if test -n "$aros_kernel_nm"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9939 $as_echo "$aros_kernel_nm" >&6; }
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9949 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9950 set dummy
$aros_kernel_nm; ac_word
=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if ${ac_cv_path_aros_kernel_nm+:} false
; then :
9954 $as_echo_n "(cached) " >&6
9956 case $aros_kernel_nm in
9958 ac_cv_path_aros_kernel_nm
="$aros_kernel_nm" # Let the user override the test with a path.
9961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9965 test -z "$as_dir" && as_dir
=.
9966 for ac_exec_ext
in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 ac_cv_path_aros_kernel_nm
="$as_dir/$ac_word$ac_exec_ext"
9969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 aros_kernel_nm
=$ac_cv_path_aros_kernel_nm
9980 if test -n "$aros_kernel_nm"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9982 $as_echo "$aros_kernel_nm" >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9991 if test "$aros_kernel_nm" = ""; then
9992 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9995 if test "$aros_kernel_strip" = ""; then
9996 if test "$cross_compiling" = "yes" ; then
9997 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9998 set dummy
${kernel_tool_prefix}strip
; ac_word
=$2
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000 $as_echo_n "checking for $ac_word... " >&6; }
10001 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10002 $as_echo_n "(cached) " >&6
10004 case $aros_kernel_strip in
10006 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10010 for as_dir
in $PATH
10013 test -z "$as_dir" && as_dir
=.
10014 for ac_exec_ext
in '' $ac_executable_extensions; do
10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10016 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10028 if test -n "$aros_kernel_strip"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10030 $as_echo "$aros_kernel_strip" >&6; }
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10033 $as_echo "no" >&6; }
10038 if test "$GCC" = "yes"; then
10039 aros_gcc_strip
=`$CC -print-prog-name=strip`
10040 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10041 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10045 $as_echo_n "(cached) " >&6
10047 case $aros_kernel_strip in
10049 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10053 for as_dir
in `dirname $aros_gcc_strip`
10056 test -z "$as_dir" && as_dir
=.
10057 for ac_exec_ext
in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10071 if test -n "$aros_kernel_strip"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10073 $as_echo "$aros_kernel_strip" >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 if test "$aros_kernel_strip" = ""; then
10082 # Extract the first word of "strip", so it can be a program name with args.
10083 set dummy strip
; ac_word
=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10087 $as_echo_n "(cached) " >&6
10089 case $aros_kernel_strip in
10091 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10095 for as_dir
in $PATH
10098 test -z "$as_dir" && as_dir
=.
10099 for ac_exec_ext
in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10113 if test -n "$aros_kernel_strip"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10115 $as_echo "$aros_kernel_strip" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10125 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10126 set dummy
$aros_kernel_strip; ac_word
=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_path_aros_kernel_strip+:} false
; then :
10130 $as_echo_n "(cached) " >&6
10132 case $aros_kernel_strip in
10134 ac_cv_path_aros_kernel_strip
="$aros_kernel_strip" # Let the user override the test with a path.
10137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10138 for as_dir
in $PATH
10141 test -z "$as_dir" && as_dir
=.
10142 for ac_exec_ext
in '' $ac_executable_extensions; do
10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10144 ac_cv_path_aros_kernel_strip
="$as_dir/$ac_word$ac_exec_ext"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 aros_kernel_strip
=$ac_cv_path_aros_kernel_strip
10156 if test -n "$aros_kernel_strip"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10158 $as_echo "$aros_kernel_strip" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10167 if test "$aros_kernel_strip" = ""; then
10168 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10171 # Objcopy and objdump are not required for the kernel
10172 # toolchain on many architectures.
10173 # So we'll look for them, but not make them strictly required.
10175 if test "$aros_kernel_objcopy" = ""; then
10176 if test "$cross_compiling" = "yes" ; then
10177 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10178 set dummy
${kernel_tool_prefix}objcopy
; ac_word
=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10182 $as_echo_n "(cached) " >&6
10184 case $aros_kernel_objcopy in
10186 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10190 for as_dir
in $PATH
10193 test -z "$as_dir" && as_dir
=.
10194 for ac_exec_ext
in '' $ac_executable_extensions; do
10195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10196 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10208 if test -n "$aros_kernel_objcopy"; then
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10210 $as_echo "$aros_kernel_objcopy" >&6; }
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 $as_echo "no" >&6; }
10218 if test "$GCC" = "yes"; then
10219 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
10220 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10221 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10225 $as_echo_n "(cached) " >&6
10227 case $aros_kernel_objcopy in
10229 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10233 for as_dir
in `dirname $aros_gcc_objcopy`
10236 test -z "$as_dir" && as_dir
=.
10237 for ac_exec_ext
in '' $ac_executable_extensions; do
10238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10251 if test -n "$aros_kernel_objcopy"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10253 $as_echo "$aros_kernel_objcopy" >&6; }
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10261 if test "$aros_kernel_objcopy" = ""; then
10262 # Extract the first word of "objcopy", so it can be a program name with args.
10263 set dummy objcopy
; ac_word
=$2
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10265 $as_echo_n "checking for $ac_word... " >&6; }
10266 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10267 $as_echo_n "(cached) " >&6
10269 case $aros_kernel_objcopy in
10271 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10275 for as_dir
in $PATH
10278 test -z "$as_dir" && as_dir
=.
10279 for ac_exec_ext
in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10293 if test -n "$aros_kernel_objcopy"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10295 $as_echo "$aros_kernel_objcopy" >&6; }
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10305 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10306 set dummy
$aros_kernel_objcopy; ac_word
=$2
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10308 $as_echo_n "checking for $ac_word... " >&6; }
10309 if ${ac_cv_path_aros_kernel_objcopy+:} false
; then :
10310 $as_echo_n "(cached) " >&6
10312 case $aros_kernel_objcopy in
10314 ac_cv_path_aros_kernel_objcopy
="$aros_kernel_objcopy" # Let the user override the test with a path.
10317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10318 for as_dir
in $PATH
10321 test -z "$as_dir" && as_dir
=.
10322 for ac_exec_ext
in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_path_aros_kernel_objcopy
="$as_dir/$ac_word$ac_exec_ext"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335 aros_kernel_objcopy
=$ac_cv_path_aros_kernel_objcopy
10336 if test -n "$aros_kernel_objcopy"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10338 $as_echo "$aros_kernel_objcopy" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341 $as_echo "no" >&6; }
10348 if test "$aros_kernel_objdump" = ""; then
10349 if test "$cross_compiling" = "yes" ; then
10350 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10351 set dummy
${kernel_tool_prefix}objdump
; ac_word
=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10355 $as_echo_n "(cached) " >&6
10357 case $aros_kernel_objdump in
10359 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10363 for as_dir
in $PATH
10366 test -z "$as_dir" && as_dir
=.
10367 for ac_exec_ext
in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10381 if test -n "$aros_kernel_objdump"; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10383 $as_echo "$aros_kernel_objdump" >&6; }
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386 $as_echo "no" >&6; }
10391 if test "$GCC" = "yes"; then
10392 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
10393 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10394 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10398 $as_echo_n "(cached) " >&6
10400 case $aros_kernel_objdump in
10402 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10406 for as_dir
in `dirname $aros_gcc_objdump`
10409 test -z "$as_dir" && as_dir
=.
10410 for ac_exec_ext
in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10424 if test -n "$aros_kernel_objdump"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10426 $as_echo "$aros_kernel_objdump" >&6; }
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10434 if test "$aros_kernel_objdump" = ""; then
10435 # Extract the first word of "objdump", so it can be a program name with args.
10436 set dummy objdump
; ac_word
=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10438 $as_echo_n "checking for $ac_word... " >&6; }
10439 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10440 $as_echo_n "(cached) " >&6
10442 case $aros_kernel_objdump in
10444 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10448 for as_dir
in $PATH
10451 test -z "$as_dir" && as_dir
=.
10452 for ac_exec_ext
in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10466 if test -n "$aros_kernel_objdump"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10468 $as_echo "$aros_kernel_objdump" >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10478 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10479 set dummy
$aros_kernel_objdump; ac_word
=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_aros_kernel_objdump+:} false
; then :
10483 $as_echo_n "(cached) " >&6
10485 case $aros_kernel_objdump in
10487 ac_cv_path_aros_kernel_objdump
="$aros_kernel_objdump" # Let the user override the test with a path.
10490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10491 for as_dir
in $PATH
10494 test -z "$as_dir" && as_dir
=.
10495 for ac_exec_ext
in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_aros_kernel_objdump
="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 aros_kernel_objdump
=$ac_cv_path_aros_kernel_objdump
10509 if test -n "$aros_kernel_objdump"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10511 $as_echo "$aros_kernel_objdump" >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10520 if test "x${crosstools}" != "xyes" ; then
10521 if test "$aros_kernel_objcopy" = ""; then
10522 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10524 if test "$aros_kernel_objdump" = ""; then
10525 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10531 $as_echo_n "checking which target tools... " >&6; }
10532 if test "$crosstools" = "yes"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10534 $as_echo "$target_tool_prefix" >&6; }
10535 # We are are building AROS crosstools
10536 tmp_tool_prefix
="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10537 orig_target_cc
="${tmp_tool_prefix}gcc${aros_gcc_version}"
10538 orig_target_cxx
="${tmp_tool_prefix}g++${aros_gcc_version}"
10539 orig_target_cpp
="${tmp_tool_prefix}cpp"
10540 orig_target_ld
="${tmp_tool_prefix}ld"
10541 orig_target_as
="${tmp_tool_prefix}as"
10542 orig_target_ar
="${tmp_tool_prefix}ar"
10543 orig_target_ranlib
="${tmp_tool_prefix}ranlib"
10544 orig_target_nm
="${tmp_tool_prefix}nm"
10545 orig_target_strip
="${tmp_tool_prefix}strip"
10546 orig_target_objcopy
="${tmp_tool_prefix}objcopy"
10547 orig_target_objdump
="${tmp_tool_prefix}objdump"
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10550 $as_echo "$kernel_tool_prefix" >&6; }
10551 # We are *not* building AROS crosstools - use the kernel tools
10552 orig_target_cpp
="${aros_kernel_cpp}"
10553 if test "$orig_target_cpp" = ""; then
10554 as_fn_error $?
"cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 orig_target_cc
="${aros_kernel_cc}"
10557 if test "$orig_target_cc" = ""; then
10558 as_fn_error $?
"cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 orig_target_cxx
="${aros_kernel_cxx}"
10561 if test "x$orig_target_cxx" != "x" ; then
10562 if test "$orig_target_cxx" = ""; then
10563 as_fn_error $?
"cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10566 orig_target_ld
="${aros_kernel_ld}"
10567 if test "$orig_target_ld" = ""; then
10568 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10570 orig_target_as
="${aros_kernel_as}"
10571 if test "$orig_target_as" = ""; then
10572 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
10574 orig_target_ar
="${aros_kernel_ar}"
10575 if test "$orig_target_ar" = ""; then
10576 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10578 orig_target_ranlib
="${aros_kernel_ranlib}"
10579 if test "$orig_target_ranlib" = ""; then
10580 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10582 orig_target_nm
="${aros_kernel_nm}"
10583 if test "$orig_target_nm" = ""; then
10584 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10586 orig_target_strip
="${aros_kernel_strip}"
10587 if test "$orig_target_strip" = ""; then
10588 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10590 orig_target_objcopy
="${aros_kernel_objcopy}"
10591 if test "$orig_target_objcopy" = ""; then
10592 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10594 orig_target_objdump
="${aros_kernel_objdump}"
10595 if test "$orig_target_objdump" = ""; then
10596 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10600 # At this point, all aros_kernel_* and aros_target_*
10601 # tools should be set up correctly
10603 CC
="$aros_kernel_cc $kernel_tool_flags"
10604 CPP
="$aros_kernel_cpp"
10606 #-----------------------------------------------------------------------------
10608 # Disable pointer-signedness warnings if the compiler recognises the option
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10611 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10612 save_cflags
="$CFLAGS"
10613 if test "$crosstools" != "yes" ; then
10614 CFLAGS
="$CFLAGS -Wno-pointer-sign"
10615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10626 if ac_fn_c_try_compile
"$LINENO"; then :
10627 use_no_sign_warning
="yes"
10629 use_no_sign_warning
="no"
10631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10633 # we do know it is supported for the smallest version of gcc we are going to build
10634 # we assume it's also supported by later versions
10635 use_no_sign_warning
=yes
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10638 $as_echo "$use_no_sign_warning" >&6; }
10639 if test "x-$use_no_sign_warning" = "x-yes" ; then
10640 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
10642 CFLAGS
="$save_cflags"
10644 #-----------------------------------------------------------------------------
10646 # Find all the tools we need to compile. This could be cross-compiling
10647 # though! If that is the case we use the GNU form of the target and
10648 # simply add this to the front of the binary name. This is rather simple,
10649 # but it should work under most circumstances.
10651 # The default tools are to use the same as the host, but only if the
10652 # host and target CPU are the same. With GCC this is normally enough.
10656 aros_shared_ld
="$aros_host_ld"
10658 aros_target_mkdep
="$aros_host_mkdep"
10660 # The default tools executables to be linked to.
10661 if test "$rescomp" != ""; then
10663 if test "" = ""; then
10664 if test "$cross_compiling" = "yes" ; then
10665 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10666 set dummy
${kernel_tool_prefix}$rescomp; ac_word
=$2
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668 $as_echo_n "checking for $ac_word... " >&6; }
10669 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10670 $as_echo_n "(cached) " >&6
10672 case $aros_kernel_rescomp in
10674 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10678 for as_dir
in $PATH
10681 test -z "$as_dir" && as_dir
=.
10682 for ac_exec_ext
in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10684 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10696 if test -n "$aros_kernel_rescomp"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10698 $as_echo "$aros_kernel_rescomp" >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10706 if test "$GCC" = "yes"; then
10707 aros_gcc_
$rescomp=`$CC -print-prog-name=$rescomp`
10708 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10709 set dummy
`basename $aros_gcc_$rescomp`; ac_word
=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10713 $as_echo_n "(cached) " >&6
10715 case $aros_kernel_rescomp in
10717 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10721 for as_dir
in `dirname $aros_gcc_$rescomp`
10724 test -z "$as_dir" && as_dir
=.
10725 for ac_exec_ext
in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10739 if test -n "$aros_kernel_rescomp"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10741 $as_echo "$aros_kernel_rescomp" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10749 if test "$aros_kernel_rescomp" = ""; then
10750 # Extract the first word of "$rescomp", so it can be a program name with args.
10751 set dummy
$rescomp; ac_word
=$2
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753 $as_echo_n "checking for $ac_word... " >&6; }
10754 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10755 $as_echo_n "(cached) " >&6
10757 case $aros_kernel_rescomp in
10759 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10763 for as_dir
in $PATH
10766 test -z "$as_dir" && as_dir
=.
10767 for ac_exec_ext
in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10781 if test -n "$aros_kernel_rescomp"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10783 $as_echo "$aros_kernel_rescomp" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10793 # Extract the first word of "", so it can be a program name with args.
10794 set dummy
; ac_word
=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if ${ac_cv_path_aros_kernel_rescomp+:} false
; then :
10798 $as_echo_n "(cached) " >&6
10800 case $aros_kernel_rescomp in
10802 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
10805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10806 for as_dir
in $PATH
10809 test -z "$as_dir" && as_dir
=.
10810 for ac_exec_ext
in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10823 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
10824 if test -n "$aros_kernel_rescomp"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10826 $as_echo "$aros_kernel_rescomp" >&6; }
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10835 if test "$aros_kernel_rescomp" = ""; then
10836 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10840 # Set up the sources for the symlink farm
10841 if test "$crosstools" = "yes"; then
10842 crosstools_target
=tools-crosstools
10844 crosstools_cxx_target
=tools-crosstools
10847 aros_kernel_cc
="$aros_kernel_cc $kernel_tool_flags"
10848 aros_kernel_ar
="$aros_kernel_ar $aros_kernel_ar_flags"
10851 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10852 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10853 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10854 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10855 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10856 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10857 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10859 # aros_cc_pre is a variable that is added to the front of the compiler name
10860 # in the generated aros-gcc shell script. We need this to enable the cache
10861 # to work across cleaned builds. Also, support DISTCC using the correct
10862 # environment variable.
10865 if test "x${DISTCC}" != "x" ; then
10866 if test "x${CCACHE}" != "x" ; then
10867 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10869 aros_cc_pre
="${DISTCC} "
10872 if test "x${CCACHE}" != "x" ; then
10873 aros_cc_pre
="${CCACHE} "
10877 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10879 aros_target_nostdinc_cflags
=-nostdinc
10881 aros_target_nostartup_ldflags
=-nostartfiles
10883 aros_target_nix_ldflags
=-nix
10885 aros_target_detach_ldflags
=-detach
10887 aros_target_nostdlib_ldflags
=-nostdlib
10891 if test "$crosstools" != "yes"; then
10892 if test "$GCC" = "yes"; then
10893 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10896 # We do not know which gcc version we are going to build and what we need to know
10897 # here is different for different versions so this will be set later during the
10898 # build of crosstools.
10899 aros_target_cc_path
=@aros_target_cc_path@
10901 aros_target_cpp
="${prefix}cpp"
10902 aros_target_cc
="${prefix}gcc"
10903 aros_target_cxx
="${prefix}g++"
10904 aros_target_as
="${prefix}as"
10905 aros_target_ld
="${prefix}ld"
10906 aros_target_ar
="${prefix}ar $aros_target_ar_flags"
10907 aros_target_objcopy
="${prefix}objcopy"
10908 aros_target_objdump
="${prefix}objdump"
10909 aros_target_ranlib
="${prefix}ranlib $aros_target_ranlib_flags"
10910 aros_target_nm
="${prefix}nm $aros_target_nm_flags"
10911 aros_target_strip
="${prefix}strip"
10912 aros_plain_nm
="${prefix}nm"
10913 aros_plain_ar
="${prefix}ar"
10915 if test "$aros_kernel_includes" != "" ; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10917 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10918 if test "$aros_kernel_cc_includes" = "" ; then
10919 # Try to guess where the directory is.
10920 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
10921 if test -d $aros_kernel_cc_includes; then
10922 # Check if there is also an include-fixed directory and add it
10923 # to kernel compiler's include path as it may contain some of
10924 # the headers we need.
10925 if test -d "$aros_kernel_cc_includes"-fixed; then
10926 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
10928 # Check for specific includes directory. Neede for Ubuntu 11.10
10929 if test -d "/usr/include/i386-linux-gnu"; then
10930 aros_kernel_cc_includes
+=" -isystem /usr/include/i386-linux-gnu"
10933 # The directory doesn't exist, we need to do some more work.
10934 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
10936 # These are the headers we're looking for.
10937 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10938 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10942 for h
in $headers; do
10943 # Which other headers are needed by each of the above?
10944 deps
=$
(echo "#include <$h>" | \
10945 $aros_kernel_cc -E -M - 2>/dev
/null | \
10946 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10948 # Copy all the needed headers to a directory beneath gendir.
10951 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
10952 sed -n "s,^.*/include\(/.*\),\1,p")
10953 ! test -d $dir && mkdir
-p $dir
10954 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10960 $as_echo "$aros_kernel_cc_includes" >&6; }
10961 # Adding -nostdinc to kernel includes as they are always used together.
10962 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10965 if test "$crosstools" != "yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10967 $as_echo_n "checking for the target compiler's include path... " >&6; }
10968 if test "$aros_target_cc_includes" = "" ; then
10969 #try to guess where the directory is
10970 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
10971 if ! test -d $aros_target_cc_includes; then
10972 #the directory doesn't exist, we need to do some more work
10973 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
10975 #these are the headers we're looking for
10976 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10977 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10981 for h
in $headers; do
10982 #which other headers each of the above headers needs?
10983 deps
=$
(echo "#include <$h>" | \
10984 $orig_target_cc -E -M - 2>/dev
/null | \
10985 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10987 #copy all the needed headers to a directory beneath gendir
10990 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
10991 sed -n "s,^.*/include\(/.*\),\1,p")
10992 ! test -d $dir && mkdir
-p $dir
10993 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10999 $as_echo "$aros_target_cc_includes" >&6; }
11001 # We do not know which gcc version we are going to build and what we need to know
11002 # here is different for different versions so this will be set later during the
11003 # build of crosstools.
11004 aros_target_cc_includes
=@aros_target_cc_includes@
11008 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11009 # On GCC >= 4.0 -iquote should be used
11013 save_cflags
="$CFLAGS"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11016 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11017 if test "x-$crosstools" != "x-yes"; then
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11029 if ac_fn_c_try_compile
"$LINENO"; then :
11034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11036 # we do know it is supported for the smallest version of gcc we are going to build
11037 # we assume it's also supported by later versions
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11041 $as_echo "$has_iquote" >&6; }
11042 if test "x-$has_iquote" = "x-yes" ; then
11043 host_cflags_iquote
=-iquote
11044 host_cflags_iquote_end
=
11046 host_cflags_iquote
=-I
11047 host_cflags_iquote_end
=-I-
11049 kernel_cflags_iquote
=$host_cflags_iquote
11050 kernel_cflags_iquote_end
=$host_cflags_iquote_end
11051 if test "x-$cross_compiling" = "x-yes"; then
11052 CC
="$aros_kernel_cc"
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11054 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11055 if test "x-$crosstools" != "x-yes"; then
11056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11067 if ac_fn_c_try_compile
"$LINENO"; then :
11068 use_no_stack_protector
="yes"
11070 use_no_stack_protector
="no"
11072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11074 # we do know it is supported for the smallest version of gcc we are going to build
11075 # we assume it's also supported by later versions
11076 use_no_stack_protector
=yes
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11079 $as_echo "$use_no_stack_protector" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11081 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11082 if test "x-$crosstools" != "x-yes"; then
11083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11094 if ac_fn_c_try_compile
"$LINENO"; then :
11099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11101 # we do know it is supported for the smallest version of gcc we are going to build
11102 # we assume it's also supported by later versions
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11106 $as_echo "$has_iquote" >&6; }
11107 if test "x-$has_iquote" = "x-yes" ; then
11108 kernel_cflags_iquote
=-iquote
11109 kernel_cflags_iquote_end
=
11111 kernel_cflags_iquote
=-I
11112 kernel_cflags_iquote_end
=-I-
11115 aros_cflags_iquote
=$kernel_cflags_iquote
11116 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
11117 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11118 CC
="$orig_target_cc"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11120 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11121 if test "x-$crosstools" != "x-yes"; then
11122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11133 if ac_fn_c_try_compile
"$LINENO"; then :
11138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11140 # we do know it is supported for the smallest version of gcc we are going to build
11141 # we assume it's also supported by later versions
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11145 $as_echo "$has_iquote" >&6; }
11146 if test "x-$has_iquote" = "x-yes" ; then
11147 aros_cflags_iquote
=-iquote
11148 aros_cflags_iquote_end
=
11150 aros_cflags_iquote
=-I
11151 aros_cflags_iquote_end
=-I-
11154 if test "x-$use_no_stack_protector" = "x-yes" ; then
11155 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
11159 #-----------------------------------------------------------------------------
11161 # Check if the target compiler supports some options used for delinting:
11162 # -Wunused-but-set-variable
11165 # -Wstrict-overflow
11166 # -Wformat-security
11168 if test "x-$crosstools" != "x-yes"; then
11169 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11170 CC
="$orig_target_cc"
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11173 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11174 CFLAGS
=-Wunused-but-set-variable
11175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h. */
11186 if ac_fn_c_try_compile
"$LINENO"; then :
11187 aros_unused_but_set_variable
="yes"
11189 aros_unused_but_set_variable
="no"
11191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11193 $as_echo "$aros_unused_but_set_variable" >&6; }
11194 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11195 aros_cflags_unused_but_set_variable
=-Wno-unused-but-set-variable
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11199 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11200 CFLAGS
=-Warray-bounds
11201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11212 if ac_fn_c_try_compile
"$LINENO"; then :
11213 aros_array_bounds
="yes"
11215 aros_array_bounds
="no"
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11219 $as_echo "$aros_array_bounds" >&6; }
11220 if test "x-$aros_array_bounds" = "x-yes" ; then
11221 aros_cflags_array_bounds
=-Wno-array-bounds
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11225 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11226 CFLAGS
=-Wenum-compare
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11238 if ac_fn_c_try_compile
"$LINENO"; then :
11239 aros_enum_compare
="yes"
11241 aros_enum_compare
="no"
11243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11245 $as_echo "$aros_enum_compare" >&6; }
11246 if test "x-$aros_enum_compare" = "x-yes" ; then
11247 aros_cflags_enum_compare
=-Wno-enum-compare
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11251 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11252 CFLAGS
=-Wstrict-overflow
11253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11264 if ac_fn_c_try_compile
"$LINENO"; then :
11265 aros_strict_overflow
="yes"
11267 aros_strict_overflow
="no"
11269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11271 $as_echo "$aros_strict_overflow" >&6; }
11272 if test "x-$aros_strict_overflow" = "x-yes" ; then
11273 aros_cflags_strict_overflow
=-Wno-strict-overflow
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11277 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11278 CFLAGS
=-Wformat-security
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11290 if ac_fn_c_try_compile
"$LINENO"; then :
11291 aros_format_security
="yes"
11293 aros_format_security
="no"
11295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11297 $as_echo "$aros_format_security" >&6; }
11298 if test "x-$aros_format_security" = "x-yes" ; then
11299 aros_cflags_format_security
=-Wno-format-security
11302 # We do not know which gcc version we are going to build and what we need to know
11303 # here is different for different versions so this will be set later during the
11304 # build of crosstools.
11305 aros_cflags_unused_but_set_variable
=@aros_cflags_unused_but_set_variable@
11306 aros_cflags_array_bounds
=@aros_cflags_array_bounds@
11307 aros_cflags_enum_compare
=@aros_cflags_enum_compare@
11308 aros_cflags_strict_overflow
=@aros_cflags_strict_overflow@
11309 aros_cflags_format_security
=@aros_cflags_format_security@
11312 #-----------------------------------------------------------------------------
11314 # Check if we can explicitly choose older version of symbol hashing
11316 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
11317 CC
="$aros_kernel_cc"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11319 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11331 if ac_fn_c_try_link
"$LINENO"; then :
11332 use_hash_style
="yes"
11334 use_hash_style
="no"
11336 rm -f core conftest.err conftest.
$ac_objext \
11337 conftest
$ac_exeext conftest.
$ac_ext
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11339 $as_echo "$use_hash_style" >&6; }
11340 if test "x-$use_hash_style" = "x-yes" ; then
11341 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
11344 CFLAGS
="$save_cflags"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11355 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11357 # Check whether --with-resolution was given.
11358 if test "${with_resolution+set}" = set; then :
11359 withval
=$with_resolution; resolution
=$withval
11364 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11365 if test "$resolution" = "yes" ; then
11368 if test "$resolution" = "no" ; then
11371 if test "$resolution" != "none" ; then
11372 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
11373 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
11374 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11377 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11378 aros_cv_default_wbwidth
=$aros_default_wbwidth
11379 aros_cv_default_wbheight
=$aros_default_wbheight
11380 aros_cv_default_wbdepth
=$aros_default_wbdepth
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11383 $as_echo_n "checking if serial debug is enabled... " >&6; }
11385 # Check whether --with-serial-debug was given.
11386 if test "${with_serial_debug+set}" = set; then :
11387 withval
=$with_serial_debug; serial_debug
=$withval
11392 if test "$aros_serial_debug" = 0 ; then
11393 serial_debug_forced
=""
11394 if test "$serial_debug" = "yes" ; then
11397 if test "$serial_debug" = "no" ; then
11398 serial_debug
="none"
11401 serial_debug_forced
="(forced)"
11402 serial_debug
=$aros_serial_debug
11404 if test "$serial_debug" != "none" ; then
11405 aros_serial_debug
=$serial_debug
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11407 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11414 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11415 # Check whether --enable-palm_debug_hack was given.
11416 if test "${enable_palm_debug_hack+set}" = set; then :
11417 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
11419 palm_debug_hack
="no"
11422 if test "$palm_debug_hack" = "yes" ; then
11423 aros_palm_debug_hack
="1"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11426 $as_echo "$palm_debug_hack" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11429 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11430 # Check whether --enable-usb30_code was given.
11431 if test "${enable_usb30_code+set}" = set; then :
11432 enableval
=$enable_usb30_code; usb30_code
="yes"
11437 if test "$usb30_code" = "yes" ; then
11438 aros_config_cflags
="$aros_config_cflags -DAROS_USB30_CODE"
11439 aros_kernel_cflags
="$aros_kernel_cflags -DAROS_USB30_CODE"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11442 $as_echo "$usb30_code" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11445 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11446 # Check whether --enable-nesting_supervisor was given.
11447 if test "${enable_nesting_supervisor+set}" = set; then :
11448 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
11450 nesting_supervisor
="no"
11453 if test "$nesting_supervisor" = "yes" ; then
11454 aros_nesting_supervisor
="1"
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11457 $as_echo "$nesting_supervisor" >&6; }
11459 if test "$aros_enable_mmu" = "" ; then
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11461 $as_echo_n "checking if MMU support is enabled... " >&6; }
11462 # Check whether --enable-mmu was given.
11463 if test "${enable_mmu+set}" = set; then :
11464 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
11466 aros_enable_mmu
="yes"
11469 if test "$aros_enable_mmu" = "" ; then
11470 aros_enable_mmu
="yes"
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11473 $as_echo "$aros_enable_mmu" >&6; }
11475 if test "$aros_enable_mmu" = "no" ; then
11476 aros_enable_mmu
="0"
11478 aros_enable_mmu
="1"
11482 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11484 if test "x-$need_dlopen" != "x-no" ; then
11485 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11486 if test "x$ac_cv_func_dlopen" = xyes
; then :
11492 if test "x-$have_dl" = "x-no" ; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11494 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11495 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11496 $as_echo_n "(cached) " >&6
11498 ac_check_lib_save_LIBS
=$LIBS
11500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11518 if ac_fn_c_try_link
"$LINENO"; then :
11519 ac_cv_lib_dl_dlopen
=yes
11521 ac_cv_lib_dl_dlopen
=no
11523 rm -f core conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 LIBS
=$ac_check_lib_save_LIBS
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11528 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11529 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11531 aros_host_ldflags
="$aros_host_ldflags -ldl"
11537 if test "x-$have_dl" = "x-no" ; then
11538 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
11543 # Check whether --enable-x11_hidd was given.
11544 if test "${enable_x11_hidd+set}" = set; then :
11545 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
11547 x11_hidd
="$need_x11"
11550 case "x-$x11_hidd" in
11551 x-yes|x-no|x-auto
) ;;
11552 *) x11_hidd
="$need_x11" ;;
11557 if test "x-$x11_hidd" != "x-no" ; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11560 $as_echo_n "checking for X... " >&6; }
11563 # Check whether --with-x was given.
11564 if test "${with_x+set}" = set; then :
11568 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11569 if test "x$with_x" = xno
; then
11570 # The user explicitly disabled X.
11573 case $x_includes,$x_libraries in #(
11574 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
11575 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
11576 $as_echo_n "(cached) " >&6
11578 # One or both of the vars are not set, and there is no cached value.
11579 ac_x_includes
=no ac_x_libraries
=no
11580 rm -f -r conftest.dir
11581 if mkdir conftest.dir
; then
11583 cat >Imakefile
<<'_ACEOF'
11585 @echo incroot='${INCROOT}'
11587 @echo usrlibdir='${USRLIBDIR}'
11589 @echo libdir='${LIBDIR}'
11591 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
11592 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11593 for ac_var
in incroot usrlibdir libdir
; do
11594 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11596 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11597 for ac_extension
in a so sl dylib la dll
; do
11598 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11599 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11600 ac_im_usrlibdir
=$ac_im_libdir; break
11603 # Screen out bogus values from the imake configuration. They are
11604 # bogus both because they are the default anyway, and because
11605 # using them would break gcc on systems where it needs fixed includes.
11606 case $ac_im_incroot in
11607 /usr
/include
) ac_x_includes
= ;;
11608 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
11610 case $ac_im_usrlibdir in
11611 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
11612 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
11616 rm -f -r conftest.dir
11619 # Standard set of common directories for X headers.
11620 # Check X11 before X11Rn because it is often a symlink to the current release.
11634 /usr/local/X11/include
11635 /usr/local/X11R7/include
11636 /usr/local/X11R6/include
11637 /usr/local/X11R5/include
11638 /usr/local/X11R4/include
11640 /usr/local/include/X11
11641 /usr/local/include/X11R7
11642 /usr/local/include/X11R6
11643 /usr/local/include/X11R5
11644 /usr/local/include/X11R4
11648 /usr/XFree86/include/X11
11652 /usr/unsupported/include
11653 /usr/athena/include
11654 /usr/local/x11r5/include
11655 /usr/lpp/Xamples/include
11657 /usr/openwin/include
11658 /usr/openwin/share/include'
11660 if test "$ac_x_includes" = no
; then
11661 # Guess where to find include files, by looking for Xlib.h.
11662 # First, try using that file with no special directory specified.
11663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11665 #include <X11/Xlib.h>
11667 if ac_fn_c_try_cpp
"$LINENO"; then :
11668 # We can compile using X headers with no special include directory.
11671 for ac_dir
in $ac_x_header_dirs; do
11672 if test -r "$ac_dir/X11/Xlib.h"; then
11673 ac_x_includes
=$ac_dir
11678 rm -f conftest.err conftest.i conftest.
$ac_ext
11679 fi # $ac_x_includes = no
11681 if test "$ac_x_libraries" = no
; then
11682 # Check for the libraries.
11683 # See if we find them without any special options.
11684 # Don't add to $LIBS permanently.
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11689 #include <X11/Xlib.h>
11698 if ac_fn_c_try_link
"$LINENO"; then :
11700 # We can link X programs with no special library path.
11704 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11706 # Don't even attempt the hair of trying to link an X program!
11707 for ac_extension
in a so sl dylib la dll
; do
11708 if test -r "$ac_dir/libX11.$ac_extension"; then
11709 ac_x_libraries
=$ac_dir
11715 rm -f core conftest.err conftest.
$ac_objext \
11716 conftest
$ac_exeext conftest.
$ac_ext
11717 fi # $ac_x_libraries = no
11719 case $ac_x_includes,$ac_x_libraries in #(
11720 no
,* |
*,no |
*\'*)
11721 # Didn't find X, or a directory has "'" in its name.
11722 ac_cv_have_x
="have_x=no";; #(
11724 # Record where we found X for the cache.
11725 ac_cv_have_x
="have_x=yes\
11726 ac_x_includes='$ac_x_includes'\
11727 ac_x_libraries='$ac_x_libraries'"
11733 eval "$ac_cv_have_x"
11736 if test "$have_x" != yes; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11738 $as_echo "$have_x" >&6; }
11741 # If each of the values was on the command line, it overrides each guess.
11742 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
11743 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
11744 # Update the cache value to reflect the command line values.
11745 ac_cv_have_x
="have_x=yes\
11746 ac_x_includes='$x_includes'\
11747 ac_x_libraries='$x_libraries'"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11749 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11754 for path
in $x_libraries
11756 x_cflags
="$x_cflags -L$path"
11759 for path
in $x_includes
11761 x_cflags
="$x_cflags -I$path"
11764 if test "x-$no_x" = "x-yes" ; then
11766 if test "x-$x11_hidd" != "x-auto" ; then
11767 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11771 x11_hidd_target
=kernel-x11gfx-kobj
11774 # Check whether --enable-x11_shm was given.
11775 if test "${enable_x11_shm+set}" = set; then :
11776 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
11778 x11_hidd_shm
="auto"
11781 case "x-$x11_hidd_shm" in
11782 x-yes|x-no|x-auto
) ;;
11783 *) x11_hidd_shm
="auto" ;;
11788 if test "x-$x11_hidd_shm" != "x-no" ; then
11790 for ac_header
in sys
/ipc.h
11792 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11793 if test "x$ac_cv_header_sys_ipc_h" = xyes
; then :
11794 cat >>confdefs.h
<<_ACEOF
11795 #define HAVE_SYS_IPC_H 1
11802 for ac_header
in sys
/shm.h
11804 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11805 if test "x$ac_cv_header_sys_shm_h" = xyes
; then :
11806 cat >>confdefs.h
<<_ACEOF
11807 #define HAVE_SYS_SHM_H 1
11815 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11817 save_cflags
="$CFLAGS"
11818 CFLAGS
="$CFLAGS $x_cflags"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11820 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11821 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false
; then :
11822 $as_echo_n "(cached) " >&6
11824 ac_check_lib_save_LIBS
=$LIBS
11825 LIBS
="-lXext $LIBS"
11826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11835 char XShmQueryExtension ();
11839 return XShmQueryExtension ();
11844 if ac_fn_c_try_link
"$LINENO"; then :
11845 ac_cv_lib_Xext_XShmQueryExtension
=yes
11847 ac_cv_lib_Xext_XShmQueryExtension
=no
11849 rm -f core conftest.err conftest.
$ac_objext \
11850 conftest
$ac_exeext conftest.
$ac_ext
11851 LIBS
=$ac_check_lib_save_LIBS
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11854 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11855 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes
; then :
11859 CFLAGS
="$save_cflags"
11863 if test "x-$have_xshm" = "x-yes" ; then
11864 DO_XSHM_SUPPORT
="1"
11865 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11866 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11868 DO_XSHM_SUPPORT
="0"
11872 # Check whether --enable-x11_vidmode was given.
11873 if test "${enable_x11_vidmode+set}" = set; then :
11874 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
11876 x11_hidd_vidmode
="auto"
11879 case "x-$x11_hidd_vidmode" in
11880 x-yes|x-no|x-auto
) ;;
11881 *) x11_hidd_vidmode
="auto" ;;
11886 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11888 save_cflags
="$CFLAGS"
11889 CFLAGS
="$CFLAGS $x_cflags"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11891 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11892 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false
; then :
11893 $as_echo_n "(cached) " >&6
11895 ac_check_lib_save_LIBS
=$LIBS
11896 LIBS
="-lXxf86vm $LIBS"
11897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11906 char XF86VidModeQueryExtension ();
11910 return XF86VidModeQueryExtension ();
11915 if ac_fn_c_try_link
"$LINENO"; then :
11916 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
11918 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
11920 rm -f core conftest.err conftest.
$ac_objext \
11921 conftest
$ac_exeext conftest.
$ac_ext
11922 LIBS
=$ac_check_lib_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11925 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11926 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes
; then :
11930 CFLAGS
="$save_cflags"
11933 if test "x-$have_vidmode" = "x-yes" ; then
11934 DO_VIDMODE_SUPPORT
="1"
11935 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11936 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11938 DO_VIDMODE_SUPPORT
="0"
11942 aros_host_x11_includes
=$x_includes
11943 aros_host_x11_libdirs
=$x_libraries
11947 # Check whether --enable-sdl_hidd was given.
11948 if test "${enable_sdl_hidd+set}" = set; then :
11949 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
11954 case "x-$sdl_hidd" in
11955 x-yes|x-no|x-auto
) ;;
11956 *) sdl_hidd
="auto" ;;
11959 if test "x-$sdl_hidd" != "x-no" ; then
11962 # Check whether --with-sdl-prefix was given.
11963 if test "${with_sdl_prefix+set}" = set; then :
11964 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
11970 # Check whether --with-sdl-exec-prefix was given.
11971 if test "${with_sdl_exec_prefix+set}" = set; then :
11972 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
11977 # Check whether --enable-sdltest was given.
11978 if test "${enable_sdltest+set}" = set; then :
11979 enableval
=$enable_sdltest;
11985 if test x
$sdl_exec_prefix != x
; then
11986 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
11987 if test x
${SDL_CONFIG+set} != xset
; then
11988 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
11991 if test x
$sdl_prefix != x
; then
11992 sdl_args
="$sdl_args --prefix=$sdl_prefix"
11993 if test x
${SDL_CONFIG+set} != xset
; then
11994 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
11998 if test "x$prefix" != xNONE
; then
11999 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
12001 # Extract the first word of "sdl-config", so it can be a program name with args.
12002 set dummy sdl-config
; ac_word
=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_path_SDL_CONFIG+:} false
; then :
12006 $as_echo_n "(cached) " >&6
12008 case $SDL_CONFIG in
12010 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
12013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12014 for as_dir
in $PATH
12017 test -z "$as_dir" && as_dir
=.
12018 for ac_exec_ext
in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
12032 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
12033 if test -n "$SDL_CONFIG"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12035 $as_echo "$SDL_CONFIG" >&6; }
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12042 min_sdl_version
=1.2.10
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12044 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12046 if test "$SDL_CONFIG" = "no" ; then
12049 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
12050 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
12052 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
12053 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12054 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
12055 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12056 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
12057 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12058 if test "x$enable_sdltest" = "xyes" ; then
12059 ac_save_CFLAGS
="$CFLAGS"
12060 ac_save_CXXFLAGS
="$CXXFLAGS"
12061 ac_save_LIBS
="$LIBS"
12062 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12063 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12064 LIBS
="$LIBS $SDL_LIBS"
12066 if test "$cross_compiling" = yes; then :
12067 echo $ac_n "cross compiling; assumed OK... $ac_c"
12069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12073 #include <stdlib.h>
12074 #include <string.h>
12078 my_strdup (char *str)
12084 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12085 strcpy (new_str, str);
12093 int main (int argc, char *argv[])
12095 int major, minor, micro;
12098 /* This hangs on some systems (?)
12099 system ("touch conf.sdltest");
12101 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12103 /* HP/UX 9 (%@#!) writes to sscanf strings */
12104 tmp_version = my_strdup("$min_sdl_version");
12105 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12106 printf("%s, bad version string\n", "$min_sdl_version");
12110 if (($sdl_major_version > major) ||
12111 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12112 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12118 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12119 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12120 printf("*** best to upgrade to the required version.\n");
12121 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12122 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12123 printf("*** config.cache before re-running configure\n");
12130 if ac_fn_c_try_run
"$LINENO"; then :
12135 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12136 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12139 CFLAGS
="$ac_save_CFLAGS"
12140 CXXFLAGS
="$ac_save_CXXFLAGS"
12141 LIBS
="$ac_save_LIBS"
12144 if test "x$no_sdl" = x
; then
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12146 $as_echo "yes" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 if test "$SDL_CONFIG" = "no" ; then
12152 echo "*** The sdl-config script installed by SDL could not be found"
12153 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12154 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12155 echo "*** full path to sdl-config."
12157 if test -f conf.sdltest
; then
12160 echo "*** Could not run SDL test program, checking why..."
12161 CFLAGS
="$CFLAGS $SDL_CFLAGS"
12162 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
12163 LIBS
="$LIBS $SDL_LIBS"
12164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12170 int main(int argc, char *argv[])
12173 #define main K_and_R_C_main
12183 if ac_fn_c_try_link
"$LINENO"; then :
12184 echo "*** The test program compiled, but did not run. This usually means"
12185 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12186 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12187 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12188 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12189 echo "*** is required on your system"
12191 echo "*** If you have an old version installed, it is best to remove it, although"
12192 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12194 echo "*** The test program failed to compile or link. See the file config.log for the"
12195 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12196 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12197 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12199 rm -f core conftest.err conftest.
$ac_objext \
12200 conftest
$ac_exeext conftest.
$ac_ext
12201 CFLAGS
="$ac_save_CFLAGS"
12202 CXXFLAGS
="$ac_save_CXXFLAGS"
12203 LIBS
="$ac_save_LIBS"
12215 if test "x-$have_sdl" != "x-yes" ; then
12217 if test "x-$sdl_hidd" != "x-auto" ; then
12218 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12222 sdl_hidd_target
=kernel-hidd-sdl
12223 aros_host_sdl_cflags
=SDL_CFLAGS
12224 aros_host_sdl_libs
=SDL_LIBS
12228 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_sys_soundcard_h" = xyes
; then :
12234 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12235 oss_library_target
=workbench-libs-oss-unix
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12241 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12242 # Check whether --enable-dbus was given.
12243 if test "${enable_dbus+set}" = set; then :
12244 enableval
=$enable_dbus; dbus
="yes"
12249 if test "$dbus" = "yes" ; then
12251 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
12252 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
12253 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
12254 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12259 $as_echo "$dbus" >&6; }
12261 if test "$use_kernel_cc_wrapper" = "yes" ; then
12262 aros_kernel_cc
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12265 if test "${crosstools}" != "yes" ; then
12266 aros_target_toolchain
=no
12268 aros_target_toolchain
=yes
12284 # Compatability with other Amiga-like operation systems
12379 # Delinting target compiler flags
12403 # Native version related
12406 # Palm native version related
12412 # Unix/Hosted version related
12418 # Apple iOS related
12443 # Collect-aros stuff: "-ius" to ignore undefined symbols
12446 # C compiler related
12449 case "$aros_flavour" in
12450 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
12451 aros_flavour
="emulation" ;;
12452 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12453 aros_flavour
="emulation" ;;
12454 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
12455 aros_flavour
="standalone";;
12456 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12457 aros_flavour
="standalone";;
12458 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
12459 aros_flavour
="native" ;;
12460 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12461 aros_flavour
="native" ;;
12462 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
12463 aros_flavour
="linklib" ;;
12464 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12465 aros_flavour
="palmnative" ;;
12466 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12467 aros_flavour
="mac68knative" ;;
12468 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12469 aros_flavour
="ppcnative" ;;
12472 if test ! -d ${aros_inc_dir} ; then
12473 ${MKDIR} ${aros_inc_dir}
12475 if test ! -d ${aros_geninc_dir} ; then
12476 ${MKDIR} ${aros_geninc_dir}
12478 if test ! -d ${aros_hostcfg_dir} ; then
12479 ${MKDIR} ${aros_hostcfg_dir}
12481 if test ! -d ${aros_targetcfg_dir} ; then
12482 ${MKDIR} ${aros_targetcfg_dir}
12484 if test ! -d ${aros_tools_dir} ; then
12485 ${MKDIR} ${aros_tools_dir}
12487 if test ! -d ${aros_scripts_dir} ; then
12488 ${MKDIR} ${aros_scripts_dir}
12491 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12494 ac_config_commands
="$ac_config_commands compiler_executable"
12496 ac_config_commands
="$ac_config_commands genmf_executable"
12499 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_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.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-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-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"
12502 cat >confcache
<<\_ACEOF
12503 # This file is a shell script that caches the results of configure
12504 # tests run on this system so they can be shared between configure
12505 # scripts and configure runs, see configure's option --config-cache.
12506 # It is not useful on other systems. If it contains results you don't
12507 # want to keep, you may remove or edit it.
12509 # config.status only pays attention to the cache file if you give it
12510 # the --recheck option to rerun configure.
12512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12514 # following values.
12518 # The following way of writing the cache mishandles newlines in values,
12519 # but we know of no workaround that is simple, portable, and efficient.
12520 # So, we kill variables containing newlines.
12521 # Ultrix sh set writes to stderr and can't be redirected directly,
12522 # and sets the high bit in the cache file unless we assign to the vars.
12524 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12525 eval ac_val
=\$
$ac_var
12529 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12533 _ | IFS | as_nl
) ;; #(
12534 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12535 *) { eval $ac_var=; unset $ac_var;} ;;
12541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12542 *${as_nl}ac_space
=\
*)
12543 # `set' does not quote correctly, so add quotes: double-quote
12544 # substitution turns \\\\ into \\, and sed turns \\ into \.
12547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12550 # `set' quotes correctly as required by POSIX, so do not add quotes.
12551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12564 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12565 if test -w "$cache_file"; then
12566 if test "x$cache_file" != "x/dev/null"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12568 $as_echo "$as_me: updating cache $cache_file" >&6;}
12569 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12570 cat confcache
>"$cache_file"
12572 case $cache_file in #(
12574 mv -f confcache
"$cache_file"$$
&&
12575 mv -f "$cache_file"$$
"$cache_file" ;; #(
12577 mv -f confcache
"$cache_file" ;;
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12583 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12588 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12589 # Let make expand exec_prefix.
12590 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12592 DEFS
=-DHAVE_CONFIG_H
12597 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12598 # 1. Remove the extension, and $U if already installed.
12599 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12600 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12601 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12602 # will be set to the directory where LIBOBJS objects are built.
12603 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12604 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12606 LIBOBJS
=$ac_libobjs
12608 LTLIBOBJS
=$ac_ltlibobjs
12612 : "${CONFIG_STATUS=./config.status}"
12614 ac_clean_files_save
=$ac_clean_files
12615 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12617 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12619 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12621 # Generated by $as_me.
12622 # Run this file to recreate the current configuration.
12623 # Compiler output produced by configure, useful for debugging
12624 # configure, is in config.log if it exists.
12627 ac_cs_recheck=false
12630 SHELL=\${CONFIG_SHELL-$SHELL}
12633 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12634 ## -------------------- ##
12635 ## M4sh Initialization. ##
12636 ## -------------------- ##
12638 # Be more Bourne compatible
12639 DUALCASE
=1; export DUALCASE
# for MKS sh
12640 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12644 # is contrary to our usage. Disable this feature.
12645 alias -g '${1+"$@"}'='"$@"'
12646 setopt NO_GLOB_SUBST
12648 case `(set -o) 2>/dev/null` in #(
12660 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12661 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12664 # Prefer a ksh shell builtin over an external printf program on Solaris,
12665 # but without wasting forks for bash or zsh.
12666 if test -z "$BASH_VERSION$ZSH_VERSION" \
12667 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12668 as_echo='print
-r --'
12669 as_echo_n='print
-rn --'
12670 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12671 as_echo='printf %s
\n'
12672 as_echo_n='printf %s
'
12674 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12675 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12676 as_echo_n='/usr
/ucb
/echo -n'
12678 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12679 as_echo_n_body='eval
12683 expr "X$arg" : "X\\(.*\\)$as_nl";
12684 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12686 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12688 export as_echo_n_body
12689 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12691 export as_echo_body
12692 as_echo='sh
-c $as_echo_body as_echo
'
12695 # The user is always right.
12696 if test "${PATH_SEPARATOR+set}" != set; then
12698 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12699 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12706 # We need space, tab and new line, in precisely that order. Quoting is
12707 # there to prevent editors from complaining about space-tab.
12708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12709 # splitting by setting IFS to empty value.)
12712 # Find who we are. Look in the path if we contain no directory separator.
12715 *[\\/]* ) as_myself=$0 ;;
12716 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $PATH
12720 test -z "$as_dir" && as_dir=.
12721 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12727 # We did not find ourselves, most probably we were run as `sh COMMAND'
12728 # in which case we are not to be found in the path.
12729 if test "x$as_myself" = x
; then
12732 if test ! -f "$as_myself"; then
12733 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12737 # Unset variables that we do not need and which cause bugs (e.g. in
12738 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12739 # suppresses any "Segmentation fault" message there. '((' could
12740 # trigger a bug in pdksh 5.2.14.
12741 for as_var
in BASH_ENV ENV MAIL MAILPATH
12742 do eval test x\
${$as_var+set} = xset \
12743 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12756 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12759 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12760 # ----------------------------------------
12761 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12762 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12763 # script with STATUS, using 1 if that was 0.
12766 as_status
=$1; test $as_status -eq 0 && as_status
=1
12768 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12769 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12771 $as_echo "$as_me: error: $2" >&2
12772 as_fn_exit
$as_status
12776 # as_fn_set_status STATUS
12777 # -----------------------
12778 # Set $? to STATUS, without forking.
12779 as_fn_set_status
()
12782 } # as_fn_set_status
12784 # as_fn_exit STATUS
12785 # -----------------
12786 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12790 as_fn_set_status
$1
12796 # Portably unset VAR.
12799 { eval $1=; unset $1;}
12801 as_unset
=as_fn_unset
12802 # as_fn_append VAR VALUE
12803 # ----------------------
12804 # Append the text in VALUE to the end of the definition contained in VAR. Take
12805 # advantage of any shell optimizations that allow amortized linear growth over
12806 # repeated appends, instead of the typical quadratic growth present in naive
12808 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12809 eval 'as_fn_append ()
12820 # as_fn_arith ARG...
12821 # ------------------
12822 # Perform arithmetic evaluation on the ARGs, and store the result in the
12823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12824 # must be portable across $(()) and expr.
12825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12826 eval 'as_fn_arith ()
12833 as_val
=`expr "$@" || test $? -eq 1`
12838 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12839 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12845 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12846 as_basename
=basename
12851 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12857 as_me
=`$as_basename -- "$0" ||
12858 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12859 X"$0" : 'X\(//\)$' \| \
12860 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12862 sed '/^.*\/\([^/][^/]*\)\/*$/{
12876 # Avoid depending upon Character Ranges.
12877 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12878 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12879 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12880 as_cr_digits
='0123456789'
12881 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12883 ECHO_C
= ECHO_N
= ECHO_T
=
12884 case `echo -n x` in #(((((
12886 case `echo 'xy\c'` in
12887 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12889 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12896 rm -f conf$$ conf$$.exe conf$$.
file
12897 if test -d conf$$.dir
; then
12898 rm -f conf$$.dir
/conf$$.
file
12901 mkdir conf$$.dir
2>/dev
/null
12903 if (echo >conf$$.
file) 2>/dev
/null
; then
12904 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12906 # ... but there are two gotchas:
12907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12909 # In both cases, we have to default to `cp -p'.
12910 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12912 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12920 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12921 rmdir conf$$.dir
2>/dev
/null
12926 # Create "$as_dir" as a directory, including parents if necessary.
12931 -*) as_dir
=.
/$as_dir;;
12933 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12937 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12938 *) as_qdir
=$as_dir;;
12940 as_dirs
="'$as_qdir' $as_dirs"
12941 as_dir
=`$as_dirname -- "$as_dir" ||
12942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943 X"$as_dir" : 'X\(//\)[^/]' \| \
12944 X"$as_dir" : 'X\(//\)$' \| \
12945 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$as_dir" |
12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12951 /^X\(\/\/\)[^/].*/{
12964 test -d "$as_dir" && break
12966 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12967 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12971 if mkdir
-p .
2>/dev
/null
; then
12972 as_mkdir_p
='mkdir -p "$as_dir"'
12974 test -d .
/-p && rmdir .
/-p
12978 if test -x / >/dev
/null
2>&1; then
12979 as_test_x
='test -x'
12981 if ls -dL / >/dev
/null
2>&1; then
12988 if test -d "$1"; then
12994 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12995 ???[sx]*):;;*)false;;esac;fi
12999 as_executable_p
=$as_test_x
13001 # Sed expression to map a string onto a valid CPP name.
13002 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13004 # Sed expression to map a string onto a valid variable name.
13005 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13009 ## ----------------------------------- ##
13010 ## Main body of $CONFIG_STATUS script. ##
13011 ## ----------------------------------- ##
13013 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13016 # Save the log message, to keep $0 and so on meaningful, and to
13017 # report actual input values of CONFIG_FILES etc. instead of their
13018 # values after options handling.
13020 This file was extended by $as_me, which was
13021 generated by GNU Autoconf 2.68. Invocation command line was
13023 CONFIG_FILES = $CONFIG_FILES
13024 CONFIG_HEADERS = $CONFIG_HEADERS
13025 CONFIG_LINKS = $CONFIG_LINKS
13026 CONFIG_COMMANDS = $CONFIG_COMMANDS
13029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13034 case $ac_config_files in *"
13035 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13038 case $ac_config_headers in *"
13039 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13044 # Files that config.status was made for.
13045 config_files="$ac_config_files"
13046 config_headers="$ac_config_headers"
13047 config_commands="$ac_config_commands"
13051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13053 \`$as_me' instantiates files and other configuration actions
13054 from templates according to the current configuration. Unless the files
13055 and actions are specified as TAGs, all are instantiated by default.
13057 Usage: $0 [OPTION]... [TAG]...
13059 -h, --help print this help, then exit
13060 -V, --version print version number and configuration settings, then exit
13061 --config print configuration, then exit
13062 -q, --quiet, --silent
13063 do not print progress messages
13064 -d, --debug don't remove temporary files
13065 --recheck update $as_me by reconfiguring in the same conditions
13066 --file=FILE[:TEMPLATE]
13067 instantiate the configuration file FILE
13068 --header=FILE[:TEMPLATE]
13069 instantiate the configuration header FILE
13071 Configuration files:
13074 Configuration headers:
13077 Configuration commands:
13080 Report bugs to the package provider."
13083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13084 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13087 configured by $0, generated by GNU Autoconf 2.68,
13088 with options \\"\$ac_cs_config\\"
13090 Copyright (C) 2010 Free Software Foundation, Inc.
13091 This config.status script is free software; the Free Software Foundation
13092 gives unlimited permission to copy, distribute and modify it."
13096 test -n "\$AWK" || AWK=awk
13099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13100 # The default lists apply if the user does not specify any file.
13106 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13107 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13111 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13123 # Handling of the options.
13124 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13126 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13127 $as_echo "$ac_cs_version"; exit ;;
13128 --config |
--confi |
--conf |
--con |
--co |
--c )
13129 $as_echo "$ac_cs_config"; exit ;;
13130 --debug |
--debu |
--deb |
--de |
--d |
-d )
13132 --file |
--fil |
--fi |
--f )
13135 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13136 '') as_fn_error $?
"missing file argument" ;;
13138 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13139 ac_need_defaults
=false
;;
13140 --header |
--heade |
--head |
--hea )
13143 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13145 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13146 ac_need_defaults
=false
;;
13148 # Conflict between --help and --header
13149 as_fn_error $?
"ambiguous option: \`$1'
13150 Try \`$0 --help' for more information.";;
13151 --help |
--hel |
-h )
13152 $as_echo "$ac_cs_usage"; exit ;;
13153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13154 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13157 # This is an error.
13158 -*) as_fn_error $?
"unrecognized option: \`$1'
13159 Try \`$0 --help' for more information." ;;
13161 *) as_fn_append ac_config_targets
" $1"
13162 ac_need_defaults
=false
;;
13168 ac_configure_extra_args
=
13170 if $ac_cs_silent; then
13172 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13177 if \$ac_cs_recheck; then
13178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13181 CONFIG_SHELL='$SHELL'
13182 export CONFIG_SHELL
13187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13192 ## Running $as_me. ##
13198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 aros_host_exe_suffix=${aros_host_exe_suffix}
13204 aros_tools_dir=${aros_tools_dir}
13205 aros_target_cpu=${aros_target_cpu}
13206 aros_target_arch=${aros_target_arch}
13207 aros_target_suffix=${aros_target_suffix}
13208 orig_target_nm=${orig_target_nm}
13209 orig_target_as=${orig_target_as}
13210 orig_target_ar=${orig_target_ar}
13211 orig_target_ranlib=${orig_target_ranlib}
13212 orig_target_objdump=${orig_target_objdump}
13213 orig_target_objcopy=${orig_target_objcopy}
13214 orig_target_strip=${orig_target_strip}
13215 aros_kernel_ld=${aros_kernel_ld}
13218 aros_tools_dir=${aros_tools_dir}
13223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13225 # Handling of arguments.
13226 for ac_config_target
in $ac_config_targets
13228 case $ac_config_target in
13229 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13230 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
13231 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
13232 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13233 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
13234 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13235 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13236 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13237 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13238 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
13239 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13240 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13241 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13242 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
13243 "${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" ;;
13244 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
13245 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
13246 "${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" ;;
13247 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13248 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
13249 "${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" ;;
13251 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13256 # If the user did not use the arguments to specify the items to instantiate,
13257 # then the envvar interface is used. Set only those that are not.
13258 # We use the long form for the default assignment because of an extremely
13259 # bizarre bug on SunOS 4.1.3.
13260 if $ac_need_defaults; then
13261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13266 # Have a temporary directory for convenience. Make it in the build tree
13267 # simply because there is no reason against having it here, and in addition,
13268 # creating and moving files from /tmp can sometimes cause problems.
13269 # Hook for its removal unless debugging.
13270 # Note that there is a small window in which the directory will not be cleaned:
13271 # after its creation but before its name has been assigned to `$tmp'.
13275 trap 'exit_status=$?
13276 : "${ac_tmp:=$tmp}"
13277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13279 trap 'as_fn_exit 1' 1 2 13 15
13281 # Create a (secure) tmp directory for tmp files.
13284 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13288 tmp
=.
/conf$$
-$RANDOM
13289 (umask 077 && mkdir
"$tmp")
13290 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13293 # Set up the scripts for CONFIG_FILES section.
13294 # No need to generate them if there are no CONFIG_FILES.
13295 # This happens for instance with `./config.status config.h'.
13296 if test -n "$CONFIG_FILES"; then
13299 ac_cr
=`echo X | tr X '\015'`
13300 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13301 # But we know of no other shell where ac_cr would be empty at this
13302 # point, so we can use a bashism as a fallback.
13303 if test "x$ac_cr" = x
; then
13304 eval ac_cr
=\$
\'\\r
\'
13306 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13307 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13310 ac_cs_awk_cr
=$ac_cr
13313 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13318 echo "cat >conf$$subs.awk <<_ACEOF" &&
13319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13321 } >conf$$subs.sh ||
13322 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13325 for ac_last_try in false false false false false :; do
13326 . ./conf$$subs.sh ||
13327 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13329 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13330 if test $ac_delim_n = $ac_delim_num; then
13332 elif $ac_last_try; then
13333 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13335 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13338 rm -f conf$$subs.sh
13340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13341 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13345 s/^/S["/; s
/!.
*/"]=/
13355 s/\(.\{148\}\)..*/\1/
13357 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13362 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13369 s/\(.\{148\}\)..*/\1/
13371 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13375 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13380 ' <conf$$subs.awk | sed '
13385 ' >>$CONFIG_STATUS || ac_write_fail=1
13386 rm -f conf$$subs.awk
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13389 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13390 for (key in S) S_is_set[key] = 1
13396 nfields = split(line, field, "@
")
13398 len = length(field[1])
13399 for (i = 2; i < nfields; i++) {
13401 keylen = length(key)
13402 if (S_is_set[key]) {
13404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13405 len += length(value) + length(field[++i])
13416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13417 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13418 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13421 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13422 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13427 # trailing colons and then remove the whole line if VPATH becomes empty
13428 # (actually we leave an empty line to preserve line numbers).
13429 if test "x
$srcdir" = x.; then
13430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449 fi # test -n "$CONFIG_FILES"
13451 # Set up the scripts for CONFIG_HEADERS section.
13452 # No need to generate them if there are no CONFIG_HEADERS.
13453 # This happens for instance with `./config.status Makefile'.
13454 if test -n "$CONFIG_HEADERS"; then
13455 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13459 # Transform confdefs.h into an awk script `defines.awk', embedded as
13460 # here-document in config.status, that substitutes the proper values into
13461 # config.h.in to produce config.h.
13463 # Create a delimiter string that does not exist in confdefs.h, to ease
13464 # handling of long lines.
13466 for ac_last_try in false false :; do
13467 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13468 if test -z "$ac_tt"; then
13470 elif $ac_last_try; then
13471 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13473 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13477 # For the awk script, D is an array of macro values keyed by name,
13478 # likewise P contains macro parameters if any. Preserve backslash
13479 # newline sequences.
13481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13483 s/.\{148\}/&'"$ac_delim"'/g
13486 s/^[ ]*#[ ]*define[ ][ ]*/ /
13493 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13495 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13500 D["\
1"]=" \
3\\\\\\n
"\\/p
13502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13507 s/.\{148\}/&'"$ac_delim"'/g
13512 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13515 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13517 ' <confdefs.h | sed '
13518 s/'"$ac_delim"'/"\\\
13519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13522 for (key in D) D_is_set[key] = 1
13525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13527 split(line, arg, " ")
13528 if (arg[1] == "#") {
13532 defundef
= substr
(arg
[1], 2)
13535 split(mac1
, mac2
, "(") #)
13537 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13538 if (D_is_set
[macro
]) {
13539 # Preserve the white space surrounding the "#".
13540 print prefix
"define", macro P
[macro
] D
[macro
]
13543 # Replace #undef with comments. This is necessary, for example,
13544 # in the case of _POSIX_SOURCE, which is predefined and required
13545 # on some systems where configure will not decide to define it.
13546 if (defundef
== "undef") {
13547 print
"/*", prefix defundef
, macro
, "*/"
13555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13556 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13557 fi # test -n "$CONFIG_HEADERS"
13560 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13565 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13567 case $ac_mode$ac_tag in
13569 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13570 :[FH
]-) ac_tag
=-:-;;
13571 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13588 -) ac_f
="$ac_tmp/stdin";;
13589 *) # Look for the file first in the build tree, then in the source tree
13590 # (if the path is not absolute). The absolute path cannot be DOS-style,
13591 # because $ac_f cannot contain `:'.
13595 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13597 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13599 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13600 as_fn_append ac_file_inputs
" '$ac_f'"
13603 # Let's still pretend it is `configure' which instantiates (i.e., don't
13604 # use $as_me), people would be surprised to read:
13605 # /* config.h. Generated by config.status. */
13606 configure_input
='Generated from '`
13607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13609 if test x
"$ac_file" != x-
; then
13610 configure_input
="$ac_file. $configure_input"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13612 $as_echo "$as_me: creating $ac_file" >&6;}
13614 # Neutralize special characters interpreted by sed in replacement strings.
13615 case $configure_input in #(
13616 *\
&* |
*\|
* |
*\\* )
13617 ac_sed_conf_input
=`$as_echo "$configure_input" |
13618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13619 *) ac_sed_conf_input
=$configure_input;;
13623 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13624 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13629 ac_dir
=`$as_dirname -- "$ac_file" ||
13630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13631 X"$ac_file" : 'X\(//\)[^/]' \| \
13632 X"$ac_file" : 'X\(//\)$' \| \
13633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13634 $as_echo X"$ac_file" |
13635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13639 /^X\(\/\/\)[^/].*/{
13652 as_dir
="$ac_dir"; as_fn_mkdir_p
13656 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13658 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13659 # A ".." for each directory in $ac_dir_suffix.
13660 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13661 case $ac_top_builddir_sub in
13662 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13663 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13666 ac_abs_top_builddir
=$ac_pwd
13667 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13668 # for backward compatibility:
13669 ac_top_builddir
=$ac_top_build_prefix
13672 .
) # We are building in place.
13674 ac_top_srcdir
=$ac_top_builddir_sub
13675 ac_abs_top_srcdir
=$ac_pwd ;;
13676 [\\/]* | ?
:[\\/]* ) # Absolute name.
13677 ac_srcdir
=$srcdir$ac_dir_suffix;
13678 ac_top_srcdir
=$srcdir
13679 ac_abs_top_srcdir
=$srcdir ;;
13680 *) # Relative name.
13681 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13682 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13683 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13685 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13697 # If the template does not know about datarootdir, expand it.
13698 # FIXME: This hack should be removed a few years after 2.60.
13699 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13710 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13711 *datarootdir
*) ac_datarootdir_seen
=yes;;
13712 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13714 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717 ac_datarootdir_hack='
13718 s&@datadir@&$datadir&g
13719 s&@docdir@&$docdir&g
13720 s&@infodir@&$infodir&g
13721 s&@localedir@&$localedir&g
13722 s&@mandir@&$mandir&g
13723 s&\\\${datarootdir}&$datarootdir&g' ;;
13727 # Neutralize VPATH when `$srcdir' = `.'.
13728 # Shell code in configure.ac might set extrasub.
13729 # FIXME: do we really want to maintain this feature?
13730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13731 ac_sed_extra="$ac_vpsub
13734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13736 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13737 s|@configure_input@|
$ac_sed_conf_input|
;t t
13738 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13739 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13740 s
&@srcdir@
&$ac_srcdir&;t t
13741 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13742 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13743 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13744 s
&@builddir@
&$ac_builddir&;t t
13745 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13746 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13747 $ac_datarootdir_hack
13749 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13750 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13752 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13753 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13754 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13755 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13757 which seems to be undefined. Please make sure it is defined" >&5
13758 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13759 which seems to be undefined. Please make sure it is defined" >&2;}
13761 rm -f "$ac_tmp/stdin"
13763 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13764 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13766 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13772 if test x"$ac_file" != x-; then
13774 $as_echo "/* $configure_input */" \
13775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13776 } >"$ac_tmp/config.h" \
13777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13778 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13780 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13783 mv "$ac_tmp/config.h" "$ac_file" \
13784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13787 $as_echo "/* $configure_input */" \
13788 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13789 || as_fn_error $? "could not create -" "$LINENO" 5
13793 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13794 $as_echo "$as_me: executing $ac_file commands" >&6;}
13799 case $ac_file$ac_mode in
13800 "compiler_executable":C)
13801 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13803 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13804 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13808 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13810 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13811 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13812 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13813 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13814 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13815 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13816 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13818 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13820 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13828 ac_clean_files=$ac_clean_files_save
13830 test $ac_write_fail = 0 ||
13831 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13834 # configure is writing to config.log, and then calls config.status.
13835 # config.status does its own redirection, appending to config.log.
13836 # Unfortunately, on DOS this fails, as config.log is still kept open
13837 # by configure, so config.status won't be able to
write to it
; its
13838 # output is simply discarded. So we exec the FD to /dev/null,
13839 # effectively closing config.log, so it can be properly (re)opened and
13840 # appended to by config.status. When coming back to configure, we
13841 # need to make the FD available again.
13842 if test "$no_create" != yes; then
13844 ac_config_status_args
=
13845 test "$silent" = yes &&
13846 ac_config_status_args
="$ac_config_status_args --quiet"
13848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13851 # would make configure fail if this is the last instruction.
13852 $ac_cs_success || as_fn_exit
1
13854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13861 #XXX compatability...
13862 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
13864 if test -n "$aros_shared_cflags" ; then
13865 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13866 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg