2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars
='LTLIBOBJS
597 ignore_undefined_symbols
613 aros_nesting_supervisor
618 aros_host_x11_libdirs
619 aros_host_x11_includes
623 aros_default_wbheight
629 crosstools_cxx_target
631 aros_target_strip_flags
639 aros_kernel_objcflags
658 aros_target_cc_includes
673 aros_target_bootloader
703 aros_cflags_iquote_end
705 kernel_cflags_iquote_end
707 host_cflags_iquote_end
709 aros_target_nostdlib_ldflags
710 aros_target_detach_ldflags
711 aros_target_nix_ldflags
712 aros_target_nostartup_ldflags
713 aros_target_nostdinc_cflags
718 aros_target_ranlib_ln
719 aros_target_objdump_ln
720 aros_target_objcopy_ln
815 program_transform_name
828 enable_option_checking
837 enable_target_variant
853 enable_palm_debug_hack
854 enable_nesting_supervisor
866 ac_precious_vars
='build_alias
878 # Initialize some variables set by options.
880 ac_init_version
=false
881 ac_unrecognized_opts
=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name
=s
,x
,x
,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir
='${exec_prefix}/bin'
907 sbindir
='${exec_prefix}/sbin'
908 libexecdir
='${exec_prefix}/libexec'
909 datarootdir
='${prefix}/share'
910 datadir
='${datarootdir}'
911 sysconfdir
='${prefix}/etc'
912 sharedstatedir
='${prefix}/com'
913 localstatedir
='${prefix}/var'
914 includedir
='${prefix}/include'
915 oldincludedir
='/usr/include'
916 docdir
='${datarootdir}/doc/${PACKAGE}'
917 infodir
='${datarootdir}/info'
922 libdir
='${exec_prefix}/lib'
923 localedir
='${datarootdir}/locale'
924 mandir
='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\
$ac_option
938 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
951 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
954 -build |
--build |
--buil |
--bui |
--bu)
955 ac_prev
=build_alias
;;
956 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
957 build_alias
=$ac_optarg ;;
959 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
960 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
961 ac_prev
=cache_file
;;
962 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
963 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
964 cache_file
=$ac_optarg ;;
967 cache_file
=config.cache
;;
969 -datadir |
--datadir |
--datadi |
--datad)
971 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
972 datadir
=$ac_optarg ;;
974 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
975 |
--dataroo |
--dataro |
--datar)
976 ac_prev
=datarootdir
;;
977 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
978 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
979 datarootdir
=$ac_optarg ;;
981 -disable-* |
--disable-*)
982 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
985 as_fn_error $?
"invalid feature name: $ac_useropt"
986 ac_useropt_orig
=$ac_useropt
987 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep
=', ';;
995 eval enable_
$ac_useropt=no
;;
997 -docdir |
--docdir |
--docdi |
--doc |
--do)
999 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1000 docdir
=$ac_optarg ;;
1002 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1004 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1005 dvidir
=$ac_optarg ;;
1007 -enable-* |
--enable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=\
$ac_optarg ;;
1023 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1024 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1025 |
--exec |
--exe |
--ex)
1026 ac_prev
=exec_prefix
;;
1027 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1028 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1029 |
--exec=* |
--exe=* |
--ex=*)
1030 exec_prefix
=$ac_optarg ;;
1032 -gas |
--gas |
--ga |
--g)
1033 # Obsolete; use --with-gas.
1036 -help |
--help |
--hel |
--he |
-h)
1037 ac_init_help
=long
;;
1038 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1039 ac_init_help
=recursive
;;
1040 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1041 ac_init_help
=short
;;
1043 -host |
--host |
--hos |
--ho)
1044 ac_prev
=host_alias
;;
1045 -host=* |
--host=* |
--hos=* |
--ho=*)
1046 host_alias
=$ac_optarg ;;
1048 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1050 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1052 htmldir
=$ac_optarg ;;
1054 -includedir |
--includedir |
--includedi |
--included |
--include \
1055 |
--includ |
--inclu |
--incl |
--inc)
1056 ac_prev
=includedir
;;
1057 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1058 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1059 includedir
=$ac_optarg ;;
1061 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1063 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1064 infodir
=$ac_optarg ;;
1066 -libdir |
--libdir |
--libdi |
--libd)
1068 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1069 libdir
=$ac_optarg ;;
1071 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1072 |
--libexe |
--libex |
--libe)
1073 ac_prev
=libexecdir
;;
1074 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1075 |
--libexe=* |
--libex=* |
--libe=*)
1076 libexecdir
=$ac_optarg ;;
1078 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1079 ac_prev
=localedir
;;
1080 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1081 localedir
=$ac_optarg ;;
1083 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1084 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1085 ac_prev
=localstatedir
;;
1086 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1087 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1088 localstatedir
=$ac_optarg ;;
1090 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1092 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1093 mandir
=$ac_optarg ;;
1095 -nfp |
--nfp |
--nf)
1096 # Obsolete; use --without-fp.
1099 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1100 |
--no-cr |
--no-c |
-n)
1103 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1104 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1107 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1108 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1109 |
--oldin |
--oldi |
--old |
--ol |
--o)
1110 ac_prev
=oldincludedir
;;
1111 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1112 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1113 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1114 oldincludedir
=$ac_optarg ;;
1116 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1118 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1119 prefix
=$ac_optarg ;;
1121 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1122 |
--program-pre |
--program-pr |
--program-p)
1123 ac_prev
=program_prefix
;;
1124 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1125 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1126 program_prefix
=$ac_optarg ;;
1128 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1129 |
--program-suf |
--program-su |
--program-s)
1130 ac_prev
=program_suffix
;;
1131 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1132 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1133 program_suffix
=$ac_optarg ;;
1135 -program-transform-name |
--program-transform-name \
1136 |
--program-transform-nam |
--program-transform-na \
1137 |
--program-transform-n |
--program-transform- \
1138 |
--program-transform |
--program-transfor \
1139 |
--program-transfo |
--program-transf \
1140 |
--program-trans |
--program-tran \
1141 |
--progr-tra |
--program-tr |
--program-t)
1142 ac_prev
=program_transform_name
;;
1143 -program-transform-name=* |
--program-transform-name=* \
1144 |
--program-transform-nam=* |
--program-transform-na=* \
1145 |
--program-transform-n=* |
--program-transform-=* \
1146 |
--program-transform=* |
--program-transfor=* \
1147 |
--program-transfo=* |
--program-transf=* \
1148 |
--program-trans=* |
--program-tran=* \
1149 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1150 program_transform_name
=$ac_optarg ;;
1152 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1154 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1155 pdfdir
=$ac_optarg ;;
1157 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1159 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1163 |
-silent |
--silent |
--silen |
--sile |
--sil)
1166 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1168 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1170 sbindir
=$ac_optarg ;;
1172 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1173 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1174 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1176 ac_prev
=sharedstatedir
;;
1177 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1178 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1179 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1181 sharedstatedir
=$ac_optarg ;;
1183 -site |
--site |
--sit)
1185 -site=* |
--site=* |
--sit=*)
1188 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1190 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1191 srcdir
=$ac_optarg ;;
1193 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1194 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1195 ac_prev
=sysconfdir
;;
1196 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1197 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1198 sysconfdir
=$ac_optarg ;;
1200 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1201 ac_prev
=target_alias
;;
1202 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1203 target_alias
=$ac_optarg ;;
1205 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1208 -version |
--version |
--versio |
--versi |
--vers |
-V)
1209 ac_init_version
=: ;;
1212 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1215 as_fn_error $?
"invalid package name: $ac_useropt"
1216 ac_useropt_orig
=$ac_useropt
1217 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep
=', ';;
1225 eval with_
$ac_useropt=\
$ac_optarg ;;
1227 -without-* |
--without-*)
1228 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1231 as_fn_error $?
"invalid package name: $ac_useropt"
1232 ac_useropt_orig
=$ac_useropt
1233 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep
=', ';;
1241 eval with_
$ac_useropt=no
;;
1244 # Obsolete; use --with-x.
1247 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1248 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1249 ac_prev
=x_includes
;;
1250 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1251 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1252 x_includes
=$ac_optarg ;;
1254 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1255 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1256 ac_prev
=x_libraries
;;
1257 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1258 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1259 x_libraries
=$ac_optarg ;;
1261 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1266 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1270 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\
$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 if test -n "$ac_prev"; then
1287 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $?
"missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val
=\$
$ac_var
1306 # Remove trailing slashes.
1309 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\
$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$
]* | ?
:[\\/]* ) continue;;
1315 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1317 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target
=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x
; then
1329 if test "x$build_alias" = x
; then
1330 cross_compiling
=maybe
1331 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used" >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1341 test "$silent" = yes && exec 6>/dev
/null
1344 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di
=`ls -di .` &&
1346 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $?
"working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $?
"pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted
=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir
=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted
=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1388 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var
in $ac_precious_vars; do
1405 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1407 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures this package to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --x-includes=DIR X include files are
in DIR
1477 --x-libraries=DIR X library files are
in DIR
1480 --build=BUILD configure
for building on BUILD
[guessed
]
1481 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1485 if test -n "$ac_init_help"; then
1490 --disable-option-checking ignore unrecognized
--enable/--with options
1491 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1492 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1493 --enable-build-type=TYPE
1494 Select the build
type. Available types are
:
1495 personal
, nightly
, snapshot
, milestone
, release. Do
1496 NOT use this option unless you know what you are
1497 doing
! (default
=personal
)
1498 --enable-debug=list Enable different types of debug. Commas or
1499 whitespaces can be used to separate the items
in the
1500 list. Available types of debug are
: all
, none
,
1501 messages
, stack
, mungwall
, modules
, symbols. If no
1502 list is provided
then "all" is assumed.
1504 --enable-crosstools Build cross-compiler toolchains
if necessary
1506 --enable-distcc Use distcc as a front end to the compiler
1508 --enable-ccache Use ccache as a front end to the compiler
1510 --enable-target-variant=NAME
1511 Enable a specific target variant
(default
=none
)
1512 --enable-includes=dir Alternative system include directory
1513 --enable-palm-debug-hack
1514 Enable palm debug output hack
in palm native
1516 --enable-nesting-supervisor
1517 Enable nesting supervisor support
in unix
1519 --disable-mmu Disable MMU support
(default
=enabled
)
1520 --enable-x11-hidd build X11 hidd
for hosted
(default
=auto
)
1521 --enable-x11-shm use X11 shared memory
(default
=auto
)
1522 --enable-x11-vidmode use X11 vidmode extension
(default
=auto
)
1523 --enable-sdl-hidd build SDL hidd
for hosted
(default
=auto
)
1524 --disable-sdltest Do not try to compile and run a
test SDL program
1525 --enable-dbus Enable DBUS support via dbus.library
(default
=no
)
1528 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1529 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1530 --with-gcc-version=VERSION
1531 Use
host gcc-VERSION
for building AROS
1532 --with-optimization=FLAGS
1533 Use optimization flags FLAGS
(default
=-O2).
1534 --with-paranoia=FLAGS CC flags to
enable paranoia
1535 --with-xcode=PATH Specify XCode path
for iOS targets
1536 (default
=/Developer
).
1537 --with-ios-version=VERSION
1538 Specify minimum supported iOS version
(default
=3.0).
1539 --with-ios-sdk=VERSION Use iOS SDK version VERSION
(default
=4.1).
1540 --with-sdk=PATH Specify Android SDK path
1541 (default
=$default_android_sdk).
1542 --with-ndk=PATH Specify Android NDK path
1543 (default
=$default_android_ndk).
1544 --with-android-version=VERSION
1545 Use Android platform VERSION
(default
=2.2).
1546 --with-crosstools=DIR Where to
install or search
for cross tools binaries
1547 --with-aros-gcc=VERSION Use aros-gcc-VERSION
for building AROS
1548 --with-portssources=DIR Where to download sourcecode
for external ports
1549 --with-bootloader=NAME Use a specific bootloader
1550 --with-iconset=NAME Use a specific Icon-set
(default
=Gorilla
).
1551 --with-theme=NAME Use a specific GUI Theme
1552 --with-resolution=XRESxYRESxDEPTH
1553 Default resolution of the initial WorkbenchScreen
1554 --with-serial-debug Enable serial debug output
in native
(default
=no
)
1555 --with-x use the X Window System
1556 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
1557 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
1559 Some influential environment variables
:
1560 CC C compiler
command
1561 CFLAGS C compiler flags
1562 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1563 nonstandard directory
<lib dir
>
1564 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1565 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1566 you have headers
in a nonstandard directory
<include dir
>
1568 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1570 Use these variables to override the choices made by
`configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to the package provider.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1637 generated by GNU Autoconf 2.67
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
1659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1660 *) ac_try_echo
=$ac_try;;
1662 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_compile") 2>conftest.err
1666 if test -s conftest.err
; then
1667 grep -v '^ *+' conftest.err
>conftest.er1
1668 cat conftest.er1
>&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest.
$ac_objext; then :
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.
$ac_ext >&5
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1684 as_fn_set_status
$ac_retval
1686 } # ac_fn_c_try_compile
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1694 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1730 ac_fn_c_check_header_mongrel ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if eval "test \"\${$3+set}\"" = set; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval "test \"\${$3+set}\"" = set; then :
1737 $as_echo_n "(cached) " >&6
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1743 # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1754 ac_header_compiler=no
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1770 ac_header_preproc=no
1772 rm -f conftest.err conftest.i conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1776 # So? What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval "test \"\${$3+set}\"" = set; then :
1800 $as_echo_n "(cached) " >&6
1802 eval "$3=\$ac_header_compiler"
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_check_header_mongrel
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1822 *) ac_try_echo
=$ac_try;;
1824 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 as_fn_set_status $ac_retval
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval "test \"\${$3+set}\"" = set; then :
1864 $as_echo_n "(cached) " >&6
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1871 if ac_fn_c_try_compile "$LINENO"; then :
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_header_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1895 *) ac_try_echo
=$ac_try;;
1897 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1901 if test -s conftest.err
; then
1902 grep -v '^ *+' conftest.err
>conftest.er1
1903 cat conftest.er1
>&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest
$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 $as_test_x conftest
$ac_exeext
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.
$ac_ext >&5
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1927 as_fn_set_status
$ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1932 # ----------------------------------------------------
1933 # Tries to find if the field MEMBER exists in type AGGR, after including
1934 # INCLUDES, setting cache variable VAR accordingly.
1935 ac_fn_c_check_member
()
1937 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1939 $as_echo_n "checking for $2.$3... " >&6; }
1940 if eval "test \"\${$4+set}\"" = set; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1956 if ac_fn_c_try_compile
"$LINENO"; then :
1959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1966 if (sizeof ac_aggr.$3)
1972 if ac_fn_c_try_compile
"$LINENO"; then :
1977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1986 } # ac_fn_c_check_member
1988 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1989 # ---------------------------------------------
1990 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1992 ac_fn_c_check_decl
()
1994 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1995 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1996 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1998 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1999 if eval "test \"\${$3+set}\"" = set; then :
2000 $as_echo_n "(cached) " >&6
2002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2008 #ifndef $as_decl_name
2010 (void) $as_decl_use;
2012 (void) $as_decl_name;
2020 if ac_fn_c_try_compile
"$LINENO"; then :
2025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2032 } # ac_fn_c_check_decl
2034 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2035 # -------------------------------------------
2036 # Tests whether TYPE exists after having included INCLUDES, setting cache
2037 # variable VAR accordingly.
2038 ac_fn_c_check_type
()
2040 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval "test \"\${$3+set}\"" = set; then :
2044 $as_echo_n "(cached) " >&6
2047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2059 if ac_fn_c_try_compile
"$LINENO"; then :
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2086 } # ac_fn_c_check_type
2088 # ac_fn_c_check_func LINENO FUNC VAR
2089 # ----------------------------------
2090 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2091 ac_fn_c_check_func
()
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if eval "test \"\${$3+set}\"" = set; then :
2097 $as_echo_n "(cached) " >&6
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2103 #define $2 innocuous_$2
2105 /* System header to define __stub macros and hopefully few prototypes,
2106 which can conflict with char $2 (); below.
2107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2108 <limits.h> exists even on freestanding compilers. */
2111 # include <limits.h>
2113 # include <assert.h>
2118 /* Override any GCC internal prototype to avoid an error.
2119 Use char because int might match the return type of a GCC
2120 builtin and then its argument prototype would still apply. */
2125 /* The GNU C library defines this for functions which it implements
2126 to always fail with ENOSYS. Some functions are actually named
2127 something starting with __ and the normal name is an alias. */
2128 #if defined __stub_$2 || defined __stub___$2
2140 if ac_fn_c_try_link
"$LINENO"; then :
2145 rm -f core conftest.err conftest.
$ac_objext \
2146 conftest
$ac_exeext conftest.
$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2153 } # ac_fn_c_check_func
2154 cat >config.log
<<_ACEOF
2155 This file contains any messages produced by compilers while
2156 running configure, to aid debugging if configure makes a mistake.
2158 It was created by $as_me, which was
2159 generated by GNU Autoconf 2.67. Invocation command line was
2171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2178 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2180 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2181 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2183 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2184 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2185 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2186 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir
=.
2195 $as_echo "PATH: $as_dir"
2211 # Keep a trace of the command line.
2212 # Strip out --no-create and --no-recursion so they do not pile up.
2213 # Strip out --silent because we don't want to record it for future runs.
2214 # Also quote any args containing shell meta-characters.
2215 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_must_keep_next
=false
2225 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2226 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2227 |
-silent |
--silent |
--silen |
--sile |
--sil)
2230 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2235 as_fn_append ac_configure_args1
" '$ac_arg'"
2236 if test $ac_must_keep_next = true
; then
2237 ac_must_keep_next
=false
# Got value, back to normal.
2240 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2241 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2242 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2243 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2244 case "$ac_configure_args0 " in
2245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 -* ) ac_must_keep_next
=true
;;
2251 as_fn_append ac_configure_args
" '$ac_arg'"
2256 { ac_configure_args0
=; unset ac_configure_args0
;}
2257 { ac_configure_args1
=; unset ac_configure_args1
;}
2259 # When interrupted or exit'd, cleanup temporary files, and complete
2260 # config.log. We remove comments because anyway the quotes in there
2261 # would cause problems or look ugly.
2262 # WARNING: Use '\'' to represent an apostrophe within the trap.
2263 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2264 trap 'exit_status=$?
2265 # Save into config.log some information that might help in debugging.
2269 $as_echo "## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##"
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 $as_echo "## ----------------- ##
2306 ## Output variables. ##
2307 ## ----------------- ##"
2309 for ac_var in $ac_subst_vars
2311 eval ac_val=\$$ac_var
2313 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315 $as_echo "$ac_var='\''$ac_val'\''"
2319 if test -n "$ac_subst_files"; then
2320 $as_echo "## ------------------- ##
2321 ## File substitutions. ##
2322 ## ------------------- ##"
2324 for ac_var
in $ac_subst_files
2326 eval ac_val
=\$
$ac_var
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 $as_echo "$ac_var='\''$ac_val'\''"
2335 if test -s confdefs.h; then
2336 $as_echo "## ----------- ##
2343 test "$ac_signal" != 0 &&
2344 $as_echo "$as_me: caught signal $ac_signal"
2345 $as_echo "$as_me: exit $exit_status"
2347 rm -f core *.core core.conftest.* &&
2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 for ac_signal
in 1 2 13 15; do
2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest
* confdefs.h
2359 $as_echo "/* confdefs.h */" > confdefs.h
2361 # Predefined preprocessor variables.
2363 cat >>confdefs.h
<<_ACEOF
2364 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 cat >>confdefs.h
<<_ACEOF
2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 cat >>confdefs.h
<<_ACEOF
2372 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 cat >>confdefs.h
<<_ACEOF
2376 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 cat >>confdefs.h
<<_ACEOF
2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 cat >>confdefs.h
<<_ACEOF
2384 #define PACKAGE_URL "$PACKAGE_URL"
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2392 if test -n "$CONFIG_SITE"; then
2393 # We do not want a PATH search for config.site.
2394 case $CONFIG_SITE in #((
2395 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2396 */*) ac_site_file1
=$CONFIG_SITE;;
2397 *) ac_site_file1
=.
/$CONFIG_SITE;;
2399 elif test "x$prefix" != xNONE
; then
2400 ac_site_file1
=$prefix/share
/config.site
2401 ac_site_file2
=$prefix/etc
/config.site
2403 ac_site_file1
=$ac_default_prefix/share
/config.site
2404 ac_site_file2
=$ac_default_prefix/etc
/config.site
2406 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2408 test "x$ac_site_file" = xNONE
&& continue
2409 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2411 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2412 sed 's/^/| /' "$ac_site_file" >&5
2414 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 as_fn_error $?
"failed to load site script $ac_site_file
2417 See \`config.log' for more details" "$LINENO" 5 ; }
2421 if test -r "$cache_file"; then
2422 # Some versions of bash will fail to source /dev/null (special files
2423 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2424 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2426 $as_echo "$as_me: loading cache $cache_file" >&6;}
2428 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2429 *) .
"./$cache_file";;
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2434 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438 as_fn_append ac_header_list
" stdlib.h"
2439 as_fn_append ac_header_list
" unistd.h"
2440 as_fn_append ac_header_list
" sys/param.h"
2441 # Check that the precious variables saved in the cache have kept the same
2443 ac_cache_corrupted
=false
2444 for ac_var
in $ac_precious_vars; do
2445 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2446 eval ac_new_set
=\
$ac_env_${ac_var}_set
2447 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2448 eval ac_new_val
=\
$ac_env_${ac_var}_value
2449 case $ac_old_set,$ac_new_set in
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453 ac_cache_corrupted
=: ;;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457 ac_cache_corrupted
=: ;;
2460 if test "x$ac_old_val" != "x$ac_new_val"; then
2461 # differences in whitespace do not lead to failure.
2462 ac_old_val_w
=`echo x $ac_old_val`
2463 ac_new_val_w
=`echo x $ac_new_val`
2464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467 ac_cache_corrupted
=:
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471 eval $ac_var=\
$ac_old_val
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2474 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 # Pass precious variables to config.status.
2480 if test "$ac_new_set" = set; then
2482 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 *) ac_arg
=$ac_var=$ac_new_val ;;
2485 case " $ac_configure_args " in
2486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2487 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2491 if $ac_cache_corrupted; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2503 ac_cpp
='$CPP $CPPFLAGS'
2504 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2511 for ac_dir
in scripts
/autoconf
"$srcdir"/scripts
/autoconf
; do
2512 if test -f "$ac_dir/install-sh"; then
2514 ac_install_sh
="$ac_aux_dir/install-sh -c"
2516 elif test -f "$ac_dir/install.sh"; then
2518 ac_install_sh
="$ac_aux_dir/install.sh -c"
2520 elif test -f "$ac_dir/shtool"; then
2522 ac_install_sh
="$ac_aux_dir/shtool install -c"
2526 if test -z "$ac_aux_dir"; then
2527 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2530 # These three variables are undocumented and unsupported,
2531 # and are intended to be withdrawn in a future Autoconf release.
2532 # They can cause serious problems if a builder's source tree is in a directory
2533 # whose full name contains unusual characters.
2534 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2535 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2536 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2540 # Check what host we are running on.
2541 # If a target is not suggested, we use this one.
2542 # Note that what we call a target, Autoconf calls a host.
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2545 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if test "${ac_cv_build+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2552 ac_build_alias
=$build_alias
2553 test "x$ac_build_alias" = x
&&
2554 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x
&&
2556 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2565 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5 ;;
2568 ac_save_IFS
=$IFS; IFS
='-'
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2578 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2586 if test "x$host_alias" = x
; then
2587 ac_cv_host
=$ac_cv_build
2589 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2598 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5 ;;
2601 ac_save_IFS
=$IFS; IFS
='-'
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2611 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2615 # The AROS target is slightly different to the normal GNU style
2616 # format. We don't have the middle part, and we reverse the order
2617 # of the $(CPU) and $(OS) bits.
2619 # Don't strip the version of the target yet, it might be
2620 # useful on some systems.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2623 $as_echo_n "checking for AROS style target... " >&6; }
2625 if test "$target" = "NONE" ; then
2626 target
=$host_os-$host_cpu
2628 if test "$target" = "" ; then
2629 target
=$host_os-$host_cpu
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2633 $as_echo "$target" >&6; }
2635 if test "$host_os" = "mingw32" ; then
2639 #don't know where else to put this...
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2641 $as_echo_n "checking building AROS in... " >&6; }
2642 AROS_BUILDDIR
=`${PWDCMD-pwd}`
2643 AROS_BUILDDIR_UNIX
=${PWD}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2645 $as_echo "$AROS_BUILDDIR" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2648 $as_echo_n "checking AROS source in... " >&6; }
2649 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2652 $as_echo "$SRCDIR" >&6; }
2654 # Parse the target field into something useful.
2656 target_os
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2657 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2660 aros_default_wbwidth
=800
2661 aros_default_wbheight
=600
2662 aros_default_wbdepth
=4
2665 # The first step is to find the host binaries.
2666 # Check for a compiler.
2668 ac_cpp
='$CPP $CPPFLAGS'
2669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2672 if test -n "$ac_tool_prefix"; then
2673 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2674 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if test "${ac_cv_prog_CC+set}" = set; then :
2678 $as_echo_n "(cached) " >&6
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC
="$CC" # Let the user override the test.
2683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir
=.
2688 for ac_exec_ext
in '' $ac_executable_extensions; do
2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2690 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 if test -n "$CC"; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2703 $as_echo "$CC" >&6; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706 $as_echo "no" >&6; }
2711 if test -z "$ac_cv_prog_CC"; then
2713 # Extract the first word of "gcc", so it can be a program name with args.
2714 set dummy gcc
; ac_word
=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$ac_ct_CC"; then
2721 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 for ac_exec_ext
in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_ac_ct_CC
="gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2743 $as_echo "$ac_ct_CC" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2749 if test "x$ac_ct_CC" = x
; then
2752 case $cross_compiling:$ac_tool_warned in
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned
=yes ;;
2764 if test -z "$CC"; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2767 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC
="$CC" # Let the user override the test.
2776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir
=.
2781 for ac_exec_ext
in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2796 $as_echo "$CC" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2805 if test -z "$CC"; then
2806 # Extract the first word of "cc", so it can be a program name with args.
2807 set dummy cc
; ac_word
=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC
="$CC" # Let the user override the test.
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir
=.
2822 for ac_exec_ext
in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2825 ac_prog_rejected
=yes
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test $ac_prog_rejected = yes; then
2837 # We found a bogon in the path, so make sure we never use it.
2838 set dummy
$ac_cv_prog_CC
2840 if test $# != 0; then
2841 # We chose a different compiler from the bogus one.
2842 # However, it has the same basename, so the bogon will be chosen
2843 # first if we set CC to just the basename; use the full file name.
2845 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2851 if test -n "$CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853 $as_echo "$CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 if test -n "$ac_tool_prefix"; then
2863 for ac_prog
in cl.exe
2865 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2866 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then :
2870 $as_echo_n "(cached) " >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC
="$CC" # Let the user override the test.
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 for ac_exec_ext
in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$CC" && break
2905 if test -z "$CC"; then
2907 for ac_prog
in cl.exe
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy
$ac_prog; ac_word
=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_ac_ct_CC
="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2946 test -n "$ac_ct_CC" && break
2949 if test "x$ac_ct_CC" = x
; then
2952 case $cross_compiling:$ac_tool_warned in
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned
=yes ;;
2965 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967 as_fn_error $?
"no acceptable C compiler found in \$PATH
2968 See \`config.log' for more details" "$LINENO" 5 ; }
2970 # Provide some information about the compiler.
2971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974 for ac_option
in --version -v -V -qversion; do
2975 { { ac_try
="$ac_compiler $ac_option >&5"
2977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2981 $as_echo "$ac_try_echo"; } >&5
2982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2984 if test -s conftest.err; then
2986 ... rest of stderr output deleted ...
2987 10q' conftest.err >conftest.er1
2988 cat conftest.er1 >&5
2990 rm -f conftest.er1 conftest.err
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996 /* end confdefs.h. */
3006 ac_clean_files_save=$ac_clean_files
3007 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3008 # Try to create an executable without -o first, disregard a.out.
3009 # It will help us diagnose broken compilers, and finding out an intuition
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3012 $as_echo_n "checking whether the C compiler works... " >&6; }
3013 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3015 # The possible output files:
3016 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019 for ac_file in $ac_files
3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3023 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028 if { { ac_try="$ac_link_default"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link_default") 2>&5
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; then :
3039 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3040 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3041 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3042 # so that the user can short-circuit this test for compilers unknown to
3044 for ac_file
in $ac_files ''
3046 test -f "$ac_file" ||
continue
3048 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3051 # We found the default executable, but exeext='' is most
3055 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3057 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 # We set ac_cv_exeext here because the later test for it is not
3060 # safe: cross compilers may not add the suffix if given an `-o'
3061 # argument, so we may need to know it at that point already.
3062 # Even if this section looks crufty: it has the advantage of
3069 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3074 if test -z "$ac_file"; then :
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 $as_echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.
$ac_ext >&5
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error
77 "C compiler cannot create executables
3083 See \`config.log' for more details" "$LINENO" 5 ; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3086 $as_echo "yes" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3091 $as_echo "$ac_file" >&6; }
3092 ac_exeext
=$ac_cv_exeext
3094 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3095 ac_clean_files
=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3097 $as_echo_n "checking for suffix of executables... " >&6; }
3098 if { { ac_try
="$ac_link"
3100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_link") 2>&5
3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3108 test $ac_status = 0; }; then :
3109 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3110 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3111 # work properly (i.e., refer to `conftest.exe'), while it won't with
3113 for ac_file
in conftest.exe conftest conftest.
*; do
3114 test -f "$ac_file" ||
continue
3116 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3117 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3126 See \`config.log' for more details" "$LINENO" 5 ; }
3128 rm -f conftest conftest
$ac_cv_exeext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3130 $as_echo "$ac_cv_exeext" >&6; }
3132 rm -f conftest.
$ac_ext
3133 EXEEXT
=$ac_cv_exeext
3135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3141 FILE *f = fopen ("conftest.out", "w");
3142 return ferror (f) || fclose (f) != 0;
3148 ac_clean_files
="$ac_clean_files conftest.out"
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3152 $as_echo_n "checking whether we are cross compiling... " >&6; }
3153 if test "$cross_compiling" != yes; then
3154 { { ac_try
="$ac_link"
3156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 if { ac_try='./conftest$ac_cv_exeext'
3166 { { case "(($ac_try" in
3167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3168 *) ac_try_echo
=$ac_try;;
3170 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_try") 2>&5
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; }; then
3178 if test "$cross_compiling" = maybe
; then
3181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $?
"cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details" "$LINENO" 5 ; }
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3190 $as_echo "$cross_compiling" >&6; }
3192 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3193 ac_clean_files
=$ac_clean_files_save
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3195 $as_echo_n "checking for suffix of object files... " >&6; }
3196 if test "${ac_cv_objext+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3210 rm -f conftest.o conftest.obj
3211 if { { ac_try
="$ac_compile"
3213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compile") 2>&5
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 for ac_file in conftest.o conftest.obj conftest.*; do
3223 test -f "$ac_file" || continue;
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3226 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3237 See \
`config.log' for more details" "$LINENO" 5 ; }
3239 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3242 $as_echo "$ac_cv_objext" >&6; }
3243 OBJEXT=$ac_cv_objext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3247 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3275 if test $ac_compiler_gnu = yes; then
3280 ac_test_CFLAGS=${CFLAGS+set}
3281 ac_save_CFLAGS=$CFLAGS
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3284 if test "${ac_cv_prog_cc_g+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3287 ac_save_c_werror_flag=$ac_c_werror_flag
3288 ac_c_werror_flag=yes
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 if ac_fn_c_try_compile "$LINENO"; then :
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3320 ac_c_werror_flag=$ac_save_c_werror_flag
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3333 if ac_fn_c_try_compile "$LINENO"; then :
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_c_werror_flag=$ac_save_c_werror_flag
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3344 $as_echo "$ac_cv_prog_cc_g" >&6; }
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3354 if test "$GCC" = yes; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3362 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_cv_prog_cc_c89=no
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3387 s = g (p, va_arg (v,int));
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 if ac_fn_c_try_compile "$LINENO"; then :
3425 ac_cv_prog_cc_c89=$ac_arg
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3430 rm -f conftest.$ac_ext
3435 case "x$ac_cv_prog_cc_c89" in
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3438 $as_echo "none needed" >&6; } ;;
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3441 $as_echo "unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3445 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3447 if test "x$ac_cv_prog_cc_c89" != xno; then :
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 case $ac_cv_prog_cc_stdc in #(
3459 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3462 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3463 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3466 ac_cv_prog_cc_c99=no
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3471 #include <stdbool.h>
3476 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3477 #define debug(...) fprintf (stderr, __VA_ARGS__)
3478 #define showlist(...) puts (#__VA_ARGS__)
3479 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3481 test_varargs_macros (void)
3486 debug ("X = %d\n", x);
3487 showlist (The first, second, and third items.);
3488 report (x>y, "x is %d but y is %d", x, y);
3491 // Check long long types.
3492 #define BIG64 18446744073709551615ull
3493 #define BIG32 4294967295ul
3494 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3496 your preprocessor is broken;
3500 your preprocessor is broken;
3502 static long long int bignum = -9223372036854775807LL;
3503 static unsigned long long int ubignum = BIG64;
3505 struct incomplete_array
3513 const wchar_t *name;
3517 typedef const char *ccp;
3520 test_restrict (ccp restrict text)
3522 // See if C++-style comments work.
3523 // Iterate through items via the restricted pointer.
3524 // Also check for declarations in for loops.
3525 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3530 // Check varargs and va_copy.
3532 test_varargs (const char *format, ...)
3535 va_start (args, format);
3537 va_copy (args_copy, args);
3548 str = va_arg (args_copy, const char *);
3551 number = va_arg (args_copy, int);
3554 fnumber = va_arg (args_copy, double);
3569 _Bool success = false;
3572 if (test_restrict ("String literal") == 0)
3574 char *restrict newvar = "Another string";
3577 test_varargs ("s, d' f .", "string", 65, 34.234);
3578 test_varargs_macros ();
3580 // Check flexible array members.
3581 struct incomplete_array *ia =
3582 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3584 for (int i = 0; i < ia->datasize; ++i)
3585 ia->data[i] = i * 1.234;
3587 // Check named initializers.
3588 struct named_init ni = {
3590 .name = L"Test wide string",
3591 .average = 543.34343,
3596 int dynamic_array[ni.number];
3597 dynamic_array[ni.number - 1] = 543;
3599 // work around unused variable warnings
3600 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3601 || dynamic_array[ni.number - 1] != 543);
3607 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3609 CC="$ac_save_CC $ac_arg"
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_c99=$ac_arg
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c99" != "xno" && break
3616 rm -f conftest.$ac_ext
3621 case "x$ac_cv_prog_cc_c99" in
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3624 $as_echo "none needed" >&6; } ;;
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3627 $as_echo "unsupported" >&6; } ;;
3629 CC="$CC $ac_cv_prog_cc_c99"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3631 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3633 if test "x$ac_cv_prog_cc_c99" != xno; then :
3634 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 ac_cv_prog_cc_c89=no
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 #include <sys/types.h>
3648 #include <sys/stat.h>
3649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650 struct buf { int x; };
3651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652 static char *e (p, i)
3658 static char *f (char * (*g) (char **, int), char **p, ...)
3663 s = g (p, va_arg (v,int));
3668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std. */
3675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3678 inside strings and character constants. */
3680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682 int test (int i, double x);
3683 struct s1 {int (*f) (int a);};
3684 struct s2 {int (*f) (double a);};
3685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c89=$ac_arg
3703 rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706 rm -f conftest.$ac_ext
3711 case "x$ac_cv_prog_cc_c89" in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 $as_echo "none needed" >&6; } ;;
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717 $as_echo "unsupported" >&6; } ;;
3719 CC="$CC $ac_cv_prog_cc_c89"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3721 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723 if test "x$ac_cv_prog_cc_c89" != xno; then :
3724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3726 ac_cv_prog_cc_stdc=no
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3733 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3734 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3735 $as_echo_n "(cached) " >&6
3738 case $ac_cv_prog_cc_stdc in #(
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3741 $as_echo "unsupported" >&6; } ;; #(
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3744 $as_echo "none needed" >&6; } ;; #(
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3747 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3757 # On Suns, sometimes $CPP names a directory.
3758 if test -n "$CPP" && test -d "$CPP"; then
3761 if test -z "$CPP"; then
3762 if test "${ac_cv_prog_CPP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3765 # Double quotes because CPP needs to be expanded
3766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3780 # include <limits.h>
3782 # include <assert.h>
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3789 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.i conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ac_nonexistent.h>
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: success on invalid input.
3804 # Passes both tests.
3808 rm -f conftest.err conftest.i conftest.$ac_ext
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.i conftest.err conftest.
$ac_ext
3813 if $ac_preproc_ok; then :
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3826 $as_echo "$CPP" >&6; }
3828 for ac_c_preproc_warn_flag
in '' yes
3830 # Use a header file that comes with gcc, so configuring glibc
3831 # with a fresh cross-compiler works.
3832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833 # <limits.h> exists even on freestanding compilers.
3834 # On the NeXT, cc -E runs the code through the compiler's parser,
3835 # not just through cpp. "Syntax error" is here to catch this case.
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3839 # include <limits.h>
3841 # include <assert.h>
3845 if ac_fn_c_try_cpp
"$LINENO"; then :
3848 # Broken: fails on valid input.
3851 rm -f conftest.err conftest.i conftest.
$ac_ext
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3859 if ac_fn_c_try_cpp
"$LINENO"; then :
3860 # Broken: success on invalid input.
3863 # Passes both tests.
3867 rm -f conftest.err conftest.i conftest.
$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.i conftest.err conftest.
$ac_ext
3872 if $ac_preproc_ok; then :
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details" "$LINENO" 5 ; }
3882 ac_cpp
='$CPP $CPPFLAGS'
3883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3888 # Check for a compatible awk
3889 for ac_prog
in gawk nawk
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy
$ac_prog; ac_word
=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_AWK+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3898 if test -n "$AWK"; then
3899 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir
=.
3906 for ac_exec_ext
in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_AWK
="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 if test -n "$AWK"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921 $as_echo "$AWK" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$AWK" && break
3931 if test "$AWK" = ""; then
3932 as_fn_error $?
"gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3934 # Extract the first word of "mmake", so it can be a program name with args.
3935 set dummy mmake
; ac_word
=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -n "$MMAKE"; then
3942 ac_cv_prog_MMAKE
="$MMAKE" # Let the user override the test.
3944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir
=.
3949 for ac_exec_ext
in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_prog_MMAKE
="mmake "
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 MMAKE
=$ac_cv_prog_MMAKE
3962 if test -n "$MMAKE"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3964 $as_echo "$MMAKE" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3972 # Perform some default variable assignments. Note all of these will be
3973 # Regenerated from the script, so there is no need to cache them.
3976 if test "$GCC" = "yes"; then
3977 aros_gcc_ld
=`$CC -print-prog-name=ld`
3978 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3979 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 case $aros_host_ld in
3987 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
3990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3991 for as_dir
in `dirname $aros_gcc_ld`
3994 test -z "$as_dir" && as_dir
=.
3995 for ac_exec_ext
in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 aros_host_ld
=$ac_cv_path_aros_host_ld
4009 if test -n "$aros_host_ld"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4011 $as_echo "$aros_host_ld" >&6; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4019 if test "$aros_host_ld" = ""; then
4020 # Extract the first word of "ld", so it can be a program name with args.
4021 set dummy ld
; ac_word
=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4027 case $aros_host_ld in
4029 ac_cv_path_aros_host_ld
="$aros_host_ld" # Let the user override the test with a path.
4032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4036 test -z "$as_dir" && as_dir
=.
4037 for ac_exec_ext
in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_path_aros_host_ld
="$as_dir/$ac_word$ac_exec_ext"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 aros_host_ld
=$ac_cv_path_aros_host_ld
4051 if test -n "$aros_host_ld"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4053 $as_echo "$aros_host_ld" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4061 if test "$aros_host_ld" = ""; then
4062 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4064 aros_host_make
="make"
4065 aros_host_cflags
=$CFLAGS
4066 aros_host_ldflags
=$LDFLAGS
4067 aros_host_debug
="-g -O0"
4068 aros_host_mkdep
="\$(SRCDIR)/scripts/mkdep"
4069 aros_host_mkargs
="--no-print-directory"
4070 aros_host_incl
="/usr/include"
4071 aros_host_exe_suffix
="$EXEEXT"
4072 aros_host_lib_suffix
=""
4074 for ac_prog
in aclocal aclocal19 aclocal-1.9
4076 # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy
$ac_prog; ac_word
=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4083 if test -n "$aros_host_aclocal"; then
4084 ac_cv_prog_aros_host_aclocal
="$aros_host_aclocal" # Let the user override the test.
4086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir
=.
4091 for ac_exec_ext
in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_aros_host_aclocal
="$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 aros_host_aclocal
=$ac_cv_prog_aros_host_aclocal
4104 if test -n "$aros_host_aclocal"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4106 $as_echo "$aros_host_aclocal" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$aros_host_aclocal" && break
4116 for ac_prog
in autoconf autoconf259 autoconf253
4118 # Extract the first word of "$ac_prog", so it can be a program name with args.
4119 set dummy
$ac_prog; ac_word
=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 if test -n "$aros_host_autoconf"; then
4126 ac_cv_prog_aros_host_autoconf
="$aros_host_autoconf" # Let the user override the test.
4128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir
=.
4133 for ac_exec_ext
in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_aros_host_autoconf
="$ac_prog"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 aros_host_autoconf
=$ac_cv_prog_aros_host_autoconf
4146 if test -n "$aros_host_autoconf"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4148 $as_echo "$aros_host_autoconf" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4155 test -n "$aros_host_autoconf" && break
4158 for ac_prog
in autoheader autoheader259 autoheader253
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161 set dummy
$ac_prog; ac_word
=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 if test -n "$aros_host_autoheader"; then
4168 ac_cv_prog_aros_host_autoheader
="$aros_host_autoheader" # Let the user override the test.
4170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir
=.
4175 for ac_exec_ext
in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_aros_host_autoheader
="$ac_prog"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 aros_host_autoheader
=$ac_cv_prog_aros_host_autoheader
4188 if test -n "$aros_host_autoheader"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4190 $as_echo "$aros_host_autoheader" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 test -n "$aros_host_autoheader" && break
4200 for ac_prog
in automake automake19 automake-1.9
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy
$ac_prog; ac_word
=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$aros_host_automake"; then
4210 ac_cv_prog_aros_host_automake
="$aros_host_automake" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_aros_host_automake
="$ac_prog"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 aros_host_automake
=$ac_cv_prog_aros_host_automake
4230 if test -n "$aros_host_automake"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4232 $as_echo "$aros_host_automake" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4239 test -n "$aros_host_automake" && break
4243 if test "$aros_host_aclocal" = ""; then
4244 as_fn_error $?
"aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4246 if test "$aros_host_automake" = ""; then
4247 as_fn_error $?
"automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4250 case "$aros_host_cc" in
4252 aros_host_cc_pipe
="-pipe"
4255 aros_host_cc_pipe
=""
4258 aros_host_cc_pipe
=""
4262 aros_kernel_cc_includes
=""
4263 aros_target_cc_includes
=""
4265 # ----------------------------------------------------------------------------------------
4266 # Host-specific defaults
4268 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4269 # instead of a wrapper script.
4270 # Useful for non-ELF hosts (like Windows and Darwin).
4271 # Can also be overriden in target section below
4274 # This is the main host configuration section. It is where the host
4275 # can change the values of any variables it needs to change. We do
4276 # not look at anything that compiles to the target yet, we'll get
4281 aros_host_arch
="aros"
4282 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4285 aros_host_cpu
="i386"
4288 aros_host_cpu
="x86_64"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4295 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4296 aros_host_cpu
="$host_cpu"
4302 aros_host_arch
="linux"
4303 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4306 aros_host_cpu
="i386"
4309 aros_host_cpu
="x86_64"
4312 aros_host_cpu
="m68k"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4322 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4323 aros_host_cpu
="$host_cpu"
4329 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4330 aros_host_make
="gmake"
4331 aros_host_arch
="freebsd"
4332 aros_host_cpu
="i386"
4334 aros_host_ldflags
="$aros_host_ldflags -L/usr/local/lib -liconv"
4338 aros_object_format
="elf_i386"
4342 aros_object_format
="elf_i386_fbsd"
4349 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4350 aros_host_arch
="darwin"
4352 android_build_os
="darwin-x86"
4353 android_tool
="android"
4354 default_android_sdk
="/android-sdk-mac_x86"
4355 default_android_ndk
="/android-ndk-r5b"
4358 aros_host_cpu
="i386"
4361 aros_host_cpu
="x86_64"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4368 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4369 aros_host_cpu
="$host_cpu"
4373 aros_host_ldflags
="$aros_host_ldflags -liconv"
4378 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4379 aros_host_make
="gmake"
4380 aros_host_arch
="dragonfly"
4383 aros_host_cpu
="i386"
4386 aros_host_cpu
="x86_64"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4390 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4391 aros_host_cpu
="$host_cpu"
4397 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4398 aros_host_make
="gmake"
4399 aros_host_arch
="netbsd"
4402 aros_host_cpu
="i386"
4405 aros_host_cpu
="m68k"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4409 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4410 aros_host_cpu
="$host_cpu"
4413 aros_host_lib_suffix
=".0.0"
4417 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4418 aros_host_make
="gmake"
4419 aros_host_arch
="openbsd"
4422 aros_host_cpu
="i386"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4426 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4427 aros_host_cpu
="$host_cpu"
4433 aros_host_arch
="solaris"
4434 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4437 aros_host_cpu
="i386"
4440 aros_host_cpu
="sparc"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4444 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4445 aros_host_cpu
="$host_cpu"
4451 aros_host_arch
="morphos"
4456 aros_host_arch
="amiga"
4461 TOUCH
="/gg/bin/touch"
4464 aros_host_cpu
="m68k"
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4471 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4472 aros_host_cpu
="$host_cpu"
4478 aros_host_arch
="cygwin"
4480 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4481 android_build_os
="windows"
4482 android_tool
="android.bat"
4483 default_android_sdk
="/cygdrive/c/android-sdk-windows-1.6_r1"
4487 aros_host_cpu
="i386"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4491 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4492 aros_host_cpu
="$host_cpu"
4498 aros_host_arch
="mingw32"
4500 aros_host_cc
="$aros_host_cc $aros_host_cc_pipe"
4501 android_build_os
="windows"
4502 android_tool
="android.bat"
4503 default_android_sdk
="/c/android-sdk-windows-1.6_r1"
4507 aros_host_cpu
="i386"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4511 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4512 aros_host_cpu
="$host_cpu"
4517 as_fn_error $?
"Unsupported host architecture $host" "$LINENO" 5
4521 # Extract the first word of "ar", so it can be a program name with args.
4522 set dummy
ar; ac_word
=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4528 if test -n "$aros_host_ar"; then
4529 ac_cv_prog_aros_host_ar
="$aros_host_ar" # Let the user override the test.
4531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4535 test -z "$as_dir" && as_dir
=.
4536 for ac_exec_ext
in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_aros_host_ar
="ar cr"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 aros_host_ar
=$ac_cv_prog_aros_host_ar
4549 if test -n "$aros_host_ar"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4551 $as_echo "$aros_host_ar" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4558 if test "$aros_host_ar" = ""; then
4559 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4561 # Extract the first word of "ranlib", so it can be a program name with args.
4562 set dummy ranlib
; ac_word
=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -n "$aros_host_ranlib"; then
4569 ac_cv_prog_aros_host_ranlib
="$aros_host_ranlib" # Let the user override the test.
4571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir
=.
4576 for ac_exec_ext
in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_aros_host_ranlib
="ranlib "
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 aros_host_ranlib
=$ac_cv_prog_aros_host_ranlib
4589 if test -n "$aros_host_ranlib"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4591 $as_echo "$aros_host_ranlib" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4598 if test "$aros_host_ranlib" = ""; then
4599 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4601 # Extract the first word of "strip", so it can be a program name with args.
4602 set dummy strip
; ac_word
=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 if test -n "$aros_host_strip"; then
4609 ac_cv_prog_aros_host_strip
="$aros_host_strip" # Let the user override the test.
4611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4615 test -z "$as_dir" && as_dir
=.
4616 for ac_exec_ext
in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_aros_host_strip
="strip "
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 aros_host_strip
=$ac_cv_prog_aros_host_strip
4629 if test -n "$aros_host_strip"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4631 $as_echo "$aros_host_strip" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4638 if test "$aros_host_strip" = ""; then
4639 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4642 # Extract the first word of "rm", so it can be a program name with args.
4643 set dummy
rm; ac_word
=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_RM+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$RM"; then
4650 ac_cv_prog_RM
="$RM" # Let the user override the test.
4652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir
=.
4657 for ac_exec_ext
in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_RM
="rm -rf"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 if test -n "$RM"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4672 $as_echo "$RM" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 if test "$RM" = ""; then
4680 as_fn_error $?
"rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4682 # Extract the first word of "cp", so it can be a program name with args.
4683 set dummy
cp; ac_word
=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_CP+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$CP"; then
4690 ac_cv_prog_CP
="$CP" # Let the user override the test.
4692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir
=.
4697 for ac_exec_ext
in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 if test -n "$CP"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4712 $as_echo "$CP" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4719 if test "$CP" = ""; then
4720 as_fn_error $?
"cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4722 # Extract the first word of "mv", so it can be a program name with args.
4723 set dummy
mv; ac_word
=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_MV+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$MV"; then
4730 ac_cv_prog_MV
="$MV" # Let the user override the test.
4732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir
=.
4737 for ac_exec_ext
in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 if test -n "$MV"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4752 $as_echo "$MV" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4759 if test "$MV" = ""; then
4760 as_fn_error $?
"mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4762 # Extract the first word of "echo", so it can be a program name with args.
4763 set dummy
echo; ac_word
=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_ECHO+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 if test -n "$ECHO"; then
4770 ac_cv_prog_ECHO
="$ECHO" # Let the user override the test.
4772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir
=.
4777 for ac_exec_ext
in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ECHO
="echo "
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ECHO
=$ac_cv_prog_ECHO
4790 if test -n "$ECHO"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4792 $as_echo "$ECHO" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4799 if test "$ECHO" = ""; then
4800 as_fn_error $?
"echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4802 # Extract the first word of "mkdir", so it can be a program name with args.
4803 set dummy mkdir
; ac_word
=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4809 if test -n "$MKDIR"; then
4810 ac_cv_prog_MKDIR
="$MKDIR" # Let the user override the test.
4812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir
=.
4817 for ac_exec_ext
in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_MKDIR
="mkdir -p"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 MKDIR
=$ac_cv_prog_MKDIR
4830 if test -n "$MKDIR"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4832 $as_echo "$MKDIR" >&6; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 if test "$MKDIR" = ""; then
4840 as_fn_error $?
"mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4842 # Extract the first word of "touch", so it can be a program name with args.
4843 set dummy
touch; ac_word
=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4849 if test -n "$TOUCH"; then
4850 ac_cv_prog_TOUCH
="$TOUCH" # Let the user override the test.
4852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir
=.
4857 for ac_exec_ext
in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_TOUCH
="touch "
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 TOUCH
=$ac_cv_prog_TOUCH
4870 if test -n "$TOUCH"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4872 $as_echo "$TOUCH" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4879 if test "$TOUCH" = ""; then
4880 as_fn_error $?
"touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4882 # Extract the first word of "sort", so it can be a program name with args.
4883 set dummy
sort; ac_word
=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_SORT+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4889 if test -n "$SORT"; then
4890 ac_cv_prog_SORT
="$SORT" # Let the user override the test.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_prog_SORT
="sort "
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 SORT
=$ac_cv_prog_SORT
4910 if test -n "$SORT"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4912 $as_echo "$SORT" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 if test "$SORT" = ""; then
4920 as_fn_error $?
"sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4922 # Extract the first word of "uniq", so it can be a program name with args.
4923 set dummy
uniq; ac_word
=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -n "$UNIQ"; then
4930 ac_cv_prog_UNIQ
="$UNIQ" # Let the user override the test.
4932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir
=.
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_prog_UNIQ
="uniq "
4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 UNIQ
=$ac_cv_prog_UNIQ
4950 if test -n "$UNIQ"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4952 $as_echo "$UNIQ" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4959 if test "$UNIQ" = ""; then
4960 as_fn_error $?
"uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4962 # Extract the first word of "true", so it can be a program name with args.
4963 set dummy true
; ac_word
=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_NOP+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$NOP"; then
4970 ac_cv_prog_NOP
="$NOP" # Let the user override the test.
4972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir
=.
4977 for ac_exec_ext
in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_prog_NOP
="true "
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 if test -n "$NOP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4992 $as_echo "$NOP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4999 if test "$NOP" = ""; then
5000 as_fn_error $?
"true is required to build AROS. Please install and run configure again." "$LINENO" 5
5002 # Extract the first word of "cat", so it can be a program name with args.
5003 set dummy
cat; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_CAT+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$CAT"; then
5010 ac_cv_prog_CAT
="$CAT" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_CAT
="cat "
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 if test -n "$CAT"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5032 $as_echo "$CAT" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5039 if test "$CAT" = ""; then
5040 as_fn_error $?
"cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5042 # Extract the first word of "bison", so it can be a program name with args.
5043 set dummy bison
; ac_word
=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_BISON+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$BISON"; then
5050 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_BISON
="bison "
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 BISON
=$ac_cv_prog_BISON
5070 if test -n "$BISON"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5072 $as_echo "$BISON" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 if test "$BISON" = ""; then
5080 as_fn_error $?
"bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5082 # Extract the first word of "flex", so it can be a program name with args.
5083 set dummy flex
; ac_word
=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_FLEX+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -n "$FLEX"; then
5090 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir
=.
5097 for ac_exec_ext
in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_FLEX
="flex "
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 FLEX
=$ac_cv_prog_FLEX
5110 if test -n "$FLEX"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5112 $as_echo "$FLEX" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5119 if test "$FLEX" = ""; then
5120 as_fn_error $?
"flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5122 # Extract the first word of "pngtopnm", so it can be a program name with args.
5123 set dummy pngtopnm
; ac_word
=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5129 if test -n "$PNGTOPNM"; then
5130 ac_cv_prog_PNGTOPNM
="$PNGTOPNM" # Let the user override the test.
5132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir
=.
5137 for ac_exec_ext
in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_PNGTOPNM
="pngtopnm "
5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 PNGTOPNM
=$ac_cv_prog_PNGTOPNM
5150 if test -n "$PNGTOPNM"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5152 $as_echo "$PNGTOPNM" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5159 if test "$PNGTOPNM" = ""; then
5160 as_fn_error $?
"pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5162 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5163 set dummy ppmtoilbm
; ac_word
=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -n "$PPMTOILBM"; then
5170 ac_cv_prog_PPMTOILBM
="$PPMTOILBM" # Let the user override the test.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_PPMTOILBM
="ppmtoilbm "
5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 PPMTOILBM
=$ac_cv_prog_PPMTOILBM
5190 if test -n "$PPMTOILBM"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5192 $as_echo "$PPMTOILBM" >&6; }
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5199 if test "$PPMTOILBM" = ""; then
5200 as_fn_error $?
"ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5202 # Extract the first word of "sed", so it can be a program name with args.
5203 set dummy
sed; ac_word
=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if test "${ac_cv_prog_SED+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5209 if test -n "$SED"; then
5210 ac_cv_prog_SED
="$SED" # Let the user override the test.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_prog_SED
="sed "
5220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 if test -n "$SED"; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5232 $as_echo "$SED" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5239 if test "$SED" = ""; then
5240 as_fn_error $?
"sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5242 # Extract the first word of "chmod", so it can be a program name with args.
5243 set dummy
chmod; ac_word
=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 if test -n "$CHMOD"; then
5250 ac_cv_prog_CHMOD
="$CHMOD" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_CHMOD
="chmod "
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 CHMOD
=$ac_cv_prog_CHMOD
5270 if test -n "$CHMOD"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5272 $as_echo "$CHMOD" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5279 if test "$CHMOD" = ""; then
5280 as_fn_error $?
"chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5282 # Extract the first word of "patch", so it can be a program name with args.
5283 set dummy
patch; ac_word
=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if test "${ac_cv_prog_PATCH+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 if test -n "$PATCH"; then
5290 ac_cv_prog_PATCH
="$PATCH" # Let the user override the test.
5292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir
=.
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_PATCH
="patch "
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 PATCH
=$ac_cv_prog_PATCH
5310 if test -n "$PATCH"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5312 $as_echo "$PATCH" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5319 if test "$PATCH" = ""; then
5320 as_fn_error $?
"patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5327 if test -n "$PYTHON"; then
5328 # If the user set $PYTHON, use it and don't search something else.
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5330 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5331 prog
="import sys, string
5332 # split strings by '.' and convert to numeric. Append some zeros
5333 # because we need at least 4 digits for the hex conversion.
5334 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5336 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5337 sys.exit(sys.hexversion < minverhex)"
5338 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5339 ($PYTHON -c "$prog") >&5 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; then :
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5344 $as_echo "yes" >&6; }
5346 as_fn_error $?
"too old" "$LINENO" 5
5348 am_display_PYTHON
=$PYTHON
5350 # Otherwise, try each interpreter until we find one that satisfies
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5353 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5354 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5355 $as_echo_n "(cached) " >&6
5358 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
5359 test "$am_cv_pathless_PYTHON" = none
&& break
5360 prog
="import sys, string
5361 # split strings by '.' and convert to numeric. Append some zeros
5362 # because we need at least 4 digits for the hex conversion.
5363 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5365 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5366 sys.exit(sys.hexversion < minverhex)"
5367 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5368 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; then :
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5377 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5378 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5379 if test "$am_cv_pathless_PYTHON" = none
; then
5382 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5383 set dummy
$am_cv_pathless_PYTHON; ac_word
=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_path_PYTHON+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5391 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
5394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir
=.
5399 for ac_exec_ext
in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 PYTHON
=$ac_cv_path_PYTHON
5413 if test -n "$PYTHON"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5415 $as_echo "$PYTHON" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 am_display_PYTHON
=$am_cv_pathless_PYTHON
5427 if test "$PYTHON" = :; then
5428 as_fn_error $?
"no suitable Python interpreter found" "$LINENO" 5
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5433 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5434 if test "${am_cv_python_version+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 am_cv_python_version
=`$PYTHON -c "import sys; print sys.version[:3]"`
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5440 $as_echo "$am_cv_python_version" >&6; }
5441 PYTHON_VERSION
=$am_cv_python_version
5445 PYTHON_PREFIX
='${prefix}'
5447 PYTHON_EXEC_PREFIX
='${exec_prefix}'
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5452 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5453 if test "${am_cv_python_platform+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5456 am_cv_python_platform
=`$PYTHON -c "import sys; print sys.platform"`
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5459 $as_echo "$am_cv_python_platform" >&6; }
5460 PYTHON_PLATFORM
=$am_cv_python_platform
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5466 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5467 if test "${am_cv_python_pythondir+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5470 am_cv_python_pythondir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5471 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5474 $as_echo "$am_cv_python_pythondir" >&6; }
5475 pythondir
=$am_cv_python_pythondir
5479 pkgpythondir
=\
${pythondir}/$PACKAGE
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5483 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5484 if test "${am_cv_python_pyexecdir+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 am_cv_python_pyexecdir
=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5488 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5491 $as_echo "$am_cv_python_pyexecdir" >&6; }
5492 pyexecdir
=$am_cv_python_pyexecdir
5496 pkgpyexecdir
=\
${pyexecdir}/$PACKAGE
5514 # Check for some includes for the X11 HIDD and the kernel
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5518 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5519 if test "${ac_cv_path_GREP+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -z "$GREP"; then
5523 ac_path_GREP_found
=false
5524 # Loop through the user's path and test for each of PROGNAME-LIST
5525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5526 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5529 test -z "$as_dir" && as_dir
=.
5530 for ac_prog
in grep ggrep
; do
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5533 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5534 # Check for GNU ac_path_GREP and select it if it is found.
5535 # Check for GNU $ac_path_GREP
5536 case `"$ac_path_GREP" --version 2>&1` in
5538 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5541 $as_echo_n 0123456789 >"conftest.in"
5544 cat "conftest.in" "conftest.in" >"conftest.tmp"
5545 mv "conftest.tmp" "conftest.in"
5546 cp "conftest.in" "conftest.nl"
5547 $as_echo 'GREP' >> "conftest.nl"
5548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5549 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5550 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5552 # Best one so far, save it but keep looking for a better one
5553 ac_cv_path_GREP
="$ac_path_GREP"
5554 ac_path_GREP_max
=$ac_count
5556 # 10*(2^10) chars as input seems more than enough
5557 test $ac_count -gt 10 && break
5559 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5562 $ac_path_GREP_found && break 3
5567 if test -z "$ac_cv_path_GREP"; then
5568 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5571 ac_cv_path_GREP
=$GREP
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5576 $as_echo "$ac_cv_path_GREP" >&6; }
5577 GREP
="$ac_cv_path_GREP"
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5581 $as_echo_n "checking for egrep... " >&6; }
5582 if test "${ac_cv_path_EGREP+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5586 then ac_cv_path_EGREP
="$GREP -E"
5588 if test -z "$EGREP"; then
5589 ac_path_EGREP_found
=false
5590 # Loop through the user's path and test for each of PROGNAME-LIST
5591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5592 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5595 test -z "$as_dir" && as_dir
=.
5596 for ac_prog
in egrep; do
5597 for ac_exec_ext
in '' $ac_executable_extensions; do
5598 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5599 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5600 # Check for GNU ac_path_EGREP and select it if it is found.
5601 # Check for GNU $ac_path_EGREP
5602 case `"$ac_path_EGREP" --version 2>&1` in
5604 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5607 $as_echo_n 0123456789 >"conftest.in"
5610 cat "conftest.in" "conftest.in" >"conftest.tmp"
5611 mv "conftest.tmp" "conftest.in"
5612 cp "conftest.in" "conftest.nl"
5613 $as_echo 'EGREP' >> "conftest.nl"
5614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5615 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5616 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5618 # Best one so far, save it but keep looking for a better one
5619 ac_cv_path_EGREP
="$ac_path_EGREP"
5620 ac_path_EGREP_max
=$ac_count
5622 # 10*(2^10) chars as input seems more than enough
5623 test $ac_count -gt 10 && break
5625 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5628 $ac_path_EGREP_found && break 3
5633 if test -z "$ac_cv_path_EGREP"; then
5634 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5637 ac_cv_path_EGREP
=$EGREP
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5643 $as_echo "$ac_cv_path_EGREP" >&6; }
5644 EGREP
="$ac_cv_path_EGREP"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5648 $as_echo_n "checking for ANSI C header files... " >&6; }
5649 if test "${ac_cv_header_stdc+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5667 if ac_fn_c_try_compile
"$LINENO"; then :
5668 ac_cv_header_stdc
=yes
5670 ac_cv_header_stdc
=no
5672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5674 if test $ac_cv_header_stdc = yes; then
5675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5682 $EGREP "memchr" >/dev
/null
2>&1; then :
5685 ac_cv_header_stdc
=no
5691 if test $ac_cv_header_stdc = yes; then
5692 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 $EGREP "free" >/dev
/null
2>&1; then :
5702 ac_cv_header_stdc
=no
5708 if test $ac_cv_header_stdc = yes; then
5709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5710 if test "$cross_compiling" = yes; then :
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5717 #if ((' ' & 0x0FF) == 0x020)
5718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5721 # define ISLOWER(c) \
5722 (('a' <= (c) && (c) <= 'i') \
5723 || ('j' <= (c) && (c) <= 'r') \
5724 || ('s' <= (c) && (c) <= 'z'))
5725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733 for (i = 0; i < 256; i++)
5734 if (XOR (islower (i), ISLOWER (i))
5735 || toupper (i) != TOUPPER (i))
5740 if ac_fn_c_try_run
"$LINENO"; then :
5743 ac_cv_header_stdc
=no
5745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5746 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5752 $as_echo "$ac_cv_header_stdc" >&6; }
5753 if test $ac_cv_header_stdc = yes; then
5755 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5759 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5760 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5761 inttypes.h stdint.h unistd.h
5763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5764 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5766 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5767 cat >>confdefs.h
<<_ACEOF
5768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5776 for ac_header
in sys
/ipc.h sys
/shm.h \
5777 sys
/mmap.h sys
/mman.h sysexits.h \
5778 sys
/statfs.h sys
/statvfs.h sys
/vfs.h sys
/param.h \
5781 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5783 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5784 cat >>confdefs.h
<<_ACEOF
5785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 for ac_header
in sys
/mount.h
5795 ac_fn_c_check_header_compile
"$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5797 if test "x$ac_cv_header_sys_mount_h" = x
""yes; then :
5798 cat >>confdefs.h
<<_ACEOF
5799 #define HAVE_SYS_MOUNT_H 1
5808 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5809 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5811 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5812 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5813 $as_echo_n "(cached) " >&6
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #include <sys/types.h>
5829 if ac_fn_c_try_compile
"$LINENO"; then :
5830 eval "$as_ac_Header=yes"
5832 eval "$as_ac_Header=no"
5834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 eval ac_res
=\$
$as_ac_Header
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5838 $as_echo "$ac_res" >&6; }
5839 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5840 cat >>confdefs.h
<<_ACEOF
5841 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5844 ac_header_dirent
=$ac_hdr; break
5848 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5849 if test $ac_header_dirent = dirent.h
; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5851 $as_echo_n "checking for library containing opendir... " >&6; }
5852 if test "${ac_cv_search_opendir+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 ac_func_search_save_LIBS
=$LIBS
5856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5857 /* end confdefs.h. */
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5874 for ac_lib
in '' dir
; do
5875 if test -z "$ac_lib"; then
5876 ac_res
="none required"
5879 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5881 if ac_fn_c_try_link
"$LINENO"; then :
5882 ac_cv_search_opendir
=$ac_res
5884 rm -f core conftest.err conftest.
$ac_objext \
5886 if test "${ac_cv_search_opendir+set}" = set; then :
5890 if test "${ac_cv_search_opendir+set}" = set; then :
5893 ac_cv_search_opendir
=no
5896 LIBS
=$ac_func_search_save_LIBS
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5899 $as_echo "$ac_cv_search_opendir" >&6; }
5900 ac_res
=$ac_cv_search_opendir
5901 if test "$ac_res" != no
; then :
5902 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5908 $as_echo_n "checking for library containing opendir... " >&6; }
5909 if test "${ac_cv_search_opendir+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 ac_func_search_save_LIBS
=$LIBS
5913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5916 /* Override any GCC internal prototype to avoid an error.
5917 Use char because int might match the return type of a GCC
5918 builtin and then its argument prototype would still apply. */
5931 for ac_lib
in '' x
; do
5932 if test -z "$ac_lib"; then
5933 ac_res
="none required"
5936 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5938 if ac_fn_c_try_link
"$LINENO"; then :
5939 ac_cv_search_opendir
=$ac_res
5941 rm -f core conftest.err conftest.
$ac_objext \
5943 if test "${ac_cv_search_opendir+set}" = set; then :
5947 if test "${ac_cv_search_opendir+set}" = set; then :
5950 ac_cv_search_opendir
=no
5953 LIBS
=$ac_func_search_save_LIBS
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5956 $as_echo "$ac_cv_search_opendir" >&6; }
5957 ac_res
=$ac_cv_search_opendir
5958 if test "$ac_res" != no
; then :
5959 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5966 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5967 if test "${ac_cv_header_stat_broken+set}" = set; then :
5968 $as_echo_n "(cached) " >&6
5970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5975 #if defined S_ISBLK && defined S_IFDIR
5976 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5979 #if defined S_ISBLK && defined S_IFCHR
5980 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5983 #if defined S_ISLNK && defined S_IFREG
5984 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5987 #if defined S_ISSOCK && defined S_IFREG
5988 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5992 if ac_fn_c_try_compile
"$LINENO"; then :
5993 ac_cv_header_stat_broken
=no
5995 ac_cv_header_stat_broken
=yes
5997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6000 $as_echo "$ac_cv_header_stat_broken" >&6; }
6001 if test $ac_cv_header_stat_broken = yes; then
6003 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6008 $as_echo_n "checking for ANSI C header files... " >&6; }
6009 if test "${ac_cv_header_stdc+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6027 if ac_fn_c_try_compile
"$LINENO"; then :
6028 ac_cv_header_stdc
=yes
6030 ac_cv_header_stdc
=no
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev
/null
2>&1; then :
6045 ac_cv_header_stdc
=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "free" >/dev
/null
2>&1; then :
6062 ac_cv_header_stdc
=no
6068 if test $ac_cv_header_stdc = yes; then
6069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070 if test "$cross_compiling" = yes; then :
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6077 #if ((' ' & 0x0FF) == 0x020)
6078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6081 # define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
6083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6100 if ac_fn_c_try_run
"$LINENO"; then :
6103 ac_cv_header_stdc
=no
6105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6112 $as_echo "$ac_cv_header_stdc" >&6; }
6113 if test $ac_cv_header_stdc = yes; then
6115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6121 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6127 #include <sys/wait.h>
6129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6145 if ac_fn_c_try_compile
"$LINENO"; then :
6146 ac_cv_header_sys_wait_h
=yes
6148 ac_cv_header_sys_wait_h
=no
6150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6154 if test $ac_cv_header_sys_wait_h = yes; then
6156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6161 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6162 if test "${ac_cv_header_time+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 #include <sys/types.h>
6168 #include <sys/time.h>
6174 if ((struct tm *) 0)
6180 if ac_fn_c_try_compile
"$LINENO"; then :
6181 ac_cv_header_time
=yes
6183 ac_cv_header_time
=no
6185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6188 $as_echo "$ac_cv_header_time" >&6; }
6189 if test $ac_cv_header_time = yes; then
6191 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6195 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6196 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
6198 cat >>confdefs.h
<<_ACEOF
6199 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6203 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6208 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6209 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
6211 cat >>confdefs.h
<<_ACEOF
6212 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6216 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6219 case " $LIBOBJS " in
6220 *" fileblocks.$ac_objext "* ) ;;
6221 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6228 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6229 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
6231 cat >>confdefs.h
<<_ACEOF
6232 #define HAVE_STRUCT_STAT_ST_RDEV 1
6236 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6242 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6243 if test "${ac_cv_struct_tm+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <sys/types.h>
6255 int *p = &tm.tm_sec;
6261 if ac_fn_c_try_compile
"$LINENO"; then :
6262 ac_cv_struct_tm
=time.h
6264 ac_cv_struct_tm
=sys
/time.h
6266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6269 $as_echo "$ac_cv_struct_tm" >&6; }
6270 if test $ac_cv_struct_tm = sys
/time.h
; then
6272 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6276 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6277 #include <$ac_cv_struct_tm>
6280 if test "x$ac_cv_member_struct_tm_tm_zone" = x
""yes; then :
6282 cat >>confdefs.h
<<_ACEOF
6283 #define HAVE_STRUCT_TM_TM_ZONE 1
6289 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6291 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6294 ac_fn_c_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6296 if test "x$ac_cv_have_decl_tzname" = x
""yes; then :
6302 cat >>confdefs.h
<<_ACEOF
6303 #define HAVE_DECL_TZNAME $ac_have_decl
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6307 $as_echo_n "checking for tzname... " >&6; }
6308 if test "${ac_cv_var_tzname+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6314 #if !HAVE_DECL_TZNAME
6315 extern char *tzname[];
6321 return tzname[0][0];
6326 if ac_fn_c_try_link
"$LINENO"; then :
6327 ac_cv_var_tzname
=yes
6331 rm -f core conftest.err conftest.
$ac_objext \
6332 conftest
$ac_exeext conftest.
$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6335 $as_echo "$ac_cv_var_tzname" >&6; }
6336 if test $ac_cv_var_tzname = yes; then
6338 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6343 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6344 if test "x$ac_cv_type_off_t" = x
""yes; then :
6348 cat >>confdefs.h
<<_ACEOF
6349 #define off_t long int
6354 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6355 if test "x$ac_cv_type_pid_t" = x
""yes; then :
6359 cat >>confdefs.h
<<_ACEOF
6365 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6366 if test "x$ac_cv_type_size_t" = x
""yes; then :
6370 cat >>confdefs.h
<<_ACEOF
6371 #define size_t unsigned int
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6377 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6378 if test "${ac_cv_type_uid_t+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 #include <sys/types.h>
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "uid_t" >/dev
/null
2>&1; then :
6388 ac_cv_type_uid_t
=yes
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6396 $as_echo "$ac_cv_type_uid_t" >&6; }
6397 if test $ac_cv_type_uid_t = no
; then
6399 $as_echo "#define uid_t int" >>confdefs.h
6402 $as_echo "#define gid_t int" >>confdefs.h
6407 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6408 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x
""yes; then :
6410 cat >>confdefs.h
<<_ACEOF
6411 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6418 # Look for some functions
6419 for ac_func
in getpagesize kqueue statfs statvfs \
6420 clone kse_create rfork_thread thr_create sa_register \
6421 getcontext makecontext setcontext sigaltstack swapcontext
6423 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6424 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6425 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6426 cat >>confdefs.h
<<_ACEOF
6427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6437 for ac_header
in $ac_header_list
6439 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6440 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6442 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6443 cat >>confdefs.h
<<_ACEOF
6444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6458 for ac_func
in getpagesize
6460 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6461 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6462 cat >>confdefs.h
<<_ACEOF
6463 #define HAVE_GETPAGESIZE 1
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6470 $as_echo_n "checking for working mmap... " >&6; }
6471 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6474 if test "$cross_compiling" = yes; then :
6475 ac_cv_func_mmap_fixed_mapped
=no
6477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 $ac_includes_default
6480 /* malloc might have been renamed as rpl_malloc. */
6483 /* Thanks to Mike Haertel and Jim Avera for this test.
6484 Here is a matrix of mmap possibilities:
6485 mmap private not fixed
6486 mmap private fixed at somewhere currently unmapped
6487 mmap private fixed at somewhere already mapped
6488 mmap shared not fixed
6489 mmap shared fixed at somewhere currently unmapped
6490 mmap shared fixed at somewhere already mapped
6491 For private mappings, we should verify that changes cannot be read()
6492 back from the file, nor mmap's back from the file at a different
6493 address. (There have been systems where private was not correctly
6494 implemented like the infamous i386 svr4.0, and systems where the
6495 VM page cache was not coherent with the file system buffer cache
6496 like early versions of FreeBSD and possibly contemporary NetBSD.)
6497 For shared mappings, we should conversely verify that changes get
6498 propagated back to all the places they're supposed to be.
6500 Grep wants private fixed already mapped.
6501 The main things grep needs to know about mmap are:
6502 * does it exist and is it safe to write into the mmap'd area
6503 * how to use it (BSD variants) */
6506 #include <sys/mman.h>
6508 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6512 /* This mess was copied from the GNU getpagesize.h. */
6513 #ifndef HAVE_GETPAGESIZE
6514 # ifdef _SC_PAGESIZE
6515 # define getpagesize() sysconf(_SC_PAGESIZE)
6516 # else /* no _SC_PAGESIZE */
6517 # ifdef HAVE_SYS_PARAM_H
6518 # include <sys/param.h>
6519 # ifdef EXEC_PAGESIZE
6520 # define getpagesize() EXEC_PAGESIZE
6521 # else /* no EXEC_PAGESIZE */
6523 # define getpagesize() NBPG * CLSIZE
6526 # endif /* no CLSIZE */
6527 # else /* no NBPG */
6529 # define getpagesize() NBPC
6530 # else /* no NBPC */
6532 # define getpagesize() PAGESIZE
6533 # endif /* PAGESIZE */
6534 # endif /* no NBPC */
6535 # endif /* no NBPG */
6536 # endif /* no EXEC_PAGESIZE */
6537 # else /* no HAVE_SYS_PARAM_H */
6538 # define getpagesize() 8192 /* punt totally */
6539 # endif /* no HAVE_SYS_PARAM_H */
6540 # endif /* no _SC_PAGESIZE */
6542 #endif /* no HAVE_GETPAGESIZE */
6547 char *data, *data2, *data3;
6552 pagesize = getpagesize ();
6554 /* First, make a file with some known garbage in it. */
6555 data = (char *) malloc (pagesize);
6558 for (i = 0; i < pagesize; ++i)
6559 *(data + i) = rand ();
6561 fd = creat ("conftest.mmap", 0600);
6564 if (write (fd, data, pagesize) != pagesize)
6568 /* Next, check that the tail of a page is zero-filled. File must have
6569 non-zero length, otherwise we risk SIGBUS for entire page. */
6570 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6574 if (write (fd2, cdata2, 1) != 1)
6576 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6577 if (data2 == MAP_FAILED)
6579 for (i = 0; i < pagesize; ++i)
6583 if (munmap (data2, pagesize))
6586 /* Next, try to mmap the file at a fixed address which already has
6587 something else allocated at it. If we can, also make sure that
6588 we see the same garbage. */
6589 fd = open ("conftest.mmap", O_RDWR);
6592 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6593 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6595 for (i = 0; i < pagesize; ++i)
6596 if (*(data + i) != *(data2 + i))
6599 /* Finally, make sure that changes to the mapped area do not
6600 percolate back to the file as seen by read(). (This is a bug on
6601 some variants of i386 svr4.0.) */
6602 for (i = 0; i < pagesize; ++i)
6603 *(data2 + i) = *(data2 + i) + 1;
6604 data3 = (char *) malloc (pagesize);
6607 if (read (fd, data3, pagesize) != pagesize)
6609 for (i = 0; i < pagesize; ++i)
6610 if (*(data + i) != *(data3 + i))
6616 if ac_fn_c_try_run
"$LINENO"; then :
6617 ac_cv_func_mmap_fixed_mapped
=yes
6619 ac_cv_func_mmap_fixed_mapped
=no
6621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6627 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6630 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6633 rm -f conftest.mmap conftest.txt
6638 aros_config_cflags
="-Wall -Werror-implicit-function-declaration"
6639 aros_config_aflags
="-Wall -x assembler-with-cpp -c"
6640 aros_config_ldflags
=""
6642 aros_shared_default
=yes
6644 aros_shared_cflags
="-fPIC"
6645 aros_shared_aflags
=""
6646 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
6647 aros_kernel_ldflags
="-Wl,-rpath,./lib"
6649 aros_target_ar_flags
="cr"
6650 aros_target_nm_flags
="-C -ul"
6651 aros_target_strip_flags
="--strip-unneeded -R.comment"
6656 aros_target_genmap
="-Wl,-Map -Xlinker"
6658 # Native flavour stuff
6659 aros_serial_debug
="0"
6661 # Palm native flavour stuff
6662 aros_palm_debug_hack
="0"
6664 # Unix flavour stuff
6665 aros_nesting_supervisor
="0"
6667 # Collect-aros stuff: "-ius" to ignore undefined symbols
6668 ignore_undefined_symbols
=""
6670 # Check for X11 by default
6673 #-----------------------------------------------------------------------------
6676 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6677 # it switched on by default, and we use the host compiler, so it compiles AROS
6678 # code with this enabled resulting in link failures as we don't have support
6681 # We use two methods to disable it. For the host compiler (used to compile
6682 # some hosted modules), we test to see if the compiler supports stack
6683 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6684 # work on all platforms.
6686 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6687 # (this is done unconditionally, as it should have no effect on compilers
6688 # without the stack protection feature). This may be specific to the way that
6689 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6690 # strong enough to disable it in a generic way though, so we'll live with it
6691 # until another vendor ships GCC with it enabled in a different way, and deal
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6696 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6697 save_cflags
="$CFLAGS"
6698 CFLAGS
="$CFLAGS -fno-stack-protector"
6699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6710 if ac_fn_c_try_compile
"$LINENO"; then :
6711 use_no_stack_protector
="yes"
6713 use_no_stack_protector
="no"
6715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6717 $as_echo "$use_no_stack_protector" >&6; }
6718 if test "x-$use_no_stack_protector" = "x-yes" ; then
6719 aros_host_cflags
="$aros_host_cflags -fno-stack-protector"
6721 CFLAGS
="$save_cflags"
6723 #-----------------------------------------------------------------------------
6725 # Disable pointer-signedness warnings if the compiler recognises the option
6726 # (this only works for the host compiler at the moment)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6729 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6730 save_cflags
="$CFLAGS"
6731 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6743 if ac_fn_c_try_compile
"$LINENO"; then :
6744 use_no_sign_warning
="yes"
6746 use_no_sign_warning
="no"
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6750 $as_echo "$use_no_sign_warning" >&6; }
6751 if test "x-$use_no_sign_warning" = "x-yes" ; then
6752 aros_host_cflags
="$aros_host_cflags -Wno-pointer-sign"
6754 CFLAGS
="$save_cflags"
6756 #-----------------------------------------------------------------------------
6758 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6761 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6762 save_cflags
="$CFLAGS"
6763 CFLAGS
="$CFLAGS -fgnu89-inline"
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 use_gnu89_inline
="yes"
6778 use_gnu89_inline
="no"
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6782 $as_echo "$use_gnu89_inline" >&6; }
6783 if test "x-$use_gnu89_inline" = "x-yes" ; then
6784 gnu89_inline
="-fgnu89-inline"
6786 CFLAGS
="$save_cflags"
6788 #-----------------------------------------------------------------------------
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6791 $as_echo_n "checking for type of build... " >&6; }
6792 # Check whether --enable-build_type was given.
6793 if test "${enable_build_type+set}" = set; then :
6794 enableval
=$enable_build_type; build_type
=$enableval
6796 build_type
="personal"
6800 if test "$build_type" = "nightly"; then
6801 build_type_string
="NIGHTLY"
6802 elif test "$build_type" = "snapshot"; then
6803 build_type_string
="SNAPSHOT"
6804 elif test "$build_type" = "milestone"; then
6805 build_type_string
="MILESTONE"
6806 elif test "$build_type" = "release"; then
6807 build_type_string
="RELEASE"
6809 build_type_string
="PERSONAL"
6810 build_type
="personal"
6813 aros_config_cflags
="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6816 $as_echo "$build_type" >&6; }
6818 #-----------------------------------------------------------------------------
6819 all_debug_types
="messages stack modules mungwall symbols"
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6822 $as_echo_n "checking which debug types to enable... " >&6; }
6823 # Check whether --enable-debug was given.
6824 if test "${enable_debug+set}" = set; then :
6825 enableval
=$enable_debug; debug
="$enableval"
6831 if test "$debug" = "" -o "$debug" = "no"; then
6833 elif test "$debug" = "yes"; then
6837 if test "$debug" = "all" ; then
6838 debug
="messages stack modules symbols"
6839 for d
in $all_debug_types; do
6840 export aros_
${d}_debug
="1"
6843 for d
in $all_debug_types; do
6844 export aros_
${d}_debug
="0"
6848 if test "$debug" != "none"; then
6849 debug
=`echo $debug | sed s/,/\ /g`
6852 for d2
in $all_debug_types; do
6853 if test "$d2" = "$d"; then
6858 if test "$found" = "0"; then
6859 as_fn_error $?
"unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6861 export aros_
${d}_debug
="1"
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6866 $as_echo "$debug" >&6; }
6868 if test "$aros_messages_debug" = "1"; then
6869 aros_messages_debug
="-DADEBUG=1 -DMDEBUG=1"
6871 aros_messages_debug
=""
6873 if test "$aros_symbols_debug" = "1"; then
6874 aros_symbols_debug
="-g"
6876 aros_symbols_debug
=""
6879 # These are the flags to pass when compiling debugged programs
6880 aros_debug_cflags
="$aros_symbols_debug $aros_messages_debug"
6881 aros_debug_aflags
=""
6882 aros_debug_ldflags
="$aros_symbols_debug"
6884 #-----------------------------------------------------------------------------
6885 # Checking if we should build crosstools..
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6887 $as_echo_n "checking whether to build crosstools... " >&6; }
6888 # Check whether --enable-crosstools was given.
6889 if test "${enable_crosstools+set}" = set; then :
6890 enableval
=$enable_crosstools; crosstools
="$enableval"
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6896 $as_echo "$crosstools" >&6; }
6898 #-----------------------------------------------------------------------------
6899 # Checking for distcc and ccache.
6901 # Always apply the transforms in this particular order. Basically you should
6902 # always run 'ccache distcc compiler' in that order for the best performance.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6905 $as_echo_n "checking whether to enable distcc... " >&6; }
6906 # Check whether --enable-distcc was given.
6907 if test "${enable_distcc+set}" = set; then :
6908 enableval
=$enable_distcc; distcc
="$enableval"
6913 if test "$distcc" != "" -a "$distcc" != "no"; then
6914 # AC_CHECK_PROG will print out the result in this case
6915 # Extract the first word of "distcc", so it can be a program name with args.
6916 set dummy distcc
; ac_word
=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_path_DISTCC+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6924 ac_cv_path_DISTCC
="$DISTCC" # Let the user override the test with a path.
6927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_path_DISTCC
="$as_dir/$ac_word$ac_exec_ext"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC
="distcc"
6946 DISTCC
=$ac_cv_path_DISTCC
6947 if test -n "$DISTCC"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6949 $as_echo "$DISTCC" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6962 $as_echo_n "checking whether to enable ccache... " >&6; }
6963 # Check whether --enable-ccache was given.
6964 if test "${enable_ccache+set}" = set; then :
6965 enableval
=$enable_ccache; ccache
="$enableval"
6970 if test "$ccache" != "" -a "$ccache" != "no"; then
6971 # AC_CHECK_PROG will print out the result in this case
6972 # Extract the first word of "ccache", so it can be a program name with args.
6973 set dummy ccache
; ac_word
=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6979 if test -n "$CCACHE"; then
6980 ac_cv_prog_CCACHE
="$CCACHE" # Let the user override the test.
6982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir
=.
6987 for ac_exec_ext
in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_prog_CCACHE
="ccache"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 CCACHE
=$ac_cv_prog_CCACHE
7000 if test -n "$CCACHE"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7002 $as_echo "$CCACHE" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7014 #-----------------------------------------------------------------------------
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7016 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7018 # Check whether --with-gcc-version was given.
7019 if test "${with_gcc_version+set}" = set; then :
7020 withval
=$with_gcc_version; target_tool_version
="$withval"
7022 target_tool_version
="default"
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7026 $as_echo "$target_tool_version" >&6; }
7028 #-----------------------------------------------------------------------------
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7030 $as_echo_n "checking what optimization flags to use... " >&6; }
7032 # Check whether --with-optimization was given.
7033 if test "${with_optimization+set}" = set; then :
7034 withval
=$with_optimization; optimization
="$withval"
7036 optimization
="unknown"
7039 if test "$optimization" = "unknown"; then
7040 if test "$debug" != "none"; then
7046 aros_config_cflags
="$aros_config_cflags $optimization"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7048 $as_echo "$optimization" >&6; }
7050 #-----------------------------------------------------------------------------
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7052 $as_echo_n "checking what paranoia flags to use... " >&6; }
7054 # Check whether --with-paranoia was given.
7055 if test "${with_paranoia+set}" = set; then :
7056 withval
=$with_paranoia; paranoia_flags
="$withval"
7058 paranoia_flags
="default"
7061 if test "$paranoia_flags" = "default"; then
7063 else if test "$paranoia_flags" = "yes"; then
7064 paranoia_flags
="-Wall -Werror"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7067 $as_echo "$paranoia_flags" >&6; }
7068 aros_paranoia_cflags
="$paranoia_flags"
7070 #-----------------------------------------------------------------------------
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7072 $as_echo_n "checking what target variant to enable... " >&6; }
7073 # Check whether --enable-target_variant was given.
7074 if test "${enable_target_variant+set}" = set; then :
7075 enableval
=$enable_target_variant; target_variant
=$enableval
7080 if test "$target_variant" = ""; then
7081 aros_target_variant
=""
7082 aros_target_suffix
=""
7085 aros_target_variant
="$target_variant"
7086 aros_target_suffix
="-$target_variant"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7089 $as_echo "$enableval" >&6; }
7091 #-----------------------------------------------------------------------------
7092 # Target-specific defaults. You can override then on a per-target basis.
7094 # Bootloader name. Currently used by PC target.
7095 target_bootloader
="none"
7097 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7098 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7099 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7100 if test "$crosstools" != "yes"; then
7101 target_tool_prefix
=${target_cpu}-elf-
7103 target_tool_prefix
=${target_cpu}-aros-
7106 #-----------------------------------------------------------------------------
7107 # Additional options for some specific targets
7109 case "$aros_target_variant" in
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7112 $as_echo_n "checking XCode path... " >&6; }
7114 # Check whether --with-xcode was given.
7115 if test "${with_xcode+set}" = set; then :
7116 withval
=$with_xcode; aros_xcode_path
="$withval"
7118 aros_xcode_path
="/Developer"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7122 $as_echo "$aros_xcode_path" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7125 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7127 # Check whether --with-ios-version was given.
7128 if test "${with_ios_version+set}" = set; then :
7129 withval
=$with_ios_version; aros_ios_version
="$withval"
7131 aros_ios_version
="3.0"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7135 $as_echo "$aros_ios_version" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7138 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7140 # Check whether --with-ios-sdk was given.
7141 if test "${with_ios_sdk+set}" = set; then :
7142 withval
=$with_ios_sdk; aros_ios_sdk
="$withval"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7148 $as_echo "$aros_ios_sdk" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7154 $as_echo_n "checking Android SDK path... " >&6; }
7156 # Check whether --with-sdk was given.
7157 if test "${with_sdk+set}" = set; then :
7158 withval
=$with_sdk; aros_android_sdk
="$withval"
7160 aros_android_sdk
=$default_android_sdk
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7164 $as_echo "$aros_android_sdk" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7167 $as_echo_n "checking Android NDK path... " >&6; }
7169 # Check whether --with-ndk was given.
7170 if test "${with_ndk+set}" = set; then :
7171 withval
=$with_ndk; aros_android_ndk
="$withval"
7173 aros_android_ndk
="$default_android_ndk"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7177 $as_echo "$aros_android_ndk" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7180 $as_echo_n "checking what Android version to use... " >&6; }
7182 # Check whether --with-android-version was given.
7183 if test "${with_android_version+set}" = set; then :
7184 withval
=$with_android_version; aros_android_version
="$withval"
7186 aros_android_version
="2.2"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7190 $as_echo "$aros_android_version" >&6; }
7192 export PATH
="$aros_android_sdk/tools:$PATH"
7193 # Extract the first word of "$android_tool", so it can be a program name with args.
7194 set dummy
$android_tool; ac_word
=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if test "${ac_cv_path_android_tool+set}" = set; then :
7198 $as_echo_n "(cached) " >&6
7200 case $android_tool in
7202 ac_cv_path_android_tool
="$android_tool" # Let the user override the test with a path.
7205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir
=.
7210 for ac_exec_ext
in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_android_tool
="$as_dir/$ac_word$ac_exec_ext"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 android_tool
=$ac_cv_path_android_tool
7224 if test -n "$android_tool"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7226 $as_echo "$android_tool" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7233 if test "$android_tool" = ""; then
7234 as_fn_error $?
"android is required to build AROS. Please install and run configure again." "$LINENO" 5
7237 if test $host_os = "mingw32"; then
7238 android_tool
="cmd //c $android_tool"
7244 #-----------------------------------------------------------------------------
7245 # This is the target configuration switch.
7246 case "$target_os" in
7248 aros_target_arch
="linux"
7249 aros_target_family
="unix"
7250 case "$target_cpu" in
7252 aros_target_cpu
="m68k"
7253 aros_object_format
="m68kelf"
7254 aros_flavour
="emulcompat"
7255 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7256 aros_shared_ldflags
="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7257 aros_kernel_ldflags
="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7258 gcc_target_cpu
="mc68000"
7261 aros_target_cpu
="i386"
7262 aros_object_format
="elf_i386"
7263 aros_flavour
="emulation"
7264 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7265 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7266 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7267 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7268 aros_config_ldflags
="-m32 -march=i486"
7269 aros_kernel_ldflags
="-melf_i386"
7270 aros_default_wbdepth
=8
7271 gcc_target_cpu
="i386"
7272 pci_hidd_target
="hidd-pci-linux"
7275 aros_target_cpu
="x86_64"
7276 aros_object_format
="elf_x86_64"
7277 aros_flavour
="emulation"
7278 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7279 aros_config_cflags
="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7280 aros_default_wbdepth
=8
7281 pci_hidd_target
="hidd-pci-linux"
7284 aros_target_cpu
="ppc"
7285 aros_object_format
="elf32ppc"
7286 aros_flavour
="emulation"
7287 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7288 aros_default_wbdepth
=8
7289 gcc_target_cpu
="ppc"
7292 # Same as powerpc, but I need this for the nightly build to work again.
7293 # Actually, the nightly should be made working with powerpc target.
7294 # That just was too much work for the moment, another week or two.
7296 aros_target_cpu
="ppc"
7297 aros_object_format
="elf32ppc"
7298 aros_flavour
="emulation"
7299 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7300 aros_default_wbdepth
=8
7301 gcc_target_cpu
="ppc"
7304 aros_target_cpu
="arm"
7305 aros_object_format
="armelf_linux_eabi"
7306 aros_flavour
="emulation"
7307 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7308 gcc_target_cpu
="arm"
7309 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7310 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7311 aros_arch_libs
="-laeabi"
7314 as_fn_error $?
"\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7317 case "$aros_target_variant" in
7319 case "$aros_android_version" in
7321 aros_android_level
=android-8
7324 aros_android_level
=android-9
7327 aros_default_wbwidth
=320
7328 aros_default_wbheight
=480
7330 if test "$aros_android_ndk" = ""; then
7331 aros_kernel_cflags
="-mandroid"
7332 aros_kernel_ldflags
="-mandroid"
7335 export PATH
="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7336 aros_android_ndk
="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7337 aros_kernel_cflags
="--sysroot $aros_android_ndk -mandroid"
7338 aros_kernel_ldflags
="--sysroot $aros_android_ndk -mandroid"
7339 CFLAGS
="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7340 aros_kernel_includes
="-isystem $aros_android_ndk/usr/include"
7343 target_tool_prefix
="arm-linux-androideabi-"
7349 aros_target_arch
="pc"
7350 aros_shared_default
="no"
7351 target_bootloader
="grub2"
7352 case "$target_cpu" in
7354 aros_target_cpu
="i386"
7357 if test "$aros_object_format" = "" ; then
7358 aros_object_format
="elf_i386"
7360 aros_flavour
="standalone"
7361 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7362 aros_config_cflags
="$aros_config_cflags -m32 -march=i486"
7363 aros_kernel_cflags
="$aros_kernel_cflags -m32 -march=i486"
7364 aros_config_aflags
="$aros_config_aflags -m32 -march=i486"
7365 aros_config_ldflags
="-m32 -march=i486"
7366 aros_kernel_ldflags
="-melf_i386"
7367 aros_default_wbwidth
=640
7368 aros_default_wbheight
=480
7369 gcc_target_cpu
="i386"
7372 aros_target_cpu
="x86_64"
7374 if test "$aros_object_format" = "" ; then
7375 aros_object_format
="elf_x86_64"
7377 aros_flavour
="standalone"
7378 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7379 aros_config_cflags
="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7380 aros_kernel_ldflags
=""
7381 aros_default_wbwidth
=640
7382 aros_default_wbheight
=480
7385 as_fn_error $?
"\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7391 aros_target_arch
="prep"
7392 aros_shared_default
="no"
7393 aros_target_cpu
="ppc"
7394 aros_object_format
="elf32ppc"
7395 aros_flavour
="ppcnative"
7396 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7397 aros_kernel_ldflags
=""
7398 aros_default_wbwidth
=640
7399 aros_default_wbheight
=480
7400 gcc_target_cpu
="ppc"
7404 aros_target_arch
="freebsd"
7405 aros_target_family
="unix"
7406 aros_target_cpu
="i386"
7407 aros_flavour
="emulation"
7408 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7409 gcc_target_cpu
="i386"
7411 aros_target_strip_flags
="-x"
7415 aros_target_arch
="darwin"
7416 aros_target_family
="unix"
7417 aros_flavour
="emulation"
7418 case "$target_cpu" in
7420 aros_ios_platform
="iPhoneSimulator"
7421 aros_target_cpu
="i386"
7422 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7423 aros_kernel_ldflags
=""
7424 aros_macosx_version
="10.4"
7425 aros_default_wbdepth
=8
7426 gcc_target_cpu
="i386"
7427 aros_object_format
="elf_i386"
7428 aros_target_strip_flags
="-x"
7429 target_tool_prefix
="i686-apple-darwin10-"
7430 target_tool_flags
="-m32"
7433 aros_target_cpu
="x86_64"
7434 aros_object_format
="elf_x86_64"
7435 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7436 aros_macosx_version
="10.6"
7437 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7438 aros_kernel_cflags
="-m64"
7439 aros_kernel_ldflags
="-m64"
7440 aros_target_cflags
="-mcmodel=large"
7441 aros_default_wbdepth
=8
7443 target_tool_prefix
="i686-apple-darwin10-"
7446 aros_target_cpu
="ppc"
7447 aros_object_format
="elf32ppc"
7448 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7449 aros_kernel_ldflags
=""
7450 aros_macosx_version
="10.0"
7451 aros_default_wbdepth
=8
7452 gcc_target_cpu
="ppc"
7453 aros_kernel_ld
="ld -arch ppc"
7454 target_tool_prefix
="powerpc-apple-darwin10-"
7457 aros_ios_platform
="iPhoneOS"
7458 aros_target_cpu
="arm"
7459 aros_object_format
="armelf_linux_eabi"
7460 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7461 aros_config_cflags
="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7462 aros_config_aflags
="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7463 aros_arch_libs
="-laeabi"
7464 aros_default_wbdepth
=8
7465 gcc_target_cpu
="arm"
7466 aros_kernel_ld
="ld -arch arm"
7467 target_tool_prefix
="arm-apple-darwin10-"
7468 export PATH
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7471 as_fn_error $?
"\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7474 case "$aros_target_variant" in
7476 aros_default_wbwidth
=320
7477 aros_default_wbheight
=480
7478 aros_ios_sdk
="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7479 target_tool_flags
="$target_tool_flags -isysroot $aros_ios_sdk"
7480 aros_kernel_includes
="-isystem $aros_ios_sdk/usr/include"
7482 # This is here because it may depend on iOS or SDK version
7483 aros_kernel_cflags
="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7484 aros_kernel_ldflags
="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7485 aros_kernel_objcflags
="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7488 aros_kernel_cflags
="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7489 aros_kernel_ldflags
="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7495 aros_target_arch
="dragonfly"
7496 aros_target_family
="unix"
7497 aros_flavour
="emulation"
7498 case "$target_cpu" in
7500 aros_target_cpu
="i386"
7501 aros_object_format
="elf_i386"
7502 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7505 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7506 aros_target_cpu
="x86_64"
7507 aros_object_format
="elf_x86_64"
7508 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7511 as_fn_error $?
"\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7517 aros_target_arch
="netbsd"
7518 aros_target_family
="unix"
7519 case "$target_cpu" in
7521 aros_target_cpu
="m68k"
7522 aros_object_format
="m68kelf"
7523 aros_flavour
="emulcompat"
7524 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7525 gcc_target_cpu
="mc68000"
7528 aros_target_cpu
="i386"
7529 aros_object_format
="elf_i386"
7530 aros_flavour
="emulation"
7531 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7532 aros_default_wbdepth
=8
7533 gcc_target_cpu
="i386"
7536 as_fn_error $?
"\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7539 aros_target_genmap
="-Wl,-M -Xlinker >"
7540 aros_flavour
="emulation"
7541 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7545 aros_target_arch
="openbsd"
7546 aros_target_family
="unix"
7547 case "$target_cpu" in
7549 aros_target_cpu
="i386"
7550 aros_object_format
="elf_i386"
7551 aros_flavour
="emulation"
7552 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7553 gcc_target_cpu
="i386"
7556 as_fn_error $?
"\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7559 aros_target_genmap
="-Wl,-M -Xlinker >"
7560 aros_target_nm_flags
="-u"
7561 aros_flavour
="emulation"
7565 aros_target_arch
="solaris"
7566 aros_target_family
="unix"
7567 case "$target_cpu" in
7569 aros_target_cpu
="i386"
7570 aros_object_format
="elf_i386"
7571 aros_flavour
="emulation"
7572 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7573 aros_default_wbdepth
=8
7574 gcc_target_cpu
="i386"
7577 aros_target_cpu
="sparc"
7578 aros_object_format
="elf_sparc"
7579 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7580 gcc_target_cpu
="sparc"
7583 as_fn_error $?
"\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7586 aros_config_cflags
="$aros_config_cflags -D$aros_target_cpu"
7587 aros_flavour
="emulation"
7591 aros_target_arch
="morphos"
7592 aros_shared_default
="no"
7593 aros_target_cpu
="ppc"
7594 aros_object_format
="elf_ppc"
7595 aros_flavour
="nativecompat"
7596 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7597 gcc_target_cpu
="ppc"
7601 aros_target_arch
="sam440"
7602 aros_shared_default
="no"
7603 aros_target_cpu
="ppc"
7604 aros_object_format
="elf32ppc"
7605 aros_flavour
="ppcnative"
7606 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7607 aros_kernel_ldflags
=""
7608 aros_default_wbwidth
=1024
7609 aros_default_wbheight
=768
7610 aros_default_wbdepth
=24
7611 aros_config_cflags
="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7612 gcc_target_cpu
="powerpc"
7616 aros_target_arch
="efika"
7617 aros_shared_default
="no"
7618 aros_target_cpu
="arm"
7619 aros_object_format
="armelf_linux_eabi"
7620 aros_flavour
="standalone"
7621 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7622 aros_kernel_ldflags
=""
7623 aros_default_wbwidth
=1024
7624 aros_default_wbheight
=600
7625 aros_arch_libs
="-laeabi"
7626 aros_config_cflags
="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7627 aros_config_aflags
="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7631 aros_target_arch
="chrp"
7632 aros_shared_default
="no"
7633 aros_target_cpu
="ppc"
7634 aros_object_format
="elf32ppc"
7635 aros_flavour
="ppcnative"
7636 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dppc"
7637 aros_kernel_ldflags
=""
7638 aros_default_wbwidth
=640
7639 aros_default_wbheight
=480
7640 aros_config_cflags
="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7641 gcc_target_cpu
="powerpc"
7642 case "$aros_target_variant" in
7644 aros_config_cflags
="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7650 aros_target_arch
="amiga"
7651 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7652 aros_shared_default
="no"
7654 case "$target_cpu" in
7657 aros_target_cpu
="m68k"
7658 aros_object_format
="m68kelf"
7659 aros_flavour
="standcompat"
7660 gcc_target_cpu
="m68000"
7661 aros_config_cflags
="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7662 aros_config_aflags
="$aros_config_aflags -${gcc_target_cpu}"
7663 aros_paranoia_cflags
="$aros_paranoia_cflags -Wno-volatile-register-var"
7664 aros_debug_cflags
="$aros_debug_cflags -Wall -Wno-volatile-register-var"
7665 target_tool_prefix
="m68k-elf-"
7666 # Needed to get the correct multilib
7667 aros_config_ldflags
="-${gcc_target_cpu}"
7668 aros_shared_ldflags
="-${gcc_target_cpu}"
7669 aros_kernel_ldflags
="-${gcc_target_cpu}"
7670 aros_target_nostdlib_ldflags
="-${gcc_target_cpu}"
7671 aros_target_strip_flags
="-R.comment --strip-debug"
7672 aros_default_wbwidth
=640
7673 aros_default_wbheight
=256
7674 aros_default_wbdepth
=2
7678 aros_flavour
="native"
7679 gcc_target_cpu
="ppc"
7682 as_fn_error $?
"\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7688 aros_target_arch
="mingw32"
7689 aros_shared_default
="no"
7690 aros_flavour
="emulation"
7691 aros_shared_cflags
=""
7694 case "$target_cpu" in
7696 aros_target_cpu
="i386"
7697 aros_object_format
="elf_i386"
7698 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Di386"
7699 aros_default_wbdepth
=8
7700 gcc_target_cpu
="i386"
7702 aros_target_as
="i386-aros-as"
7703 aros_target_ar
="i386-aros-ar"
7704 aros_target_ranlib
="i386-aros-ranlib"
7705 aros_target_nm
="i386-aros-nm"
7706 aros_target_strip
="i386-aros-strip"
7707 aros_target_objcopy
="i386-aros-objcopy"
7708 aros_target_objdump
="i386-aros-objdump"
7710 target_tool_prefix
="i386-mingw32-"
7713 aros_target_cpu
="x86_64"
7714 aros_object_format
="elf_x86_64"
7715 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7716 aros_config_cflags
="$aros_config_cflags -fno-omit-frame-pointer"
7717 aros_default_wbdepth
=8
7718 target_tool_prefix
="x86_64-w64-mingw32-"
7721 aros_target_cpu
="arm"
7722 aros_object_format
="armelf_linux_eabi"
7723 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Darm"
7724 aros_arch_libs
="-laeabi"
7725 aros_default_wbdepth
=8
7726 gcc_target_cpu
="arm"
7727 target_tool_prefix
="arm-mingw32ce-"
7728 aros_default_wbwidth
=160
7729 aros_default_wbheight
=160
7732 as_fn_error $?
"\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7735 if test $host_os = "cygwin"; then
7736 aros_kernel_cflags
="-mno-cygwin"
7740 aros_target_arch
="pp"
7741 aros_shared_default
="no"
7742 case "$target_cpu" in
7744 aros_target_cpu
="m68k"
7745 aros_object_format
="m68kelf"
7746 aros_flavour
="palmnative"
7747 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7748 aros_default_wbwidth
=160
7749 aros_default_wbheight
=160
7750 aros_default_wbdepth
=1
7751 aros_target_ar_flags
="cru"
7752 aros_compiler_libs
="-lgcc1"
7753 aros_shared_default
=no
7754 aros_shared_cflags
="-fpic"
7755 aros_shared_aflags
=""
7756 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7757 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7758 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7759 aros_debug_aflags
=""
7760 aros_debug_ldflags
="$aros_symbols_debug"
7761 aros_mungwall_debug
="0"
7762 aros_modules_debug
="0"
7763 gcc_target_cpu
="mc68000"
7764 ignore_undefined_symbols
="-ius"
7767 as_fn_error $?
"\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7773 aros_target_arch
="mac"
7774 aros_shared_default
="no"
7775 case "$target_cpu" in
7777 aros_target_cpu
="m68k"
7778 aros_object_format
="m68kelf"
7779 aros_flavour
="mac68knative"
7780 aros_target_mkdep
="$aros_target_mkdep -D__GNUC__ -Dm68k"
7781 aros_default_wbwidth
=512
7782 aros_default_wbheight
=384
7783 aros_default_wbdepth
=8
7784 aros_target_ar_flags
="cru"
7785 aros_compiler_libs
="-lgcc1"
7786 aros_shared_default
=no
7787 aros_shared_cflags
="-fpic"
7788 aros_shared_aflags
=""
7789 aros_shared_ldflags
="-Wl,-rpath,./lib -shared"
7790 aros_kernel_ldflags
="-Wl,-rpath,./lib"
7791 aros_debug_cflags
="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7792 aros_debug_aflags
=""
7793 aros_debug_ldflags
="$aros_symbols_debug"
7794 aros_mungwall_debug
="0"
7795 aros_modules_debug
="0"
7796 gcc_target_cpu
="mc68000"
7797 ignore_undefined_symbols
="-ius"
7800 as_fn_error $?
"\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7806 as_fn_error $?
"Unsupported target architecture $target" "$LINENO" 5
7810 #-----------------------------------------------------------------------------
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7812 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7814 # Check whether --with-crosstools was given.
7815 if test "${with_crosstools+set}" = set; then :
7816 withval
=$with_crosstools; with_crosstools
=$withval
7818 with_crosstools
="default"
7821 if test "$with_crosstools" = "default"; then
7822 AROS_CROSSTOOLSDIR
="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7824 AROS_CROSSTOOLSDIR
="$with_crosstools"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7827 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7829 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7831 PATH
=$AROS_CROSSTOOLSDIR:$PATH
7832 target_tool_prefix
=${target_cpu}-aros-
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7836 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7838 # Check whether --with-aros-gcc was given.
7839 if test "${with_aros_gcc+set}" = set; then :
7840 withval
=$with_aros_gcc; aros_gcc_version
="$withval"
7842 aros_gcc_version
="$use_aros_gcc"
7845 case "$aros_gcc_version" in
7847 aros_gcc_version
="default"
7850 aros_gcc_version
="none"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7854 $as_echo "$aros_gcc_version" >&6; }
7856 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7857 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7858 aros_target_cc
="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7859 aros_target_cxx
="$aros_target_cpu-aros-g++-$aros_gcc_version"
7861 aros_target_cc
="$aros_target_cpu-aros-gcc"
7862 aros_target_cxx
="$aros_target_cpu-aros-g++"
7865 aros_target_ld
="$aros_target_cpu-aros-ld"
7866 aros_target_as
="$aros_target_cpu-aros-as"
7867 aros_target_ar
="$aros_target_cpu-aros-ar"
7868 aros_target_ranlib
="$aros_target_cpu-aros-ranlib"
7869 aros_target_nm
="$aros_target_cpu-aros-nm"
7870 aros_target_strip
="$aros_target_cpu-aros-strip"
7871 aros_target_objcopy
="$aros_target_cpu-aros-objcopy"
7872 aros_target_objdump
="$aros_target_cpu-aros-objdump"
7875 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7876 # Since we override specs, we may need to put these defines there
7877 if test "$gcc_target_cpu" != ""; then
7878 gcc_target_cpu
="-D__${gcc_target_cpu}__"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7882 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7884 # Check whether --with-portssources was given.
7885 if test "${with_portssources+set}" = set; then :
7886 withval
=$with_portssources; with_portssrcdir
=$withval
7888 with_portssrcdir
="default"
7891 if test "$with_portssrcdir" = "default"; then
7892 AROS_PORTSSRCDIR
="$AROS_BUILDDIR_UNIX/bin/Sources"
7894 AROS_PORTSSRCDIR
="$with_portssrcdir"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7897 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7900 $as_echo_n "checking which bootloader to use... " >&6; }
7902 # Check whether --with-bootloader was given.
7903 if test "${with_bootloader+set}" = set; then :
7904 withval
=$with_bootloader; target_bootloader
=$withval
7906 target_bootloader
=$target_bootloader
7909 if test "$target_bootloader" = "none"; then
7910 aros_target_bootloader
=""
7912 aros_target_bootloader
="$target_bootloader"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7915 $as_echo "$target_bootloader" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7918 $as_echo_n "checking which icon-set to use... " >&6; }
7920 # Check whether --with-iconset was given.
7921 if test "${with_iconset+set}" = set; then :
7922 withval
=$with_iconset; target_iconset
=$withval
7924 target_iconset
="default"
7927 if test "$target_iconset" = "default"; then
7928 aros_target_iconset
="Gorilla"
7929 target_iconset
="default (Gorilla)"
7931 aros_target_iconset
="$target_iconset"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7934 $as_echo "$target_iconset" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7937 $as_echo_n "checking which GUI Theme to use... " >&6; }
7939 # Check whether --with-theme was given.
7940 if test "${with_theme+set}" = set; then :
7941 withval
=$with_theme; target_guitheme
=$withval
7943 target_guitheme
="default"
7946 if test "$target_guitheme" = "default"; then
7947 aros_target_guitheme
="Ice"
7949 aros_target_guitheme
="$target_guitheme"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7952 $as_echo "$aros_target_guitheme" >&6; }
7954 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7957 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7961 if test "$aros_host_cpu" == "x86_64" ; then
7962 if test "$aros_target_cpu" == "i386" ; then
7963 if test "$aros_target_arch" != "mingw32"; then
7969 if test "$aros_host_arch" == "darwin" ; then
7970 if test "$aros_target_arch" != "darwin" ; then
7975 # I want to have this information in configure output, although it might be
7976 # misleading, e.g. for darwin hosted you cannot compile target code without a
7977 # cross compiler, but here it says no.
7978 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7980 # Set prefix for target compiler etc. if we're cross-compiling
7981 # (should possibly be earlier but needs to be after AC_PROG_CC)
7982 if test "$cross_compiling" = "yes" ; then
7983 CC
=${target_tool_prefix}gcc
7984 CPP
=${target_tool_prefix}cpp
7985 if test "$target_tool_version" != "default"; then
7986 CC
="$CC-$target_tool_version"
7987 CPP
="$CC-$target_tool_version"
7989 if test "$crosstools" != "yes" ; then
7990 # Extract the first word of "$CC", so it can be a program name with args.
7991 set dummy
$CC; ac_word
=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_path_CC+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7999 ac_cv_path_CC
="$CC" # Let the user override the test with a path.
8002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir
=.
8007 for ac_exec_ext
in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_CC
="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 if test -n "$CC"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8023 $as_echo "$CC" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 if test "$CC" = ""; then
8031 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8034 CC
=$AROS_CROSSTOOLSDIR/$CC
8037 CC
="$CC $target_tool_flags"
8039 #-----------------------------------------------------------------------------
8041 # Disable pointer-signedness warnings if the compiler recognises the option
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8044 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8045 save_cflags
="$CFLAGS"
8046 if test "$crosstools" != "yes" ; then
8047 CFLAGS
="$CFLAGS -Wno-pointer-sign"
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8059 if ac_fn_c_try_compile
"$LINENO"; then :
8060 use_no_sign_warning
="yes"
8062 use_no_sign_warning
="no"
8064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8066 # we do know it is supported for the smallest version of gcc we are going to build
8067 # we assume it's also supported by later versions
8068 use_no_sign_warning
=yes
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8071 $as_echo "$use_no_sign_warning" >&6; }
8072 if test "x-$use_no_sign_warning" = "x-yes" ; then
8073 aros_config_cflags
="$aros_config_cflags -Wno-pointer-sign"
8075 CFLAGS
="$save_cflags"
8077 #-----------------------------------------------------------------------------
8079 # Find all the tools we need to compile. This could be cross-compiling
8080 # though! If that is the case we use the GNU form of the target and
8081 # simply add this to the front of the binary name. This is rather simple,
8082 # but it should work under most circumstances.
8084 # The default tools are to use the same as the host, but only if the
8085 # host and target CPU are the same. With GCC this is normally enough.
8089 aros_shared_ld
="$aros_host_ld"
8091 aros_target_mkdep
="$aros_host_mkdep"
8092 aros_target_incl_def
="$aros_host_incl"
8094 aros_kernel_cc
="$CC"
8096 # The default tools executables to be linked to.
8097 if test "$rescomp" != ""; then
8098 if test "$cross_compiling" = "yes" ; then
8099 rescomp
=${target_tool_prefix}${rescomp}
8101 # Extract the first word of "$rescomp", so it can be a program name with args.
8102 set dummy
$rescomp; ac_word
=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8108 case $aros_kernel_rescomp in
8110 ac_cv_path_aros_kernel_rescomp
="$aros_kernel_rescomp" # Let the user override the test with a path.
8113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8117 test -z "$as_dir" && as_dir
=.
8118 for ac_exec_ext
in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_path_aros_kernel_rescomp
="$as_dir/$ac_word$ac_exec_ext"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 aros_kernel_rescomp
=$ac_cv_path_aros_kernel_rescomp
8132 if test -n "$aros_kernel_rescomp"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8134 $as_echo "$aros_kernel_rescomp" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test "$aros_kernel_rescomp" = ""; then
8142 as_fn_error $?
"$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8146 if test "$crosstools" != "yes"; then
8148 if test "$aros_kernel_ld" = ""; then
8149 if test "$cross_compiling" = "yes" ; then
8150 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8151 set dummy
${target_tool_prefix}ld
; ac_word
=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8157 case $aros_kernel_ld in
8159 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir
=.
8167 for ac_exec_ext
in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8181 if test -n "$aros_kernel_ld"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8183 $as_echo "$aros_kernel_ld" >&6; }
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test "$GCC" = "yes"; then
8192 aros_gcc_ld
=`$CC -print-prog-name=ld`
8193 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8194 set dummy
`basename $aros_gcc_ld`; ac_word
=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8200 case $aros_kernel_ld in
8202 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8206 for as_dir
in `dirname $aros_gcc_ld`
8209 test -z "$as_dir" && as_dir
=.
8210 for ac_exec_ext
in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8224 if test -n "$aros_kernel_ld"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8226 $as_echo "$aros_kernel_ld" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8234 if test "$aros_kernel_ld" = ""; then
8235 # Extract the first word of "ld", so it can be a program name with args.
8236 set dummy ld
; ac_word
=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8242 case $aros_kernel_ld in
8244 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir
=.
8252 for ac_exec_ext
in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8266 if test -n "$aros_kernel_ld"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8268 $as_echo "$aros_kernel_ld" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8278 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8279 set dummy
$aros_kernel_ld; ac_word
=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8285 case $aros_kernel_ld in
8287 ac_cv_path_aros_kernel_ld
="$aros_kernel_ld" # Let the user override the test with a path.
8290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8294 test -z "$as_dir" && as_dir
=.
8295 for ac_exec_ext
in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_aros_kernel_ld
="$as_dir/$ac_word$ac_exec_ext"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 aros_kernel_ld
=$ac_cv_path_aros_kernel_ld
8309 if test -n "$aros_kernel_ld"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8311 $as_echo "$aros_kernel_ld" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8320 if test "$aros_kernel_ld" = ""; then
8321 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8324 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8325 target_tool_prefix
=${target_cpu}-elf-
8326 if test "$aros_target_cc" == ""; then
8327 aros_target_cc
="${target_tool_prefix}gcc"
8329 if test "$aros_target_ld" == ""; then
8330 aros_target_ld
="${target_tool_prefix}ld"
8334 if test "$aros_target_as" = ""; then
8335 if test "$cross_compiling" = "yes" ; then
8336 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8337 set dummy
${target_tool_prefix}as
; ac_word
=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8343 case $aros_target_as_ln in
8345 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir
=.
8353 for ac_exec_ext
in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8367 if test -n "$aros_target_as_ln"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8369 $as_echo "$aros_target_as_ln" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8377 if test "$GCC" = "yes"; then
8378 aros_gcc_as
=`$CC -print-prog-name=as`
8379 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8380 set dummy
`basename $aros_gcc_as`; ac_word
=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8386 case $aros_target_as_ln in
8388 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8392 for as_dir
in `dirname $aros_gcc_as`
8395 test -z "$as_dir" && as_dir
=.
8396 for ac_exec_ext
in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8410 if test -n "$aros_target_as_ln"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8412 $as_echo "$aros_target_as_ln" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test "$aros_target_as_ln" = ""; then
8421 # Extract the first word of "as", so it can be a program name with args.
8422 set dummy as
; ac_word
=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8428 case $aros_target_as_ln in
8430 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8437 test -z "$as_dir" && as_dir
=.
8438 for ac_exec_ext
in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8452 if test -n "$aros_target_as_ln"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8454 $as_echo "$aros_target_as_ln" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8464 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8465 set dummy
$aros_target_as; ac_word
=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8471 case $aros_target_as_ln in
8473 ac_cv_path_aros_target_as_ln
="$aros_target_as_ln" # Let the user override the test with a path.
8476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir
=.
8481 for ac_exec_ext
in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_aros_target_as_ln
="$as_dir/$ac_word$ac_exec_ext"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 aros_target_as_ln
=$ac_cv_path_aros_target_as_ln
8495 if test -n "$aros_target_as_ln"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8497 $as_echo "$aros_target_as_ln" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8506 if test "$aros_target_as_ln" = ""; then
8507 as_fn_error $?
"as is required to build AROS. Please install and run configure again." "$LINENO" 5
8510 if test "$aros_target_ar" = ""; then
8511 if test "$cross_compiling" = "yes" ; then
8512 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8513 set dummy
${target_tool_prefix}ar; ac_word
=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 case $aros_target_ar_ln in
8521 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir
=.
8529 for ac_exec_ext
in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8543 if test -n "$aros_target_ar_ln"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8545 $as_echo "$aros_target_ar_ln" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 if test "$GCC" = "yes"; then
8554 aros_gcc_ar
=`$CC -print-prog-name=ar`
8555 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8556 set dummy
`basename $aros_gcc_ar`; ac_word
=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8562 case $aros_target_ar_ln in
8564 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8568 for as_dir
in `dirname $aros_gcc_ar`
8571 test -z "$as_dir" && as_dir
=.
8572 for ac_exec_ext
in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8586 if test -n "$aros_target_ar_ln"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8588 $as_echo "$aros_target_ar_ln" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test "$aros_target_ar_ln" = ""; then
8597 # Extract the first word of "ar", so it can be a program name with args.
8598 set dummy
ar; ac_word
=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8604 case $aros_target_ar_ln in
8606 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir
=.
8614 for ac_exec_ext
in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8628 if test -n "$aros_target_ar_ln"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8630 $as_echo "$aros_target_ar_ln" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8640 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8641 set dummy
$aros_target_ar; ac_word
=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8647 case $aros_target_ar_ln in
8649 ac_cv_path_aros_target_ar_ln
="$aros_target_ar_ln" # Let the user override the test with a path.
8652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8656 test -z "$as_dir" && as_dir
=.
8657 for ac_exec_ext
in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659 ac_cv_path_aros_target_ar_ln
="$as_dir/$ac_word$ac_exec_ext"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 aros_target_ar_ln
=$ac_cv_path_aros_target_ar_ln
8671 if test -n "$aros_target_ar_ln"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8673 $as_echo "$aros_target_ar_ln" >&6; }
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8682 if test "$aros_target_ar_ln" = ""; then
8683 as_fn_error $?
"ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8686 if test "$aros_target_nm" = ""; then
8687 if test "$cross_compiling" = "yes" ; then
8688 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8689 set dummy
${target_tool_prefix}nm
; ac_word
=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8695 case $aros_target_nm_ln in
8697 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8704 test -z "$as_dir" && as_dir
=.
8705 for ac_exec_ext
in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8719 if test -n "$aros_target_nm_ln"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8721 $as_echo "$aros_target_nm_ln" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test "$GCC" = "yes"; then
8730 aros_gcc_nm
=`$CC -print-prog-name=nm`
8731 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8732 set dummy
`basename $aros_gcc_nm`; ac_word
=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 case $aros_target_nm_ln in
8740 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8744 for as_dir
in `dirname $aros_gcc_nm`
8747 test -z "$as_dir" && as_dir
=.
8748 for ac_exec_ext
in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8762 if test -n "$aros_target_nm_ln"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8764 $as_echo "$aros_target_nm_ln" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test "$aros_target_nm_ln" = ""; then
8773 # Extract the first word of "nm", so it can be a program name with args.
8774 set dummy nm
; ac_word
=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8780 case $aros_target_nm_ln in
8782 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8789 test -z "$as_dir" && as_dir
=.
8790 for ac_exec_ext
in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8804 if test -n "$aros_target_nm_ln"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8806 $as_echo "$aros_target_nm_ln" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8816 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8817 set dummy
$aros_target_nm; ac_word
=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8823 case $aros_target_nm_ln in
8825 ac_cv_path_aros_target_nm_ln
="$aros_target_nm_ln" # Let the user override the test with a path.
8828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir
=.
8833 for ac_exec_ext
in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_path_aros_target_nm_ln
="$as_dir/$ac_word$ac_exec_ext"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 aros_target_nm_ln
=$ac_cv_path_aros_target_nm_ln
8847 if test -n "$aros_target_nm_ln"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8849 $as_echo "$aros_target_nm_ln" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8858 if test "$aros_target_nm_ln" = ""; then
8859 as_fn_error $?
"nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8862 if test "$aros_target_objcopy" = ""; then
8863 if test "$cross_compiling" = "yes" ; then
8864 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8865 set dummy
${target_tool_prefix}objcopy
; ac_word
=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8871 case $aros_target_objcopy_ln in
8873 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8880 test -z "$as_dir" && as_dir
=.
8881 for ac_exec_ext
in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8895 if test -n "$aros_target_objcopy_ln"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8897 $as_echo "$aros_target_objcopy_ln" >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8905 if test "$GCC" = "yes"; then
8906 aros_gcc_objcopy
=`$CC -print-prog-name=objcopy`
8907 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8908 set dummy
`basename $aros_gcc_objcopy`; ac_word
=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8914 case $aros_target_objcopy_ln in
8916 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8920 for as_dir
in `dirname $aros_gcc_objcopy`
8923 test -z "$as_dir" && as_dir
=.
8924 for ac_exec_ext
in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8938 if test -n "$aros_target_objcopy_ln"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8940 $as_echo "$aros_target_objcopy_ln" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8948 if test "$aros_target_objcopy_ln" = ""; then
8949 # Extract the first word of "objcopy", so it can be a program name with args.
8950 set dummy objcopy
; ac_word
=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8956 case $aros_target_objcopy_ln in
8958 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
8961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8965 test -z "$as_dir" && as_dir
=.
8966 for ac_exec_ext
in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
8980 if test -n "$aros_target_objcopy_ln"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8982 $as_echo "$aros_target_objcopy_ln" >&6; }
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8992 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8993 set dummy
$aros_target_objcopy; ac_word
=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8999 case $aros_target_objcopy_ln in
9001 ac_cv_path_aros_target_objcopy_ln
="$aros_target_objcopy_ln" # Let the user override the test with a path.
9004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9008 test -z "$as_dir" && as_dir
=.
9009 for ac_exec_ext
in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_aros_target_objcopy_ln
="$as_dir/$ac_word$ac_exec_ext"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 aros_target_objcopy_ln
=$ac_cv_path_aros_target_objcopy_ln
9023 if test -n "$aros_target_objcopy_ln"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9025 $as_echo "$aros_target_objcopy_ln" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9034 if test "$aros_target_objcopy_ln" = ""; then
9035 as_fn_error $?
"objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9038 if test "$aros_target_objdump" = ""; then
9039 if test "$cross_compiling" = "yes" ; then
9040 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9041 set dummy
${target_tool_prefix}objdump
; ac_word
=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9047 case $aros_target_objdump_ln in
9049 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir
=.
9057 for ac_exec_ext
in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9071 if test -n "$aros_target_objdump_ln"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9073 $as_echo "$aros_target_objdump_ln" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test "$GCC" = "yes"; then
9082 aros_gcc_objdump
=`$CC -print-prog-name=objdump`
9083 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9084 set dummy
`basename $aros_gcc_objdump`; ac_word
=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9090 case $aros_target_objdump_ln in
9092 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9096 for as_dir
in `dirname $aros_gcc_objdump`
9099 test -z "$as_dir" && as_dir
=.
9100 for ac_exec_ext
in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9114 if test -n "$aros_target_objdump_ln"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9116 $as_echo "$aros_target_objdump_ln" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 if test "$aros_target_objdump_ln" = ""; then
9125 # Extract the first word of "objdump", so it can be a program name with args.
9126 set dummy objdump
; ac_word
=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9132 case $aros_target_objdump_ln in
9134 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir
=.
9142 for ac_exec_ext
in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9155 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9156 if test -n "$aros_target_objdump_ln"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9158 $as_echo "$aros_target_objdump_ln" >&6; }
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9168 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9169 set dummy
$aros_target_objdump; ac_word
=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9175 case $aros_target_objdump_ln in
9177 ac_cv_path_aros_target_objdump_ln
="$aros_target_objdump_ln" # Let the user override the test with a path.
9180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9184 test -z "$as_dir" && as_dir
=.
9185 for ac_exec_ext
in '' $ac_executable_extensions; do
9186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187 ac_cv_path_aros_target_objdump_ln
="$as_dir/$ac_word$ac_exec_ext"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9198 aros_target_objdump_ln
=$ac_cv_path_aros_target_objdump_ln
9199 if test -n "$aros_target_objdump_ln"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9201 $as_echo "$aros_target_objdump_ln" >&6; }
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9210 if test "$aros_target_objdump_ln" = ""; then
9211 as_fn_error $?
"objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9214 if test "$aros_target_ranlib" = ""; then
9215 if test "$cross_compiling" = "yes" ; then
9216 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9217 set dummy
${target_tool_prefix}ranlib
; ac_word
=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9223 case $aros_target_ranlib_ln in
9225 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9232 test -z "$as_dir" && as_dir
=.
9233 for ac_exec_ext
in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9247 if test -n "$aros_target_ranlib_ln"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9249 $as_echo "$aros_target_ranlib_ln" >&6; }
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9257 if test "$GCC" = "yes"; then
9258 aros_gcc_ranlib
=`$CC -print-prog-name=ranlib`
9259 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9260 set dummy
`basename $aros_gcc_ranlib`; ac_word
=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9266 case $aros_target_ranlib_ln in
9268 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9272 for as_dir
in `dirname $aros_gcc_ranlib`
9275 test -z "$as_dir" && as_dir
=.
9276 for ac_exec_ext
in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9290 if test -n "$aros_target_ranlib_ln"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9292 $as_echo "$aros_target_ranlib_ln" >&6; }
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9300 if test "$aros_target_ranlib_ln" = ""; then
9301 # Extract the first word of "ranlib", so it can be a program name with args.
9302 set dummy ranlib
; ac_word
=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9308 case $aros_target_ranlib_ln in
9310 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9317 test -z "$as_dir" && as_dir
=.
9318 for ac_exec_ext
in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9332 if test -n "$aros_target_ranlib_ln"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9334 $as_echo "$aros_target_ranlib_ln" >&6; }
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9344 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9345 set dummy
$aros_target_ranlib; ac_word
=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9351 case $aros_target_ranlib_ln in
9353 ac_cv_path_aros_target_ranlib_ln
="$aros_target_ranlib_ln" # Let the user override the test with a path.
9356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9360 test -z "$as_dir" && as_dir
=.
9361 for ac_exec_ext
in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363 ac_cv_path_aros_target_ranlib_ln
="$as_dir/$ac_word$ac_exec_ext"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 aros_target_ranlib_ln
=$ac_cv_path_aros_target_ranlib_ln
9375 if test -n "$aros_target_ranlib_ln"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9377 $as_echo "$aros_target_ranlib_ln" >&6; }
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9386 if test "$aros_target_ranlib_ln" = ""; then
9387 as_fn_error $?
"ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9390 if test "$aros_target_strip" = ""; then
9391 if test "$cross_compiling" = "yes" ; then
9392 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9393 set dummy
${target_tool_prefix}strip
; ac_word
=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9399 case $aros_target_strip_ln in
9401 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9408 test -z "$as_dir" && as_dir
=.
9409 for ac_exec_ext
in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9423 if test -n "$aros_target_strip_ln"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9425 $as_echo "$aros_target_strip_ln" >&6; }
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9433 if test "$GCC" = "yes"; then
9434 aros_gcc_strip
=`$CC -print-prog-name=strip`
9435 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9436 set dummy
`basename $aros_gcc_strip`; ac_word
=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9442 case $aros_target_strip_ln in
9444 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9448 for as_dir
in `dirname $aros_gcc_strip`
9451 test -z "$as_dir" && as_dir
=.
9452 for ac_exec_ext
in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9466 if test -n "$aros_target_strip_ln"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9468 $as_echo "$aros_target_strip_ln" >&6; }
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9476 if test "$aros_target_strip_ln" = ""; then
9477 # Extract the first word of "strip", so it can be a program name with args.
9478 set dummy strip
; ac_word
=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9484 case $aros_target_strip_ln in
9486 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9493 test -z "$as_dir" && as_dir
=.
9494 for ac_exec_ext
in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9508 if test -n "$aros_target_strip_ln"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9510 $as_echo "$aros_target_strip_ln" >&6; }
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9520 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9521 set dummy
$aros_target_strip; ac_word
=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9527 case $aros_target_strip_ln in
9529 ac_cv_path_aros_target_strip_ln
="$aros_target_strip_ln" # Let the user override the test with a path.
9532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9536 test -z "$as_dir" && as_dir
=.
9537 for ac_exec_ext
in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_path_aros_target_strip_ln
="$as_dir/$ac_word$ac_exec_ext"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 aros_target_strip_ln
=$ac_cv_path_aros_target_strip_ln
9551 if test -n "$aros_target_strip_ln"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9553 $as_echo "$aros_target_strip_ln" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9562 if test "$aros_target_strip_ln" = ""; then
9563 as_fn_error $?
"strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9565 if test "$aros_target_cxx" != ""; then
9566 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9567 set dummy
$aros_target_cxx; ac_word
=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9573 case $aros_target_cxx in
9575 ac_cv_path_aros_target_cxx
="$aros_target_cxx" # Let the user override the test with a path.
9578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9582 test -z "$as_dir" && as_dir
=.
9583 for ac_exec_ext
in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_path_aros_target_cxx
="$as_dir/$ac_word$ac_exec_ext"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 aros_target_cxx
=$ac_cv_path_aros_target_cxx
9597 if test -n "$aros_target_cxx"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9599 $as_echo "$aros_target_cxx" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 if test "$aros_target_cxx" = ""; then
9607 as_fn_error $?
"c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9611 aros_target_cc
=$AROS_CROSSTOOLSDIR/$aros_target_cc
9612 aros_target_cxx
=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9613 aros_target_as_ln
=$AROS_CROSSTOOLSDIR/$aros_target_as
9614 aros_target_ar_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ar
9615 aros_target_nm_ln
=$AROS_CROSSTOOLSDIR/$aros_target_nm
9616 aros_target_objcopy_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9617 aros_target_objdump_ln
=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9618 aros_target_ranlib_ln
=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9619 aros_target_strip_ln
=$AROS_CROSSTOOLSDIR/$aros_target_strip
9621 aros_kernel_ld
=$AROS_CROSSTOOLSDIR/$aros_target_ld
9623 crosstools_target
=tools-crosstools
9626 orig_target_cc
=$aros_kernel_cc
9627 orig_target_ld
=$aros_kernel_ld
9629 if test "$crosstools" != "yes"; then
9630 if test "$aros_target_cc" != ""; then
9631 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9632 set dummy
$aros_target_cc; ac_word
=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9638 case $aros_target_cc in
9640 ac_cv_path_aros_target_cc
="$aros_target_cc" # Let the user override the test with a path.
9643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9647 test -z "$as_dir" && as_dir
=.
9648 for ac_exec_ext
in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_target_cc
="$as_dir/$ac_word$ac_exec_ext"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9661 aros_target_cc
=$ac_cv_path_aros_target_cc
9662 if test -n "$aros_target_cc"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9664 $as_echo "$aros_target_cc" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 if test "$aros_target_cc" = ""; then
9672 as_fn_error $?
"gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9674 orig_target_cc
=$aros_target_cc
9676 if test "$aros_target_ld" != ""; then
9677 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9678 set dummy
$aros_target_ld; ac_word
=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9682 $as_echo_n "(cached) " >&6
9684 case $aros_target_ld in
9686 ac_cv_path_aros_target_ld
="$aros_target_ld" # Let the user override the test with a path.
9689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9693 test -z "$as_dir" && as_dir
=.
9694 for ac_exec_ext
in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_path_aros_target_ld
="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707 aros_target_ld
=$ac_cv_path_aros_target_ld
9708 if test -n "$aros_target_ld"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9710 $as_echo "$aros_target_ld" >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9717 if test "$aros_target_ld" = ""; then
9718 as_fn_error $?
"ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9720 orig_target_ld
=$aros_target_ld
9723 orig_target_cc
=$aros_target_cc
9724 orig_target_ld
=$aros_target_ld
9727 # Build crosstools if we have no C++ - temporary thing
9728 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9729 crosstools_cxx_target
=tools-crosstools
9732 aros_hostcfg_dir
="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9733 aros_targetcfg_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9734 aros_inc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9735 aros_gendir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9736 aros_geninc_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9737 aros_tools_dir
="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9738 aros_scripts_dir
="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9740 # aros_cc_pre is a variable that is added to the front of the compiler name
9741 # in the generated aros-gcc shell script. We need this to enable the cache
9742 # to work across cleaned builds. Also, support DISTCC using the correct
9743 # environment variable.
9746 if test "x${DISTCC}" != "x" ; then
9747 if test "x${CCACHE}" != "x" ; then
9748 aros_cc_pre
="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9750 aros_cc_pre
="${DISTCC} "
9753 if test "x${CCACHE}" != "x" ; then
9754 aros_cc_pre
="${CCACHE} "
9758 prefix
="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9760 aros_target_nostdinc_cflags
=-nostdinc
9762 aros_target_nostartup_ldflags
=-nostartfiles
9764 aros_target_nix_ldflags
=-nix
9766 aros_target_detach_ldflags
=-detach
9768 aros_target_nostdlib_ldflags
=-nostdlib
9772 if test "$crosstools" != "yes"; then
9773 if test "$GCC" = "yes"; then
9774 aros_target_cc_path
=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9777 # We do not know which gcc version we are going to build and what we need to know
9778 # here is different for different versions so this will be set later during the
9779 # build of crosstools.
9780 aros_target_cc_path
=@aros_target_cc_path@
9782 aros_target_cc
="${prefix}-gcc"
9783 aros_target_as
="${prefix}-as"
9784 aros_target_ld
="${prefix}-ld"
9785 aros_target_ar
="${prefix}-ar $aros_target_ar_flags"
9786 aros_target_objcopy
=${prefix}-objcopy
9787 aros_target_objdump
=${prefix}-objdump
9788 aros_target_ranlib
="${prefix}-ranlib $aros_target_ranlib_flags"
9789 aros_target_nm
="${prefix}-nm $aros_target_nm_flags"
9790 aros_kernel_nm
="${prefix}-nm"
9791 aros_target_strip
=${prefix}-strip
9792 aros_kernel_ar
="${prefix}-ar"
9794 # Find the system include path. We can suggest that an alternative is
9795 # used if we don't get it correct. The default is to use /usr/include.
9796 # Which is set in the aros_target_incl_def variable.
9798 # Check whether --enable-includes was given.
9799 if test "${enable_includes+set}" = set; then :
9800 enableval
=$enable_includes; aros_target_incl
=$enable_includes
9802 aros_target_incl
=$aros_target_incl_def
9806 if test "$aros_kernel_includes" = ""; then
9807 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9808 # FIXME: for cross-compiling this should point to another location
9809 aros_kernel_includes
="-isystem $aros_target_incl"
9813 if test "$aros_kernel_includes" != "" ; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9815 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9816 if test "$aros_kernel_cc_includes" = "" ; then
9817 # Try to guess where the directory is.
9818 aros_kernel_cc_includes
=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\
``/include
9819 if test -d $aros_kernel_cc_includes; then
9820 # Check if there is also an include-fixed directory and add it
9821 # to kernel compiler's include path as it may contain some of
9822 # the headers we need.
9823 if test -d "$aros_kernel_cc_includes"-fixed; then
9824 aros_kernel_cc_includes
+=" -isystem $aros_kernel_cc_includes"-fixed
9827 # The directory doesn't exist, we need to do some more work.
9828 aros_kernel_cc_includes
=${PWD}/${aros_gendir}/cc_include
9830 # These are the headers we're looking for.
9831 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9832 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9836 for h
in $headers; do
9837 # Which other headers are needed by each of the above?
9838 deps
=$
(echo "#include <$h>" | \
9839 $aros_kernel_cc -E -M - 2>/dev
/null | \
9840 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9842 # Copy all the needed headers to a directory beneath gendir.
9845 dir
=${aros_kernel_cc_includes}$
(echo $
(dirname $d) | \
9846 sed -n "s,^.*/include\(/.*\),\1,p")
9847 ! test -d $dir && mkdir
-p $dir
9848 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9854 $as_echo "$aros_kernel_cc_includes" >&6; }
9855 # Adding -nostdinc to kernel includes as they are always used together.
9856 aros_kernel_includes
="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9859 if test "$crosstools" != "yes"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9861 $as_echo_n "checking for the target compiler's include path... " >&6; }
9862 if test "$aros_target_cc_includes" = "" ; then
9863 #try to guess where the directory is
9864 aros_target_cc_includes
=`dirname \`${orig_target_cc} -print-libgcc-file-name\
``/include
9865 if ! test -d $aros_target_cc_includes; then
9866 #the directory doesn't exist, we need to do some more work
9867 aros_target_cc_includes
=${PWD}/${aros_gendir}/cc_include
9869 #these are the headers we're looking for
9870 headers
="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9871 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9875 for h
in $headers; do
9876 #which other headers each of the above headers needs?
9877 deps
=$
(echo "#include <$h>" | \
9878 $orig_target_cc -E -M - 2>/dev
/null | \
9879 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9881 #copy all the needed headers to a directory beneath gendir
9884 dir
=${aros_target_cc_includes}$
(echo $
(dirname $d) | \
9885 sed -n "s,^.*/include\(/.*\),\1,p")
9886 ! test -d $dir && mkdir
-p $dir
9887 ! test -f $dir/$h && { cp $d $dir; chmod u
+w
$dir/$h; }
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9893 $as_echo "$aros_target_cc_includes" >&6; }
9895 # We do not know which gcc version we are going to build and what we need to know
9896 # here is different for different versions so this will be set later during the
9897 # build of crosstools.
9898 aros_target_cc_includes
=@aros_target_cc_includes@
9902 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9903 # On GCC >= 4.0 -iquote should be used
9907 save_cflags
="$CFLAGS"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9910 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9911 if test "x-$crosstools" != "x-yes"; then
9912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9923 if ac_fn_c_try_compile
"$LINENO"; then :
9928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9930 # we do know it is supported for the smallest version of gcc we are going to build
9931 # we assume it's also supported by later versions
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9935 $as_echo "$has_iquote" >&6; }
9936 if test "x-$has_iquote" = "x-yes" ; then
9937 host_cflags_iquote
=-iquote
9938 host_cflags_iquote_end
=
9940 host_cflags_iquote
=-I
9941 host_cflags_iquote_end
=-I-
9943 kernel_cflags_iquote
=$host_cflags_iquote
9944 kernel_cflags_iquote_end
=$host_cflags_iquote_end
9945 if test "x-$cross_compiling" = "x-yes"; then
9946 CC
="$aros_kernel_cc"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9948 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9949 if test "x-$crosstools" != "x-yes"; then
9950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9961 if ac_fn_c_try_compile
"$LINENO"; then :
9962 use_no_stack_protector
="yes"
9964 use_no_stack_protector
="no"
9966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9968 # we do know it is supported for the smallest version of gcc we are going to build
9969 # we assume it's also supported by later versions
9970 use_no_stack_protector
=yes
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9973 $as_echo "$use_no_stack_protector" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9975 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9976 if test "x-$crosstools" != "x-yes"; then
9977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9988 if ac_fn_c_try_compile
"$LINENO"; then :
9993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9995 # we do know it is supported for the smallest version of gcc we are going to build
9996 # we assume it's also supported by later versions
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10000 $as_echo "$has_iquote" >&6; }
10001 if test "x-$has_iquote" = "x-yes" ; then
10002 kernel_cflags_iquote
=-iquote
10003 kernel_cflags_iquote_end
=
10005 kernel_cflags_iquote
=-I
10006 kernel_cflags_iquote_end
=-I-
10009 aros_cflags_iquote
=$kernel_cflags_iquote
10010 aros_cflags_iquote_end
=$kernel_cflags_iquote_end
10011 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10012 CC
="$orig_target_cc"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10015 if test "x-$crosstools" != "x-yes"; then
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10027 if ac_fn_c_try_compile
"$LINENO"; then :
10032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10034 # we do know it is supported for the smallest version of gcc we are going to build
10035 # we assume it's also supported by later versions
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10039 $as_echo "$has_iquote" >&6; }
10040 if test "x-$has_iquote" = "x-yes" ; then
10041 aros_cflags_iquote
=-iquote
10042 aros_cflags_iquote_end
=
10044 aros_cflags_iquote
=-I
10045 aros_cflags_iquote_end
=-I-
10048 if test "x-$use_no_stack_protector" = "x-yes" ; then
10049 aros_kernel_cflags
="$aros_kernel_cflags -fno-stack-protector"
10052 #-----------------------------------------------------------------------------
10054 # Check if we can explicitly choose older version of symbol hashing
10056 CFLAGS
="save_cflags -Wl,--hash-style=sysv"
10057 CC
="$aros_kernel_cc"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10059 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10071 if ac_fn_c_try_link
"$LINENO"; then :
10072 use_hash_style
="yes"
10074 use_hash_style
="no"
10076 rm -f core conftest.err conftest.
$ac_objext \
10077 conftest
$ac_exeext conftest.
$ac_ext
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10079 $as_echo "$use_hash_style" >&6; }
10080 if test "x-$use_hash_style" = "x-yes" ; then
10081 aros_kernel_cflags
="$aros_kernel_cflags -Wl,--hash-style=sysv"
10084 CFLAGS
="$save_cflags"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10095 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10097 # Check whether --with-resolution was given.
10098 if test "${with_resolution+set}" = set; then :
10099 withval
=$with_resolution; resolution
=$withval
10104 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10105 if test "$resolution" = "yes" ; then
10108 if test "$resolution" = "no" ; then
10111 if test "$resolution" != "none" ; then
10112 aros_default_wbwidth
=`echo $resolution | cut -d'x' -f1`
10113 aros_default_wbheight
=`echo $resolution | cut -d'x' -f2`
10114 aros_default_wbdepth
=`echo $resolution | cut -d'x' -f3`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10117 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10118 aros_cv_default_wbwidth
=$aros_default_wbwidth
10119 aros_cv_default_wbheight
=$aros_default_wbheight
10120 aros_cv_default_wbdepth
=$aros_default_wbdepth
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10123 $as_echo_n "checking if serial debug is enabled... " >&6; }
10125 # Check whether --with-serial-debug was given.
10126 if test "${with_serial_debug+set}" = set; then :
10127 withval
=$with_serial_debug; serial_debug
=$withval
10132 if test "$aros_serial_debug" = 0 ; then
10133 serial_debug_forced
=""
10134 if test "$serial_debug" = "yes" ; then
10137 if test "$serial_debug" = "no" ; then
10138 serial_debug
="none"
10141 serial_debug_forced
="(forced)"
10142 serial_debug
=$aros_serial_debug
10144 if test "$serial_debug" != "none" ; then
10145 aros_serial_debug
=$serial_debug
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10147 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10154 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10155 # Check whether --enable-palm_debug_hack was given.
10156 if test "${enable_palm_debug_hack+set}" = set; then :
10157 enableval
=$enable_palm_debug_hack; palm_debug_hack
="yes"
10159 palm_debug_hack
="no"
10162 if test "$palm_debug_hack" = "yes" ; then
10163 aros_palm_debug_hack
="1"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10166 $as_echo "$palm_debug_hack" >&6; }
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10170 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10171 # Check whether --enable-nesting_supervisor was given.
10172 if test "${enable_nesting_supervisor+set}" = set; then :
10173 enableval
=$enable_nesting_supervisor; nesting_supervisor
="yes"
10175 nesting_supervisor
="no"
10178 if test "$nesting_supervisor" = "yes" ; then
10179 aros_nesting_supervisor
="1"
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10182 $as_echo "$nesting_supervisor" >&6; }
10184 if test "$aros_enable_mmu" = "" ; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10186 $as_echo_n "checking if MMU support is enabled... " >&6; }
10187 # Check whether --enable-mmu was given.
10188 if test "${enable_mmu+set}" = set; then :
10189 enableval
=$enable_mmu; aros_enable_mmu
=$enableval
10191 aros_enable_mmu
="yes"
10194 if test "$aros_enable_mmu" = "" ; then
10195 aros_enable_mmu
="yes"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10198 $as_echo "$aros_enable_mmu" >&6; }
10200 if test "$aros_enable_mmu" = "no" ; then
10201 aros_enable_mmu
="0"
10203 aros_enable_mmu
="1"
10207 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10209 if test "x-$need_dlopen" != "x-no" ; then
10210 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10211 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10217 if test "x-$have_dl" = "x-no" ; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10223 ac_check_lib_save_LIBS
=$LIBS
10225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10228 /* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10243 if ac_fn_c_try_link
"$LINENO"; then :
10244 ac_cv_lib_dl_dlopen
=yes
10246 ac_cv_lib_dl_dlopen
=no
10248 rm -f core conftest.err conftest.
$ac_objext \
10249 conftest
$ac_exeext conftest.
$ac_ext
10250 LIBS
=$ac_check_lib_save_LIBS
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10256 aros_host_ldflags
="$aros_host_ldflags -ldl"
10262 if test "x-$have_dl" = "x-no" ; then
10263 as_fn_error $?
"dlopen() dynamic linker functions not available" "$LINENO" 5
10268 # Check whether --enable-x11_hidd was given.
10269 if test "${enable_x11_hidd+set}" = set; then :
10270 enableval
=$enable_x11_hidd; x11_hidd
="$enableval"
10272 x11_hidd
="$need_x11"
10275 case "x-$x11_hidd" in
10276 x-yes|x-no|x-auto
) ;;
10277 *) x11_hidd
="$need_x11" ;;
10282 if test "x-$x11_hidd" != "x-no" ; then
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10285 $as_echo_n "checking for X... " >&6; }
10288 # Check whether --with-x was given.
10289 if test "${with_x+set}" = set; then :
10293 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10294 if test "x$with_x" = xno
; then
10295 # The user explicitly disabled X.
10298 case $x_includes,$x_libraries in #(
10299 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5 ;; #(
10300 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10303 # One or both of the vars are not set, and there is no cached value.
10304 ac_x_includes
=no ac_x_libraries
=no
10305 rm -f -r conftest.dir
10306 if mkdir conftest.dir
; then
10308 cat >Imakefile
<<'_ACEOF'
10310 @echo incroot='${INCROOT}'
10312 @echo usrlibdir='${USRLIBDIR}'
10314 @echo libdir='${LIBDIR}'
10316 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
10317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10318 for ac_var
in incroot usrlibdir libdir
; do
10319 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10321 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10322 for ac_extension
in a so sl dylib la dll
; do
10323 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10324 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10325 ac_im_usrlibdir
=$ac_im_libdir; break
10328 # Screen out bogus values from the imake configuration. They are
10329 # bogus both because they are the default anyway, and because
10330 # using them would break gcc on systems where it needs fixed includes.
10331 case $ac_im_incroot in
10332 /usr
/include
) ac_x_includes
= ;;
10333 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
10335 case $ac_im_usrlibdir in
10336 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
10337 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
10341 rm -f -r conftest.dir
10344 # Standard set of common directories for X headers.
10345 # Check X11 before X11Rn because it is often a symlink to the current release.
10359 /usr/local/X11/include
10360 /usr/local/X11R7/include
10361 /usr/local/X11R6/include
10362 /usr/local/X11R5/include
10363 /usr/local/X11R4/include
10365 /usr/local/include/X11
10366 /usr/local/include/X11R7
10367 /usr/local/include/X11R6
10368 /usr/local/include/X11R5
10369 /usr/local/include/X11R4
10373 /usr/XFree86/include/X11
10377 /usr/unsupported/include
10378 /usr/athena/include
10379 /usr/local/x11r5/include
10380 /usr/lpp/Xamples/include
10382 /usr/openwin/include
10383 /usr/openwin/share/include'
10385 if test "$ac_x_includes" = no
; then
10386 # Guess where to find include files, by looking for Xlib.h.
10387 # First, try using that file with no special directory specified.
10388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 #include <X11/Xlib.h>
10392 if ac_fn_c_try_cpp
"$LINENO"; then :
10393 # We can compile using X headers with no special include directory.
10396 for ac_dir
in $ac_x_header_dirs; do
10397 if test -r "$ac_dir/X11/Xlib.h"; then
10398 ac_x_includes
=$ac_dir
10403 rm -f conftest.err conftest.i conftest.
$ac_ext
10404 fi # $ac_x_includes = no
10406 if test "$ac_x_libraries" = no
; then
10407 # Check for the libraries.
10408 # See if we find them without any special options.
10409 # Don't add to $LIBS permanently.
10412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #include <X11/Xlib.h>
10423 if ac_fn_c_try_link
"$LINENO"; then :
10425 # We can link X programs with no special library path.
10429 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10431 # Don't even attempt the hair of trying to link an X program!
10432 for ac_extension
in a so sl dylib la dll
; do
10433 if test -r "$ac_dir/libX11.$ac_extension"; then
10434 ac_x_libraries
=$ac_dir
10440 rm -f core conftest.err conftest.
$ac_objext \
10441 conftest
$ac_exeext conftest.
$ac_ext
10442 fi # $ac_x_libraries = no
10444 case $ac_x_includes,$ac_x_libraries in #(
10445 no
,* |
*,no |
*\'*)
10446 # Didn't find X, or a directory has "'" in its name.
10447 ac_cv_have_x
="have_x=no";; #(
10449 # Record where we found X for the cache.
10450 ac_cv_have_x
="have_x=yes\
10451 ac_x_includes='$ac_x_includes'\
10452 ac_x_libraries='$ac_x_libraries'"
10458 eval "$ac_cv_have_x"
10461 if test "$have_x" != yes; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10463 $as_echo "$have_x" >&6; }
10466 # If each of the values was on the command line, it overrides each guess.
10467 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
10468 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
10469 # Update the cache value to reflect the command line values.
10470 ac_cv_have_x
="have_x=yes\
10471 ac_x_includes='$x_includes'\
10472 ac_x_libraries='$x_libraries'"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10474 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10479 for path
in $x_libraries
10481 x_cflags
="$x_cflags -L$path"
10484 for path
in $x_includes
10486 x_cflags
="$x_cflags -I$path"
10489 if test "x-$no_x" = "x-yes" ; then
10491 if test "x-$x11_hidd" != "x-auto" ; then
10492 as_fn_error $?
"X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10496 x11_hidd_target
=kernel-x11gfx-kobj
10499 # Check whether --enable-x11_shm was given.
10500 if test "${enable_x11_shm+set}" = set; then :
10501 enableval
=$enable_x11_shm; x11_hidd_shm
="$enableval"
10503 x11_hidd_shm
="auto"
10506 case "x-$x11_hidd_shm" in
10507 x-yes|x-no|x-auto
) ;;
10508 *) x11_hidd_shm
="auto" ;;
10513 if test "x-$x11_hidd_shm" != "x-no" ; then
10515 for ac_header
in sys
/ipc.h
10517 ac_fn_c_check_header_mongrel
"$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10518 if test "x$ac_cv_header_sys_ipc_h" = x
""yes; then :
10519 cat >>confdefs.h
<<_ACEOF
10520 #define HAVE_SYS_IPC_H 1
10527 for ac_header
in sys
/shm.h
10529 ac_fn_c_check_header_mongrel
"$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10530 if test "x$ac_cv_header_sys_shm_h" = x
""yes; then :
10531 cat >>confdefs.h
<<_ACEOF
10532 #define HAVE_SYS_SHM_H 1
10540 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10542 save_cflags
="$CFLAGS"
10543 CFLAGS
="$CFLAGS $x_cflags"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10545 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10546 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10549 ac_check_lib_save_LIBS
=$LIBS
10550 LIBS
="-lXext $LIBS"
10551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10560 char XShmQueryExtension ();
10564 return XShmQueryExtension ();
10569 if ac_fn_c_try_link
"$LINENO"; then :
10570 ac_cv_lib_Xext_XShmQueryExtension
=yes
10572 ac_cv_lib_Xext_XShmQueryExtension
=no
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 LIBS
=$ac_check_lib_save_LIBS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10579 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10580 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x
""yes; then :
10584 CFLAGS
="$save_cflags"
10588 if test "x-$have_xshm" = "x-yes" ; then
10589 DO_XSHM_SUPPORT
="1"
10590 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10591 as_fn_error $?
"X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10593 DO_XSHM_SUPPORT
="0"
10597 # Check whether --enable-x11_vidmode was given.
10598 if test "${enable_x11_vidmode+set}" = set; then :
10599 enableval
=$enable_x11_vidmode; x11_hidd_vidmode
="$enableval"
10601 x11_hidd_vidmode
="auto"
10604 case "x-$x11_hidd_vidmode" in
10605 x-yes|x-no|x-auto
) ;;
10606 *) x11_hidd_vidmode
="auto" ;;
10611 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10613 save_cflags
="$CFLAGS"
10614 CFLAGS
="$CFLAGS $x_cflags"
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10616 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10617 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10620 ac_check_lib_save_LIBS
=$LIBS
10621 LIBS
="-lXxf86vm $LIBS"
10622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 /* Override any GCC internal prototype to avoid an error.
10626 Use char because int might match the return type of a GCC
10627 builtin and then its argument prototype would still apply. */
10631 char XF86VidModeQueryExtension ();
10635 return XF86VidModeQueryExtension ();
10640 if ac_fn_c_try_link
"$LINENO"; then :
10641 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=yes
10643 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension
=no
10645 rm -f core conftest.err conftest.
$ac_objext \
10646 conftest
$ac_exeext conftest.
$ac_ext
10647 LIBS
=$ac_check_lib_save_LIBS
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10650 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10651 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x
""yes; then :
10655 CFLAGS
="$save_cflags"
10658 if test "x-$have_vidmode" = "x-yes" ; then
10659 DO_VIDMODE_SUPPORT
="1"
10660 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10661 as_fn_error $?
"X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10663 DO_VIDMODE_SUPPORT
="0"
10667 aros_host_x11_includes
=$x_includes
10668 aros_host_x11_libdirs
=$x_libraries
10672 # Check whether --enable-sdl_hidd was given.
10673 if test "${enable_sdl_hidd+set}" = set; then :
10674 enableval
=$enable_sdl_hidd; sdl_hidd
="$enableval"
10679 case "x-$sdl_hidd" in
10680 x-yes|x-no|x-auto
) ;;
10681 *) sdl_hidd
="auto" ;;
10684 if test "x-$sdl_hidd" != "x-no" ; then
10687 # Check whether --with-sdl-prefix was given.
10688 if test "${with_sdl_prefix+set}" = set; then :
10689 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
10695 # Check whether --with-sdl-exec-prefix was given.
10696 if test "${with_sdl_exec_prefix+set}" = set; then :
10697 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
10702 # Check whether --enable-sdltest was given.
10703 if test "${enable_sdltest+set}" = set; then :
10704 enableval
=$enable_sdltest;
10710 if test x
$sdl_exec_prefix != x
; then
10711 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
10712 if test x
${SDL_CONFIG+set} != xset
; then
10713 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
10716 if test x
$sdl_prefix != x
; then
10717 sdl_args
="$sdl_args --prefix=$sdl_prefix"
10718 if test x
${SDL_CONFIG+set} != xset
; then
10719 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
10723 if test "x$prefix" != xNONE
; then
10724 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
10726 # Extract the first word of "sdl-config", so it can be a program name with args.
10727 set dummy sdl-config
; ac_word
=$2
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10729 $as_echo_n "checking for $ac_word... " >&6; }
10730 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10733 case $SDL_CONFIG in
10735 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
10738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10739 for as_dir
in $PATH
10742 test -z "$as_dir" && as_dir
=.
10743 for ac_exec_ext
in '' $ac_executable_extensions; do
10744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10745 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
10757 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
10758 if test -n "$SDL_CONFIG"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10760 $as_echo "$SDL_CONFIG" >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10767 min_sdl_version
=1.2.10
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10769 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10771 if test "$SDL_CONFIG" = "no" ; then
10774 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
10775 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
10777 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
10778 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10779 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
10780 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10781 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
10782 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10783 if test "x$enable_sdltest" = "xyes" ; then
10784 ac_save_CFLAGS
="$CFLAGS"
10785 ac_save_CXXFLAGS
="$CXXFLAGS"
10786 ac_save_LIBS
="$LIBS"
10787 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10788 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10789 LIBS
="$LIBS $SDL_LIBS"
10791 if test "$cross_compiling" = yes; then :
10792 echo $ac_n "cross compiling; assumed OK... $ac_c"
10794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10798 #include <stdlib.h>
10799 #include <string.h>
10803 my_strdup (char *str)
10809 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10810 strcpy (new_str, str);
10818 int main (int argc, char *argv[])
10820 int major, minor, micro;
10823 /* This hangs on some systems (?)
10824 system ("touch conf.sdltest");
10826 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10828 /* HP/UX 9 (%@#!) writes to sscanf strings */
10829 tmp_version = my_strdup("$min_sdl_version");
10830 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
10831 printf("%s, bad version string\n", "$min_sdl_version");
10835 if (($sdl_major_version > major) ||
10836 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10837 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10843 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10844 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10845 printf("*** best to upgrade to the required version.\n");
10846 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10847 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10848 printf("*** config.cache before re-running configure\n");
10855 if ac_fn_c_try_run
"$LINENO"; then :
10860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10864 CFLAGS
="$ac_save_CFLAGS"
10865 CXXFLAGS
="$ac_save_CXXFLAGS"
10866 LIBS
="$ac_save_LIBS"
10869 if test "x$no_sdl" = x
; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10871 $as_echo "yes" >&6; }
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10876 if test "$SDL_CONFIG" = "no" ; then
10877 echo "*** The sdl-config script installed by SDL could not be found"
10878 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10879 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10880 echo "*** full path to sdl-config."
10882 if test -f conf.sdltest
; then
10885 echo "*** Could not run SDL test program, checking why..."
10886 CFLAGS
="$CFLAGS $SDL_CFLAGS"
10887 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
10888 LIBS
="$LIBS $SDL_LIBS"
10889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10895 int main(int argc, char *argv[])
10898 #define main K_and_R_C_main
10908 if ac_fn_c_try_link
"$LINENO"; then :
10909 echo "*** The test program compiled, but did not run. This usually means"
10910 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10911 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10912 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10913 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10914 echo "*** is required on your system"
10916 echo "*** If you have an old version installed, it is best to remove it, although"
10917 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10919 echo "*** The test program failed to compile or link. See the file config.log for the"
10920 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10921 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10922 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10924 rm -f core conftest.err conftest.
$ac_objext \
10925 conftest
$ac_exeext conftest.
$ac_ext
10926 CFLAGS
="$ac_save_CFLAGS"
10927 CXXFLAGS
="$ac_save_CXXFLAGS"
10928 LIBS
="$ac_save_LIBS"
10940 if test "x-$have_sdl" != "x-yes" ; then
10942 if test "x-$sdl_hidd" != "x-auto" ; then
10943 as_fn_error $?
"SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10947 sdl_hidd_target
=kernel-hidd-sdl
10948 aros_host_sdl_cflags
=SDL_CFLAGS
10949 aros_host_sdl_libs
=SDL_LIBS
10953 ac_fn_c_check_header_mongrel
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10954 if test "x$ac_cv_header_sys_soundcard_h" = x
""yes; then :
10959 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10960 oss_library_target
=workbench-libs-oss-unix
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10966 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10967 # Check whether --enable-dbus was given.
10968 if test "${enable_dbus+set}" = set; then :
10969 enableval
=$enable_dbus; dbus
="yes"
10974 if test "$dbus" = "yes" ; then
10976 DBUS_CFLAGS
=`pkg-config --cflags dbus-1`
10977 DBUS_LIBFLAGS
=`pkg-config --libs dbus-1`
10978 KERNEL_DBUS_KOBJ
=kernel-dbus-kobj
10979 KERNEL_DBUS_INCLUDES
=kernel-dbus-includes
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10984 $as_echo "$dbus" >&6; }
11097 # Native version related
11100 # Palm native version related
11103 # Unix/Hosted version related
11109 # Apple iOS related
11134 # Collect-aros stuff: "-ius" to ignore undefined symbols
11137 # C compiler related
11140 case "$aros_flavour" in
11141 emulation
) aros_flavour_uc
="AROS_FLAVOUR_EMULATION"
11142 aros_flavour
="emulation" ;;
11143 emulcompat
) aros_flavour_uc
="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11144 aros_flavour
="emulation" ;;
11145 standalone
) aros_flavour_uc
="AROS_FLAVOUR_STANDALONE"
11146 aros_flavour
="standalone";;
11147 standcompat
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11148 aros_flavour
="standalone";;
11149 native
) aros_flavour_uc
="AROS_FLAVOUR_NATIVE"
11150 aros_flavour
="native" ;;
11151 nativecompat
) aros_flavour_uc
="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11152 aros_flavour
="native" ;;
11153 linklib
) aros_flavour_uc
="AROS_FLAVOUR_LINKLIB"
11154 aros_flavour
="linklib" ;;
11155 palmnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11156 aros_flavour
="palmnative" ;;
11157 mac68knative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11158 aros_flavour
="mac68knative" ;;
11159 ppcnative
) aros_flavour_uc
="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11160 aros_flavour
="ppcnative" ;;
11163 if test ! -d ${aros_inc_dir} ; then
11164 ${MKDIR} ${aros_inc_dir}
11166 if test ! -d ${aros_geninc_dir} ; then
11167 ${MKDIR} ${aros_geninc_dir}
11169 if test ! -d ${aros_hostcfg_dir} ; then
11170 ${MKDIR} ${aros_hostcfg_dir}
11172 if test ! -d ${aros_targetcfg_dir} ; then
11173 ${MKDIR} ${aros_targetcfg_dir}
11175 if test ! -d ${aros_tools_dir} ; then
11176 ${MKDIR} ${aros_tools_dir}
11178 if test ! -d ${aros_scripts_dir} ; then
11179 ${MKDIR} ${aros_scripts_dir}
11182 ac_config_headers
="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11185 ac_config_commands
="$ac_config_commands compiler_executable"
11187 ac_config_commands
="$ac_config_commands genmf_executable"
11190 ac_config_files
="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11193 cat >confcache
<<\_ACEOF
11194 # This file is a shell script that caches the results of configure
11195 # tests run on this system so they can be shared between configure
11196 # scripts and configure runs, see configure's option --config-cache.
11197 # It is not useful on other systems. If it contains results you don't
11198 # want to keep, you may remove or edit it.
11200 # config.status only pays attention to the cache file if you give it
11201 # the --recheck option to rerun configure.
11203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11205 # following values.
11209 # The following way of writing the cache mishandles newlines in values,
11210 # but we know of no workaround that is simple, portable, and efficient.
11211 # So, we kill variables containing newlines.
11212 # Ultrix sh set writes to stderr and can't be redirected directly,
11213 # and sets the high bit in the cache file unless we assign to the vars.
11215 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11216 eval ac_val
=\$
$ac_var
11220 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11224 _ | IFS | as_nl
) ;; #(
11225 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11226 *) { eval $ac_var=; unset $ac_var;} ;;
11232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11233 *${as_nl}ac_space
=\
*)
11234 # `set' does not quote correctly, so add quotes: double-quote
11235 # substitution turns \\\\ into \\, and sed turns \\ into \.
11238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11241 # `set' quotes correctly as required by POSIX, so do not add quotes.
11242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11255 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11256 if test -w "$cache_file"; then
11257 test "x$cache_file" != "x/dev/null" &&
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11259 $as_echo "$as_me: updating cache $cache_file" >&6;}
11260 cat confcache
>$cache_file
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11263 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11268 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11269 # Let make expand exec_prefix.
11270 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11272 DEFS
=-DHAVE_CONFIG_H
11277 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11278 # 1. Remove the extension, and $U if already installed.
11279 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11280 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11282 # will be set to the directory where LIBOBJS objects are built.
11283 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11284 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11286 LIBOBJS
=$ac_libobjs
11288 LTLIBOBJS
=$ac_ltlibobjs
11292 : ${CONFIG_STATUS=./config.status}
11294 ac_clean_files_save
=$ac_clean_files
11295 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11297 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11299 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11301 # Generated by $as_me.
11302 # Run this file to recreate the current configuration.
11303 # Compiler output produced by configure, useful for debugging
11304 # configure, is in config.log if it exists.
11307 ac_cs_recheck=false
11310 SHELL=\${CONFIG_SHELL-$SHELL}
11313 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11314 ## -------------------- ##
11315 ## M4sh Initialization. ##
11316 ## -------------------- ##
11318 # Be more Bourne compatible
11319 DUALCASE
=1; export DUALCASE
# for MKS sh
11320 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11324 # is contrary to our usage. Disable this feature.
11325 alias -g '${1+"$@"}'='"$@"'
11326 setopt NO_GLOB_SUBST
11328 case `(set -o) 2>/dev/null` in #(
11340 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11341 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11344 # Prefer a ksh shell builtin over an external printf program on Solaris,
11345 # but without wasting forks for bash or zsh.
11346 if test -z "$BASH_VERSION$ZSH_VERSION" \
11347 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11348 as_echo='print
-r --'
11349 as_echo_n='print
-rn --'
11350 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11351 as_echo='printf %s
\n'
11352 as_echo_n='printf %s
'
11354 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11355 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11356 as_echo_n='/usr
/ucb
/echo -n'
11358 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11359 as_echo_n_body='eval
11363 expr "X$arg" : "X\\(.*\\)$as_nl";
11364 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11366 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11368 export as_echo_n_body
11369 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11371 export as_echo_body
11372 as_echo='sh
-c $as_echo_body as_echo
'
11375 # The user is always right.
11376 if test "${PATH_SEPARATOR+set}" != set; then
11378 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11379 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11386 # We need space, tab and new line, in precisely that order. Quoting is
11387 # there to prevent editors from complaining about space-tab.
11388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11389 # splitting by setting IFS to empty value.)
11392 # Find who we are. Look in the path if we contain no directory separator.
11394 *[\\/]* ) as_myself=$0 ;;
11395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11399 test -z "$as_dir" && as_dir=.
11400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11406 # We did not find ourselves, most probably we were run as `sh COMMAND'
11407 # in which case we are not to be found in the path.
11408 if test "x$as_myself" = x
; then
11411 if test ! -f "$as_myself"; then
11412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11416 # Unset variables that we do not need and which cause bugs (e.g. in
11417 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11418 # suppresses any "Segmentation fault" message there. '((' could
11419 # trigger a bug in pdksh 5.2.14.
11420 for as_var
in BASH_ENV ENV MAIL MAILPATH
11421 do eval test x\
${$as_var+set} = xset \
11422 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11435 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11438 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11439 # ----------------------------------------
11440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11442 # script with STATUS, using 1 if that was 0.
11445 as_status
=$1; test $as_status -eq 0 && as_status
=1
11447 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11450 $as_echo "$as_me: error: $2" >&2
11451 as_fn_exit
$as_status
11455 # as_fn_set_status STATUS
11456 # -----------------------
11457 # Set $? to STATUS, without forking.
11458 as_fn_set_status
()
11461 } # as_fn_set_status
11463 # as_fn_exit STATUS
11464 # -----------------
11465 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11469 as_fn_set_status
$1
11475 # Portably unset VAR.
11478 { eval $1=; unset $1;}
11480 as_unset
=as_fn_unset
11481 # as_fn_append VAR VALUE
11482 # ----------------------
11483 # Append the text in VALUE to the end of the definition contained in VAR. Take
11484 # advantage of any shell optimizations that allow amortized linear growth over
11485 # repeated appends, instead of the typical quadratic growth present in naive
11487 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11488 eval 'as_fn_append ()
11499 # as_fn_arith ARG...
11500 # ------------------
11501 # Perform arithmetic evaluation on the ARGs, and store the result in the
11502 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11503 # must be portable across $(()) and expr.
11504 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11505 eval 'as_fn_arith ()
11512 as_val
=`expr "$@" || test $? -eq 1`
11517 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11518 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11524 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11525 as_basename
=basename
11530 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11536 as_me
=`$as_basename -- "$0" ||
11537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11538 X"$0" : 'X\(//\)$' \| \
11539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11541 sed '/^.*\/\([^/][^/]*\)\/*$/{
11555 # Avoid depending upon Character Ranges.
11556 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11557 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11558 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11559 as_cr_digits
='0123456789'
11560 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11562 ECHO_C
= ECHO_N
= ECHO_T
=
11563 case `echo -n x` in #(((((
11565 case `echo 'xy\c'` in
11566 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11568 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11575 rm -f conf$$ conf$$.exe conf$$.
file
11576 if test -d conf$$.dir
; then
11577 rm -f conf$$.dir
/conf$$.
file
11580 mkdir conf$$.dir
2>/dev
/null
11582 if (echo >conf$$.
file) 2>/dev
/null
; then
11583 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11585 # ... but there are two gotchas:
11586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11588 # In both cases, we have to default to `cp -p'.
11589 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11591 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11599 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11600 rmdir conf$$.dir
2>/dev
/null
11605 # Create "$as_dir" as a directory, including parents if necessary.
11610 -*) as_dir
=.
/$as_dir;;
11612 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11616 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11617 *) as_qdir
=$as_dir;;
11619 as_dirs
="'$as_qdir' $as_dirs"
11620 as_dir
=`$as_dirname -- "$as_dir" ||
11621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11622 X"$as_dir" : 'X\(//\)[^/]' \| \
11623 X"$as_dir" : 'X\(//\)$' \| \
11624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11625 $as_echo X"$as_dir" |
11626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11630 /^X\(\/\/\)[^/].*/{
11643 test -d "$as_dir" && break
11645 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11646 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11650 if mkdir
-p .
2>/dev
/null
; then
11651 as_mkdir_p
='mkdir -p "$as_dir"'
11653 test -d .
/-p && rmdir .
/-p
11657 if test -x / >/dev
/null
2>&1; then
11658 as_test_x
='test -x'
11660 if ls -dL / >/dev
/null
2>&1; then
11667 if test -d "$1"; then
11673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11674 ???[sx]*):;;*)false;;esac;fi
11678 as_executable_p
=$as_test_x
11680 # Sed expression to map a string onto a valid CPP name.
11681 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11683 # Sed expression to map a string onto a valid variable name.
11684 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11688 ## ----------------------------------- ##
11689 ## Main body of $CONFIG_STATUS script. ##
11690 ## ----------------------------------- ##
11692 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11695 # Save the log message, to keep $0 and so on meaningful, and to
11696 # report actual input values of CONFIG_FILES etc. instead of their
11697 # values after options handling.
11699 This file was extended by $as_me, which was
11700 generated by GNU Autoconf 2.67. Invocation command line was
11702 CONFIG_FILES = $CONFIG_FILES
11703 CONFIG_HEADERS = $CONFIG_HEADERS
11704 CONFIG_LINKS = $CONFIG_LINKS
11705 CONFIG_COMMANDS = $CONFIG_COMMANDS
11708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11713 case $ac_config_files in *"
11714 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11717 case $ac_config_headers in *"
11718 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11723 # Files that config.status was made for.
11724 config_files="$ac_config_files"
11725 config_headers="$ac_config_headers"
11726 config_commands="$ac_config_commands"
11730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11732 \`$as_me' instantiates files and other configuration actions
11733 from templates according to the current configuration. Unless the files
11734 and actions are specified as TAGs, all are instantiated by default.
11736 Usage: $0 [OPTION]... [TAG]...
11738 -h, --help print this help, then exit
11739 -V, --version print version number and configuration settings, then exit
11740 --config print configuration, then exit
11741 -q, --quiet, --silent
11742 do not print progress messages
11743 -d, --debug don't remove temporary files
11744 --recheck update $as_me by reconfiguring in the same conditions
11745 --file=FILE[:TEMPLATE]
11746 instantiate the configuration file FILE
11747 --header=FILE[:TEMPLATE]
11748 instantiate the configuration header FILE
11750 Configuration files:
11753 Configuration headers:
11756 Configuration commands:
11759 Report bugs to the package provider."
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11766 configured by $0, generated by GNU Autoconf 2.67,
11767 with options \\"\$ac_cs_config\\"
11769 Copyright (C) 2010 Free Software Foundation, Inc.
11770 This config.status script is free software; the Free Software Foundation
11771 gives unlimited permission to copy, distribute and modify it."
11775 test -n "\$AWK" || AWK=awk
11778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11779 # The default lists apply if the user does not specify any file.
11785 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11786 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11790 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11802 # Handling of the options.
11803 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11805 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11806 $as_echo "$ac_cs_version"; exit ;;
11807 --config |
--confi |
--conf |
--con |
--co |
--c )
11808 $as_echo "$ac_cs_config"; exit ;;
11809 --debug |
--debu |
--deb |
--de |
--d |
-d )
11811 --file |
--fil |
--fi |
--f )
11814 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11815 '') as_fn_error $?
"missing file argument" ;;
11817 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11818 ac_need_defaults
=false
;;
11819 --header |
--heade |
--head |
--hea )
11822 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11824 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11825 ac_need_defaults
=false
;;
11827 # Conflict between --help and --header
11828 as_fn_error $?
"ambiguous option: \`$1'
11829 Try \`$0 --help' for more information.";;
11830 --help |
--hel |
-h )
11831 $as_echo "$ac_cs_usage"; exit ;;
11832 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11833 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11836 # This is an error.
11837 -*) as_fn_error $?
"unrecognized option: \`$1'
11838 Try \`$0 --help' for more information." ;;
11840 *) as_fn_append ac_config_targets
" $1"
11841 ac_need_defaults
=false
;;
11847 ac_configure_extra_args
=
11849 if $ac_cs_silent; then
11851 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11856 if \$ac_cs_recheck; then
11857 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11859 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11860 CONFIG_SHELL='$SHELL'
11861 export CONFIG_SHELL
11866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11871 ## Running $as_me. ##
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11882 aros_host_exe_suffix=${aros_host_exe_suffix}
11883 aros_tools_dir=${aros_tools_dir}
11884 aros_target_cpu=${aros_target_cpu}
11885 aros_target_arch=${aros_target_arch}
11886 aros_target_suffix=${aros_target_suffix}
11887 aros_target_nm_ln=${aros_target_nm_ln}
11888 aros_target_as_ln=${aros_target_as_ln}
11889 aros_target_ar_ln=${aros_target_ar_ln}
11890 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11891 aros_target_objdump_ln=${aros_target_objdump_ln}
11892 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11893 aros_target_strip_ln=${aros_target_strip_ln}
11896 aros_tools_dir=${aros_tools_dir}
11901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11903 # Handling of arguments.
11904 for ac_config_target
in $ac_config_targets
11906 case $ac_config_target in
11907 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS
="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11908 "compiler_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS compiler_executable" ;;
11909 "genmf_executable") CONFIG_COMMANDS
="$CONFIG_COMMANDS genmf_executable" ;;
11910 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11911 "config/make.cfg") CONFIG_FILES
="$CONFIG_FILES config/make.cfg" ;;
11912 "${aros_inc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11913 "${aros_geninc_dir}/config.h") CONFIG_FILES
="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11914 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11915 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11916 "mmake.config") CONFIG_FILES
="$CONFIG_FILES mmake.config" ;;
11917 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11918 "${aros_targetcfg_dir}/specs") CONFIG_FILES
="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11919 "${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" ;;
11920 "${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" ;;
11921 "${aros_tools_dir}/genmf.py") CONFIG_FILES
="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11922 "tools/collect-aros/env.h") CONFIG_FILES
="$CONFIG_FILES tools/collect-aros/env.h" ;;
11923 "${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" ;;
11925 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11930 # If the user did not use the arguments to specify the items to instantiate,
11931 # then the envvar interface is used. Set only those that are not.
11932 # We use the long form for the default assignment because of an extremely
11933 # bizarre bug on SunOS 4.1.3.
11934 if $ac_need_defaults; then
11935 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11936 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11937 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11940 # Have a temporary directory for convenience. Make it in the build tree
11941 # simply because there is no reason against having it here, and in addition,
11942 # creating and moving files from /tmp can sometimes cause problems.
11943 # Hook for its removal unless debugging.
11944 # Note that there is a small window in which the directory will not be cleaned:
11945 # after its creation but before its name has been assigned to `$tmp'.
11949 trap 'exit_status=$?
11950 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11952 trap 'as_fn_exit 1' 1 2 13 15
11954 # Create a (secure) tmp directory for tmp files.
11957 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11958 test -n "$tmp" && test -d "$tmp"
11961 tmp
=.
/conf$$
-$RANDOM
11962 (umask 077 && mkdir
"$tmp")
11963 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11965 # Set up the scripts for CONFIG_FILES section.
11966 # No need to generate them if there are no CONFIG_FILES.
11967 # This happens for instance with `./config.status config.h'.
11968 if test -n "$CONFIG_FILES"; then
11971 ac_cr
=`echo X | tr X '\015'`
11972 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11973 # But we know of no other shell where ac_cr would be empty at this
11974 # point, so we can use a bashism as a fallback.
11975 if test "x$ac_cr" = x
; then
11976 eval ac_cr
=\$
\'\\r
\'
11978 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11979 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11982 ac_cs_awk_cr
=$ac_cr
11985 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11990 echo "cat >conf$$subs.awk <<_ACEOF" &&
11991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11993 } >conf$$subs.sh ||
11994 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11995 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11997 for ac_last_try in false false false false false :; do
11998 . ./conf$$subs.sh ||
11999 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12001 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12002 if test $ac_delim_n = $ac_delim_num; then
12004 elif $ac_last_try; then
12005 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12007 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12010 rm -f conf$$subs.sh
12012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12013 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
12017 s/^/S["/; s
/!.
*/"]=/
12027 s/\(.\{148\}\)..*/\1/
12029 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12034 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12041 s/\(.\{148\}\)..*/\1/
12043 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12047 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12052 ' <conf$$subs.awk | sed '
12057 ' >>$CONFIG_STATUS || ac_write_fail=1
12058 rm -f conf$$subs.awk
12059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12061 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
12062 for (key in S) S_is_set[key] = 1
12068 nfields = split(line, field, "@
")
12070 len = length(field[1])
12071 for (i = 2; i < nfields; i++) {
12073 keylen = length(key)
12074 if (S_is_set[key]) {
12076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12077 len += length(value) + length(field[++i])
12088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12090 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12093 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
12094 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12097 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12098 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12099 # trailing colons and then remove the whole line if VPATH becomes empty
12100 # (actually we leave an empty line to preserve line numbers).
12101 if test "x
$srcdir" = x.; then
12102 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121 fi # test -n "$CONFIG_FILES"
12123 # Set up the scripts for CONFIG_HEADERS section.
12124 # No need to generate them if there are no CONFIG_HEADERS.
12125 # This happens for instance with `./config.status Makefile'.
12126 if test -n "$CONFIG_HEADERS"; then
12127 cat >"$tmp/defines.
awk" <<\_ACAWK ||
12131 # Transform confdefs.h into an awk script `defines.awk', embedded as
12132 # here-document in config.status, that substitutes the proper values into
12133 # config.h.in to produce config.h.
12135 # Create a delimiter string that does not exist in confdefs.h, to ease
12136 # handling of long lines.
12138 for ac_last_try in false false :; do
12139 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
12140 if test -z "$ac_t"; then
12142 elif $ac_last_try; then
12143 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12145 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12149 # For the awk script, D is an array of macro values keyed by name,
12150 # likewise P contains macro parameters if any. Preserve backslash
12151 # newline sequences.
12153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12155 s/.\{148\}/&'"$ac_delim"'/g
12158 s/^[ ]*#[ ]*define[ ][ ]*/ /
12165 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12167 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12172 D["\
1"]=" \
3\\\\\\n
"\\/p
12174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12179 s/.\{148\}/&'"$ac_delim"'/g
12184 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12187 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12189 ' <confdefs.h | sed '
12190 s/'"$ac_delim"'/"\\\
12191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 for (key in D) D_is_set[key] = 1
12197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12199 split(line, arg, " ")
12200 if (arg[1] == "#") {
12204 defundef
= substr
(arg
[1], 2)
12207 split(mac1
, mac2
, "(") #)
12209 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12210 if (D_is_set
[macro
]) {
12211 # Preserve the white space surrounding the "#".
12212 print prefix
"define", macro P
[macro
] D
[macro
]
12215 # Replace #undef with comments. This is necessary, for example,
12216 # in the case of _POSIX_SOURCE, which is predefined and required
12217 # on some systems where configure will not decide to define it.
12218 if (defundef
== "undef") {
12219 print
"/*", prefix defundef
, macro
, "*/"
12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12228 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12229 fi # test -n "$CONFIG_HEADERS"
12232 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12237 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12239 case $ac_mode$ac_tag in
12241 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12242 :[FH
]-) ac_tag
=-:-;;
12243 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12260 -) ac_f
="$tmp/stdin";;
12261 *) # Look for the file first in the build tree, then in the source tree
12262 # (if the path is not absolute). The absolute path cannot be DOS-style,
12263 # because $ac_f cannot contain `:'.
12267 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12269 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12271 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12272 as_fn_append ac_file_inputs
" '$ac_f'"
12275 # Let's still pretend it is `configure' which instantiates (i.e., don't
12276 # use $as_me), people would be surprised to read:
12277 # /* config.h. Generated by config.status. */
12278 configure_input
='Generated from '`
12279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12281 if test x
"$ac_file" != x-
; then
12282 configure_input
="$ac_file. $configure_input"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12284 $as_echo "$as_me: creating $ac_file" >&6;}
12286 # Neutralize special characters interpreted by sed in replacement strings.
12287 case $configure_input in #(
12288 *\
&* |
*\|
* |
*\\* )
12289 ac_sed_conf_input
=`$as_echo "$configure_input" |
12290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12291 *) ac_sed_conf_input
=$configure_input;;
12295 *:-:* |
*:-) cat >"$tmp/stdin" \
12296 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12301 ac_dir
=`$as_dirname -- "$ac_file" ||
12302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12303 X"$ac_file" : 'X\(//\)[^/]' \| \
12304 X"$ac_file" : 'X\(//\)$' \| \
12305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12306 $as_echo X"$ac_file" |
12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12311 /^X\(\/\/\)[^/].*/{
12324 as_dir
="$ac_dir"; as_fn_mkdir_p
12328 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12330 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12331 # A ".." for each directory in $ac_dir_suffix.
12332 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12333 case $ac_top_builddir_sub in
12334 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12335 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12338 ac_abs_top_builddir
=$ac_pwd
12339 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12340 # for backward compatibility:
12341 ac_top_builddir
=$ac_top_build_prefix
12344 .
) # We are building in place.
12346 ac_top_srcdir
=$ac_top_builddir_sub
12347 ac_abs_top_srcdir
=$ac_pwd ;;
12348 [\\/]* | ?
:[\\/]* ) # Absolute name.
12349 ac_srcdir
=$srcdir$ac_dir_suffix;
12350 ac_top_srcdir
=$srcdir
12351 ac_abs_top_srcdir
=$srcdir ;;
12352 *) # Relative name.
12353 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12354 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12355 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12357 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12369 # If the template does not know about datarootdir, expand it.
12370 # FIXME: This hack should be removed a few years after 2.60.
12371 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12383 *datarootdir
*) ac_datarootdir_seen
=yes;;
12384 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12389 ac_datarootdir_hack='
12390 s&@datadir@&$datadir&g
12391 s&@docdir@&$docdir&g
12392 s&@infodir@&$infodir&g
12393 s&@localedir@&$localedir&g
12394 s&@mandir@&$mandir&g
12395 s&\\\${datarootdir}&$datarootdir&g' ;;
12399 # Neutralize VPATH when `$srcdir' = `.'.
12400 # Shell code in configure.ac might set extrasub.
12401 # FIXME: do we really want to maintain this feature?
12402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12403 ac_sed_extra="$ac_vpsub
12406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12408 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12409 s|@configure_input@|
$ac_sed_conf_input|
;t t
12410 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12411 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12412 s
&@srcdir@
&$ac_srcdir&;t t
12413 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12414 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12415 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12416 s
&@builddir@
&$ac_builddir&;t t
12417 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12418 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12419 $ac_datarootdir_hack
12421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
12422 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
12426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12428 which seems to be undefined. Please make sure it is defined" >&5
12429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12430 which seems to be undefined. Please make sure it is defined" >&2;}
12434 -) cat "$tmp/out" && rm -f "$tmp/out";;
12435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12443 if test x"$ac_file" != x-; then
12445 $as_echo "/* $configure_input */" \
12446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12447 } >"$tmp/config.h" \
12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12454 mv "$tmp/config.h" "$ac_file" \
12455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12458 $as_echo "/* $configure_input */" \
12459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12460 || as_fn_error $? "could not create -" "$LINENO" 5
12464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12465 $as_echo "$as_me: executing $ac_file commands" >&6;}
12470 case $ac_file$ac_mode in
12471 "compiler_executable":C)
12472 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12474 prefix="${prefix}/${aros_target_cpu}-aros"
12475 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12479 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12481 ln -sf ${prefix2}-gcc ${prefix}-gcc
12482 ln -sf ${prefix2}-ld ${prefix}-ld
12484 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12485 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12486 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12487 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12488 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12489 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12490 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12492 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12493 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12494 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12495 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12496 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12497 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12498 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12500 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12508 ac_clean_files=$ac_clean_files_save
12510 test $ac_write_fail = 0 ||
12511 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12514 # configure is writing to config.log, and then calls config.status.
12515 # config.status does its own redirection, appending to config.log.
12516 # Unfortunately, on DOS this fails, as config.log is still kept open
12517 # by configure, so config.status won't be able to
write to it
; its
12518 # output is simply discarded. So we exec the FD to /dev/null,
12519 # effectively closing config.log, so it can be properly (re)opened and
12520 # appended to by config.status. When coming back to configure, we
12521 # need to make the FD available again.
12522 if test "$no_create" != yes; then
12524 ac_config_status_args
=
12525 test "$silent" = yes &&
12526 ac_config_status_args
="$ac_config_status_args --quiet"
12528 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12530 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12531 # would make configure fail if this is the last instruction.
12532 $ac_cs_success || as_fn_exit
1
12534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12541 #XXX compatability...
12542 aros_shared_ar
="$aros_shared_ld $aros_shared_ldflags -o"
12544 if test -n "$aros_shared_cflags" ; then
12545 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12546 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg