Experimental support for ARM Thumb relocations. Might not work at all ;)
[AROS.git] / configure
blob3e5334eecc408b253a3010fd0c0244d73e632097
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 crosstools_cxx_target
638 crosstools_target
639 aros_target_strip_flags
640 aros_target_genmap
641 aros_paranoia_cflags
642 aros_debug_ldflags
643 aros_debug_aflags
644 aros_debug_cflags
645 aros_target_cflags
646 aros_kernel_ldflags
647 aros_kernel_objcflags
648 aros_kernel_includes
649 aros_kernel_cflags
650 aros_shared_ldflags
651 aros_shared_aflags
652 aros_shared_cflags
653 aros_config_ldflags
654 aros_config_aflags
655 aros_config_cflags
656 aros_arch_libs
657 aros_compiler_libs
658 aros_object_format
659 aros_shared_ld
660 aros_shared_default
661 aros_target_nm
662 aros_target_strip
663 aros_target_objcopy
664 aros_target_objdump
665 aros_target_cc_path
666 aros_target_cc_includes
667 orig_target_ld
668 aros_target_as
669 aros_kernel_cc
670 orig_target_cc
671 aros_kernel_ar
672 aros_kernel_nm
673 aros_target_ranlib
674 aros_target_ar
675 aros_target_incl
676 aros_target_suffix
677 aros_target_variant
678 aros_target_cpu
679 aros_target_family
680 aros_target_arch
681 aros_target_bootloader
682 aros_target_iconset
683 aros_target_guitheme
684 aros_tools_dir
685 aros_host_lib_suffix
686 aros_host_exe_suffix
687 aros_host_mkargs
688 aros_host_mkdep
689 aros_host_debug
690 aros_host_ldflags
691 gnu89_inline
692 aros_host_cflags
693 aros_host_make
694 aros_host_cc
695 aros_host_cpu
696 aros_host_arch
697 aros_cc_pre
698 AROS_PORTSSRCDIR
699 AROS_CROSSTOOLSDIR
700 SRCDIR
701 AROS_BUILDDIR_UNIX
702 AROS_BUILDDIR
703 aros_flavour_uc
704 aros_flavour
705 aros_cpu
706 aros_arch
707 SDL_LIBS
708 SDL_CFLAGS
709 SDL_CONFIG
710 XMKMF
711 aros_cflags_iquote_end
712 aros_cflags_iquote
713 kernel_cflags_iquote_end
714 kernel_cflags_iquote
715 host_cflags_iquote_end
716 host_cflags_iquote
717 aros_target_nostdlib_ldflags
718 aros_target_detach_ldflags
719 aros_target_nix_ldflags
720 aros_target_nostartup_ldflags
721 aros_target_nostdinc_cflags
722 aros_target_ld
723 aros_target_cc
724 aros_target_cxx
725 aros_target_strip_ln
726 aros_target_ranlib_ln
727 aros_target_objdump_ln
728 aros_target_objcopy_ln
729 aros_target_nm_ln
730 aros_target_ar_ln
731 aros_target_as_ln
732 aros_kernel_ld
733 aros_kernel_rescomp
734 android_tool
735 CCACHE
736 DISTCC
737 LIBOBJS
738 EGREP
739 GREP
741 TEST
744 pkgpyexecdir
745 pyexecdir
746 pkgpythondir
747 pythondir
748 PYTHON_PLATFORM
749 PYTHON_EXEC_PREFIX
750 PYTHON_PREFIX
751 PYTHON_VERSION
752 PYTHON
753 PATCH
754 CHMOD
756 PPMTOILBM
757 PNGTOPNM
758 FLEX
759 BISON
762 UNIQ
763 SORT
764 TOUCH
765 MKDIR
766 ECHO
770 aros_host_strip
771 aros_host_ranlib
772 aros_host_ar
773 aros_host_automake
774 aros_host_autoheader
775 aros_host_autoconf
776 aros_host_aclocal
777 aros_host_ld
778 MMAKE
781 OBJEXT
782 EXEEXT
783 ac_ct_CC
784 CPPFLAGS
785 LDFLAGS
786 CFLAGS
788 host_os
789 host_vendor
790 host_cpu
791 host
792 build_os
793 build_vendor
794 build_cpu
795 build
796 target_alias
797 host_alias
798 build_alias
799 LIBS
800 ECHO_T
801 ECHO_N
802 ECHO_C
803 DEFS
804 mandir
805 localedir
806 libdir
807 psdir
808 pdfdir
809 dvidir
810 htmldir
811 infodir
812 docdir
813 oldincludedir
814 includedir
815 localstatedir
816 sharedstatedir
817 sysconfdir
818 datadir
819 datarootdir
820 libexecdir
821 sbindir
822 bindir
823 program_transform_name
824 prefix
825 exec_prefix
826 PACKAGE_URL
827 PACKAGE_BUGREPORT
828 PACKAGE_STRING
829 PACKAGE_VERSION
830 PACKAGE_TARNAME
831 PACKAGE_NAME
832 PATH_SEPARATOR
833 SHELL'
834 ac_subst_files=''
835 ac_user_opts='
836 enable_option_checking
837 enable_build_type
838 enable_debug
839 enable_crosstools
840 enable_distcc
841 enable_ccache
842 with_gcc_version
843 with_optimization
844 with_paranoia
845 enable_target_variant
846 with_xcode
847 with_ios_version
848 with_ios_sdk
849 with_sdk
850 with_ndk
851 with_android_version
852 with_crosstools
853 with_aros_gcc
854 with_portssources
855 with_bootloader
856 with_iconset
857 with_theme
858 enable_includes
859 with_resolution
860 with_serial_debug
861 enable_palm_debug_hack
862 enable_nesting_supervisor
863 enable_mmu
864 enable_x11_hidd
865 with_x
866 enable_x11_shm
867 enable_x11_vidmode
868 enable_sdl_hidd
869 with_sdl_prefix
870 with_sdl_exec_prefix
871 enable_sdltest
872 enable_dbus
874 ac_precious_vars='build_alias
875 host_alias
876 target_alias
878 CFLAGS
879 LDFLAGS
880 LIBS
881 CPPFLAGS
883 CPPFLAGS
884 XMKMF'
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
935 ac_prev=
936 ac_dashdash=
937 for ac_option
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
956 ac_dashdash=yes ;;
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
975 --config-cache | -C)
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 esac
1293 done
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1341 If a cross compiler is detected then cross compile mode will be used" >&2
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures this package to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1482 cat <<\_ACEOF
1484 X features:
1485 --x-includes=DIR X include files are in DIR
1486 --x-libraries=DIR X library files are in DIR
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1494 if test -n "$ac_init_help"; then
1496 cat <<\_ACEOF
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-build-type=TYPE
1503 Select the build type. Available types are:
1504 personal, nightly, snapshot, milestone, release. Do
1505 NOT use this option unless you know what you are
1506 doing! (default=personal)
1507 --enable-debug=list Enable different types of debug. Commas or
1508 whitespaces can be used to separate the items in the
1509 list. Available types of debug are: all, none,
1510 messages, stack, mungwall, modules, symbols. If no
1511 list is provided then "all" is assumed.
1512 (default=none)
1513 --enable-crosstools Build cross-compiler toolchains if necessary
1514 (default=no).
1515 --enable-distcc Use distcc as a front end to the compiler
1516 (default=no).
1517 --enable-ccache Use ccache as a front end to the compiler
1518 (default=no).
1519 --enable-target-variant=NAME
1520 Enable a specific target variant(default=none)
1521 --enable-includes=dir Alternative system include directory
1522 --enable-palm-debug-hack
1523 Enable palm debug output hack in palm native
1524 (default=no)
1525 --enable-nesting-supervisor
1526 Enable nesting supervisor support in unix
1527 (default=no)
1528 --disable-mmu Disable MMU support (default=enabled)
1529 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1530 --enable-x11-shm use X11 shared memory (default=auto)
1531 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1532 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1533 --disable-sdltest Do not try to compile and run a test SDL program
1534 --enable-dbus Enable DBUS support via dbus.library (default=no)
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-gcc-version=VERSION
1540 Use host gcc-VERSION for building AROS
1541 --with-optimization=FLAGS
1542 Use optimization flags FLAGS (default=-O2).
1543 --with-paranoia=FLAGS CC flags to enable paranoia
1544 --with-xcode=PATH Specify XCode path for iOS targets
1545 (default=/Developer).
1546 --with-ios-version=VERSION
1547 Specify minimum supported iOS version (default=3.0).
1548 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1549 --with-sdk=PATH Specify Android SDK path
1550 (default=$default_android_sdk).
1551 --with-ndk=PATH Specify Android NDK path
1552 (default=$default_android_ndk).
1553 --with-android-version=VERSION
1554 Use Android platform VERSION (default=2.2).
1555 --with-crosstools=DIR Where to install or search for cross tools binaries
1556 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1557 --with-portssources=DIR Where to download sourcecode for external ports
1558 --with-bootloader=NAME Use a specific bootloader
1559 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1560 --with-theme=NAME Use a specific GUI Theme
1561 --with-resolution=XRESxYRESxDEPTH
1562 Default resolution of the initial WorkbenchScreen
1563 --with-serial-debug Enable serial debug output in native (default=no)
1564 --with-x use the X Window System
1565 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1566 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CPP C preprocessor
1577 XMKMF Path to xmkmf, Makefile generator for X Window System
1579 Use these variables to override the choices made by `configure' or to help
1580 it to find libraries and programs with nonstandard names/locations.
1582 Report bugs to the package provider.
1583 _ACEOF
1584 ac_status=$?
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 continue
1593 ac_builddir=.
1595 case "$ac_dir" in
1596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 esac ;;
1605 esac
1606 ac_abs_top_builddir=$ac_pwd
1607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608 # for backward compatibility:
1609 ac_top_builddir=$ac_top_build_prefix
1611 case $srcdir in
1612 .) # We are building in place.
1613 ac_srcdir=.
1614 ac_top_srcdir=$ac_top_builddir_sub
1615 ac_abs_top_srcdir=$ac_pwd ;;
1616 [\\/]* | ?:[\\/]* ) # Absolute name.
1617 ac_srcdir=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir=$srcdir
1619 ac_abs_top_srcdir=$srcdir ;;
1620 *) # Relative name.
1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624 esac
1625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627 cd "$ac_dir" || { ac_status=$?; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1635 else
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637 fi || ac_status=$?
1638 cd "$ac_pwd" || { ac_status=$?; break; }
1639 done
1642 test -n "$ac_init_help" && exit $ac_status
1643 if $ac_init_version; then
1644 cat <<\_ACEOF
1645 configure
1646 generated by GNU Autoconf 2.68
1648 Copyright (C) 2010 Free Software Foundation, Inc.
1649 This configure script is free software; the Free Software Foundation
1650 gives unlimited permission to copy, distribute and modify it.
1651 _ACEOF
1652 exit
1655 ## ------------------------ ##
1656 ## Autoconf initialization. ##
1657 ## ------------------------ ##
1659 # ac_fn_c_try_compile LINENO
1660 # --------------------------
1661 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext
1666 if { { ac_try="$ac_compile"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_compile") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest.$ac_objext; then :
1685 ac_retval=0
1686 else
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1690 ac_retval=1
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1695 } # ac_fn_c_try_compile
1697 # ac_fn_c_try_cpp LINENO
1698 # ----------------------
1699 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_cpp ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_cpp conftest.$ac_ext"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } > conftest.i && {
1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=1
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_c_try_cpp
1734 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1735 # -------------------------------------------------------
1736 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1737 # the include files in INCLUDES and setting the cache variable VAR
1738 # accordingly.
1739 ac_fn_c_check_header_mongrel ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if eval \${$3+:} false; then :
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 eval ac_res=\$$3
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 else
1752 # Is the header compilable?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1754 $as_echo_n "checking $2 usability... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"; then :
1761 ac_header_compiler=yes
1762 else
1763 ac_header_compiler=no
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1767 $as_echo "$ac_header_compiler" >&6; }
1769 # Is the header present?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1771 $as_echo_n "checking $2 presence... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 #include <$2>
1775 _ACEOF
1776 if ac_fn_c_try_cpp "$LINENO"; then :
1777 ac_header_preproc=yes
1778 else
1779 ac_header_preproc=no
1781 rm -f conftest.err conftest.i conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1783 $as_echo "$ac_header_preproc" >&6; }
1785 # So? What about this header?
1786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1787 yes:no: )
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1789 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793 no:yes:* )
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1795 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1797 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1799 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1801 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805 esac
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 eval "$3=\$ac_header_compiler"
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 } # ac_fn_c_check_header_mongrel
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_run
1863 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists and can be compiled using the include files in
1866 # INCLUDES, setting the cache variable VAR accordingly.
1867 ac_fn_c_check_header_compile ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 } # ac_fn_c_check_header_compile
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1941 # ----------------------------------------------------
1942 # Tries to find if the field MEMBER exists in type AGGR, after including
1943 # INCLUDES, setting cache variable VAR accordingly.
1944 ac_fn_c_check_member ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1948 $as_echo_n "checking for $2.$3... " >&6; }
1949 if eval \${$4+:} false; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 main ()
1958 static $2 ac_aggr;
1959 if (ac_aggr.$3)
1960 return 0;
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$4=yes"
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 main ()
1974 static $2 ac_aggr;
1975 if (sizeof ac_aggr.$3)
1976 return 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 eval "$4=yes"
1983 else
1984 eval "$4=no"
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 eval ac_res=\$$4
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_member
1997 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1998 # ---------------------------------------------
1999 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2000 # accordingly.
2001 ac_fn_c_check_decl ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 as_decl_name=`echo $2|sed 's/ *(.*//'`
2005 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2007 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2015 main ()
2017 #ifndef $as_decl_name
2018 #ifdef __cplusplus
2019 (void) $as_decl_use;
2020 #else
2021 (void) $as_decl_name;
2022 #endif
2023 #endif
2026 return 0;
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 eval "$3=yes"
2031 else
2032 eval "$3=no"
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 } # ac_fn_c_check_decl
2043 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2044 # -------------------------------------------
2045 # Tests whether TYPE exists after having included INCLUDES, setting cache
2046 # variable VAR accordingly.
2047 ac_fn_c_check_type ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054 else
2055 eval "$3=no"
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2060 main ()
2062 if (sizeof ($2))
2063 return 0;
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 if (sizeof (($2)))
2076 return 0;
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2083 else
2084 eval "$3=yes"
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_type
2097 # ac_fn_c_check_func LINENO FUNC VAR
2098 # ----------------------------------
2099 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2100 ac_fn_c_check_func ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2112 #define $2 innocuous_$2
2114 /* System header to define __stub macros and hopefully few prototypes,
2115 which can conflict with char $2 (); below.
2116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2117 <limits.h> exists even on freestanding compilers. */
2119 #ifdef __STDC__
2120 # include <limits.h>
2121 #else
2122 # include <assert.h>
2123 #endif
2125 #undef $2
2127 /* Override any GCC internal prototype to avoid an error.
2128 Use char because int might match the return type of a GCC
2129 builtin and then its argument prototype would still apply. */
2130 #ifdef __cplusplus
2131 extern "C"
2132 #endif
2133 char $2 ();
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined __stub_$2 || defined __stub___$2
2138 choke me
2139 #endif
2142 main ()
2144 return $2 ();
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_link "$LINENO"; then :
2150 eval "$3=yes"
2151 else
2152 eval "$3=no"
2154 rm -f core conftest.err conftest.$ac_objext \
2155 conftest$ac_exeext conftest.$ac_ext
2157 eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 } # ac_fn_c_check_func
2163 cat >config.log <<_ACEOF
2164 This file contains any messages produced by compilers while
2165 running configure, to aid debugging if configure makes a mistake.
2167 It was created by $as_me, which was
2168 generated by GNU Autoconf 2.68. Invocation command line was
2170 $ $0 $@
2172 _ACEOF
2173 exec 5>>config.log
2175 cat <<_ASUNAME
2176 ## --------- ##
2177 ## Platform. ##
2178 ## --------- ##
2180 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2181 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2182 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2183 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2184 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2187 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2189 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2190 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2191 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2192 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2193 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2194 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2195 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2197 _ASUNAME
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 $as_echo "PATH: $as_dir"
2205 done
2206 IFS=$as_save_IFS
2208 } >&5
2210 cat >&5 <<_ACEOF
2213 ## ----------- ##
2214 ## Core tests. ##
2215 ## ----------- ##
2217 _ACEOF
2220 # Keep a trace of the command line.
2221 # Strip out --no-create and --no-recursion so they do not pile up.
2222 # Strip out --silent because we don't want to record it for future runs.
2223 # Also quote any args containing shell meta-characters.
2224 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_configure_args=
2226 ac_configure_args0=
2227 ac_configure_args1=
2228 ac_must_keep_next=false
2229 for ac_pass in 1 2
2231 for ac_arg
2233 case $ac_arg in
2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2236 | -silent | --silent | --silen | --sile | --sil)
2237 continue ;;
2238 *\'*)
2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 esac
2241 case $ac_pass in
2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2244 as_fn_append ac_configure_args1 " '$ac_arg'"
2245 if test $ac_must_keep_next = true; then
2246 ac_must_keep_next=false # Got value, back to normal.
2247 else
2248 case $ac_arg in
2249 *=* | --config-cache | -C | -disable-* | --disable-* \
2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2252 | -with-* | --with-* | -without-* | --without-* | --x)
2253 case "$ac_configure_args0 " in
2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2255 esac
2257 -* ) ac_must_keep_next=true ;;
2258 esac
2260 as_fn_append ac_configure_args " '$ac_arg'"
2262 esac
2263 done
2264 done
2265 { ac_configure_args0=; unset ac_configure_args0;}
2266 { ac_configure_args1=; unset ac_configure_args1;}
2268 # When interrupted or exit'd, cleanup temporary files, and complete
2269 # config.log. We remove comments because anyway the quotes in there
2270 # would cause problems or look ugly.
2271 # WARNING: Use '\'' to represent an apostrophe within the trap.
2272 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2273 trap 'exit_status=$?
2274 # Save into config.log some information that might help in debugging.
2276 echo
2278 $as_echo "## ---------------- ##
2279 ## Cache variables. ##
2280 ## ---------------- ##"
2281 echo
2282 # The following way of writing the cache mishandles newlines in values,
2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2285 eval ac_val=\$$ac_var
2286 case $ac_val in #(
2287 *${as_nl}*)
2288 case $ac_var in #(
2289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 esac
2292 case $ac_var in #(
2293 _ | IFS | as_nl) ;; #(
2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2295 *) { eval $ac_var=; unset $ac_var;} ;;
2296 esac ;;
2297 esac
2298 done
2299 (set) 2>&1 |
2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2301 *${as_nl}ac_space=\ *)
2302 sed -n \
2303 "s/'\''/'\''\\\\'\'''\''/g;
2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 ;; #(
2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 esac |
2310 sort
2312 echo
2314 $as_echo "## ----------------- ##
2315 ## Output variables. ##
2316 ## ----------------- ##"
2317 echo
2318 for ac_var in $ac_subst_vars
2320 eval ac_val=\$$ac_var
2321 case $ac_val in
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 esac
2324 $as_echo "$ac_var='\''$ac_val'\''"
2325 done | sort
2326 echo
2328 if test -n "$ac_subst_files"; then
2329 $as_echo "## ------------------- ##
2330 ## File substitutions. ##
2331 ## ------------------- ##"
2332 echo
2333 for ac_var in $ac_subst_files
2335 eval ac_val=\$$ac_var
2336 case $ac_val in
2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 esac
2339 $as_echo "$ac_var='\''$ac_val'\''"
2340 done | sort
2341 echo
2344 if test -s confdefs.h; then
2345 $as_echo "## ----------- ##
2346 ## confdefs.h. ##
2347 ## ----------- ##"
2348 echo
2349 cat confdefs.h
2350 echo
2352 test "$ac_signal" != 0 &&
2353 $as_echo "$as_me: caught signal $ac_signal"
2354 $as_echo "$as_me: exit $exit_status"
2355 } >&5
2356 rm -f core *.core core.conftest.* &&
2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2358 exit $exit_status
2360 for ac_signal in 1 2 13 15; do
2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 done
2363 ac_signal=0
2365 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2366 rm -f -r conftest* confdefs.h
2368 $as_echo "/* confdefs.h */" > confdefs.h
2370 # Predefined preprocessor variables.
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_NAME "$PACKAGE_NAME"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_STRING "$PACKAGE_STRING"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_URL "$PACKAGE_URL"
2394 _ACEOF
2397 # Let the site file select an alternate cache file if it wants to.
2398 # Prefer an explicitly selected file to automatically selected ones.
2399 ac_site_file1=NONE
2400 ac_site_file2=NONE
2401 if test -n "$CONFIG_SITE"; then
2402 # We do not want a PATH search for config.site.
2403 case $CONFIG_SITE in #((
2404 -*) ac_site_file1=./$CONFIG_SITE;;
2405 */*) ac_site_file1=$CONFIG_SITE;;
2406 *) ac_site_file1=./$CONFIG_SITE;;
2407 esac
2408 elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411 else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2415 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2417 test "x$ac_site_file" = xNONE && continue
2418 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2420 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file" \
2423 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425 as_fn_error $? "failed to load site script $ac_site_file
2426 See \`config.log' for more details" "$LINENO" 5; }
2428 done
2430 if test -r "$cache_file"; then
2431 # Some versions of bash will fail to source /dev/null (special files
2432 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2433 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2435 $as_echo "$as_me: loading cache $cache_file" >&6;}
2436 case $cache_file in
2437 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2438 *) . "./$cache_file";;
2439 esac
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2443 $as_echo "$as_me: creating cache $cache_file" >&6;}
2444 >$cache_file
2447 as_fn_append ac_header_list " stdlib.h"
2448 as_fn_append ac_header_list " unistd.h"
2449 as_fn_append ac_header_list " sys/param.h"
2450 # Check that the precious variables saved in the cache have kept the same
2451 # value.
2452 ac_cache_corrupted=false
2453 for ac_var in $ac_precious_vars; do
2454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2455 eval ac_new_set=\$ac_env_${ac_var}_set
2456 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2457 eval ac_new_val=\$ac_env_${ac_var}_value
2458 case $ac_old_set,$ac_new_set in
2459 set,)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,set)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,);;
2469 if test "x$ac_old_val" != "x$ac_new_val"; then
2470 # differences in whitespace do not lead to failure.
2471 ac_old_val_w=`echo x $ac_old_val`
2472 ac_new_val_w=`echo x $ac_new_val`
2473 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2475 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2476 ac_cache_corrupted=:
2477 else
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2479 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2480 eval $ac_var=\$ac_old_val
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2483 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2485 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2486 fi;;
2487 esac
2488 # Pass precious variables to config.status.
2489 if test "$ac_new_set" = set; then
2490 case $ac_new_val in
2491 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 *) ac_arg=$ac_var=$ac_new_val ;;
2493 esac
2494 case " $ac_configure_args " in
2495 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2496 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2497 esac
2499 done
2500 if $ac_cache_corrupted; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2504 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2505 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2507 ## -------------------- ##
2508 ## Main body of script. ##
2509 ## -------------------- ##
2511 ac_ext=c
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 ac_aux_dir=
2520 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2521 if test -f "$ac_dir/install-sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install-sh -c"
2524 break
2525 elif test -f "$ac_dir/install.sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install.sh -c"
2528 break
2529 elif test -f "$ac_dir/shtool"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/shtool install -c"
2532 break
2534 done
2535 if test -z "$ac_aux_dir"; then
2536 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549 # Check what host we are running on.
2550 # If a target is not suggested, we use this one.
2551 # Note that what we call a target, Autoconf calls a host.
2552 # Make sure we can run config.sub.
2553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2557 $as_echo_n "checking build system type... " >&6; }
2558 if ${ac_cv_build+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 ac_build_alias=$build_alias
2562 test "x$ac_build_alias" = x &&
2563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2564 test "x$ac_build_alias" = x &&
2565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2571 $as_echo "$ac_cv_build" >&6; }
2572 case $ac_cv_build in
2573 *-*-*) ;;
2574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2575 esac
2576 build=$ac_cv_build
2577 ac_save_IFS=$IFS; IFS='-'
2578 set x $ac_cv_build
2579 shift
2580 build_cpu=$1
2581 build_vendor=$2
2582 shift; shift
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2585 build_os=$*
2586 IFS=$ac_save_IFS
2587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2591 $as_echo_n "checking host system type... " >&6; }
2592 if ${ac_cv_host+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 if test "x$host_alias" = x; then
2596 ac_cv_host=$ac_cv_build
2597 else
2598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2604 $as_echo "$ac_cv_host" >&6; }
2605 case $ac_cv_host in
2606 *-*-*) ;;
2607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2608 esac
2609 host=$ac_cv_host
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_host
2612 shift
2613 host_cpu=$1
2614 host_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 host_os=$*
2619 IFS=$ac_save_IFS
2620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2624 # The AROS target is slightly different to the normal GNU style
2625 # format. We don't have the middle part, and we reverse the order
2626 # of the $(CPU) and $(OS) bits.
2628 # Don't strip the version of the target yet, it might be
2629 # useful on some systems.
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2632 $as_echo_n "checking for AROS style target... " >&6; }
2634 if test "$target" = "NONE" ; then
2635 target=$host_os-$host_cpu
2636 else
2637 if test "$target" = "" ; then
2638 target=$host_os-$host_cpu
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2642 $as_echo "$target" >&6; }
2644 if test "$host_os" = "mingw32" ; then
2645 PWDCMD="pwd -W"
2648 #don't know where else to put this...
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2650 $as_echo_n "checking building AROS in... " >&6; }
2651 AROS_BUILDDIR=`${PWDCMD-pwd}`
2652 AROS_BUILDDIR_UNIX=${PWD}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2654 $as_echo "$AROS_BUILDDIR" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2657 $as_echo_n "checking AROS source in... " >&6; }
2658 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2659 SRCDIR=${srcpwd}
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2661 $as_echo "$SRCDIR" >&6; }
2663 # Parse the target field into something useful.
2665 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2666 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2669 aros_default_wbwidth=800
2670 aros_default_wbheight=600
2671 aros_default_wbdepth=4
2674 # The first step is to find the host binaries.
2675 # Check for a compiler.
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 if test -n "$ac_tool_prefix"; then
2682 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_CC+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 break 2
2703 done
2704 done
2705 IFS=$as_save_IFS
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$ac_cv_prog_CC"; then
2721 ac_ct_CC=$CC
2722 # Extract the first word of "gcc", so it can be a program name with args.
2723 set dummy gcc; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$ac_ct_CC"; then
2730 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_ac_ct_CC="gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2750 if test -n "$ac_ct_CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2752 $as_echo "$ac_ct_CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2758 if test "x$ac_ct_CC" = x; then
2759 CC=""
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 CC=$ac_ct_CC
2769 else
2770 CC="$ac_cv_prog_CC"
2773 if test -z "$CC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2776 set dummy ${ac_tool_prefix}cc; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 for as_dir in $PATH
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CC="${ac_tool_prefix}cc"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 break 2
2796 done
2797 done
2798 IFS=$as_save_IFS
2802 CC=$ac_cv_prog_CC
2803 if test -n "$CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2805 $as_echo "$CC" >&6; }
2806 else
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2814 if test -z "$CC"; then
2815 # Extract the first word of "cc", so it can be a program name with args.
2816 set dummy cc; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 ac_prog_rejected=no
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2834 ac_prog_rejected=yes
2835 continue
2837 ac_cv_prog_CC="cc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2843 IFS=$as_save_IFS
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2848 shift
2849 if test $# != 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2853 shift
2854 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2870 if test -z "$CC"; then
2871 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if ${ac_cv_prog_CC+:} false; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$CC" && break
2912 done
2914 if test -z "$CC"; then
2915 ac_ct_CC=$CC
2916 for ac_prog in cl.exe
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2955 test -n "$ac_ct_CC" && break
2956 done
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 CC=$ac_ct_CC
2974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error $? "no acceptable C compiler found in \$PATH
2977 See \`config.log' for more details" "$LINENO" 5; }
2979 # Provide some information about the compiler.
2980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981 set X $ac_compile
2982 ac_compiler=$2
2983 for ac_option in --version -v -V -qversion; do
2984 { { ac_try="$ac_compiler $ac_option >&5"
2985 case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988 esac
2989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990 $as_echo "$ac_try_echo"; } >&5
2991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2992 ac_status=$?
2993 if test -s conftest.err; then
2994 sed '10a\
2995 ... rest of stderr output deleted ...
2996 10q' conftest.err >conftest.er1
2997 cat conftest.er1 >&5
2999 rm -f conftest.er1 conftest.err
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }
3002 done
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3008 main ()
3012 return 0;
3014 _ACEOF
3015 ac_clean_files_save=$ac_clean_files
3016 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3017 # Try to create an executable without -o first, disregard a.out.
3018 # It will help us diagnose broken compilers, and finding out an intuition
3019 # of exeext.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3021 $as_echo_n "checking whether the C compiler works... " >&6; }
3022 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024 # The possible output files:
3025 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3027 ac_rmfiles=
3028 for ac_file in $ac_files
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3032 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3033 esac
3034 done
3035 rm -f $ac_rmfiles
3037 if { { ac_try="$ac_link_default"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link_default") 2>&5
3045 ac_status=$?
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }; then :
3048 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3049 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3050 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3051 # so that the user can short-circuit this test for compilers unknown to
3052 # Autoconf.
3053 for ac_file in $ac_files ''
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3059 [ab].out )
3060 # We found the default executable, but exeext='' is most
3061 # certainly right.
3062 break;;
3063 *.* )
3064 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3065 then :; else
3066 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 # We set ac_cv_exeext here because the later test for it is not
3069 # safe: cross compilers may not add the suffix if given an `-o'
3070 # argument, so we may need to know it at that point already.
3071 # Even if this section looks crufty: it has the advantage of
3072 # actually working.
3073 break;;
3075 break;;
3076 esac
3077 done
3078 test "$ac_cv_exeext" = no && ac_cv_exeext=
3080 else
3081 ac_file=''
3083 if test -z "$ac_file"; then :
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 $as_echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error 77 "C compiler cannot create executables
3092 See \`config.log' for more details" "$LINENO" 5; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095 $as_echo "yes" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3098 $as_echo_n "checking for C compiler default output file name... " >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3100 $as_echo "$ac_file" >&6; }
3101 ac_exeext=$ac_cv_exeext
3103 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3104 ac_clean_files=$ac_clean_files_save
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 break;;
3128 * ) break;;
3129 esac
3130 done
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details" "$LINENO" 5; }
3137 rm -f conftest conftest$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3141 rm -f conftest.$ac_ext
3142 EXEEXT=$ac_cv_exeext
3143 ac_exeext=$EXEEXT
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146 #include <stdio.h>
3148 main ()
3150 FILE *f = fopen ("conftest.out", "w");
3151 return ferror (f) || fclose (f) != 0;
3154 return 0;
3156 _ACEOF
3157 ac_clean_files="$ac_clean_files conftest.out"
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3161 $as_echo_n "checking whether we are cross compiling... " >&6; }
3162 if test "$cross_compiling" != yes; then
3163 { { ac_try="$ac_link"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3169 $as_echo "$ac_try_echo"; } >&5
3170 (eval "$ac_link") 2>&5
3171 ac_status=$?
3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3173 test $ac_status = 0; }
3174 if { ac_try='./conftest$ac_cv_exeext'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details" "$LINENO" 5; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3199 $as_echo "$cross_compiling" >&6; }
3201 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3204 $as_echo_n "checking for suffix of object files... " >&6; }
3205 if ${ac_cv_objext+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3212 main ()
3216 return 0;
3218 _ACEOF
3219 rm -f conftest.o conftest.obj
3220 if { { ac_try="$ac_compile"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_compile") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; then :
3231 for ac_file in conftest.o conftest.obj conftest.*; do
3232 test -f "$ac_file" || continue;
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3235 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3236 break;;
3237 esac
3238 done
3239 else
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot compute suffix of object files: cannot compile
3246 See \`config.log' for more details" "$LINENO" 5; }
3248 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3251 $as_echo "$ac_cv_objext" >&6; }
3252 OBJEXT=$ac_cv_objext
3253 ac_objext=$OBJEXT
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3255 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3256 if ${ac_cv_c_compiler_gnu+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3260 /* end confdefs.h. */
3263 main ()
3265 #ifndef __GNUC__
3266 choke me
3267 #endif
3270 return 0;
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_compiler_gnu=yes
3275 else
3276 ac_compiler_gnu=no
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3283 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3284 if test $ac_compiler_gnu = yes; then
3285 GCC=yes
3286 else
3287 GCC=
3289 ac_test_CFLAGS=${CFLAGS+set}
3290 ac_save_CFLAGS=$CFLAGS
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3292 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3293 if ${ac_cv_prog_cc_g+:} false; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 ac_save_c_werror_flag=$ac_c_werror_flag
3297 ac_c_werror_flag=yes
3298 ac_cv_prog_cc_g=no
3299 CFLAGS="-g"
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_g=yes
3313 else
3314 CFLAGS=""
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3319 main ()
3323 return 0;
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"; then :
3328 else
3329 ac_c_werror_flag=$ac_save_c_werror_flag
3330 CFLAGS="-g"
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3335 main ()
3339 return 0;
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_cv_prog_cc_g=yes
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 ac_c_werror_flag=$ac_save_c_werror_flag
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355 CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357 if test "$GCC" = yes; then
3358 CFLAGS="-g -O2"
3359 else
3360 CFLAGS="-g"
3362 else
3363 if test "$GCC" = yes; then
3364 CFLAGS="-O2"
3365 else
3366 CFLAGS=
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if ${ac_cv_prog_cc_c89+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 ac_cv_prog_cc_c89=no
3375 ac_save_CC=$CC
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3378 #include <stdarg.h>
3379 #include <stdio.h>
3380 #include <sys/types.h>
3381 #include <sys/stat.h>
3382 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3383 struct buf { int x; };
3384 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3385 static char *e (p, i)
3386 char **p;
3387 int i;
3389 return p[i];
3391 static char *f (char * (*g) (char **, int), char **p, ...)
3393 char *s;
3394 va_list v;
3395 va_start (v,p);
3396 s = g (p, va_arg (v,int));
3397 va_end (v);
3398 return s;
3401 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3402 function prototypes and stuff, but not '\xHH' hex character constants.
3403 These don't provoke an error unfortunately, instead are silently treated
3404 as 'x'. The following induces an error, until -std is added to get
3405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3406 array size at least. It's necessary to write '\x00'==0 to get something
3407 that's true only with -std. */
3408 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3411 inside strings and character constants. */
3412 #define FOO(x) 'x'
3413 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415 int test (int i, double x);
3416 struct s1 {int (*f) (int a);};
3417 struct s2 {int (*f) (double a);};
3418 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3419 int argc;
3420 char **argv;
3422 main ()
3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 return 0;
3428 _ACEOF
3429 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 CC="$ac_save_CC $ac_arg"
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_c89=$ac_arg
3436 rm -f core conftest.err conftest.$ac_objext
3437 test "x$ac_cv_prog_cc_c89" != "xno" && break
3438 done
3439 rm -f conftest.$ac_ext
3440 CC=$ac_save_CC
3443 # AC_CACHE_VAL
3444 case "x$ac_cv_prog_cc_c89" in
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3447 $as_echo "none needed" >&6; } ;;
3448 xno)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3450 $as_echo "unsupported" >&6; } ;;
3452 CC="$CC $ac_cv_prog_cc_c89"
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3454 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3455 esac
3456 if test "x$ac_cv_prog_cc_c89" != xno; then :
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 case $ac_cv_prog_cc_stdc in #(
3467 no) :
3468 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3469 *) :
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3471 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3472 if ${ac_cv_prog_cc_c99+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 ac_cv_prog_cc_c99=no
3476 ac_save_CC=$CC
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <stdarg.h>
3480 #include <stdbool.h>
3481 #include <stdlib.h>
3482 #include <wchar.h>
3483 #include <stdio.h>
3485 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3486 #define debug(...) fprintf (stderr, __VA_ARGS__)
3487 #define showlist(...) puts (#__VA_ARGS__)
3488 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3489 static void
3490 test_varargs_macros (void)
3492 int x = 1234;
3493 int y = 5678;
3494 debug ("Flag");
3495 debug ("X = %d\n", x);
3496 showlist (The first, second, and third items.);
3497 report (x>y, "x is %d but y is %d", x, y);
3500 // Check long long types.
3501 #define BIG64 18446744073709551615ull
3502 #define BIG32 4294967295ul
3503 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3504 #if !BIG_OK
3505 your preprocessor is broken;
3506 #endif
3507 #if BIG_OK
3508 #else
3509 your preprocessor is broken;
3510 #endif
3511 static long long int bignum = -9223372036854775807LL;
3512 static unsigned long long int ubignum = BIG64;
3514 struct incomplete_array
3516 int datasize;
3517 double data[];
3520 struct named_init {
3521 int number;
3522 const wchar_t *name;
3523 double average;
3526 typedef const char *ccp;
3528 static inline int
3529 test_restrict (ccp restrict text)
3531 // See if C++-style comments work.
3532 // Iterate through items via the restricted pointer.
3533 // Also check for declarations in for loops.
3534 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3535 continue;
3536 return 0;
3539 // Check varargs and va_copy.
3540 static void
3541 test_varargs (const char *format, ...)
3543 va_list args;
3544 va_start (args, format);
3545 va_list args_copy;
3546 va_copy (args_copy, args);
3548 const char *str;
3549 int number;
3550 float fnumber;
3552 while (*format)
3554 switch (*format++)
3556 case 's': // string
3557 str = va_arg (args_copy, const char *);
3558 break;
3559 case 'd': // int
3560 number = va_arg (args_copy, int);
3561 break;
3562 case 'f': // float
3563 fnumber = va_arg (args_copy, double);
3564 break;
3565 default:
3566 break;
3569 va_end (args_copy);
3570 va_end (args);
3574 main ()
3577 // Check bool.
3578 _Bool success = false;
3580 // Check restrict.
3581 if (test_restrict ("String literal") == 0)
3582 success = true;
3583 char *restrict newvar = "Another string";
3585 // Check varargs.
3586 test_varargs ("s, d' f .", "string", 65, 34.234);
3587 test_varargs_macros ();
3589 // Check flexible array members.
3590 struct incomplete_array *ia =
3591 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3592 ia->datasize = 10;
3593 for (int i = 0; i < ia->datasize; ++i)
3594 ia->data[i] = i * 1.234;
3596 // Check named initializers.
3597 struct named_init ni = {
3598 .number = 34,
3599 .name = L"Test wide string",
3600 .average = 543.34343,
3603 ni.number = 58;
3605 int dynamic_array[ni.number];
3606 dynamic_array[ni.number - 1] = 543;
3608 // work around unused variable warnings
3609 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3610 || dynamic_array[ni.number - 1] != 543);
3613 return 0;
3615 _ACEOF
3616 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c99=$ac_arg
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c99" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c99" in
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634 xno)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3638 CC="$CC $ac_cv_prog_cc_c99"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3640 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c99" != xno; then :
3643 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if ${ac_cv_prog_cc_c89+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 ac_cv_prog_cc_c89=no
3651 ac_save_CC=$CC
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 #include <stdarg.h>
3655 #include <stdio.h>
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3662 char **p;
3663 int i;
3665 return p[i];
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3669 char *s;
3670 va_list v;
3671 va_start (v,p);
3672 s = g (p, va_arg (v,int));
3673 va_end (v);
3674 return s;
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3688 #define FOO(x) 'x'
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695 int argc;
3696 char **argv;
3698 main ()
3700 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 return 0;
3704 _ACEOF
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3712 rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3714 done
3715 rm -f conftest.$ac_ext
3716 CC=$ac_save_CC
3719 # AC_CACHE_VAL
3720 case "x$ac_cv_prog_cc_c89" in
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3724 xno)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3731 esac
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3734 else
3735 ac_cv_prog_cc_stdc=no
3740 esac
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3742 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3743 if ${ac_cv_prog_cc_stdc+:} false; then :
3744 $as_echo_n "(cached) " >&6
3747 case $ac_cv_prog_cc_stdc in #(
3748 no) :
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;; #(
3751 '') :
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;; #(
3754 *) :
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3756 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3757 esac
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3765 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3766 # On Suns, sometimes $CPP names a directory.
3767 if test -n "$CPP" && test -d "$CPP"; then
3768 CPP=
3770 if test -z "$CPP"; then
3771 if ${ac_cv_prog_CPP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 # Double quotes because CPP needs to be expanded
3775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3777 ac_preproc_ok=false
3778 for ac_c_preproc_warn_flag in '' yes
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error" is here to catch this case.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #ifdef __STDC__
3789 # include <limits.h>
3790 #else
3791 # include <assert.h>
3792 #endif
3793 Syntax error
3794 _ACEOF
3795 if ac_fn_c_try_cpp "$LINENO"; then :
3797 else
3798 # Broken: fails on valid input.
3799 continue
3801 rm -f conftest.err conftest.i conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether nonexistent headers
3804 # can be detected and how.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3808 _ACEOF
3809 if ac_fn_c_try_cpp "$LINENO"; then :
3810 # Broken: success on invalid input.
3811 continue
3812 else
3813 # Passes both tests.
3814 ac_preproc_ok=:
3815 break
3817 rm -f conftest.err conftest.i conftest.$ac_ext
3819 done
3820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821 rm -f conftest.i conftest.err conftest.$ac_ext
3822 if $ac_preproc_ok; then :
3823 break
3826 done
3827 ac_cv_prog_CPP=$CPP
3830 CPP=$ac_cv_prog_CPP
3831 else
3832 ac_cv_prog_CPP=$CPP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3835 $as_echo "$CPP" >&6; }
3836 ac_preproc_ok=false
3837 for ac_c_preproc_warn_flag in '' yes
3839 # Use a header file that comes with gcc, so configuring glibc
3840 # with a fresh cross-compiler works.
3841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3842 # <limits.h> exists even on freestanding compilers.
3843 # On the NeXT, cc -E runs the code through the compiler's parser,
3844 # not just through cpp. "Syntax error" is here to catch this case.
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #ifdef __STDC__
3848 # include <limits.h>
3849 #else
3850 # include <assert.h>
3851 #endif
3852 Syntax error
3853 _ACEOF
3854 if ac_fn_c_try_cpp "$LINENO"; then :
3856 else
3857 # Broken: fails on valid input.
3858 continue
3860 rm -f conftest.err conftest.i conftest.$ac_ext
3862 # OK, works on sane cases. Now check whether nonexistent headers
3863 # can be detected and how.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3867 _ACEOF
3868 if ac_fn_c_try_cpp "$LINENO"; then :
3869 # Broken: success on invalid input.
3870 continue
3871 else
3872 # Passes both tests.
3873 ac_preproc_ok=:
3874 break
3876 rm -f conftest.err conftest.i conftest.$ac_ext
3878 done
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.i conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then :
3883 else
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details" "$LINENO" 5; }
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 # Check for a compatible awk
3898 for ac_prog in gawk nawk
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy $ac_prog; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if ${ac_cv_prog_AWK+:} false; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 if test -n "$AWK"; then
3908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_AWK="$ac_prog"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3923 IFS=$as_save_IFS
3927 AWK=$ac_cv_prog_AWK
3928 if test -n "$AWK"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3930 $as_echo "$AWK" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3937 test -n "$AWK" && break
3938 done
3940 if test "$AWK" = ""; then
3941 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3943 # Extract the first word of "mmake", so it can be a program name with args.
3944 set dummy mmake; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_MMAKE+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 if test -n "$MMAKE"; then
3951 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3952 else
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 for as_dir in $PATH
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_MMAKE="mmake "
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 break 2
3964 done
3965 done
3966 IFS=$as_save_IFS
3970 MMAKE=$ac_cv_prog_MMAKE
3971 if test -n "$MMAKE"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3973 $as_echo "$MMAKE" >&6; }
3974 else
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3981 # Perform some default variable assignments. Note all of these will be
3982 # Regenerated from the script, so there is no need to cache them.
3984 aros_host_cc="$CC"
3985 if test "$GCC" = "yes"; then
3986 aros_gcc_ld=`$CC -print-prog-name=ld`
3987 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3988 set dummy `basename $aros_gcc_ld`; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_path_aros_host_ld+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 case $aros_host_ld in
3995 [\\/]* | ?:[\\/]*)
3996 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in `dirname $aros_gcc_ld`
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4015 esac
4017 aros_host_ld=$ac_cv_path_aros_host_ld
4018 if test -n "$aros_host_ld"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4020 $as_echo "$aros_host_ld" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test "$aros_host_ld" = ""; then
4029 # Extract the first word of "ld", so it can be a program name with args.
4030 set dummy ld; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if ${ac_cv_path_aros_host_ld+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 case $aros_host_ld in
4037 [\\/]* | ?:[\\/]*)
4038 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4057 esac
4059 aros_host_ld=$ac_cv_path_aros_host_ld
4060 if test -n "$aros_host_ld"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4062 $as_echo "$aros_host_ld" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4070 if test "$aros_host_ld" = ""; then
4071 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4073 aros_host_make="make"
4074 aros_host_cflags=$CFLAGS
4075 aros_host_ldflags=$LDFLAGS
4076 aros_host_debug="-g -O0"
4077 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4078 aros_host_mkargs="--no-print-directory"
4079 aros_host_incl="/usr/include"
4080 aros_host_exe_suffix="$EXEEXT"
4081 aros_host_lib_suffix=""
4083 for ac_prog in aclocal aclocal19 aclocal-1.9
4085 # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -n "$aros_host_aclocal"; then
4093 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_aros_host_aclocal="$ac_prog"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4106 done
4107 done
4108 IFS=$as_save_IFS
4112 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4113 if test -n "$aros_host_aclocal"; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4115 $as_echo "$aros_host_aclocal" >&6; }
4116 else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4122 test -n "$aros_host_aclocal" && break
4123 done
4125 for ac_prog in autoconf autoconf259 autoconf253
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$aros_host_autoconf"; then
4135 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_aros_host_autoconf="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4155 if test -n "$aros_host_autoconf"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4157 $as_echo "$aros_host_autoconf" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 test -n "$aros_host_autoconf" && break
4165 done
4167 for ac_prog in autoheader autoheader259 autoheader253
4169 # Extract the first word of "$ac_prog", so it can be a program name with args.
4170 set dummy $ac_prog; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$aros_host_autoheader"; then
4177 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186 ac_cv_prog_aros_host_autoheader="$ac_prog"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4196 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4197 if test -n "$aros_host_autoheader"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4199 $as_echo "$aros_host_autoheader" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4206 test -n "$aros_host_autoheader" && break
4207 done
4209 for ac_prog in automake automake19 automake-1.9
4211 # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_aros_host_automake+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$aros_host_automake"; then
4219 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_aros_host_automake="$ac_prog"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4232 done
4233 done
4234 IFS=$as_save_IFS
4238 aros_host_automake=$ac_cv_prog_aros_host_automake
4239 if test -n "$aros_host_automake"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4241 $as_echo "$aros_host_automake" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4248 test -n "$aros_host_automake" && break
4249 done
4252 if test "$aros_host_aclocal" = ""; then
4253 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4255 if test "$aros_host_automake" = ""; then
4256 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4259 case "$aros_host_cc" in
4260 *gcc*)
4261 aros_host_cc_pipe="-pipe"
4263 icc)
4264 aros_host_cc_pipe=""
4267 aros_host_cc_pipe=""
4269 esac
4271 aros_kernel_cc_includes=""
4272 aros_target_cc_includes=""
4274 # ----------------------------------------------------------------------------------------
4275 # Host-specific defaults
4277 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4278 # instead of a wrapper script.
4279 # Useful for non-ELF hosts (like Windows and Darwin).
4280 # Can also be overriden in target section below
4281 use_aros_gcc="no"
4283 # This is the main host configuration section. It is where the host
4284 # can change the values of any variables it needs to change. We do
4285 # not look at anything that compiles to the target yet, we'll get
4286 # to that later.
4288 case "$host_os" in
4289 aros*)
4290 aros_host_arch="aros"
4291 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4292 case "$host_cpu" in
4293 *i?86*)
4294 aros_host_cpu="i386"
4296 *x86_64*)
4297 aros_host_cpu="x86_64"
4299 *powerpc*)
4300 aros_host_cpu="ppc"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4304 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4305 aros_host_cpu="$host_cpu"
4307 esac
4310 linux*)
4311 aros_host_arch="linux"
4312 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4313 case "$host_cpu" in
4314 *i?86*)
4315 aros_host_cpu="i386"
4317 *x86_64*)
4318 aros_host_cpu="x86_64"
4320 *m68k*)
4321 aros_host_cpu="m68k"
4323 *powerpc*)
4324 aros_host_cpu="ppc"
4326 *arm*)
4327 aros_host_cpu="arm"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4331 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4332 aros_host_cpu="$host_cpu"
4334 esac
4337 freebsd*)
4338 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4339 aros_host_make="gmake"
4340 aros_host_arch="freebsd"
4341 aros_host_cpu="i386"
4343 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4345 case $host_os in
4346 freebsd[234]*)
4347 aros_object_format="elf_i386"
4351 aros_object_format="elf_i386_fbsd"
4353 esac
4357 darwin*)
4358 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4359 aros_host_arch="darwin"
4360 use_aros_gcc="yes"
4361 android_build_os="darwin-x86"
4362 android_tool="android"
4363 default_android_sdk="/android-sdk-mac_x86"
4364 default_android_ndk="/android-ndk-r5b"
4365 case "$host_cpu" in
4366 *i?86*)
4367 aros_host_cpu="i386"
4369 *x86_64*)
4370 aros_host_cpu="x86_64"
4372 *powerpc*)
4373 aros_host_cpu="ppc"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4377 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4378 aros_host_cpu="$host_cpu"
4380 esac
4382 aros_host_ldflags="$aros_host_ldflags -liconv"
4386 dragonfly*)
4387 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4388 aros_host_make="gmake"
4389 aros_host_arch="dragonfly"
4390 case $host_cpu in
4391 *i?86*)
4392 aros_host_cpu="i386"
4394 *amd64*)
4395 aros_host_cpu="x86_64"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4399 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4400 aros_host_cpu="$host_cpu"
4402 esac
4405 netbsd*)
4406 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4407 aros_host_make="gmake"
4408 aros_host_arch="netbsd"
4409 case "$host_cpu" in
4410 *i?86*)
4411 aros_host_cpu="i386"
4413 *m68k*)
4414 aros_host_cpu="m68k"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4418 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4419 aros_host_cpu="$host_cpu"
4421 esac
4422 aros_host_lib_suffix=".0.0"
4425 openbsd*)
4426 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4427 aros_host_make="gmake"
4428 aros_host_arch="openbsd"
4429 case "$host_cpu" in
4430 *i?86*)
4431 aros_host_cpu="i386"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4435 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4436 aros_host_cpu="$host_cpu"
4438 esac
4441 solaris*)
4442 aros_host_arch="solaris"
4443 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4444 case "$host_cpu" in
4445 *i?86*)
4446 aros_host_cpu="i386"
4448 *sparc*)
4449 aros_host_cpu="sparc"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4453 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4454 aros_host_cpu="$host_cpu"
4456 esac
4459 morphos*)
4460 aros_host_arch="morphos"
4461 aros_host_cpu="ppc"
4464 amiga*)
4465 aros_host_arch="amiga"
4466 SORT="/gg/bin/sort"
4467 TEST="/gg/bin/test"
4468 UNIQ="/gg/bin/uniq"
4469 FOR="for"
4470 TOUCH="/gg/bin/touch"
4471 case "$host_cpu" in
4472 *m68k*)
4473 aros_host_cpu="m68k"
4475 *powerpc*)
4476 aros_host_cpu="ppc"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4480 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4481 aros_host_cpu="$host_cpu"
4483 esac
4486 cygwin*)
4487 aros_host_arch="cygwin"
4488 use_aros_gcc="yes"
4489 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4490 android_build_os="windows"
4491 android_tool="android.bat"
4492 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4494 case "$host_cpu" in
4495 *i?86*)
4496 aros_host_cpu="i386"
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4500 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4501 aros_host_cpu="$host_cpu"
4503 esac
4506 mingw32*)
4507 aros_host_arch="mingw32"
4508 use_aros_gcc="yes"
4509 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4510 android_build_os="windows"
4511 android_tool="android.bat"
4512 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4514 case "$host_cpu" in
4515 *i?86*)
4516 aros_host_cpu="i386"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4520 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4521 aros_host_cpu="$host_cpu"
4523 esac
4526 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4528 esac
4530 # Extract the first word of "ar", so it can be a program name with args.
4531 set dummy ar; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if ${ac_cv_prog_aros_host_ar+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$aros_host_ar"; then
4538 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4539 else
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541 for as_dir in $PATH
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4547 ac_cv_prog_aros_host_ar="ar cr"
4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4551 done
4552 done
4553 IFS=$as_save_IFS
4557 aros_host_ar=$ac_cv_prog_aros_host_ar
4558 if test -n "$aros_host_ar"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4560 $as_echo "$aros_host_ar" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4567 if test "$aros_host_ar" = ""; then
4568 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4570 # Extract the first word of "ranlib", so it can be a program name with args.
4571 set dummy ranlib; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if test -n "$aros_host_ranlib"; then
4578 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_aros_host_ranlib="ranlib "
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4598 if test -n "$aros_host_ranlib"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4600 $as_echo "$aros_host_ranlib" >&6; }
4601 else
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 if test "$aros_host_ranlib" = ""; then
4608 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4610 # Extract the first word of "strip", so it can be a program name with args.
4611 set dummy strip; ac_word=$2
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if ${ac_cv_prog_aros_host_strip+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$aros_host_strip"; then
4618 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_aros_host_strip="strip "
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4637 aros_host_strip=$ac_cv_prog_aros_host_strip
4638 if test -n "$aros_host_strip"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4640 $as_echo "$aros_host_strip" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4647 if test "$aros_host_strip" = ""; then
4648 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4651 # Extract the first word of "rm", so it can be a program name with args.
4652 set dummy rm; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_RM+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$RM"; then
4659 ac_cv_prog_RM="$RM" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_RM="rm -rf"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 RM=$ac_cv_prog_RM
4679 if test -n "$RM"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4681 $as_echo "$RM" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4688 if test "$RM" = ""; then
4689 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4691 # Extract the first word of "cp", so it can be a program name with args.
4692 set dummy cp; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_CP+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$CP"; then
4699 ac_cv_prog_CP="$CP" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_CP="cp "
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 CP=$ac_cv_prog_CP
4719 if test -n "$CP"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4721 $as_echo "$CP" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 if test "$CP" = ""; then
4729 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4731 # Extract the first word of "mv", so it can be a program name with args.
4732 set dummy mv; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_MV+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$MV"; then
4739 ac_cv_prog_MV="$MV" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_MV="mv "
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 MV=$ac_cv_prog_MV
4759 if test -n "$MV"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4761 $as_echo "$MV" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 if test "$MV" = ""; then
4769 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4771 # Extract the first word of "echo", so it can be a program name with args.
4772 set dummy echo; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if ${ac_cv_prog_ECHO+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ECHO"; then
4779 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ECHO="echo "
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ECHO=$ac_cv_prog_ECHO
4799 if test -n "$ECHO"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4801 $as_echo "$ECHO" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4808 if test "$ECHO" = ""; then
4809 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4811 # Extract the first word of "mkdir", so it can be a program name with args.
4812 set dummy mkdir; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if ${ac_cv_prog_MKDIR+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$MKDIR"; then
4819 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_MKDIR="mkdir -p"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 MKDIR=$ac_cv_prog_MKDIR
4839 if test -n "$MKDIR"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4841 $as_echo "$MKDIR" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 if test "$MKDIR" = ""; then
4849 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4851 # Extract the first word of "touch", so it can be a program name with args.
4852 set dummy touch; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_TOUCH+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$TOUCH"; then
4859 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_TOUCH="touch "
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 TOUCH=$ac_cv_prog_TOUCH
4879 if test -n "$TOUCH"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4881 $as_echo "$TOUCH" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 if test "$TOUCH" = ""; then
4889 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4891 # Extract the first word of "sort", so it can be a program name with args.
4892 set dummy sort; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_SORT+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$SORT"; then
4899 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_SORT="sort "
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 SORT=$ac_cv_prog_SORT
4919 if test -n "$SORT"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4921 $as_echo "$SORT" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 if test "$SORT" = ""; then
4929 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4931 # Extract the first word of "uniq", so it can be a program name with args.
4932 set dummy uniq; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_UNIQ+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 if test -n "$UNIQ"; then
4939 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_UNIQ="uniq "
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 break 2
4952 done
4953 done
4954 IFS=$as_save_IFS
4958 UNIQ=$ac_cv_prog_UNIQ
4959 if test -n "$UNIQ"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4961 $as_echo "$UNIQ" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4968 if test "$UNIQ" = ""; then
4969 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4971 # Extract the first word of "true", so it can be a program name with args.
4972 set dummy true; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_NOP+:} false; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$NOP"; then
4979 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_NOP="true "
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 NOP=$ac_cv_prog_NOP
4999 if test -n "$NOP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5001 $as_echo "$NOP" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5008 if test "$NOP" = ""; then
5009 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5011 # Extract the first word of "cat", so it can be a program name with args.
5012 set dummy cat; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_CAT+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$CAT"; then
5019 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_CAT="cat "
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 CAT=$ac_cv_prog_CAT
5039 if test -n "$CAT"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5041 $as_echo "$CAT" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 if test "$CAT" = ""; then
5049 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5051 # Extract the first word of "bison", so it can be a program name with args.
5052 set dummy bison; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_BISON+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$BISON"; then
5059 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_BISON="bison "
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5072 done
5073 done
5074 IFS=$as_save_IFS
5078 BISON=$ac_cv_prog_BISON
5079 if test -n "$BISON"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5081 $as_echo "$BISON" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5088 if test "$BISON" = ""; then
5089 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5091 # Extract the first word of "flex", so it can be a program name with args.
5092 set dummy flex; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_prog_FLEX+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$FLEX"; then
5099 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_FLEX="flex "
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 FLEX=$ac_cv_prog_FLEX
5119 if test -n "$FLEX"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5121 $as_echo "$FLEX" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "$FLEX" = ""; then
5129 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5131 # Extract the first word of "pngtopnm", so it can be a program name with args.
5132 set dummy pngtopnm; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$PNGTOPNM"; then
5139 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_PNGTOPNM="pngtopnm "
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5152 done
5153 done
5154 IFS=$as_save_IFS
5158 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5159 if test -n "$PNGTOPNM"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5161 $as_echo "$PNGTOPNM" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5168 if test "$PNGTOPNM" = ""; then
5169 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5171 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5172 set dummy ppmtoilbm; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$PPMTOILBM"; then
5179 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5199 if test -n "$PPMTOILBM"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5201 $as_echo "$PPMTOILBM" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 if test "$PPMTOILBM" = ""; then
5209 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5211 # Extract the first word of "sed", so it can be a program name with args.
5212 set dummy sed; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_SED+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$SED"; then
5219 ac_cv_prog_SED="$SED" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_SED="sed "
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 SED=$ac_cv_prog_SED
5239 if test -n "$SED"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5241 $as_echo "$SED" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 if test "$SED" = ""; then
5249 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5251 # Extract the first word of "chmod", so it can be a program name with args.
5252 set dummy chmod; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_prog_CHMOD+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -n "$CHMOD"; then
5259 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5260 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_prog_CHMOD="chmod "
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5272 done
5273 done
5274 IFS=$as_save_IFS
5278 CHMOD=$ac_cv_prog_CHMOD
5279 if test -n "$CHMOD"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5281 $as_echo "$CHMOD" >&6; }
5282 else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5288 if test "$CHMOD" = ""; then
5289 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5291 # Extract the first word of "patch", so it can be a program name with args.
5292 set dummy patch; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_PATCH+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$PATCH"; then
5299 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_PATCH="patch "
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 PATCH=$ac_cv_prog_PATCH
5319 if test -n "$PATCH"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5321 $as_echo "$PATCH" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 if test "$PATCH" = ""; then
5329 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5336 if test -n "$PYTHON"; then
5337 # If the user set $PYTHON, use it and don't search something else.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5339 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5340 prog="import sys, string
5341 # split strings by '.' and convert to numeric. Append some zeros
5342 # because we need at least 4 digits for the hex conversion.
5343 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5344 minverhex = 0
5345 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5346 sys.exit(sys.hexversion < minverhex)"
5347 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5348 ($PYTHON -c "$prog") >&5 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; then :
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353 $as_echo "yes" >&6; }
5354 else
5355 as_fn_error $? "too old" "$LINENO" 5
5357 am_display_PYTHON=$PYTHON
5358 else
5359 # Otherwise, try each interpreter until we find one that satisfies
5360 # VERSION.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5362 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5363 if ${am_cv_pathless_PYTHON+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5367 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5368 test "$am_cv_pathless_PYTHON" = none && break
5369 prog="import sys, string
5370 # split strings by '.' and convert to numeric. Append some zeros
5371 # because we need at least 4 digits for the hex conversion.
5372 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5373 minverhex = 0
5374 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5375 sys.exit(sys.hexversion < minverhex)"
5376 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5377 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; then :
5381 break
5383 done
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5386 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5387 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5388 if test "$am_cv_pathless_PYTHON" = none; then
5389 PYTHON=:
5390 else
5391 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5392 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_PYTHON+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $PYTHON in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5414 done
5415 done
5416 IFS=$as_save_IFS
5419 esac
5421 PYTHON=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5432 am_display_PYTHON=$am_cv_pathless_PYTHON
5436 if test "$PYTHON" = :; then
5437 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5438 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5442 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5443 if ${am_cv_python_version+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5449 $as_echo "$am_cv_python_version" >&6; }
5450 PYTHON_VERSION=$am_cv_python_version
5454 PYTHON_PREFIX='${prefix}'
5456 PYTHON_EXEC_PREFIX='${exec_prefix}'
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5461 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5462 if ${am_cv_python_platform+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5468 $as_echo "$am_cv_python_platform" >&6; }
5469 PYTHON_PLATFORM=$am_cv_python_platform
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5475 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5476 if ${am_cv_python_pythondir+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5480 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5483 $as_echo "$am_cv_python_pythondir" >&6; }
5484 pythondir=$am_cv_python_pythondir
5488 pkgpythondir=\${pythondir}/$PACKAGE
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5492 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5493 if ${am_cv_python_pyexecdir+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5497 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5500 $as_echo "$am_cv_python_pyexecdir" >&6; }
5501 pyexecdir=$am_cv_python_pyexecdir
5505 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5513 FOR=for
5515 IF=if
5517 TEST=test
5519 CMP=cmp
5523 # Check for some includes for the X11 HIDD and the kernel
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5527 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5528 if ${ac_cv_path_GREP+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -z "$GREP"; then
5532 ac_path_GREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_prog in grep ggrep; do
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5542 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5543 # Check for GNU ac_path_GREP and select it if it is found.
5544 # Check for GNU $ac_path_GREP
5545 case `"$ac_path_GREP" --version 2>&1` in
5546 *GNU*)
5547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'GREP' >> "conftest.nl"
5557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5559 as_fn_arith $ac_count + 1 && ac_count=$as_val
5560 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_GREP="$ac_path_GREP"
5563 ac_path_GREP_max=$ac_count
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5569 esac
5571 $ac_path_GREP_found && break 3
5572 done
5573 done
5574 done
5575 IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_GREP"; then
5577 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5579 else
5580 ac_cv_path_GREP=$GREP
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5585 $as_echo "$ac_cv_path_GREP" >&6; }
5586 GREP="$ac_cv_path_GREP"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5590 $as_echo_n "checking for egrep... " >&6; }
5591 if ${ac_cv_path_EGREP+:} false; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5595 then ac_cv_path_EGREP="$GREP -E"
5596 else
5597 if test -z "$EGREP"; then
5598 ac_path_EGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in egrep; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5609 # Check for GNU ac_path_EGREP and select it if it is found.
5610 # Check for GNU $ac_path_EGREP
5611 case `"$ac_path_EGREP" --version 2>&1` in
5612 *GNU*)
5613 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5615 ac_count=0
5616 $as_echo_n 0123456789 >"conftest.in"
5617 while :
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'EGREP' >> "conftest.nl"
5623 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 as_fn_arith $ac_count + 1 && ac_count=$as_val
5626 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_EGREP="$ac_path_EGREP"
5629 ac_path_EGREP_max=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5633 done
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5635 esac
5637 $ac_path_EGREP_found && break 3
5638 done
5639 done
5640 done
5641 IFS=$as_save_IFS
5642 if test -z "$ac_cv_path_EGREP"; then
5643 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5645 else
5646 ac_cv_path_EGREP=$EGREP
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5652 $as_echo "$ac_cv_path_EGREP" >&6; }
5653 EGREP="$ac_cv_path_EGREP"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5657 $as_echo_n "checking for ANSI C header files... " >&6; }
5658 if ${ac_cv_header_stdc+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <stdlib.h>
5664 #include <stdarg.h>
5665 #include <string.h>
5666 #include <float.h>
5669 main ()
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 ac_cv_header_stdc=yes
5678 else
5679 ac_cv_header_stdc=no
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 if test $ac_cv_header_stdc = yes; then
5684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 #include <string.h>
5689 _ACEOF
5690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "memchr" >/dev/null 2>&1; then :
5693 else
5694 ac_cv_header_stdc=no
5696 rm -f conftest*
5700 if test $ac_cv_header_stdc = yes; then
5701 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <stdlib.h>
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "free" >/dev/null 2>&1; then :
5710 else
5711 ac_cv_header_stdc=no
5713 rm -f conftest*
5717 if test $ac_cv_header_stdc = yes; then
5718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5719 if test "$cross_compiling" = yes; then :
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <ctype.h>
5725 #include <stdlib.h>
5726 #if ((' ' & 0x0FF) == 0x020)
5727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5729 #else
5730 # define ISLOWER(c) \
5731 (('a' <= (c) && (c) <= 'i') \
5732 || ('j' <= (c) && (c) <= 'r') \
5733 || ('s' <= (c) && (c) <= 'z'))
5734 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5735 #endif
5737 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5739 main ()
5741 int i;
5742 for (i = 0; i < 256; i++)
5743 if (XOR (islower (i), ISLOWER (i))
5744 || toupper (i) != TOUPPER (i))
5745 return 2;
5746 return 0;
5748 _ACEOF
5749 if ac_fn_c_try_run "$LINENO"; then :
5751 else
5752 ac_cv_header_stdc=no
5754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5755 conftest.$ac_objext conftest.beam conftest.$ac_ext
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5761 $as_echo "$ac_cv_header_stdc" >&6; }
5762 if test $ac_cv_header_stdc = yes; then
5764 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5768 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5769 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5770 inttypes.h stdint.h unistd.h
5771 do :
5772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5773 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5775 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5776 cat >>confdefs.h <<_ACEOF
5777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5778 _ACEOF
5782 done
5785 for ac_header in sys/ipc.h sys/shm.h \
5786 sys/mmap.h sys/mman.h sysexits.h \
5787 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5789 do :
5790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5793 cat >>confdefs.h <<_ACEOF
5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 _ACEOF
5799 done
5802 for ac_header in sys/mount.h
5803 do :
5804 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5806 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5807 cat >>confdefs.h <<_ACEOF
5808 #define HAVE_SYS_MOUNT_H 1
5809 _ACEOF
5813 done
5816 ac_header_dirent=no
5817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5818 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5820 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5821 if eval \${$as_ac_Header+:} false; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 #include <sys/types.h>
5827 #include <$ac_hdr>
5830 main ()
5832 if ((DIR *) 0)
5833 return 0;
5835 return 0;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5839 eval "$as_ac_Header=yes"
5840 else
5841 eval "$as_ac_Header=no"
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 eval ac_res=\$$as_ac_Header
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5847 $as_echo "$ac_res" >&6; }
5848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5849 cat >>confdefs.h <<_ACEOF
5850 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5851 _ACEOF
5853 ac_header_dirent=$ac_hdr; break
5856 done
5857 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5858 if test $ac_header_dirent = dirent.h; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5860 $as_echo_n "checking for library containing opendir... " >&6; }
5861 if ${ac_cv_search_opendir+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 ac_func_search_save_LIBS=$LIBS
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5871 #ifdef __cplusplus
5872 extern "C"
5873 #endif
5874 char opendir ();
5876 main ()
5878 return opendir ();
5880 return 0;
5882 _ACEOF
5883 for ac_lib in '' dir; do
5884 if test -z "$ac_lib"; then
5885 ac_res="none required"
5886 else
5887 ac_res=-l$ac_lib
5888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5890 if ac_fn_c_try_link "$LINENO"; then :
5891 ac_cv_search_opendir=$ac_res
5893 rm -f core conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext
5895 if ${ac_cv_search_opendir+:} false; then :
5896 break
5898 done
5899 if ${ac_cv_search_opendir+:} false; then :
5901 else
5902 ac_cv_search_opendir=no
5904 rm conftest.$ac_ext
5905 LIBS=$ac_func_search_save_LIBS
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5908 $as_echo "$ac_cv_search_opendir" >&6; }
5909 ac_res=$ac_cv_search_opendir
5910 if test "$ac_res" != no; then :
5911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5917 $as_echo_n "checking for library containing opendir... " >&6; }
5918 if ${ac_cv_search_opendir+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 ac_func_search_save_LIBS=$LIBS
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5925 /* Override any GCC internal prototype to avoid an error.
5926 Use char because int might match the return type of a GCC
5927 builtin and then its argument prototype would still apply. */
5928 #ifdef __cplusplus
5929 extern "C"
5930 #endif
5931 char opendir ();
5933 main ()
5935 return opendir ();
5937 return 0;
5939 _ACEOF
5940 for ac_lib in '' x; do
5941 if test -z "$ac_lib"; then
5942 ac_res="none required"
5943 else
5944 ac_res=-l$ac_lib
5945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 ac_cv_search_opendir=$ac_res
5950 rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext
5952 if ${ac_cv_search_opendir+:} false; then :
5953 break
5955 done
5956 if ${ac_cv_search_opendir+:} false; then :
5958 else
5959 ac_cv_search_opendir=no
5961 rm conftest.$ac_ext
5962 LIBS=$ac_func_search_save_LIBS
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5965 $as_echo "$ac_cv_search_opendir" >&6; }
5966 ac_res=$ac_cv_search_opendir
5967 if test "$ac_res" != no; then :
5968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5975 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5976 if ${ac_cv_header_stat_broken+:} false; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <sys/types.h>
5982 #include <sys/stat.h>
5984 #if defined S_ISBLK && defined S_IFDIR
5985 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5986 #endif
5988 #if defined S_ISBLK && defined S_IFCHR
5989 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5990 #endif
5992 #if defined S_ISLNK && defined S_IFREG
5993 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5994 #endif
5996 #if defined S_ISSOCK && defined S_IFREG
5997 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5998 #endif
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 ac_cv_header_stat_broken=no
6003 else
6004 ac_cv_header_stat_broken=yes
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6009 $as_echo "$ac_cv_header_stat_broken" >&6; }
6010 if test $ac_cv_header_stat_broken = yes; then
6012 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6017 $as_echo_n "checking for ANSI C header files... " >&6; }
6018 if ${ac_cv_header_stdc+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <stdlib.h>
6024 #include <stdarg.h>
6025 #include <string.h>
6026 #include <float.h>
6029 main ()
6033 return 0;
6035 _ACEOF
6036 if ac_fn_c_try_compile "$LINENO"; then :
6037 ac_cv_header_stdc=yes
6038 else
6039 ac_cv_header_stdc=no
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 if test $ac_cv_header_stdc = yes; then
6044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 #include <string.h>
6049 _ACEOF
6050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6051 $EGREP "memchr" >/dev/null 2>&1; then :
6053 else
6054 ac_cv_header_stdc=no
6056 rm -f conftest*
6060 if test $ac_cv_header_stdc = yes; then
6061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <stdlib.h>
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068 $EGREP "free" >/dev/null 2>&1; then :
6070 else
6071 ac_cv_header_stdc=no
6073 rm -f conftest*
6077 if test $ac_cv_header_stdc = yes; then
6078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079 if test "$cross_compiling" = yes; then :
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <ctype.h>
6085 #include <stdlib.h>
6086 #if ((' ' & 0x0FF) == 0x020)
6087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6089 #else
6090 # define ISLOWER(c) \
6091 (('a' <= (c) && (c) <= 'i') \
6092 || ('j' <= (c) && (c) <= 'r') \
6093 || ('s' <= (c) && (c) <= 'z'))
6094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6095 #endif
6097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099 main ()
6101 int i;
6102 for (i = 0; i < 256; i++)
6103 if (XOR (islower (i), ISLOWER (i))
6104 || toupper (i) != TOUPPER (i))
6105 return 2;
6106 return 0;
6108 _ACEOF
6109 if ac_fn_c_try_run "$LINENO"; then :
6111 else
6112 ac_cv_header_stdc=no
6114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6115 conftest.$ac_objext conftest.beam conftest.$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6121 $as_echo "$ac_cv_header_stdc" >&6; }
6122 if test $ac_cv_header_stdc = yes; then
6124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6129 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6130 if ${ac_cv_header_sys_wait_h+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <sys/types.h>
6136 #include <sys/wait.h>
6137 #ifndef WEXITSTATUS
6138 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6139 #endif
6140 #ifndef WIFEXITED
6141 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6142 #endif
6145 main ()
6147 int s;
6148 wait (&s);
6149 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6151 return 0;
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"; then :
6155 ac_cv_header_sys_wait_h=yes
6156 else
6157 ac_cv_header_sys_wait_h=no
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6162 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6163 if test $ac_cv_header_sys_wait_h = yes; then
6165 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6170 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6171 if ${ac_cv_header_time+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6177 #include <sys/time.h>
6178 #include <time.h>
6181 main ()
6183 if ((struct tm *) 0)
6184 return 0;
6186 return 0;
6188 _ACEOF
6189 if ac_fn_c_try_compile "$LINENO"; then :
6190 ac_cv_header_time=yes
6191 else
6192 ac_cv_header_time=no
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6197 $as_echo "$ac_cv_header_time" >&6; }
6198 if test $ac_cv_header_time = yes; then
6200 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6204 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6205 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6209 _ACEOF
6212 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6217 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6218 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6222 _ACEOF
6225 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6227 else
6228 case " $LIBOBJS " in
6229 *" fileblocks.$ac_objext "* ) ;;
6230 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6232 esac
6237 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6238 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6240 cat >>confdefs.h <<_ACEOF
6241 #define HAVE_STRUCT_STAT_ST_RDEV 1
6242 _ACEOF
6245 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6251 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6252 if ${ac_cv_struct_tm+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <sys/types.h>
6258 #include <time.h>
6261 main ()
6263 struct tm tm;
6264 int *p = &tm.tm_sec;
6265 return !p;
6267 return 0;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 ac_cv_struct_tm=time.h
6272 else
6273 ac_cv_struct_tm=sys/time.h
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6278 $as_echo "$ac_cv_struct_tm" >&6; }
6279 if test $ac_cv_struct_tm = sys/time.h; then
6281 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6285 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6286 #include <$ac_cv_struct_tm>
6289 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6291 cat >>confdefs.h <<_ACEOF
6292 #define HAVE_STRUCT_TM_TM_ZONE 1
6293 _ACEOF
6298 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6300 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6302 else
6303 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6305 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6306 ac_have_decl=1
6307 else
6308 ac_have_decl=0
6311 cat >>confdefs.h <<_ACEOF
6312 #define HAVE_DECL_TZNAME $ac_have_decl
6313 _ACEOF
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6316 $as_echo_n "checking for tzname... " >&6; }
6317 if ${ac_cv_var_tzname+:} false; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322 #include <time.h>
6323 #if !HAVE_DECL_TZNAME
6324 extern char *tzname[];
6325 #endif
6328 main ()
6330 return tzname[0][0];
6332 return 0;
6334 _ACEOF
6335 if ac_fn_c_try_link "$LINENO"; then :
6336 ac_cv_var_tzname=yes
6337 else
6338 ac_cv_var_tzname=no
6340 rm -f core conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6344 $as_echo "$ac_cv_var_tzname" >&6; }
6345 if test $ac_cv_var_tzname = yes; then
6347 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6352 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6353 if test "x$ac_cv_type_off_t" = xyes; then :
6355 else
6357 cat >>confdefs.h <<_ACEOF
6358 #define off_t long int
6359 _ACEOF
6363 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6364 if test "x$ac_cv_type_pid_t" = xyes; then :
6366 else
6368 cat >>confdefs.h <<_ACEOF
6369 #define pid_t int
6370 _ACEOF
6374 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6375 if test "x$ac_cv_type_size_t" = xyes; then :
6377 else
6379 cat >>confdefs.h <<_ACEOF
6380 #define size_t unsigned int
6381 _ACEOF
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6386 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6387 if ${ac_cv_type_uid_t+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389 else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6394 _ACEOF
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396 $EGREP "uid_t" >/dev/null 2>&1; then :
6397 ac_cv_type_uid_t=yes
6398 else
6399 ac_cv_type_uid_t=no
6401 rm -f conftest*
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6405 $as_echo "$ac_cv_type_uid_t" >&6; }
6406 if test $ac_cv_type_uid_t = no; then
6408 $as_echo "#define uid_t int" >>confdefs.h
6411 $as_echo "#define gid_t int" >>confdefs.h
6416 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6417 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6419 cat >>confdefs.h <<_ACEOF
6420 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6421 _ACEOF
6427 # Look for some functions
6428 for ac_func in getpagesize kqueue statfs statvfs \
6429 clone kse_create rfork_thread thr_create sa_register \
6430 getcontext makecontext setcontext sigaltstack swapcontext
6431 do :
6432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6433 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6434 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6435 cat >>confdefs.h <<_ACEOF
6436 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6437 _ACEOF
6440 done
6446 for ac_header in $ac_header_list
6447 do :
6448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6449 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6452 cat >>confdefs.h <<_ACEOF
6453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6454 _ACEOF
6458 done
6467 for ac_func in getpagesize
6468 do :
6469 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6470 if test "x$ac_cv_func_getpagesize" = xyes; then :
6471 cat >>confdefs.h <<_ACEOF
6472 #define HAVE_GETPAGESIZE 1
6473 _ACEOF
6476 done
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6479 $as_echo_n "checking for working mmap... " >&6; }
6480 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test "$cross_compiling" = yes; then :
6484 ac_cv_func_mmap_fixed_mapped=no
6485 else
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 $ac_includes_default
6489 /* malloc might have been renamed as rpl_malloc. */
6490 #undef malloc
6492 /* Thanks to Mike Haertel and Jim Avera for this test.
6493 Here is a matrix of mmap possibilities:
6494 mmap private not fixed
6495 mmap private fixed at somewhere currently unmapped
6496 mmap private fixed at somewhere already mapped
6497 mmap shared not fixed
6498 mmap shared fixed at somewhere currently unmapped
6499 mmap shared fixed at somewhere already mapped
6500 For private mappings, we should verify that changes cannot be read()
6501 back from the file, nor mmap's back from the file at a different
6502 address. (There have been systems where private was not correctly
6503 implemented like the infamous i386 svr4.0, and systems where the
6504 VM page cache was not coherent with the file system buffer cache
6505 like early versions of FreeBSD and possibly contemporary NetBSD.)
6506 For shared mappings, we should conversely verify that changes get
6507 propagated back to all the places they're supposed to be.
6509 Grep wants private fixed already mapped.
6510 The main things grep needs to know about mmap are:
6511 * does it exist and is it safe to write into the mmap'd area
6512 * how to use it (BSD variants) */
6514 #include <fcntl.h>
6515 #include <sys/mman.h>
6517 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6518 char *malloc ();
6519 #endif
6521 /* This mess was copied from the GNU getpagesize.h. */
6522 #ifndef HAVE_GETPAGESIZE
6523 # ifdef _SC_PAGESIZE
6524 # define getpagesize() sysconf(_SC_PAGESIZE)
6525 # else /* no _SC_PAGESIZE */
6526 # ifdef HAVE_SYS_PARAM_H
6527 # include <sys/param.h>
6528 # ifdef EXEC_PAGESIZE
6529 # define getpagesize() EXEC_PAGESIZE
6530 # else /* no EXEC_PAGESIZE */
6531 # ifdef NBPG
6532 # define getpagesize() NBPG * CLSIZE
6533 # ifndef CLSIZE
6534 # define CLSIZE 1
6535 # endif /* no CLSIZE */
6536 # else /* no NBPG */
6537 # ifdef NBPC
6538 # define getpagesize() NBPC
6539 # else /* no NBPC */
6540 # ifdef PAGESIZE
6541 # define getpagesize() PAGESIZE
6542 # endif /* PAGESIZE */
6543 # endif /* no NBPC */
6544 # endif /* no NBPG */
6545 # endif /* no EXEC_PAGESIZE */
6546 # else /* no HAVE_SYS_PARAM_H */
6547 # define getpagesize() 8192 /* punt totally */
6548 # endif /* no HAVE_SYS_PARAM_H */
6549 # endif /* no _SC_PAGESIZE */
6551 #endif /* no HAVE_GETPAGESIZE */
6554 main ()
6556 char *data, *data2, *data3;
6557 const char *cdata2;
6558 int i, pagesize;
6559 int fd, fd2;
6561 pagesize = getpagesize ();
6563 /* First, make a file with some known garbage in it. */
6564 data = (char *) malloc (pagesize);
6565 if (!data)
6566 return 1;
6567 for (i = 0; i < pagesize; ++i)
6568 *(data + i) = rand ();
6569 umask (0);
6570 fd = creat ("conftest.mmap", 0600);
6571 if (fd < 0)
6572 return 2;
6573 if (write (fd, data, pagesize) != pagesize)
6574 return 3;
6575 close (fd);
6577 /* Next, check that the tail of a page is zero-filled. File must have
6578 non-zero length, otherwise we risk SIGBUS for entire page. */
6579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6580 if (fd2 < 0)
6581 return 4;
6582 cdata2 = "";
6583 if (write (fd2, cdata2, 1) != 1)
6584 return 5;
6585 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6586 if (data2 == MAP_FAILED)
6587 return 6;
6588 for (i = 0; i < pagesize; ++i)
6589 if (*(data2 + i))
6590 return 7;
6591 close (fd2);
6592 if (munmap (data2, pagesize))
6593 return 8;
6595 /* Next, try to mmap the file at a fixed address which already has
6596 something else allocated at it. If we can, also make sure that
6597 we see the same garbage. */
6598 fd = open ("conftest.mmap", O_RDWR);
6599 if (fd < 0)
6600 return 9;
6601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6603 return 10;
6604 for (i = 0; i < pagesize; ++i)
6605 if (*(data + i) != *(data2 + i))
6606 return 11;
6608 /* Finally, make sure that changes to the mapped area do not
6609 percolate back to the file as seen by read(). (This is a bug on
6610 some variants of i386 svr4.0.) */
6611 for (i = 0; i < pagesize; ++i)
6612 *(data2 + i) = *(data2 + i) + 1;
6613 data3 = (char *) malloc (pagesize);
6614 if (!data3)
6615 return 12;
6616 if (read (fd, data3, pagesize) != pagesize)
6617 return 13;
6618 for (i = 0; i < pagesize; ++i)
6619 if (*(data + i) != *(data3 + i))
6620 return 14;
6621 close (fd);
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_run "$LINENO"; then :
6626 ac_cv_func_mmap_fixed_mapped=yes
6627 else
6628 ac_cv_func_mmap_fixed_mapped=no
6630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6631 conftest.$ac_objext conftest.beam conftest.$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6642 rm -f conftest.mmap conftest.txt
6647 aros_config_cflags="-Wall -Werror-implicit-function-declaration -Wno-uninitialized -Wno-parentheses"
6648 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6649 aros_config_ldflags=""
6651 aros_shared_default=yes
6653 aros_shared_cflags="-fPIC"
6654 aros_shared_aflags=""
6655 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6656 aros_kernel_ldflags="-Wl,-rpath,./lib"
6658 aros_target_ar_flags="cr"
6659 aros_target_nm_flags="-C -ul"
6660 aros_target_strip_flags="--strip-unneeded -R.comment"
6662 aros_compiler_libs=
6663 aros_arch_libs=
6665 aros_target_genmap="-Wl,-Map -Xlinker"
6667 # Native flavour stuff
6668 aros_serial_debug="0"
6670 # Palm native flavour stuff
6671 aros_palm_debug_hack="0"
6673 # Unix flavour stuff
6674 aros_nesting_supervisor="0"
6676 # Collect-aros stuff: "-ius" to ignore undefined symbols
6677 ignore_undefined_symbols=""
6679 # Check for X11 by default
6680 need_x11="auto"
6682 #-----------------------------------------------------------------------------
6685 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6686 # it switched on by default, and we use the host compiler, so it compiles AROS
6687 # code with this enabled resulting in link failures as we don't have support
6688 # for it.
6690 # We use two methods to disable it. For the host compiler (used to compile
6691 # some hosted modules), we test to see if the compiler supports stack
6692 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6693 # work on all platforms.
6695 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6696 # (this is done unconditionally, as it should have no effect on compilers
6697 # without the stack protection feature). This may be specific to the way that
6698 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6699 # strong enough to disable it in a generic way though, so we'll live with it
6700 # until another vendor ships GCC with it enabled in a different way, and deal
6701 # with it then.
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6705 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6706 save_cflags="$CFLAGS"
6707 CFLAGS="$CFLAGS -fno-stack-protector"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6712 main ()
6716 return 0;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 use_no_stack_protector="yes"
6721 else
6722 use_no_stack_protector="no"
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6726 $as_echo "$use_no_stack_protector" >&6; }
6727 if test "x-$use_no_stack_protector" = "x-yes" ; then
6728 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6730 CFLAGS="$save_cflags"
6732 #-----------------------------------------------------------------------------
6734 # Disable pointer-signedness warnings if the compiler recognises the option
6735 # (this only works for the host compiler at the moment)
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6738 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6739 save_cflags="$CFLAGS"
6740 CFLAGS="$CFLAGS -Wno-pointer-sign"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6745 main ()
6749 return 0;
6751 _ACEOF
6752 if ac_fn_c_try_compile "$LINENO"; then :
6753 use_no_sign_warning="yes"
6754 else
6755 use_no_sign_warning="no"
6757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6759 $as_echo "$use_no_sign_warning" >&6; }
6760 if test "x-$use_no_sign_warning" = "x-yes" ; then
6761 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6763 CFLAGS="$save_cflags"
6765 #-----------------------------------------------------------------------------
6767 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6770 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6771 save_cflags="$CFLAGS"
6772 CFLAGS="$CFLAGS -fgnu89-inline"
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6777 main ()
6781 return 0;
6783 _ACEOF
6784 if ac_fn_c_try_compile "$LINENO"; then :
6785 use_gnu89_inline="yes"
6786 else
6787 use_gnu89_inline="no"
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6791 $as_echo "$use_gnu89_inline" >&6; }
6792 if test "x-$use_gnu89_inline" = "x-yes" ; then
6793 gnu89_inline="-fgnu89-inline"
6795 CFLAGS="$save_cflags"
6797 #-----------------------------------------------------------------------------
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6800 $as_echo_n "checking for type of build... " >&6; }
6801 # Check whether --enable-build_type was given.
6802 if test "${enable_build_type+set}" = set; then :
6803 enableval=$enable_build_type; build_type=$enableval
6804 else
6805 build_type="personal"
6809 if test "$build_type" = "nightly"; then
6810 build_type_string="NIGHTLY"
6811 elif test "$build_type" = "snapshot"; then
6812 build_type_string="SNAPSHOT"
6813 elif test "$build_type" = "milestone"; then
6814 build_type_string="MILESTONE"
6815 elif test "$build_type" = "release"; then
6816 build_type_string="RELEASE"
6817 else
6818 build_type_string="PERSONAL"
6819 build_type="personal"
6822 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6825 $as_echo "$build_type" >&6; }
6827 #-----------------------------------------------------------------------------
6828 all_debug_types="messages stack modules mungwall symbols"
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6831 $as_echo_n "checking which debug types to enable... " >&6; }
6832 # Check whether --enable-debug was given.
6833 if test "${enable_debug+set}" = set; then :
6834 enableval=$enable_debug; debug="$enableval"
6835 else
6836 debug=""
6840 if test "$debug" = "" -o "$debug" = "no"; then
6841 debug="none"
6842 elif test "$debug" = "yes"; then
6843 debug="all"
6846 if test "$debug" = "all" ; then
6847 debug="messages stack modules symbols"
6848 for d in $all_debug_types; do
6849 export aros_${d}_debug="1"
6850 done
6851 else
6852 for d in $all_debug_types; do
6853 export aros_${d}_debug="0"
6854 done
6857 if test "$debug" != "none"; then
6858 debug=`echo $debug | sed s/,/\ /g`
6859 for d in $debug; do
6860 found="0"
6861 for d2 in $all_debug_types; do
6862 if test "$d2" = "$d"; then
6863 found="1"
6864 break
6866 done
6867 if test "$found" = "0"; then
6868 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6870 export aros_${d}_debug="1"
6871 done
6872 aros_debug="yes"
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6875 $as_echo "$debug" >&6; }
6877 if test "$aros_messages_debug" = "1"; then
6878 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6879 else
6880 aros_messages_debug=""
6882 if test "$aros_symbols_debug" = "1"; then
6883 aros_symbols_debug="-g"
6884 else
6885 aros_symbols_debug=""
6888 # These are the flags to pass when compiling debugged programs
6889 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6890 aros_debug_aflags=""
6891 aros_debug_ldflags="$aros_symbols_debug"
6893 #-----------------------------------------------------------------------------
6894 # Checking if we should build crosstools..
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6896 $as_echo_n "checking whether to build crosstools... " >&6; }
6897 # Check whether --enable-crosstools was given.
6898 if test "${enable_crosstools+set}" = set; then :
6899 enableval=$enable_crosstools; crosstools="$enableval"
6900 else
6901 crosstools="no"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6905 $as_echo "$crosstools" >&6; }
6907 #-----------------------------------------------------------------------------
6908 # Checking for distcc and ccache.
6910 # Always apply the transforms in this particular order. Basically you should
6911 # always run 'ccache distcc compiler' in that order for the best performance.
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6914 $as_echo_n "checking whether to enable distcc... " >&6; }
6915 # Check whether --enable-distcc was given.
6916 if test "${enable_distcc+set}" = set; then :
6917 enableval=$enable_distcc; distcc="$enableval"
6918 else
6919 distcc="no"
6922 if test "$distcc" != "" -a "$distcc" != "no"; then
6923 # AC_CHECK_PROG will print out the result in this case
6924 # Extract the first word of "distcc", so it can be a program name with args.
6925 set dummy distcc; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_path_DISTCC+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 case $DISTCC in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6947 done
6948 done
6949 IFS=$as_save_IFS
6951 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6953 esac
6955 DISTCC=$ac_cv_path_DISTCC
6956 if test -n "$DISTCC"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6958 $as_echo "$DISTCC" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6971 $as_echo_n "checking whether to enable ccache... " >&6; }
6972 # Check whether --enable-ccache was given.
6973 if test "${enable_ccache+set}" = set; then :
6974 enableval=$enable_ccache; ccache="$enableval"
6975 else
6976 ccache="no"
6979 if test "$ccache" != "" -a "$ccache" != "no"; then
6980 # AC_CHECK_PROG will print out the result in this case
6981 # Extract the first word of "ccache", so it can be a program name with args.
6982 set dummy ccache; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_CCACHE+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$CCACHE"; then
6989 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_CCACHE="ccache"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 CCACHE=$ac_cv_prog_CCACHE
7009 if test -n "$CCACHE"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7011 $as_echo "$CCACHE" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7023 #-----------------------------------------------------------------------------
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7025 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7027 # Check whether --with-gcc-version was given.
7028 if test "${with_gcc_version+set}" = set; then :
7029 withval=$with_gcc_version; target_tool_version="$withval"
7030 else
7031 target_tool_version="default"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7035 $as_echo "$target_tool_version" >&6; }
7037 #-----------------------------------------------------------------------------
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7039 $as_echo_n "checking what optimization flags to use... " >&6; }
7041 # Check whether --with-optimization was given.
7042 if test "${with_optimization+set}" = set; then :
7043 withval=$with_optimization; optimization="$withval"
7044 else
7045 optimization="unknown"
7048 if test "$optimization" = "unknown"; then
7049 if test "$debug" != "none"; then
7050 optimization="-O0"
7051 else
7052 optimization="-O2"
7055 aros_config_cflags="$aros_config_cflags $optimization"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7057 $as_echo "$optimization" >&6; }
7059 #-----------------------------------------------------------------------------
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7061 $as_echo_n "checking what paranoia flags to use... " >&6; }
7063 # Check whether --with-paranoia was given.
7064 if test "${with_paranoia+set}" = set; then :
7065 withval=$with_paranoia; paranoia_flags="$withval"
7066 else
7067 paranoia_flags="default"
7070 if test "$paranoia_flags" = "default"; then
7071 paranoia_flags=""
7072 else if test "$paranoia_flags" = "yes"; then
7073 paranoia_flags="-Werror"
7074 fi fi
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7076 $as_echo "$paranoia_flags" >&6; }
7077 aros_paranoia_cflags="$paranoia_flags"
7079 #-----------------------------------------------------------------------------
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7081 $as_echo_n "checking what target variant to enable... " >&6; }
7082 # Check whether --enable-target_variant was given.
7083 if test "${enable_target_variant+set}" = set; then :
7084 enableval=$enable_target_variant; target_variant=$enableval
7085 else
7086 target_variant=""
7089 if test "$target_variant" = ""; then
7090 aros_target_variant=""
7091 aros_target_suffix=""
7092 enableval="none"
7093 else
7094 aros_target_variant="$target_variant"
7095 aros_target_suffix="-$target_variant"
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7098 $as_echo "$enableval" >&6; }
7100 #-----------------------------------------------------------------------------
7101 # Target-specific defaults. You can override then on a per-target basis.
7103 # Bootloader name. Currently used by PC target.
7104 target_bootloader="none"
7106 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7107 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7108 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7109 if test "$crosstools" != "yes"; then
7110 target_tool_prefix=${target_cpu}-elf-
7111 else
7112 target_tool_prefix=${target_cpu}-aros-
7115 #-----------------------------------------------------------------------------
7116 # Additional options for some specific targets
7118 case "$aros_target_variant" in
7119 ios)
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7121 $as_echo_n "checking XCode path... " >&6; }
7123 # Check whether --with-xcode was given.
7124 if test "${with_xcode+set}" = set; then :
7125 withval=$with_xcode; aros_xcode_path="$withval"
7126 else
7127 aros_xcode_path="/Developer"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7131 $as_echo "$aros_xcode_path" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7134 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7136 # Check whether --with-ios-version was given.
7137 if test "${with_ios_version+set}" = set; then :
7138 withval=$with_ios_version; aros_ios_version="$withval"
7139 else
7140 aros_ios_version="3.0"
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7144 $as_echo "$aros_ios_version" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7147 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7149 # Check whether --with-ios-sdk was given.
7150 if test "${with_ios_sdk+set}" = set; then :
7151 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7152 else
7153 aros_ios_sdk="4.1"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7157 $as_echo "$aros_ios_sdk" >&6; }
7161 "android")
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7163 $as_echo_n "checking Android SDK path... " >&6; }
7165 # Check whether --with-sdk was given.
7166 if test "${with_sdk+set}" = set; then :
7167 withval=$with_sdk; aros_android_sdk="$withval"
7168 else
7169 aros_android_sdk=$default_android_sdk
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7173 $as_echo "$aros_android_sdk" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7176 $as_echo_n "checking Android NDK path... " >&6; }
7178 # Check whether --with-ndk was given.
7179 if test "${with_ndk+set}" = set; then :
7180 withval=$with_ndk; aros_android_ndk="$withval"
7181 else
7182 aros_android_ndk="$default_android_ndk"
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7186 $as_echo "$aros_android_ndk" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7189 $as_echo_n "checking what Android version to use... " >&6; }
7191 # Check whether --with-android-version was given.
7192 if test "${with_android_version+set}" = set; then :
7193 withval=$with_android_version; aros_android_version="$withval"
7194 else
7195 aros_android_version="2.2"
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7199 $as_echo "$aros_android_version" >&6; }
7201 export PATH="$aros_android_sdk/tools:$PATH"
7202 # Extract the first word of "$android_tool", so it can be a program name with args.
7203 set dummy $android_tool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_path_android_tool+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 case $android_tool in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7225 done
7226 done
7227 IFS=$as_save_IFS
7230 esac
7232 android_tool=$ac_cv_path_android_tool
7233 if test -n "$android_tool"; then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7235 $as_echo "$android_tool" >&6; }
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7242 if test "$android_tool" = ""; then
7243 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7246 if test $host_os = "mingw32"; then
7247 android_tool="cmd //c $android_tool"
7251 esac
7253 #-----------------------------------------------------------------------------
7254 # This is the target configuration switch.
7255 case "$target_os" in
7256 linux*)
7257 aros_target_arch="linux"
7258 aros_target_family="unix"
7259 case "$target_cpu" in
7260 *m68k*)
7261 aros_target_cpu="m68k"
7262 aros_object_format="m68kelf"
7263 aros_flavour="emulcompat"
7264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7265 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7266 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7267 gcc_target_cpu="mc68000"
7269 *i?86*)
7270 aros_target_cpu="i386"
7271 aros_object_format="elf_i386"
7272 aros_flavour="emulation"
7273 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7274 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7275 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7276 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7277 aros_config_ldflags="-m32 -march=i486"
7278 aros_kernel_ldflags="-melf_i386"
7279 aros_default_wbdepth=8
7280 gcc_target_cpu="i386"
7281 pci_hidd_target="hidd-pci-linux"
7283 *x86_64*)
7284 aros_target_cpu="x86_64"
7285 aros_object_format="elf_x86_64"
7286 aros_flavour="emulation"
7287 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7288 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7289 aros_default_wbdepth=8
7290 pci_hidd_target="hidd-pci-linux"
7292 *powerpc*)
7293 aros_target_cpu="ppc"
7294 aros_object_format="elf32ppc"
7295 aros_flavour="emulation"
7296 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7297 aros_default_wbdepth=8
7298 gcc_target_cpu="ppc"
7300 # TODO
7301 # Same as powerpc, but I need this for the nightly build to work again.
7302 # Actually, the nightly should be made working with powerpc target.
7303 # That just was too much work for the moment, another week or two.
7304 *ppc*)
7305 aros_target_cpu="ppc"
7306 aros_object_format="elf32ppc"
7307 aros_flavour="emulation"
7308 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7309 aros_default_wbdepth=8
7310 gcc_target_cpu="ppc"
7312 *arm*)
7313 aros_target_cpu="arm"
7314 aros_object_format="armelf_linux_eabi"
7315 aros_flavour="emulation"
7316 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7317 gcc_target_cpu="arm"
7318 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7319 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7320 aros_arch_libs="-laeabi"
7323 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7325 esac
7326 case "$aros_target_variant" in
7327 android)
7328 case "$aros_android_version" in
7329 2.2)
7330 aros_android_level=android-8
7333 aros_android_level=android-9
7335 esac
7336 aros_default_wbwidth=320
7337 aros_default_wbheight=480
7338 use_aros_gcc="yes"
7339 if test "$aros_android_ndk" = ""; then
7340 aros_kernel_cflags="-mandroid"
7341 aros_kernel_ldflags="-mandroid"
7342 CFLAGS="-mandroid"
7343 else
7344 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7345 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7346 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7347 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7348 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7349 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7351 need_x11=no
7352 target_tool_prefix="arm-linux-androideabi-"
7354 esac
7358 aros_target_arch="pc"
7359 aros_shared_default="no"
7360 target_bootloader="grub2"
7361 case "$target_cpu" in
7362 *i?86*)
7363 aros_target_cpu="i386"
7366 if test "$aros_object_format" = "" ; then
7367 aros_object_format="elf_i386"
7369 aros_flavour="standalone"
7370 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7371 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7372 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7373 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7374 aros_config_ldflags="-m32 -march=i486"
7375 aros_kernel_ldflags="-melf_i386"
7376 aros_default_wbwidth=640
7377 aros_default_wbheight=480
7378 gcc_target_cpu="i386"
7380 *x86_64*)
7381 aros_target_cpu="x86_64"
7382 aros_serial_debug=1
7383 if test "$aros_object_format" = "" ; then
7384 aros_object_format="elf_x86_64"
7386 aros_flavour="standalone"
7387 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7388 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7389 aros_kernel_ldflags=""
7390 aros_default_wbwidth=640
7391 aros_default_wbheight=480
7394 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7396 esac
7399 prep)
7400 aros_target_arch="prep"
7401 aros_shared_default="no"
7402 aros_target_cpu="ppc"
7403 aros_object_format="elf32ppc"
7404 aros_flavour="ppcnative"
7405 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7406 aros_kernel_ldflags=""
7407 aros_default_wbwidth=640
7408 aros_default_wbheight=480
7409 gcc_target_cpu="ppc"
7412 freebsd*)
7413 aros_target_arch="freebsd"
7414 aros_target_family="unix"
7415 aros_target_cpu="i386"
7416 aros_flavour="emulation"
7417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7418 gcc_target_cpu="i386"
7420 aros_target_strip_flags="-x"
7423 darwin*)
7424 aros_target_arch="darwin"
7425 aros_target_family="unix"
7426 aros_flavour="emulation"
7427 case "$target_cpu" in
7428 *i?86*)
7429 aros_ios_platform="iPhoneSimulator"
7430 aros_target_cpu="i386"
7431 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7432 aros_kernel_ldflags=""
7433 aros_macosx_version="10.4"
7434 aros_default_wbdepth=8
7435 gcc_target_cpu="i386"
7436 aros_object_format="elf_i386"
7437 aros_target_strip_flags="-x"
7438 target_tool_prefix="i686-apple-darwin10-"
7439 target_tool_flags="-m32"
7441 *x86_64*)
7442 aros_target_cpu="x86_64"
7443 aros_object_format="elf_x86_64"
7444 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7445 aros_macosx_version="10.6"
7446 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7447 aros_kernel_cflags="-m64"
7448 aros_kernel_ldflags="-m64"
7449 aros_target_cflags="-mcmodel=large"
7450 aros_default_wbdepth=8
7451 aros_kernel_ld="ld"
7452 target_tool_prefix="i686-apple-darwin10-"
7454 *ppc*)
7455 aros_target_cpu="ppc"
7456 aros_object_format="elf32ppc"
7457 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7458 aros_kernel_ldflags=""
7459 aros_macosx_version="10.0"
7460 aros_default_wbdepth=8
7461 gcc_target_cpu="ppc"
7462 aros_kernel_ld="ld -arch ppc"
7463 target_tool_prefix="powerpc-apple-darwin10-"
7465 *arm*)
7466 aros_ios_platform="iPhoneOS"
7467 aros_target_cpu="arm"
7468 aros_object_format="armelf_linux_eabi"
7469 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7470 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7471 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7472 aros_arch_libs="-laeabi"
7473 aros_default_wbdepth=8
7474 gcc_target_cpu="arm"
7475 aros_kernel_ld="ld -arch arm"
7476 target_tool_prefix="arm-apple-darwin10-"
7477 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7480 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7482 esac
7483 case "$aros_target_variant" in
7484 ios)
7485 aros_default_wbwidth=320
7486 aros_default_wbheight=480
7487 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7488 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7489 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7490 need_x11=no
7491 # This is here because it may depend on iOS or SDK version
7492 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7493 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7494 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7497 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7498 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7500 esac
7503 dragonfly*)
7504 aros_target_arch="dragonfly"
7505 aros_target_family="unix"
7506 aros_flavour="emulation"
7507 case "$target_cpu" in
7508 *i?86*)
7509 aros_target_cpu="i386"
7510 aros_object_format="elf_i386"
7511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7513 *x86_64*)
7514 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7515 aros_target_cpu="x86_64"
7516 aros_object_format="elf_x86_64"
7517 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7520 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7522 esac
7525 netbsd*)
7526 aros_target_arch="netbsd"
7527 aros_target_family="unix"
7528 case "$target_cpu" in
7529 *m68k*)
7530 aros_target_cpu="m68k"
7531 aros_object_format="m68kelf"
7532 aros_flavour="emulcompat"
7533 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7534 gcc_target_cpu="mc68000"
7536 *i?86*)
7537 aros_target_cpu="i386"
7538 aros_object_format="elf_i386"
7539 aros_flavour="emulation"
7540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7541 aros_default_wbdepth=8
7542 gcc_target_cpu="i386"
7545 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7547 esac
7548 aros_target_genmap="-Wl,-M -Xlinker >"
7549 aros_flavour="emulation"
7550 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7553 openbsd*)
7554 aros_target_arch="openbsd"
7555 aros_target_family="unix"
7556 case "$target_cpu" in
7557 *i?86*)
7558 aros_target_cpu="i386"
7559 aros_object_format="elf_i386"
7560 aros_flavour="emulation"
7561 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7562 gcc_target_cpu="i386"
7565 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7567 esac
7568 aros_target_genmap="-Wl,-M -Xlinker >"
7569 aros_target_nm_flags="-u"
7570 aros_flavour="emulation"
7573 solaris*)
7574 aros_target_arch="solaris"
7575 aros_target_family="unix"
7576 case "$target_cpu" in
7577 *i?86*)
7578 aros_target_cpu="i386"
7579 aros_object_format="elf_i386"
7580 aros_flavour="emulation"
7581 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7582 aros_default_wbdepth=8
7583 gcc_target_cpu="i386"
7585 *sparc*)
7586 aros_target_cpu="sparc"
7587 aros_object_format="elf_sparc"
7588 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7589 gcc_target_cpu="sparc"
7592 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7594 esac
7595 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7596 aros_flavour="emulation"
7599 morphos*)
7600 aros_target_arch="morphos"
7601 aros_shared_default="no"
7602 aros_target_cpu="ppc"
7603 aros_object_format="elf_ppc"
7604 aros_flavour="nativecompat"
7605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7606 gcc_target_cpu="ppc"
7609 sam440)
7610 aros_target_arch="sam440"
7611 aros_shared_default="no"
7612 aros_target_cpu="ppc"
7613 aros_object_format="elf32ppc"
7614 aros_flavour="ppcnative"
7615 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7616 aros_kernel_ldflags=""
7617 aros_default_wbwidth=1024
7618 aros_default_wbheight=768
7619 aros_default_wbdepth=24
7620 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7621 gcc_target_cpu="powerpc"
7624 efika)
7625 aros_target_arch="efika"
7626 aros_shared_default="no"
7627 aros_target_cpu="arm"
7628 aros_object_format="armelf_linux_eabi"
7629 aros_flavour="standalone"
7630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7631 aros_kernel_ldflags=""
7632 aros_default_wbwidth=1024
7633 aros_default_wbheight=600
7634 aros_arch_libs="-laeabi"
7635 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7636 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7639 chrp)
7640 aros_target_arch="chrp"
7641 aros_shared_default="no"
7642 aros_target_cpu="ppc"
7643 aros_object_format="elf32ppc"
7644 aros_flavour="ppcnative"
7645 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7646 aros_kernel_ldflags=""
7647 aros_default_wbwidth=640
7648 aros_default_wbheight=480
7649 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7650 gcc_target_cpu="powerpc"
7651 case "$aros_target_variant" in
7652 efika)
7653 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7655 esac
7658 amiga*)
7659 aros_target_arch="amiga"
7660 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7661 aros_shared_default="no"
7663 case "$target_cpu" in
7664 *m68k*)
7665 aros_enable_mmu=no
7666 aros_target_cpu="m68k"
7667 aros_object_format="m68kelf"
7668 aros_flavour="standcompat"
7669 gcc_target_cpu="m68000"
7670 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7671 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7672 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7673 target_tool_prefix="m68k-elf-"
7674 # Needed to get the correct multilib
7675 aros_config_ldflags="-${gcc_target_cpu}"
7676 aros_shared_ldflags="-${gcc_target_cpu}"
7677 aros_kernel_ldflags="-${gcc_target_cpu}"
7678 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7679 aros_target_strip_flags="-R.comment --strip-debug"
7680 aros_default_wbwidth=640
7681 aros_default_wbheight=256
7682 aros_default_wbdepth=2
7684 *ppc*)
7685 aros_cpu="ppc"
7686 aros_flavour="native"
7687 gcc_target_cpu="ppc"
7690 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7692 esac
7695 mingw*)
7696 aros_target_arch="mingw32"
7697 aros_shared_default="no"
7698 aros_flavour="emulation"
7699 aros_shared_cflags=""
7700 need_dlopen="no"
7701 rescomp="windres"
7702 case "$target_cpu" in
7703 *i?86*)
7704 aros_target_cpu="i386"
7705 aros_object_format="elf_i386"
7706 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7707 aros_default_wbdepth=8
7708 gcc_target_cpu="i386"
7710 aros_target_as="i386-aros-as"
7711 aros_target_ar="i386-aros-ar"
7712 aros_target_ranlib="i386-aros-ranlib"
7713 aros_target_nm="i386-aros-nm"
7714 aros_target_strip="i386-aros-strip"
7715 aros_target_objcopy="i386-aros-objcopy"
7716 aros_target_objdump="i386-aros-objdump"
7718 target_tool_prefix="i386-mingw32-"
7720 *x86_64*)
7721 aros_target_cpu="x86_64"
7722 aros_object_format="elf_x86_64"
7723 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7724 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7725 aros_default_wbdepth=8
7726 target_tool_prefix="x86_64-w64-mingw32-"
7728 *arm*)
7729 aros_target_cpu="arm"
7730 aros_object_format="armelf_linux_eabi"
7731 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7732 aros_arch_libs="-laeabi"
7733 aros_default_wbdepth=8
7734 gcc_target_cpu="arm"
7735 target_tool_prefix="arm-mingw32ce-"
7736 aros_default_wbwidth=160
7737 aros_default_wbheight=160
7740 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7742 esac
7743 if test $host_os = "cygwin"; then
7744 aros_kernel_cflags="-mno-cygwin"
7747 pp*)
7748 aros_target_arch="pp"
7749 aros_shared_default="no"
7750 case "$target_cpu" in
7751 *m68k*)
7752 aros_target_cpu="m68k"
7753 aros_object_format="m68kelf"
7754 aros_flavour="palmnative"
7755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7756 aros_default_wbwidth=160
7757 aros_default_wbheight=160
7758 aros_default_wbdepth=1
7759 aros_target_ar_flags="cru"
7760 aros_compiler_libs="-lgcc1"
7761 aros_shared_default=no
7762 aros_shared_cflags="-fpic"
7763 aros_shared_aflags=""
7764 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7765 aros_kernel_ldflags="-Wl,-rpath,./lib"
7766 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7767 aros_debug_aflags=""
7768 aros_debug_ldflags="$aros_symbols_debug"
7769 aros_mungwall_debug="0"
7770 aros_modules_debug="0"
7771 gcc_target_cpu="mc68000"
7772 ignore_undefined_symbols="-ius"
7775 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7777 esac
7780 mac*)
7781 aros_target_arch="mac"
7782 aros_shared_default="no"
7783 case "$target_cpu" in
7784 *m68k*)
7785 aros_target_cpu="m68k"
7786 aros_object_format="m68kelf"
7787 aros_flavour="mac68knative"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7789 aros_default_wbwidth=512
7790 aros_default_wbheight=384
7791 aros_default_wbdepth=8
7792 aros_target_ar_flags="cru"
7793 aros_compiler_libs="-lgcc1"
7794 aros_shared_default=no
7795 aros_shared_cflags="-fpic"
7796 aros_shared_aflags=""
7797 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7798 aros_kernel_ldflags="-Wl,-rpath,./lib"
7799 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7800 aros_debug_aflags=""
7801 aros_debug_ldflags="$aros_symbols_debug"
7802 aros_mungwall_debug="0"
7803 aros_modules_debug="0"
7804 gcc_target_cpu="mc68000"
7805 ignore_undefined_symbols="-ius"
7808 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7810 esac
7814 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7816 esac
7818 #-----------------------------------------------------------------------------
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7820 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7822 # Check whether --with-crosstools was given.
7823 if test "${with_crosstools+set}" = set; then :
7824 withval=$with_crosstools; with_crosstools=$withval
7825 else
7826 with_crosstools="default"
7829 if test "$with_crosstools" = "default"; then
7830 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7831 else
7832 AROS_CROSSTOOLSDIR="$with_crosstools"
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7835 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7837 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7838 use_aros_gcc=yes
7839 PATH=$AROS_CROSSTOOLSDIR:$PATH
7840 target_tool_prefix=${target_cpu}-aros-
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7844 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7846 # Check whether --with-aros-gcc was given.
7847 if test "${with_aros_gcc+set}" = set; then :
7848 withval=$with_aros_gcc; aros_gcc_version="$withval"
7849 else
7850 aros_gcc_version="$use_aros_gcc"
7853 case "$aros_gcc_version" in
7854 yes)
7855 aros_gcc_version="default"
7858 aros_gcc_version="none"
7860 esac
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7862 $as_echo "$aros_gcc_version" >&6; }
7864 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7865 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7866 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7867 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7868 else
7869 aros_target_cc="$aros_target_cpu-aros-gcc"
7870 aros_target_cxx="$aros_target_cpu-aros-g++"
7873 aros_target_ld="$aros_target_cpu-aros-ld"
7874 aros_target_as="$aros_target_cpu-aros-as"
7875 aros_target_ar="$aros_target_cpu-aros-ar"
7876 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7877 aros_target_nm="$aros_target_cpu-aros-nm"
7878 aros_target_strip="$aros_target_cpu-aros-strip"
7879 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7880 aros_target_objdump="$aros_target_cpu-aros-objdump"
7883 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7884 # Since we override specs, we may need to put these defines there
7885 if test "$gcc_target_cpu" != ""; then
7886 gcc_target_cpu="-D__${gcc_target_cpu}__"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7890 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7892 # Check whether --with-portssources was given.
7893 if test "${with_portssources+set}" = set; then :
7894 withval=$with_portssources; with_portssrcdir=$withval
7895 else
7896 with_portssrcdir="default"
7899 if test "$with_portssrcdir" = "default"; then
7900 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7901 else
7902 AROS_PORTSSRCDIR="$with_portssrcdir"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7905 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7908 $as_echo_n "checking which bootloader to use... " >&6; }
7910 # Check whether --with-bootloader was given.
7911 if test "${with_bootloader+set}" = set; then :
7912 withval=$with_bootloader; target_bootloader=$withval
7913 else
7914 target_bootloader=$target_bootloader
7917 if test "$target_bootloader" = "none"; then
7918 aros_target_bootloader=""
7919 else
7920 aros_target_bootloader="$target_bootloader"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7923 $as_echo "$target_bootloader" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7926 $as_echo_n "checking which icon-set to use... " >&6; }
7928 # Check whether --with-iconset was given.
7929 if test "${with_iconset+set}" = set; then :
7930 withval=$with_iconset; target_iconset=$withval
7931 else
7932 target_iconset="default"
7935 if test "$target_iconset" = "default"; then
7936 aros_target_iconset="Gorilla"
7937 target_iconset="default (Gorilla)"
7938 else
7939 aros_target_iconset="$target_iconset"
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7942 $as_echo "$target_iconset" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7945 $as_echo_n "checking which GUI Theme to use... " >&6; }
7947 # Check whether --with-theme was given.
7948 if test "${with_theme+set}" = set; then :
7949 withval=$with_theme; target_guitheme=$withval
7950 else
7951 target_guitheme="default"
7954 if test "$target_guitheme" = "default"; then
7955 aros_target_guitheme="Ice"
7956 else
7957 aros_target_guitheme="$target_guitheme"
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7960 $as_echo "$aros_target_guitheme" >&6; }
7962 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7963 # for target code)
7964 cross_compiling=no
7965 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7966 cross_compiling=yes
7969 if test "$aros_host_cpu" == "x86_64" ; then
7970 if test "$aros_target_cpu" == "i386" ; then
7971 if test "$aros_target_arch" != "mingw32"; then
7972 cross_compiling=no
7977 if test "$aros_host_arch" == "darwin" ; then
7978 if test "$aros_target_arch" != "darwin" ; then
7979 cross_compiling=yes
7983 # I want to have this information in configure output, although it might be
7984 # misleading, e.g. for darwin hosted you cannot compile target code without a
7985 # cross compiler, but here it says no.
7986 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7988 # Set prefix for target compiler etc. if we're cross-compiling
7989 # (should possibly be earlier but needs to be after AC_PROG_CC)
7990 if test "$cross_compiling" = "yes" ; then
7991 CC=${target_tool_prefix}gcc
7992 CPP=${target_tool_prefix}cpp
7993 if test "$target_tool_version" != "default"; then
7994 CC="$CC-$target_tool_version"
7995 CPP="$CC-$target_tool_version"
7997 if test "$crosstools" != "yes" ; then
7998 # Extract the first word of "$CC", so it can be a program name with args.
7999 set dummy $CC; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_path_CC+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 case $CC in
8006 [\\/]* | ?:[\\/]*)
8007 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8026 esac
8028 CC=$ac_cv_path_CC
8029 if test -n "$CC"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8031 $as_echo "$CC" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8038 if test "$CC" = ""; then
8039 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8041 else
8042 CC=$AROS_CROSSTOOLSDIR/$CC
8045 CC="$CC $target_tool_flags"
8047 #-----------------------------------------------------------------------------
8049 # Disable pointer-signedness warnings if the compiler recognises the option
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8052 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8053 save_cflags="$CFLAGS"
8054 if test "$crosstools" != "yes" ; then
8055 CFLAGS="$CFLAGS -Wno-pointer-sign"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8060 main ()
8064 return 0;
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 use_no_sign_warning="yes"
8069 else
8070 use_no_sign_warning="no"
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 else
8074 # we do know it is supported for the smallest version of gcc we are going to build
8075 # we assume it's also supported by later versions
8076 use_no_sign_warning=yes
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8079 $as_echo "$use_no_sign_warning" >&6; }
8080 if test "x-$use_no_sign_warning" = "x-yes" ; then
8081 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8083 CFLAGS="$save_cflags"
8085 #-----------------------------------------------------------------------------
8087 # Find all the tools we need to compile. This could be cross-compiling
8088 # though! If that is the case we use the GNU form of the target and
8089 # simply add this to the front of the binary name. This is rather simple,
8090 # but it should work under most circumstances.
8092 # The default tools are to use the same as the host, but only if the
8093 # host and target CPU are the same. With GCC this is normally enough.
8096 aros_cc_pre=""
8097 aros_shared_ld="$aros_host_ld"
8099 aros_target_mkdep="$aros_host_mkdep"
8100 aros_target_incl_def="$aros_host_incl"
8102 aros_kernel_cc="$CC"
8104 # The default tools executables to be linked to.
8105 if test "$rescomp" != ""; then
8106 if test "$cross_compiling" = "yes" ; then
8107 rescomp=${target_tool_prefix}${rescomp}
8109 # Extract the first word of "$rescomp", so it can be a program name with args.
8110 set dummy $rescomp; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 case $aros_kernel_rescomp in
8117 [\\/]* | ?:[\\/]*)
8118 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8134 IFS=$as_save_IFS
8137 esac
8139 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8140 if test -n "$aros_kernel_rescomp"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8142 $as_echo "$aros_kernel_rescomp" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8149 if test "$aros_kernel_rescomp" = ""; then
8150 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8154 if test "$crosstools" != "yes"; then
8156 if test "$aros_kernel_ld" = ""; then
8157 if test "$cross_compiling" = "yes" ; then
8158 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8159 set dummy ${target_tool_prefix}ld; ac_word=$2
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161 $as_echo_n "checking for $ac_word... " >&6; }
8162 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 case $aros_kernel_ld in
8166 [\\/]* | ?:[\\/]*)
8167 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8181 done
8182 done
8183 IFS=$as_save_IFS
8186 esac
8188 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8189 if test -n "$aros_kernel_ld"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8191 $as_echo "$aros_kernel_ld" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8198 else
8199 if test "$GCC" = "yes"; then
8200 aros_gcc_ld=`$CC -print-prog-name=ld`
8201 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8202 set dummy `basename $aros_gcc_ld`; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 case $aros_kernel_ld in
8209 [\\/]* | ?:[\\/]*)
8210 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in `dirname $aros_gcc_ld`
8216 IFS=$as_save_IFS
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222 break 2
8224 done
8225 done
8226 IFS=$as_save_IFS
8229 esac
8231 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8232 if test -n "$aros_kernel_ld"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8234 $as_echo "$aros_kernel_ld" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test "$aros_kernel_ld" = ""; then
8243 # Extract the first word of "ld", so it can be a program name with args.
8244 set dummy ld; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 case $aros_kernel_ld in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8268 IFS=$as_save_IFS
8271 esac
8273 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8274 if test -n "$aros_kernel_ld"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8276 $as_echo "$aros_kernel_ld" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8285 else
8286 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8287 set dummy $aros_kernel_ld; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 case $aros_kernel_ld in
8294 [\\/]* | ?:[\\/]*)
8295 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8311 IFS=$as_save_IFS
8314 esac
8316 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8317 if test -n "$aros_kernel_ld"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8319 $as_echo "$aros_kernel_ld" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8328 if test "$aros_kernel_ld" = ""; then
8329 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8332 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8333 target_tool_prefix=${target_cpu}-elf-
8334 if test "$aros_target_cc" == ""; then
8335 aros_target_cc="${target_tool_prefix}gcc"
8337 if test "$aros_target_ld" == ""; then
8338 aros_target_ld="${target_tool_prefix}ld"
8342 if test "$aros_target_as" = ""; then
8343 if test "$cross_compiling" = "yes" ; then
8344 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8345 set dummy ${target_tool_prefix}as; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 case $aros_target_as_ln in
8352 [\\/]* | ?:[\\/]*)
8353 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8367 done
8368 done
8369 IFS=$as_save_IFS
8372 esac
8374 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8375 if test -n "$aros_target_as_ln"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8377 $as_echo "$aros_target_as_ln" >&6; }
8378 else
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8384 else
8385 if test "$GCC" = "yes"; then
8386 aros_gcc_as=`$CC -print-prog-name=as`
8387 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8388 set dummy `basename $aros_gcc_as`; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 case $aros_target_as_ln in
8395 [\\/]* | ?:[\\/]*)
8396 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in `dirname $aros_gcc_as`
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8410 done
8411 done
8412 IFS=$as_save_IFS
8415 esac
8417 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8418 if test -n "$aros_target_as_ln"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8420 $as_echo "$aros_target_as_ln" >&6; }
8421 else
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8423 $as_echo "no" >&6; }
8428 if test "$aros_target_as_ln" = ""; then
8429 # Extract the first word of "as", so it can be a program name with args.
8430 set dummy as; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 case $aros_target_as_ln in
8437 [\\/]* | ?:[\\/]*)
8438 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8452 done
8453 done
8454 IFS=$as_save_IFS
8457 esac
8459 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8460 if test -n "$aros_target_as_ln"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8462 $as_echo "$aros_target_as_ln" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8471 else
8472 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8473 set dummy $aros_target_as; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 case $aros_target_as_ln in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8500 esac
8502 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8503 if test -n "$aros_target_as_ln"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8505 $as_echo "$aros_target_as_ln" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8514 if test "$aros_target_as_ln" = ""; then
8515 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8518 if test "$aros_target_ar" = ""; then
8519 if test "$cross_compiling" = "yes" ; then
8520 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8521 set dummy ${target_tool_prefix}ar; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 case $aros_target_ar_ln in
8528 [\\/]* | ?:[\\/]*)
8529 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8543 done
8544 done
8545 IFS=$as_save_IFS
8548 esac
8550 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8551 if test -n "$aros_target_ar_ln"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8553 $as_echo "$aros_target_ar_ln" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8560 else
8561 if test "$GCC" = "yes"; then
8562 aros_gcc_ar=`$CC -print-prog-name=ar`
8563 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8564 set dummy `basename $aros_gcc_ar`; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 case $aros_target_ar_ln in
8571 [\\/]* | ?:[\\/]*)
8572 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in `dirname $aros_gcc_ar`
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8586 done
8587 done
8588 IFS=$as_save_IFS
8591 esac
8593 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8594 if test -n "$aros_target_ar_ln"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8596 $as_echo "$aros_target_ar_ln" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8604 if test "$aros_target_ar_ln" = ""; then
8605 # Extract the first word of "ar", so it can be a program name with args.
8606 set dummy ar; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 case $aros_target_ar_ln in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8624 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8628 done
8629 done
8630 IFS=$as_save_IFS
8633 esac
8635 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8636 if test -n "$aros_target_ar_ln"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8638 $as_echo "$aros_target_ar_ln" >&6; }
8639 else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8647 else
8648 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8649 set dummy $aros_target_ar; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 case $aros_target_ar_ln in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8676 esac
8678 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8679 if test -n "$aros_target_ar_ln"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8681 $as_echo "$aros_target_ar_ln" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8690 if test "$aros_target_ar_ln" = ""; then
8691 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8694 if test "$aros_target_nm" = ""; then
8695 if test "$cross_compiling" = "yes" ; then
8696 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8697 set dummy ${target_tool_prefix}nm; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 case $aros_target_nm_ln in
8704 [\\/]* | ?:[\\/]*)
8705 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8719 done
8720 done
8721 IFS=$as_save_IFS
8724 esac
8726 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8727 if test -n "$aros_target_nm_ln"; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8729 $as_echo "$aros_target_nm_ln" >&6; }
8730 else
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8736 else
8737 if test "$GCC" = "yes"; then
8738 aros_gcc_nm=`$CC -print-prog-name=nm`
8739 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8740 set dummy `basename $aros_gcc_nm`; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 case $aros_target_nm_ln in
8747 [\\/]* | ?:[\\/]*)
8748 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in `dirname $aros_gcc_nm`
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8762 done
8763 done
8764 IFS=$as_save_IFS
8767 esac
8769 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8770 if test -n "$aros_target_nm_ln"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8772 $as_echo "$aros_target_nm_ln" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8780 if test "$aros_target_nm_ln" = ""; then
8781 # Extract the first word of "nm", so it can be a program name with args.
8782 set dummy nm; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 case $aros_target_nm_ln in
8789 [\\/]* | ?:[\\/]*)
8790 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8804 done
8805 done
8806 IFS=$as_save_IFS
8809 esac
8811 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8812 if test -n "$aros_target_nm_ln"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8814 $as_echo "$aros_target_nm_ln" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8823 else
8824 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8825 set dummy $aros_target_nm; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 case $aros_target_nm_ln in
8832 [\\/]* | ?:[\\/]*)
8833 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8847 done
8848 done
8849 IFS=$as_save_IFS
8852 esac
8854 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8855 if test -n "$aros_target_nm_ln"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8857 $as_echo "$aros_target_nm_ln" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8866 if test "$aros_target_nm_ln" = ""; then
8867 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8870 if test "$aros_target_objcopy" = ""; then
8871 if test "$cross_compiling" = "yes" ; then
8872 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8873 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 case $aros_target_objcopy_ln in
8880 [\\/]* | ?:[\\/]*)
8881 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8900 esac
8902 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8903 if test -n "$aros_target_objcopy_ln"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8905 $as_echo "$aros_target_objcopy_ln" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8912 else
8913 if test "$GCC" = "yes"; then
8914 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8915 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8916 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 case $aros_target_objcopy_ln in
8923 [\\/]* | ?:[\\/]*)
8924 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in `dirname $aros_gcc_objcopy`
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8938 done
8939 done
8940 IFS=$as_save_IFS
8943 esac
8945 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8946 if test -n "$aros_target_objcopy_ln"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8948 $as_echo "$aros_target_objcopy_ln" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8956 if test "$aros_target_objcopy_ln" = ""; then
8957 # Extract the first word of "objcopy", so it can be a program name with args.
8958 set dummy objcopy; ac_word=$2
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8960 $as_echo_n "checking for $ac_word... " >&6; }
8961 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 case $aros_target_objcopy_ln in
8965 [\\/]* | ?:[\\/]*)
8966 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8976 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8980 done
8981 done
8982 IFS=$as_save_IFS
8985 esac
8987 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8988 if test -n "$aros_target_objcopy_ln"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8990 $as_echo "$aros_target_objcopy_ln" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8999 else
9000 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9001 set dummy $aros_target_objcopy; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 case $aros_target_objcopy_ln in
9008 [\\/]* | ?:[\\/]*)
9009 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9023 done
9024 done
9025 IFS=$as_save_IFS
9028 esac
9030 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9031 if test -n "$aros_target_objcopy_ln"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9033 $as_echo "$aros_target_objcopy_ln" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9042 if test "$aros_target_objcopy_ln" = ""; then
9043 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9046 if test "$aros_target_objdump" = ""; then
9047 if test "$cross_compiling" = "yes" ; then
9048 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9049 set dummy ${target_tool_prefix}objdump; ac_word=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 case $aros_target_objdump_ln in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in $PATH
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9067 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9071 done
9072 done
9073 IFS=$as_save_IFS
9076 esac
9078 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9079 if test -n "$aros_target_objdump_ln"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9081 $as_echo "$aros_target_objdump_ln" >&6; }
9082 else
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9088 else
9089 if test "$GCC" = "yes"; then
9090 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9091 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9092 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9094 $as_echo_n "checking for $ac_word... " >&6; }
9095 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 case $aros_target_objdump_ln in
9099 [\\/]* | ?:[\\/]*)
9100 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 for as_dir in `dirname $aros_gcc_objdump`
9106 IFS=$as_save_IFS
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9110 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9112 break 2
9114 done
9115 done
9116 IFS=$as_save_IFS
9119 esac
9121 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9122 if test -n "$aros_target_objdump_ln"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9124 $as_echo "$aros_target_objdump_ln" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 if test "$aros_target_objdump_ln" = ""; then
9133 # Extract the first word of "objdump", so it can be a program name with args.
9134 set dummy objdump; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 case $aros_target_objdump_ln in
9141 [\\/]* | ?:[\\/]*)
9142 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9161 esac
9163 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9164 if test -n "$aros_target_objdump_ln"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9166 $as_echo "$aros_target_objdump_ln" >&6; }
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9175 else
9176 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9177 set dummy $aros_target_objdump; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 case $aros_target_objdump_ln in
9184 [\\/]* | ?:[\\/]*)
9185 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9199 done
9200 done
9201 IFS=$as_save_IFS
9204 esac
9206 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9207 if test -n "$aros_target_objdump_ln"; then
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9209 $as_echo "$aros_target_objdump_ln" >&6; }
9210 else
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9218 if test "$aros_target_objdump_ln" = ""; then
9219 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9222 if test "$aros_target_ranlib" = ""; then
9223 if test "$cross_compiling" = "yes" ; then
9224 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9225 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 case $aros_target_ranlib_ln in
9232 [\\/]* | ?:[\\/]*)
9233 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9237 for as_dir in $PATH
9239 IFS=$as_save_IFS
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9243 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9245 break 2
9247 done
9248 done
9249 IFS=$as_save_IFS
9252 esac
9254 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9255 if test -n "$aros_target_ranlib_ln"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9257 $as_echo "$aros_target_ranlib_ln" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9264 else
9265 if test "$GCC" = "yes"; then
9266 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9267 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9268 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 case $aros_target_ranlib_ln in
9275 [\\/]* | ?:[\\/]*)
9276 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in `dirname $aros_gcc_ranlib`
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9290 done
9291 done
9292 IFS=$as_save_IFS
9295 esac
9297 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9298 if test -n "$aros_target_ranlib_ln"; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9300 $as_echo "$aros_target_ranlib_ln" >&6; }
9301 else
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9308 if test "$aros_target_ranlib_ln" = ""; then
9309 # Extract the first word of "ranlib", so it can be a program name with args.
9310 set dummy ranlib; ac_word=$2
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312 $as_echo_n "checking for $ac_word... " >&6; }
9313 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 case $aros_target_ranlib_ln in
9317 [\\/]* | ?:[\\/]*)
9318 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9322 for as_dir in $PATH
9324 IFS=$as_save_IFS
9325 test -z "$as_dir" && as_dir=.
9326 for ac_exec_ext in '' $ac_executable_extensions; do
9327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9328 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 break 2
9332 done
9333 done
9334 IFS=$as_save_IFS
9337 esac
9339 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9340 if test -n "$aros_target_ranlib_ln"; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9342 $as_echo "$aros_target_ranlib_ln" >&6; }
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9345 $as_echo "no" >&6; }
9351 else
9352 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9353 set dummy $aros_target_ranlib; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 case $aros_target_ranlib_ln in
9360 [\\/]* | ?:[\\/]*)
9361 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9380 esac
9382 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9383 if test -n "$aros_target_ranlib_ln"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9385 $as_echo "$aros_target_ranlib_ln" >&6; }
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388 $as_echo "no" >&6; }
9394 if test "$aros_target_ranlib_ln" = ""; then
9395 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9398 if test "$aros_target_strip" = ""; then
9399 if test "$cross_compiling" = "yes" ; then
9400 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9401 set dummy ${target_tool_prefix}strip; ac_word=$2
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 case $aros_target_strip_ln in
9408 [\\/]* | ?:[\\/]*)
9409 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413 for as_dir in $PATH
9415 IFS=$as_save_IFS
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9419 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9421 break 2
9423 done
9424 done
9425 IFS=$as_save_IFS
9428 esac
9430 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9431 if test -n "$aros_target_strip_ln"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9433 $as_echo "$aros_target_strip_ln" >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9440 else
9441 if test "$GCC" = "yes"; then
9442 aros_gcc_strip=`$CC -print-prog-name=strip`
9443 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9444 set dummy `basename $aros_gcc_strip`; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 case $aros_target_strip_ln in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in `dirname $aros_gcc_strip`
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9462 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9464 break 2
9466 done
9467 done
9468 IFS=$as_save_IFS
9471 esac
9473 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9474 if test -n "$aros_target_strip_ln"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9476 $as_echo "$aros_target_strip_ln" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test "$aros_target_strip_ln" = ""; then
9485 # Extract the first word of "strip", so it can be a program name with args.
9486 set dummy strip; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $aros_target_strip_ln in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9513 esac
9515 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9516 if test -n "$aros_target_strip_ln"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9518 $as_echo "$aros_target_strip_ln" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9527 else
9528 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9529 set dummy $aros_target_strip; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 case $aros_target_strip_ln in
9536 [\\/]* | ?:[\\/]*)
9537 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9556 esac
9558 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9559 if test -n "$aros_target_strip_ln"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9561 $as_echo "$aros_target_strip_ln" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9570 if test "$aros_target_strip_ln" = ""; then
9571 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9573 if test "$aros_target_cxx" != ""; then
9574 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9575 set dummy $aros_target_cxx; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_aros_target_cxx+:} false; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 case $aros_target_cxx in
9582 [\\/]* | ?:[\\/]*)
9583 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9589 IFS=$as_save_IFS
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 break 2
9597 done
9598 done
9599 IFS=$as_save_IFS
9602 esac
9604 aros_target_cxx=$ac_cv_path_aros_target_cxx
9605 if test -n "$aros_target_cxx"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9607 $as_echo "$aros_target_cxx" >&6; }
9608 else
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9614 if test "$aros_target_cxx" = ""; then
9615 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9618 else
9619 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
9620 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9621 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
9622 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
9623 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
9624 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9625 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9626 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9627 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
9629 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
9631 crosstools_target=tools-crosstools
9634 orig_target_cc=$aros_kernel_cc
9635 orig_target_ld=$aros_kernel_ld
9637 if test "$crosstools" != "yes"; then
9638 if test "$aros_target_cc" != ""; then
9639 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9640 set dummy $aros_target_cc; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_aros_target_cc+:} false; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 case $aros_target_cc in
9647 [\\/]* | ?:[\\/]*)
9648 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9667 esac
9669 aros_target_cc=$ac_cv_path_aros_target_cc
9670 if test -n "$aros_target_cc"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9672 $as_echo "$aros_target_cc" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9679 if test "$aros_target_cc" = ""; then
9680 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9682 orig_target_cc=$aros_target_cc
9684 if test "$aros_target_ld" != ""; then
9685 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9686 set dummy $aros_target_ld; ac_word=$2
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 $as_echo_n "checking for $ac_word... " >&6; }
9689 if ${ac_cv_path_aros_target_ld+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 case $aros_target_ld in
9693 [\\/]* | ?:[\\/]*)
9694 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 for ac_exec_ext in '' $ac_executable_extensions; do
9703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 break 2
9708 done
9709 done
9710 IFS=$as_save_IFS
9713 esac
9715 aros_target_ld=$ac_cv_path_aros_target_ld
9716 if test -n "$aros_target_ld"; then
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9718 $as_echo "$aros_target_ld" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9725 if test "$aros_target_ld" = ""; then
9726 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9728 orig_target_ld=$aros_target_ld
9730 else
9731 orig_target_cc=$aros_target_cc
9732 orig_target_ld=$aros_target_ld
9735 # Build crosstools if we have no C++ - temporary thing
9736 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9737 crosstools_cxx_target=tools-crosstools
9740 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9741 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9742 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9743 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9744 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9745 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9746 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9748 # aros_cc_pre is a variable that is added to the front of the compiler name
9749 # in the generated aros-gcc shell script. We need this to enable the cache
9750 # to work across cleaned builds. Also, support DISTCC using the correct
9751 # environment variable.
9754 if test "x${DISTCC}" != "x" ; then
9755 if test "x${CCACHE}" != "x" ; then
9756 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9757 else
9758 aros_cc_pre="${DISTCC} "
9760 else
9761 if test "x${CCACHE}" != "x" ; then
9762 aros_cc_pre="${CCACHE} "
9766 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9768 aros_target_nostdinc_cflags=-nostdinc
9770 aros_target_nostartup_ldflags=-nostartfiles
9772 aros_target_nix_ldflags=-nix
9774 aros_target_detach_ldflags=-detach
9776 aros_target_nostdlib_ldflags=-nostdlib
9779 # Target tools
9780 if test "$crosstools" != "yes"; then
9781 if test "$GCC" = "yes"; then
9782 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9784 else
9785 # We do not know which gcc version we are going to build and what we need to know
9786 # here is different for different versions so this will be set later during the
9787 # build of crosstools.
9788 aros_target_cc_path=@aros_target_cc_path@
9790 aros_target_cc="${prefix}-gcc"
9791 aros_target_as="${prefix}-as"
9792 aros_target_ld="${prefix}-ld"
9793 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9794 aros_target_objcopy=${prefix}-objcopy
9795 aros_target_objdump=${prefix}-objdump
9796 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9797 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9798 aros_kernel_nm="${prefix}-nm"
9799 aros_target_strip=${prefix}-strip
9800 aros_kernel_ar="${prefix}-ar"
9802 # Find the system include path. We can suggest that an alternative is
9803 # used if we don't get it correct. The default is to use /usr/include.
9804 # Which is set in the aros_target_incl_def variable.
9806 # Check whether --enable-includes was given.
9807 if test "${enable_includes+set}" = set; then :
9808 enableval=$enable_includes; aros_target_incl=$enable_includes
9809 else
9810 aros_target_incl=$aros_target_incl_def
9814 if test "$aros_kernel_includes" = ""; then
9815 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9816 # FIXME: for cross-compiling this should point to another location
9817 aros_kernel_includes="-isystem $aros_target_incl"
9821 if test "$aros_kernel_includes" != "" ; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9823 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9824 if test "$aros_kernel_cc_includes" = "" ; then
9825 # Try to guess where the directory is.
9826 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9827 if test -d $aros_kernel_cc_includes; then
9828 # Check if there is also an include-fixed directory and add it
9829 # to kernel compiler's include path as it may contain some of
9830 # the headers we need.
9831 if test -d "$aros_kernel_cc_includes"-fixed; then
9832 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9834 else
9835 # The directory doesn't exist, we need to do some more work.
9836 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9838 # These are the headers we're looking for.
9839 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9840 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9841 zutil.h"
9843 dirs=
9844 for h in $headers; do
9845 # Which other headers are needed by each of the above?
9846 deps=$(echo "#include <$h>" | \
9847 $aros_kernel_cc -E -M - 2>/dev/null | \
9848 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9850 # Copy all the needed headers to a directory beneath gendir.
9851 for d in $deps; do
9852 h=$(basename $d)
9853 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9854 sed -n "s,^.*/include\(/.*\),\1,p")
9855 ! test -d $dir && mkdir -p $dir
9856 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9857 done
9858 done
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9862 $as_echo "$aros_kernel_cc_includes" >&6; }
9863 # Adding -nostdinc to kernel includes as they are always used together.
9864 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9867 if test "$crosstools" != "yes"; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9869 $as_echo_n "checking for the target compiler's include path... " >&6; }
9870 if test "$aros_target_cc_includes" = "" ; then
9871 #try to guess where the directory is
9872 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9873 if ! test -d $aros_target_cc_includes; then
9874 #the directory doesn't exist, we need to do some more work
9875 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9877 #these are the headers we're looking for
9878 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9879 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9880 zutil.h"
9882 dirs=
9883 for h in $headers; do
9884 #which other headers each of the above headers needs?
9885 deps=$(echo "#include <$h>" | \
9886 $orig_target_cc -E -M - 2>/dev/null | \
9887 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9889 #copy all the needed headers to a directory beneath gendir
9890 for d in $deps; do
9891 h=$(basename $d)
9892 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9893 sed -n "s,^.*/include\(/.*\),\1,p")
9894 ! test -d $dir && mkdir -p $dir
9895 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9896 done
9897 done
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9901 $as_echo "$aros_target_cc_includes" >&6; }
9902 else
9903 # We do not know which gcc version we are going to build and what we need to know
9904 # here is different for different versions so this will be set later during the
9905 # build of crosstools.
9906 aros_target_cc_includes=@aros_target_cc_includes@
9910 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9911 # On GCC >= 4.0 -iquote should be used
9914 save_cc="$CC"
9915 save_cflags="$CFLAGS"
9916 CFLAGS="-iquote."
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9918 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9919 if test "x-$crosstools" != "x-yes"; then
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9924 main ()
9928 return 0;
9930 _ACEOF
9931 if ac_fn_c_try_compile "$LINENO"; then :
9932 has_iquote="yes"
9933 else
9934 has_iquote="no"
9936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937 else
9938 # we do know it is supported for the smallest version of gcc we are going to build
9939 # we assume it's also supported by later versions
9940 has_iquote=yes
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9943 $as_echo "$has_iquote" >&6; }
9944 if test "x-$has_iquote" = "x-yes" ; then
9945 host_cflags_iquote=-iquote
9946 host_cflags_iquote_end=
9947 else
9948 host_cflags_iquote=-I
9949 host_cflags_iquote_end=-I-
9951 kernel_cflags_iquote=$host_cflags_iquote
9952 kernel_cflags_iquote_end=$host_cflags_iquote_end
9953 if test "x-$cross_compiling" = "x-yes"; then
9954 CC="$aros_kernel_cc"
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9956 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9957 if test "x-$crosstools" != "x-yes"; then
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9962 main ()
9966 return 0;
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"; then :
9970 use_no_stack_protector="yes"
9971 else
9972 use_no_stack_protector="no"
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 else
9976 # we do know it is supported for the smallest version of gcc we are going to build
9977 # we assume it's also supported by later versions
9978 use_no_stack_protector=yes
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9981 $as_echo "$use_no_stack_protector" >&6; }
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9983 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9984 if test "x-$crosstools" != "x-yes"; then
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9989 main ()
9993 return 0;
9995 _ACEOF
9996 if ac_fn_c_try_compile "$LINENO"; then :
9997 has_iquote="yes"
9998 else
9999 has_iquote="no"
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10002 else
10003 # we do know it is supported for the smallest version of gcc we are going to build
10004 # we assume it's also supported by later versions
10005 has_iquote=yes
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10008 $as_echo "$has_iquote" >&6; }
10009 if test "x-$has_iquote" = "x-yes" ; then
10010 kernel_cflags_iquote=-iquote
10011 kernel_cflags_iquote_end=
10012 else
10013 kernel_cflags_iquote=-I
10014 kernel_cflags_iquote_end=-I-
10017 aros_cflags_iquote=$kernel_cflags_iquote
10018 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10019 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10020 CC="$orig_target_cc"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10022 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10023 if test "x-$crosstools" != "x-yes"; then
10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10028 main ()
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 has_iquote="yes"
10037 else
10038 has_iquote="no"
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10041 else
10042 # we do know it is supported for the smallest version of gcc we are going to build
10043 # we assume it's also supported by later versions
10044 has_iquote=yes
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10047 $as_echo "$has_iquote" >&6; }
10048 if test "x-$has_iquote" = "x-yes" ; then
10049 aros_cflags_iquote=-iquote
10050 aros_cflags_iquote_end=
10051 else
10052 aros_cflags_iquote=-I
10053 aros_cflags_iquote_end=-I-
10056 if test "x-$use_no_stack_protector" = "x-yes" ; then
10057 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10060 #-----------------------------------------------------------------------------
10062 # Check if we can explicitly choose older version of symbol hashing
10064 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10065 CC="$aros_kernel_cc"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10067 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10072 main ()
10076 return 0;
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080 use_hash_style="yes"
10081 else
10082 use_hash_style="no"
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10087 $as_echo "$use_hash_style" >&6; }
10088 if test "x-$use_hash_style" = "x-yes" ; then
10089 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10091 CC="$save_cc"
10092 CFLAGS="$save_cflags"
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10103 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10105 # Check whether --with-resolution was given.
10106 if test "${with_resolution+set}" = set; then :
10107 withval=$with_resolution; resolution=$withval
10108 else
10109 resolution=none
10112 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10113 if test "$resolution" = "yes" ; then
10114 resolution="none"
10116 if test "$resolution" = "no" ; then
10117 resolution="none"
10119 if test "$resolution" != "none" ; then
10120 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10121 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10122 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10125 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10126 aros_cv_default_wbwidth=$aros_default_wbwidth
10127 aros_cv_default_wbheight=$aros_default_wbheight
10128 aros_cv_default_wbdepth=$aros_default_wbdepth
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10131 $as_echo_n "checking if serial debug is enabled... " >&6; }
10133 # Check whether --with-serial-debug was given.
10134 if test "${with_serial_debug+set}" = set; then :
10135 withval=$with_serial_debug; serial_debug=$withval
10136 else
10137 serial_debug=none
10140 if test "$aros_serial_debug" = 0 ; then
10141 serial_debug_forced=""
10142 if test "$serial_debug" = "yes" ; then
10143 serial_debug="2"
10145 if test "$serial_debug" = "no" ; then
10146 serial_debug="none"
10148 else
10149 serial_debug_forced="(forced)"
10150 serial_debug=$aros_serial_debug
10152 if test "$serial_debug" != "none" ; then
10153 aros_serial_debug=$serial_debug
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10155 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10162 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10163 # Check whether --enable-palm_debug_hack was given.
10164 if test "${enable_palm_debug_hack+set}" = set; then :
10165 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10166 else
10167 palm_debug_hack="no"
10170 if test "$palm_debug_hack" = "yes" ; then
10171 aros_palm_debug_hack="1"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10174 $as_echo "$palm_debug_hack" >&6; }
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10178 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10179 # Check whether --enable-nesting_supervisor was given.
10180 if test "${enable_nesting_supervisor+set}" = set; then :
10181 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10182 else
10183 nesting_supervisor="no"
10186 if test "$nesting_supervisor" = "yes" ; then
10187 aros_nesting_supervisor="1"
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10190 $as_echo "$nesting_supervisor" >&6; }
10192 if test "$aros_enable_mmu" = "" ; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10194 $as_echo_n "checking if MMU support is enabled... " >&6; }
10195 # Check whether --enable-mmu was given.
10196 if test "${enable_mmu+set}" = set; then :
10197 enableval=$enable_mmu; aros_enable_mmu=$enableval
10198 else
10199 aros_enable_mmu="yes"
10202 if test "$aros_enable_mmu" = "" ; then
10203 aros_enable_mmu="yes"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10206 $as_echo "$aros_enable_mmu" >&6; }
10208 if test "$aros_enable_mmu" = "no" ; then
10209 aros_enable_mmu="0"
10210 else
10211 aros_enable_mmu="1"
10215 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10217 if test "x-$need_dlopen" != "x-no" ; then
10218 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10219 if test "x$ac_cv_func_dlopen" = xyes; then :
10220 have_dl="yes"
10221 else
10222 have_dl="no"
10225 if test "x-$have_dl" = "x-no" ; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10228 if ${ac_cv_lib_dl_dlopen+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230 else
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldl $LIBS"
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char dlopen ();
10244 main ()
10246 return dlopen ();
10248 return 0;
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 ac_cv_lib_dl_dlopen=yes
10253 else
10254 ac_cv_lib_dl_dlopen=no
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10263 have_dl="yes"
10264 aros_host_ldflags="$aros_host_ldflags -ldl"
10265 else
10266 have_dl="no"
10270 if test "x-$have_dl" = "x-no" ; then
10271 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10276 # Check whether --enable-x11_hidd was given.
10277 if test "${enable_x11_hidd+set}" = set; then :
10278 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10279 else
10280 x11_hidd="$need_x11"
10283 case "x-$x11_hidd" in
10284 x-yes|x-no|x-auto) ;;
10285 *) x11_hidd="$need_x11" ;;
10286 esac
10288 ENABLE_X11=0
10290 if test "x-$x11_hidd" != "x-no" ; then
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10293 $as_echo_n "checking for X... " >&6; }
10296 # Check whether --with-x was given.
10297 if test "${with_x+set}" = set; then :
10298 withval=$with_x;
10301 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10302 if test "x$with_x" = xno; then
10303 # The user explicitly disabled X.
10304 have_x=disabled
10305 else
10306 case $x_includes,$x_libraries in #(
10307 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
10308 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 # One or both of the vars are not set, and there is no cached value.
10312 ac_x_includes=no ac_x_libraries=no
10313 rm -f -r conftest.dir
10314 if mkdir conftest.dir; then
10315 cd conftest.dir
10316 cat >Imakefile <<'_ACEOF'
10317 incroot:
10318 @echo incroot='${INCROOT}'
10319 usrlibdir:
10320 @echo usrlibdir='${USRLIBDIR}'
10321 libdir:
10322 @echo libdir='${LIBDIR}'
10323 _ACEOF
10324 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10325 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10326 for ac_var in incroot usrlibdir libdir; do
10327 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10328 done
10329 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10330 for ac_extension in a so sl dylib la dll; do
10331 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10332 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10333 ac_im_usrlibdir=$ac_im_libdir; break
10335 done
10336 # Screen out bogus values from the imake configuration. They are
10337 # bogus both because they are the default anyway, and because
10338 # using them would break gcc on systems where it needs fixed includes.
10339 case $ac_im_incroot in
10340 /usr/include) ac_x_includes= ;;
10341 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10342 esac
10343 case $ac_im_usrlibdir in
10344 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10345 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10346 esac
10348 cd ..
10349 rm -f -r conftest.dir
10352 # Standard set of common directories for X headers.
10353 # Check X11 before X11Rn because it is often a symlink to the current release.
10354 ac_x_header_dirs='
10355 /usr/X11/include
10356 /usr/X11R7/include
10357 /usr/X11R6/include
10358 /usr/X11R5/include
10359 /usr/X11R4/include
10361 /usr/include/X11
10362 /usr/include/X11R7
10363 /usr/include/X11R6
10364 /usr/include/X11R5
10365 /usr/include/X11R4
10367 /usr/local/X11/include
10368 /usr/local/X11R7/include
10369 /usr/local/X11R6/include
10370 /usr/local/X11R5/include
10371 /usr/local/X11R4/include
10373 /usr/local/include/X11
10374 /usr/local/include/X11R7
10375 /usr/local/include/X11R6
10376 /usr/local/include/X11R5
10377 /usr/local/include/X11R4
10379 /usr/X386/include
10380 /usr/x386/include
10381 /usr/XFree86/include/X11
10383 /usr/include
10384 /usr/local/include
10385 /usr/unsupported/include
10386 /usr/athena/include
10387 /usr/local/x11r5/include
10388 /usr/lpp/Xamples/include
10390 /usr/openwin/include
10391 /usr/openwin/share/include'
10393 if test "$ac_x_includes" = no; then
10394 # Guess where to find include files, by looking for Xlib.h.
10395 # First, try using that file with no special directory specified.
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 #include <X11/Xlib.h>
10399 _ACEOF
10400 if ac_fn_c_try_cpp "$LINENO"; then :
10401 # We can compile using X headers with no special include directory.
10402 ac_x_includes=
10403 else
10404 for ac_dir in $ac_x_header_dirs; do
10405 if test -r "$ac_dir/X11/Xlib.h"; then
10406 ac_x_includes=$ac_dir
10407 break
10409 done
10411 rm -f conftest.err conftest.i conftest.$ac_ext
10412 fi # $ac_x_includes = no
10414 if test "$ac_x_libraries" = no; then
10415 # Check for the libraries.
10416 # See if we find them without any special options.
10417 # Don't add to $LIBS permanently.
10418 ac_save_LIBS=$LIBS
10419 LIBS="-lX11 $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 #include <X11/Xlib.h>
10424 main ()
10426 XrmInitialize ()
10428 return 0;
10430 _ACEOF
10431 if ac_fn_c_try_link "$LINENO"; then :
10432 LIBS=$ac_save_LIBS
10433 # We can link X programs with no special library path.
10434 ac_x_libraries=
10435 else
10436 LIBS=$ac_save_LIBS
10437 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10439 # Don't even attempt the hair of trying to link an X program!
10440 for ac_extension in a so sl dylib la dll; do
10441 if test -r "$ac_dir/libX11.$ac_extension"; then
10442 ac_x_libraries=$ac_dir
10443 break 2
10445 done
10446 done
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 fi # $ac_x_libraries = no
10452 case $ac_x_includes,$ac_x_libraries in #(
10453 no,* | *,no | *\'*)
10454 # Didn't find X, or a directory has "'" in its name.
10455 ac_cv_have_x="have_x=no";; #(
10457 # Record where we found X for the cache.
10458 ac_cv_have_x="have_x=yes\
10459 ac_x_includes='$ac_x_includes'\
10460 ac_x_libraries='$ac_x_libraries'"
10461 esac
10463 ;; #(
10464 *) have_x=yes;;
10465 esac
10466 eval "$ac_cv_have_x"
10467 fi # $with_x != no
10469 if test "$have_x" != yes; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10471 $as_echo "$have_x" >&6; }
10472 no_x=yes
10473 else
10474 # If each of the values was on the command line, it overrides each guess.
10475 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10476 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10477 # Update the cache value to reflect the command line values.
10478 ac_cv_have_x="have_x=yes\
10479 ac_x_includes='$x_includes'\
10480 ac_x_libraries='$x_libraries'"
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10482 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10486 x_cflags=
10487 for path in $x_libraries
10489 x_cflags="$x_cflags -L$path"
10490 done
10492 for path in $x_includes
10494 x_cflags="$x_cflags -I$path"
10495 done
10497 if test "x-$no_x" = "x-yes" ; then
10499 if test "x-$x11_hidd" != "x-auto" ; then
10500 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10503 else
10504 x11_hidd_target=kernel-x11gfx-kobj
10505 ENABLE_X11=1
10507 # Check whether --enable-x11_shm was given.
10508 if test "${enable_x11_shm+set}" = set; then :
10509 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10510 else
10511 x11_hidd_shm="auto"
10514 case "x-$x11_hidd_shm" in
10515 x-yes|x-no|x-auto) ;;
10516 *) x11_hidd_shm="auto" ;;
10517 esac
10519 have_xshm=no
10521 if test "x-$x11_hidd_shm" != "x-no" ; then
10523 for ac_header in sys/ipc.h
10524 do :
10525 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10526 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
10527 cat >>confdefs.h <<_ACEOF
10528 #define HAVE_SYS_IPC_H 1
10529 _ACEOF
10533 done
10535 for ac_header in sys/shm.h
10536 do :
10537 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10538 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
10539 cat >>confdefs.h <<_ACEOF
10540 #define HAVE_SYS_SHM_H 1
10541 _ACEOF
10545 done
10548 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10550 save_cflags="$CFLAGS"
10551 CFLAGS="$CFLAGS $x_cflags"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10553 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10554 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_lib_save_LIBS=$LIBS
10558 LIBS="-lXext $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char XShmQueryExtension ();
10570 main ()
10572 return XShmQueryExtension ();
10574 return 0;
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 ac_cv_lib_Xext_XShmQueryExtension=yes
10579 else
10580 ac_cv_lib_Xext_XShmQueryExtension=no
10582 rm -f core conftest.err conftest.$ac_objext \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LIBS=$ac_check_lib_save_LIBS
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10587 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10588 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
10589 have_xshm=yes
10592 CFLAGS="$save_cflags"
10596 if test "x-$have_xshm" = "x-yes" ; then
10597 DO_XSHM_SUPPORT="1"
10598 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10599 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10600 else
10601 DO_XSHM_SUPPORT="0"
10605 # Check whether --enable-x11_vidmode was given.
10606 if test "${enable_x11_vidmode+set}" = set; then :
10607 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10608 else
10609 x11_hidd_vidmode="auto"
10612 case "x-$x11_hidd_vidmode" in
10613 x-yes|x-no|x-auto) ;;
10614 *) x11_hidd_vidmode="auto" ;;
10615 esac
10617 have_vidmode=no
10619 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10621 save_cflags="$CFLAGS"
10622 CFLAGS="$CFLAGS $x_cflags"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10624 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10625 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 ac_check_lib_save_LIBS=$LIBS
10629 LIBS="-lXxf86vm $LIBS"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char XF86VidModeQueryExtension ();
10641 main ()
10643 return XF86VidModeQueryExtension ();
10645 return 0;
10647 _ACEOF
10648 if ac_fn_c_try_link "$LINENO"; then :
10649 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10650 else
10651 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10658 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10659 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
10660 have_vidmode=yes
10663 CFLAGS="$save_cflags"
10666 if test "x-$have_vidmode" = "x-yes" ; then
10667 DO_VIDMODE_SUPPORT="1"
10668 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10669 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10670 else
10671 DO_VIDMODE_SUPPORT="0"
10675 aros_host_x11_includes=$x_includes
10676 aros_host_x11_libdirs=$x_libraries
10680 # Check whether --enable-sdl_hidd was given.
10681 if test "${enable_sdl_hidd+set}" = set; then :
10682 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10683 else
10684 sdl_hidd="auto"
10687 case "x-$sdl_hidd" in
10688 x-yes|x-no|x-auto) ;;
10689 *) sdl_hidd="auto" ;;
10690 esac
10692 if test "x-$sdl_hidd" != "x-no" ; then
10695 # Check whether --with-sdl-prefix was given.
10696 if test "${with_sdl_prefix+set}" = set; then :
10697 withval=$with_sdl_prefix; sdl_prefix="$withval"
10698 else
10699 sdl_prefix=""
10703 # Check whether --with-sdl-exec-prefix was given.
10704 if test "${with_sdl_exec_prefix+set}" = set; then :
10705 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10706 else
10707 sdl_exec_prefix=""
10710 # Check whether --enable-sdltest was given.
10711 if test "${enable_sdltest+set}" = set; then :
10712 enableval=$enable_sdltest;
10713 else
10714 enable_sdltest=yes
10718 if test x$sdl_exec_prefix != x ; then
10719 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10720 if test x${SDL_CONFIG+set} != xset ; then
10721 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10724 if test x$sdl_prefix != x ; then
10725 sdl_args="$sdl_args --prefix=$sdl_prefix"
10726 if test x${SDL_CONFIG+set} != xset ; then
10727 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10731 if test "x$prefix" != xNONE; then
10732 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10734 # Extract the first word of "sdl-config", so it can be a program name with args.
10735 set dummy sdl-config; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if ${ac_cv_path_SDL_CONFIG+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 case $SDL_CONFIG in
10742 [\\/]* | ?:[\\/]*)
10743 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10757 done
10758 done
10759 IFS=$as_save_IFS
10761 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10763 esac
10765 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10766 if test -n "$SDL_CONFIG"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10768 $as_echo "$SDL_CONFIG" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10775 min_sdl_version=1.2.10
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10777 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10778 no_sdl=""
10779 if test "$SDL_CONFIG" = "no" ; then
10780 no_sdl=yes
10781 else
10782 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10783 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10785 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10786 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10787 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10788 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10789 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10790 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10791 if test "x$enable_sdltest" = "xyes" ; then
10792 ac_save_CFLAGS="$CFLAGS"
10793 ac_save_CXXFLAGS="$CXXFLAGS"
10794 ac_save_LIBS="$LIBS"
10795 CFLAGS="$CFLAGS $SDL_CFLAGS"
10796 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10797 LIBS="$LIBS $SDL_LIBS"
10798 rm -f conf.sdltest
10799 if test "$cross_compiling" = yes; then :
10800 echo $ac_n "cross compiling; assumed OK... $ac_c"
10801 else
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10805 #include <stdio.h>
10806 #include <stdlib.h>
10807 #include <string.h>
10808 #include "SDL.h"
10810 char*
10811 my_strdup (char *str)
10813 char *new_str;
10815 if (str)
10817 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10818 strcpy (new_str, str);
10820 else
10821 new_str = NULL;
10823 return new_str;
10826 int main (int argc, char *argv[])
10828 int major, minor, micro;
10829 char *tmp_version;
10831 /* This hangs on some systems (?)
10832 system ("touch conf.sdltest");
10834 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10836 /* HP/UX 9 (%@#!) writes to sscanf strings */
10837 tmp_version = my_strdup("$min_sdl_version");
10838 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10839 printf("%s, bad version string\n", "$min_sdl_version");
10840 exit(1);
10843 if (($sdl_major_version > major) ||
10844 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10845 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10847 return 0;
10849 else
10851 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10852 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10853 printf("*** best to upgrade to the required version.\n");
10854 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10855 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10856 printf("*** config.cache before re-running configure\n");
10857 return 1;
10862 _ACEOF
10863 if ac_fn_c_try_run "$LINENO"; then :
10865 else
10866 no_sdl=yes
10868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10869 conftest.$ac_objext conftest.beam conftest.$ac_ext
10872 CFLAGS="$ac_save_CFLAGS"
10873 CXXFLAGS="$ac_save_CXXFLAGS"
10874 LIBS="$ac_save_LIBS"
10877 if test "x$no_sdl" = x ; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10880 have_sdl="yes"
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10884 if test "$SDL_CONFIG" = "no" ; then
10885 echo "*** The sdl-config script installed by SDL could not be found"
10886 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10887 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10888 echo "*** full path to sdl-config."
10889 else
10890 if test -f conf.sdltest ; then
10892 else
10893 echo "*** Could not run SDL test program, checking why..."
10894 CFLAGS="$CFLAGS $SDL_CFLAGS"
10895 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10896 LIBS="$LIBS $SDL_LIBS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10900 #include <stdio.h>
10901 #include "SDL.h"
10903 int main(int argc, char *argv[])
10904 { return 0; }
10905 #undef main
10906 #define main K_and_R_C_main
10909 main ()
10911 return 0;
10913 return 0;
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 echo "*** The test program compiled, but did not run. This usually means"
10918 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10919 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10920 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10921 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10922 echo "*** is required on your system"
10923 echo "***"
10924 echo "*** If you have an old version installed, it is best to remove it, although"
10925 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10926 else
10927 echo "*** The test program failed to compile or link. See the file config.log for the"
10928 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10929 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10930 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 CFLAGS="$ac_save_CFLAGS"
10935 CXXFLAGS="$ac_save_CXXFLAGS"
10936 LIBS="$ac_save_LIBS"
10939 SDL_CFLAGS=""
10940 SDL_LIBS=""
10941 have_sdl="no"
10945 rm -f conf.sdltest
10948 if test "x-$have_sdl" != "x-yes" ; then
10950 if test "x-$sdl_hidd" != "x-auto" ; then
10951 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10954 else
10955 sdl_hidd_target=kernel-hidd-sdl
10956 aros_host_sdl_cflags=SDL_CFLAGS
10957 aros_host_sdl_libs=SDL_LIBS
10961 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10962 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10967 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10968 oss_library_target=workbench-libs-oss-unix
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10974 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10975 # Check whether --enable-dbus was given.
10976 if test "${enable_dbus+set}" = set; then :
10977 enableval=$enable_dbus; dbus="yes"
10978 else
10979 dbus="no"
10982 if test "$dbus" = "yes" ; then
10983 ENABLE_DBUS=1
10984 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10985 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10986 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10987 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10988 else
10989 ENABLE_DBUS=0
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10992 $as_echo "$dbus" >&6; }
10996 # Generic
11007 # Host related
11031 # Target Related
11088 # Graphics Related
11105 # Native version related
11108 # Palm native version related
11111 # Unix/Hosted version related
11114 # MMU related
11117 # Apple iOS related
11122 # Android related
11126 # DBUS related
11133 #X11 related
11136 # Debug related
11142 # Collect-aros stuff: "-ius" to ignore undefined symbols
11145 # C compiler related
11148 case "$aros_flavour" in
11149 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11150 aros_flavour="emulation" ;;
11151 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11152 aros_flavour="emulation" ;;
11153 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11154 aros_flavour="standalone";;
11155 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11156 aros_flavour="standalone";;
11157 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11158 aros_flavour="native" ;;
11159 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11160 aros_flavour="native" ;;
11161 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11162 aros_flavour="linklib" ;;
11163 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11164 aros_flavour="palmnative" ;;
11165 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11166 aros_flavour="mac68knative" ;;
11167 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11168 aros_flavour="ppcnative" ;;
11169 esac
11171 if test ! -d ${aros_inc_dir} ; then
11172 ${MKDIR} ${aros_inc_dir}
11174 if test ! -d ${aros_geninc_dir} ; then
11175 ${MKDIR} ${aros_geninc_dir}
11177 if test ! -d ${aros_hostcfg_dir} ; then
11178 ${MKDIR} ${aros_hostcfg_dir}
11180 if test ! -d ${aros_targetcfg_dir} ; then
11181 ${MKDIR} ${aros_targetcfg_dir}
11183 if test ! -d ${aros_tools_dir} ; then
11184 ${MKDIR} ${aros_tools_dir}
11186 if test ! -d ${aros_scripts_dir} ; then
11187 ${MKDIR} ${aros_scripts_dir}
11190 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11193 ac_config_commands="$ac_config_commands compiler_executable"
11195 ac_config_commands="$ac_config_commands genmf_executable"
11198 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11201 cat >confcache <<\_ACEOF
11202 # This file is a shell script that caches the results of configure
11203 # tests run on this system so they can be shared between configure
11204 # scripts and configure runs, see configure's option --config-cache.
11205 # It is not useful on other systems. If it contains results you don't
11206 # want to keep, you may remove or edit it.
11208 # config.status only pays attention to the cache file if you give it
11209 # the --recheck option to rerun configure.
11211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11213 # following values.
11215 _ACEOF
11217 # The following way of writing the cache mishandles newlines in values,
11218 # but we know of no workaround that is simple, portable, and efficient.
11219 # So, we kill variables containing newlines.
11220 # Ultrix sh set writes to stderr and can't be redirected directly,
11221 # and sets the high bit in the cache file unless we assign to the vars.
11223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11224 eval ac_val=\$$ac_var
11225 case $ac_val in #(
11226 *${as_nl}*)
11227 case $ac_var in #(
11228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11230 esac
11231 case $ac_var in #(
11232 _ | IFS | as_nl) ;; #(
11233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11234 *) { eval $ac_var=; unset $ac_var;} ;;
11235 esac ;;
11236 esac
11237 done
11239 (set) 2>&1 |
11240 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11241 *${as_nl}ac_space=\ *)
11242 # `set' does not quote correctly, so add quotes: double-quote
11243 # substitution turns \\\\ into \\, and sed turns \\ into \.
11244 sed -n \
11245 "s/'/'\\\\''/g;
11246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11247 ;; #(
11249 # `set' quotes correctly as required by POSIX, so do not add quotes.
11250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11252 esac |
11253 sort
11255 sed '
11256 /^ac_cv_env_/b end
11257 t clear
11258 :clear
11259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11260 t end
11261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11262 :end' >>confcache
11263 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11264 if test -w "$cache_file"; then
11265 if test "x$cache_file" != "x/dev/null"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11267 $as_echo "$as_me: updating cache $cache_file" >&6;}
11268 if test ! -f "$cache_file" || test -h "$cache_file"; then
11269 cat confcache >"$cache_file"
11270 else
11271 case $cache_file in #(
11272 */* | ?:*)
11273 mv -f confcache "$cache_file"$$ &&
11274 mv -f "$cache_file"$$ "$cache_file" ;; #(
11276 mv -f confcache "$cache_file" ;;
11277 esac
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11285 rm -f confcache
11287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11288 # Let make expand exec_prefix.
11289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11291 DEFS=-DHAVE_CONFIG_H
11293 ac_libobjs=
11294 ac_ltlibobjs=
11296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11297 # 1. Remove the extension, and $U if already installed.
11298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11301 # will be set to the directory where LIBOBJS objects are built.
11302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11304 done
11305 LIBOBJS=$ac_libobjs
11307 LTLIBOBJS=$ac_ltlibobjs
11311 : "${CONFIG_STATUS=./config.status}"
11312 ac_write_fail=0
11313 ac_clean_files_save=$ac_clean_files
11314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11317 as_write_fail=0
11318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11319 #! $SHELL
11320 # Generated by $as_me.
11321 # Run this file to recreate the current configuration.
11322 # Compiler output produced by configure, useful for debugging
11323 # configure, is in config.log if it exists.
11325 debug=false
11326 ac_cs_recheck=false
11327 ac_cs_silent=false
11329 SHELL=\${CONFIG_SHELL-$SHELL}
11330 export SHELL
11331 _ASEOF
11332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11333 ## -------------------- ##
11334 ## M4sh Initialization. ##
11335 ## -------------------- ##
11337 # Be more Bourne compatible
11338 DUALCASE=1; export DUALCASE # for MKS sh
11339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11340 emulate sh
11341 NULLCMD=:
11342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11343 # is contrary to our usage. Disable this feature.
11344 alias -g '${1+"$@"}'='"$@"'
11345 setopt NO_GLOB_SUBST
11346 else
11347 case `(set -o) 2>/dev/null` in #(
11348 *posix*) :
11349 set -o posix ;; #(
11350 *) :
11352 esac
11356 as_nl='
11358 export as_nl
11359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11363 # Prefer a ksh shell builtin over an external printf program on Solaris,
11364 # but without wasting forks for bash or zsh.
11365 if test -z "$BASH_VERSION$ZSH_VERSION" \
11366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11367 as_echo='print -r --'
11368 as_echo_n='print -rn --'
11369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11370 as_echo='printf %s\n'
11371 as_echo_n='printf %s'
11372 else
11373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11374 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11375 as_echo_n='/usr/ucb/echo -n'
11376 else
11377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11378 as_echo_n_body='eval
11379 arg=$1;
11380 case $arg in #(
11381 *"$as_nl"*)
11382 expr "X$arg" : "X\\(.*\\)$as_nl";
11383 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11384 esac;
11385 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11387 export as_echo_n_body
11388 as_echo_n='sh -c $as_echo_n_body as_echo'
11390 export as_echo_body
11391 as_echo='sh -c $as_echo_body as_echo'
11394 # The user is always right.
11395 if test "${PATH_SEPARATOR+set}" != set; then
11396 PATH_SEPARATOR=:
11397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11398 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11399 PATH_SEPARATOR=';'
11404 # IFS
11405 # We need space, tab and new line, in precisely that order. Quoting is
11406 # there to prevent editors from complaining about space-tab.
11407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11408 # splitting by setting IFS to empty value.)
11409 IFS=" "" $as_nl"
11411 # Find who we are. Look in the path if we contain no directory separator.
11412 as_myself=
11413 case $0 in #((
11414 *[\\/]* ) as_myself=$0 ;;
11415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11421 done
11422 IFS=$as_save_IFS
11425 esac
11426 # We did not find ourselves, most probably we were run as `sh COMMAND'
11427 # in which case we are not to be found in the path.
11428 if test "x$as_myself" = x; then
11429 as_myself=$0
11431 if test ! -f "$as_myself"; then
11432 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11433 exit 1
11436 # Unset variables that we do not need and which cause bugs (e.g. in
11437 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11438 # suppresses any "Segmentation fault" message there. '((' could
11439 # trigger a bug in pdksh 5.2.14.
11440 for as_var in BASH_ENV ENV MAIL MAILPATH
11441 do eval test x\${$as_var+set} = xset \
11442 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11443 done
11444 PS1='$ '
11445 PS2='> '
11446 PS4='+ '
11448 # NLS nuisances.
11449 LC_ALL=C
11450 export LC_ALL
11451 LANGUAGE=C
11452 export LANGUAGE
11454 # CDPATH.
11455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11458 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11459 # ----------------------------------------
11460 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11461 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11462 # script with STATUS, using 1 if that was 0.
11463 as_fn_error ()
11465 as_status=$1; test $as_status -eq 0 && as_status=1
11466 if test "$4"; then
11467 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11468 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11470 $as_echo "$as_me: error: $2" >&2
11471 as_fn_exit $as_status
11472 } # as_fn_error
11475 # as_fn_set_status STATUS
11476 # -----------------------
11477 # Set $? to STATUS, without forking.
11478 as_fn_set_status ()
11480 return $1
11481 } # as_fn_set_status
11483 # as_fn_exit STATUS
11484 # -----------------
11485 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11486 as_fn_exit ()
11488 set +e
11489 as_fn_set_status $1
11490 exit $1
11491 } # as_fn_exit
11493 # as_fn_unset VAR
11494 # ---------------
11495 # Portably unset VAR.
11496 as_fn_unset ()
11498 { eval $1=; unset $1;}
11500 as_unset=as_fn_unset
11501 # as_fn_append VAR VALUE
11502 # ----------------------
11503 # Append the text in VALUE to the end of the definition contained in VAR. Take
11504 # advantage of any shell optimizations that allow amortized linear growth over
11505 # repeated appends, instead of the typical quadratic growth present in naive
11506 # implementations.
11507 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11508 eval 'as_fn_append ()
11510 eval $1+=\$2
11512 else
11513 as_fn_append ()
11515 eval $1=\$$1\$2
11517 fi # as_fn_append
11519 # as_fn_arith ARG...
11520 # ------------------
11521 # Perform arithmetic evaluation on the ARGs, and store the result in the
11522 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11523 # must be portable across $(()) and expr.
11524 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11525 eval 'as_fn_arith ()
11527 as_val=$(( $* ))
11529 else
11530 as_fn_arith ()
11532 as_val=`expr "$@" || test $? -eq 1`
11534 fi # as_fn_arith
11537 if expr a : '\(a\)' >/dev/null 2>&1 &&
11538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11539 as_expr=expr
11540 else
11541 as_expr=false
11544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11545 as_basename=basename
11546 else
11547 as_basename=false
11550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11551 as_dirname=dirname
11552 else
11553 as_dirname=false
11556 as_me=`$as_basename -- "$0" ||
11557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11558 X"$0" : 'X\(//\)$' \| \
11559 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11560 $as_echo X/"$0" |
11561 sed '/^.*\/\([^/][^/]*\)\/*$/{
11562 s//\1/
11565 /^X\/\(\/\/\)$/{
11566 s//\1/
11569 /^X\/\(\/\).*/{
11570 s//\1/
11573 s/.*/./; q'`
11575 # Avoid depending upon Character Ranges.
11576 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11579 as_cr_digits='0123456789'
11580 as_cr_alnum=$as_cr_Letters$as_cr_digits
11582 ECHO_C= ECHO_N= ECHO_T=
11583 case `echo -n x` in #(((((
11584 -n*)
11585 case `echo 'xy\c'` in
11586 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11587 xy) ECHO_C='\c';;
11588 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11589 ECHO_T=' ';;
11590 esac;;
11592 ECHO_N='-n';;
11593 esac
11595 rm -f conf$$ conf$$.exe conf$$.file
11596 if test -d conf$$.dir; then
11597 rm -f conf$$.dir/conf$$.file
11598 else
11599 rm -f conf$$.dir
11600 mkdir conf$$.dir 2>/dev/null
11602 if (echo >conf$$.file) 2>/dev/null; then
11603 if ln -s conf$$.file conf$$ 2>/dev/null; then
11604 as_ln_s='ln -s'
11605 # ... but there are two gotchas:
11606 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11607 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11608 # In both cases, we have to default to `cp -p'.
11609 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11610 as_ln_s='cp -p'
11611 elif ln conf$$.file conf$$ 2>/dev/null; then
11612 as_ln_s=ln
11613 else
11614 as_ln_s='cp -p'
11616 else
11617 as_ln_s='cp -p'
11619 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11620 rmdir conf$$.dir 2>/dev/null
11623 # as_fn_mkdir_p
11624 # -------------
11625 # Create "$as_dir" as a directory, including parents if necessary.
11626 as_fn_mkdir_p ()
11629 case $as_dir in #(
11630 -*) as_dir=./$as_dir;;
11631 esac
11632 test -d "$as_dir" || eval $as_mkdir_p || {
11633 as_dirs=
11634 while :; do
11635 case $as_dir in #(
11636 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11637 *) as_qdir=$as_dir;;
11638 esac
11639 as_dirs="'$as_qdir' $as_dirs"
11640 as_dir=`$as_dirname -- "$as_dir" ||
11641 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11642 X"$as_dir" : 'X\(//\)[^/]' \| \
11643 X"$as_dir" : 'X\(//\)$' \| \
11644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11645 $as_echo X"$as_dir" |
11646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11647 s//\1/
11650 /^X\(\/\/\)[^/].*/{
11651 s//\1/
11654 /^X\(\/\/\)$/{
11655 s//\1/
11658 /^X\(\/\).*/{
11659 s//\1/
11662 s/.*/./; q'`
11663 test -d "$as_dir" && break
11664 done
11665 test -z "$as_dirs" || eval "mkdir $as_dirs"
11666 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11669 } # as_fn_mkdir_p
11670 if mkdir -p . 2>/dev/null; then
11671 as_mkdir_p='mkdir -p "$as_dir"'
11672 else
11673 test -d ./-p && rmdir ./-p
11674 as_mkdir_p=false
11677 if test -x / >/dev/null 2>&1; then
11678 as_test_x='test -x'
11679 else
11680 if ls -dL / >/dev/null 2>&1; then
11681 as_ls_L_option=L
11682 else
11683 as_ls_L_option=
11685 as_test_x='
11686 eval sh -c '\''
11687 if test -d "$1"; then
11688 test -d "$1/.";
11689 else
11690 case $1 in #(
11691 -*)set "./$1";;
11692 esac;
11693 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11694 ???[sx]*):;;*)false;;esac;fi
11695 '\'' sh
11698 as_executable_p=$as_test_x
11700 # Sed expression to map a string onto a valid CPP name.
11701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11703 # Sed expression to map a string onto a valid variable name.
11704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11707 exec 6>&1
11708 ## ----------------------------------- ##
11709 ## Main body of $CONFIG_STATUS script. ##
11710 ## ----------------------------------- ##
11711 _ASEOF
11712 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11715 # Save the log message, to keep $0 and so on meaningful, and to
11716 # report actual input values of CONFIG_FILES etc. instead of their
11717 # values after options handling.
11718 ac_log="
11719 This file was extended by $as_me, which was
11720 generated by GNU Autoconf 2.68. Invocation command line was
11722 CONFIG_FILES = $CONFIG_FILES
11723 CONFIG_HEADERS = $CONFIG_HEADERS
11724 CONFIG_LINKS = $CONFIG_LINKS
11725 CONFIG_COMMANDS = $CONFIG_COMMANDS
11726 $ $0 $@
11728 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11731 _ACEOF
11733 case $ac_config_files in *"
11734 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11735 esac
11737 case $ac_config_headers in *"
11738 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11739 esac
11742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11743 # Files that config.status was made for.
11744 config_files="$ac_config_files"
11745 config_headers="$ac_config_headers"
11746 config_commands="$ac_config_commands"
11748 _ACEOF
11750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11751 ac_cs_usage="\
11752 \`$as_me' instantiates files and other configuration actions
11753 from templates according to the current configuration. Unless the files
11754 and actions are specified as TAGs, all are instantiated by default.
11756 Usage: $0 [OPTION]... [TAG]...
11758 -h, --help print this help, then exit
11759 -V, --version print version number and configuration settings, then exit
11760 --config print configuration, then exit
11761 -q, --quiet, --silent
11762 do not print progress messages
11763 -d, --debug don't remove temporary files
11764 --recheck update $as_me by reconfiguring in the same conditions
11765 --file=FILE[:TEMPLATE]
11766 instantiate the configuration file FILE
11767 --header=FILE[:TEMPLATE]
11768 instantiate the configuration header FILE
11770 Configuration files:
11771 $config_files
11773 Configuration headers:
11774 $config_headers
11776 Configuration commands:
11777 $config_commands
11779 Report bugs to the package provider."
11781 _ACEOF
11782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11784 ac_cs_version="\\
11785 config.status
11786 configured by $0, generated by GNU Autoconf 2.68,
11787 with options \\"\$ac_cs_config\\"
11789 Copyright (C) 2010 Free Software Foundation, Inc.
11790 This config.status script is free software; the Free Software Foundation
11791 gives unlimited permission to copy, distribute and modify it."
11793 ac_pwd='$ac_pwd'
11794 srcdir='$srcdir'
11795 test -n "\$AWK" || AWK=awk
11796 _ACEOF
11798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11799 # The default lists apply if the user does not specify any file.
11800 ac_need_defaults=:
11801 while test $# != 0
11803 case $1 in
11804 --*=?*)
11805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11806 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11807 ac_shift=:
11809 --*=)
11810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11811 ac_optarg=
11812 ac_shift=:
11815 ac_option=$1
11816 ac_optarg=$2
11817 ac_shift=shift
11819 esac
11821 case $ac_option in
11822 # Handling of the options.
11823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11824 ac_cs_recheck=: ;;
11825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11826 $as_echo "$ac_cs_version"; exit ;;
11827 --config | --confi | --conf | --con | --co | --c )
11828 $as_echo "$ac_cs_config"; exit ;;
11829 --debug | --debu | --deb | --de | --d | -d )
11830 debug=: ;;
11831 --file | --fil | --fi | --f )
11832 $ac_shift
11833 case $ac_optarg in
11834 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11835 '') as_fn_error $? "missing file argument" ;;
11836 esac
11837 as_fn_append CONFIG_FILES " '$ac_optarg'"
11838 ac_need_defaults=false;;
11839 --header | --heade | --head | --hea )
11840 $ac_shift
11841 case $ac_optarg in
11842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11843 esac
11844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11845 ac_need_defaults=false;;
11846 --he | --h)
11847 # Conflict between --help and --header
11848 as_fn_error $? "ambiguous option: \`$1'
11849 Try \`$0 --help' for more information.";;
11850 --help | --hel | -h )
11851 $as_echo "$ac_cs_usage"; exit ;;
11852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11854 ac_cs_silent=: ;;
11856 # This is an error.
11857 -*) as_fn_error $? "unrecognized option: \`$1'
11858 Try \`$0 --help' for more information." ;;
11860 *) as_fn_append ac_config_targets " $1"
11861 ac_need_defaults=false ;;
11863 esac
11864 shift
11865 done
11867 ac_configure_extra_args=
11869 if $ac_cs_silent; then
11870 exec 6>/dev/null
11871 ac_configure_extra_args="$ac_configure_extra_args --silent"
11874 _ACEOF
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 if \$ac_cs_recheck; then
11877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11878 shift
11879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11880 CONFIG_SHELL='$SHELL'
11881 export CONFIG_SHELL
11882 exec "\$@"
11885 _ACEOF
11886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11887 exec 5>>config.log
11889 echo
11890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11891 ## Running $as_me. ##
11892 _ASBOX
11893 $as_echo "$ac_log"
11894 } >&5
11896 _ACEOF
11897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899 # INIT-COMMANDS
11902 aros_host_exe_suffix=${aros_host_exe_suffix}
11903 aros_tools_dir=${aros_tools_dir}
11904 aros_target_cpu=${aros_target_cpu}
11905 aros_target_arch=${aros_target_arch}
11906 aros_target_suffix=${aros_target_suffix}
11907 aros_target_nm_ln=${aros_target_nm_ln}
11908 aros_target_as_ln=${aros_target_as_ln}
11909 aros_target_ar_ln=${aros_target_ar_ln}
11910 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11911 aros_target_objdump_ln=${aros_target_objdump_ln}
11912 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11913 aros_target_strip_ln=${aros_target_strip_ln}
11916 aros_tools_dir=${aros_tools_dir}
11919 _ACEOF
11921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11923 # Handling of arguments.
11924 for ac_config_target in $ac_config_targets
11926 case $ac_config_target in
11927 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11928 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11929 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11931 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11932 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11933 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11934 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11935 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11936 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11937 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11938 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11939 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in" ;;
11940 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in" ;;
11941 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11942 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11943 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
11945 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11946 esac
11947 done
11950 # If the user did not use the arguments to specify the items to instantiate,
11951 # then the envvar interface is used. Set only those that are not.
11952 # We use the long form for the default assignment because of an extremely
11953 # bizarre bug on SunOS 4.1.3.
11954 if $ac_need_defaults; then
11955 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11956 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11960 # Have a temporary directory for convenience. Make it in the build tree
11961 # simply because there is no reason against having it here, and in addition,
11962 # creating and moving files from /tmp can sometimes cause problems.
11963 # Hook for its removal unless debugging.
11964 # Note that there is a small window in which the directory will not be cleaned:
11965 # after its creation but before its name has been assigned to `$tmp'.
11966 $debug ||
11968 tmp= ac_tmp=
11969 trap 'exit_status=$?
11970 : "${ac_tmp:=$tmp}"
11971 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11973 trap 'as_fn_exit 1' 1 2 13 15
11975 # Create a (secure) tmp directory for tmp files.
11978 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11979 test -d "$tmp"
11980 } ||
11982 tmp=./conf$$-$RANDOM
11983 (umask 077 && mkdir "$tmp")
11984 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11985 ac_tmp=$tmp
11987 # Set up the scripts for CONFIG_FILES section.
11988 # No need to generate them if there are no CONFIG_FILES.
11989 # This happens for instance with `./config.status config.h'.
11990 if test -n "$CONFIG_FILES"; then
11993 ac_cr=`echo X | tr X '\015'`
11994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11995 # But we know of no other shell where ac_cr would be empty at this
11996 # point, so we can use a bashism as a fallback.
11997 if test "x$ac_cr" = x; then
11998 eval ac_cr=\$\'\\r\'
12000 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12002 ac_cs_awk_cr='\\r'
12003 else
12004 ac_cs_awk_cr=$ac_cr
12007 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12008 _ACEOF
12012 echo "cat >conf$$subs.awk <<_ACEOF" &&
12013 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12014 echo "_ACEOF"
12015 } >conf$$subs.sh ||
12016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12017 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12018 ac_delim='%!_!# '
12019 for ac_last_try in false false false false false :; do
12020 . ./conf$$subs.sh ||
12021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12023 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12024 if test $ac_delim_n = $ac_delim_num; then
12025 break
12026 elif $ac_last_try; then
12027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12028 else
12029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12031 done
12032 rm -f conf$$subs.sh
12034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12035 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12036 _ACEOF
12037 sed -n '
12039 s/^/S["/; s/!.*/"]=/
12042 s/^[^!]*!//
12043 :repl
12044 t repl
12045 s/'"$ac_delim"'$//
12046 t delim
12049 s/\(.\{148\}\)..*/\1/
12050 t more1
12051 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12054 b repl
12055 :more1
12056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12059 s/.\{148\}//
12060 t nl
12061 :delim
12063 s/\(.\{148\}\)..*/\1/
12064 t more2
12065 s/["\\]/\\&/g; s/^/"/; s/$/"/
12068 :more2
12069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12072 s/.\{148\}//
12073 t delim
12074 ' <conf$$subs.awk | sed '
12075 /^[^""]/{
12077 s/\n//
12079 ' >>$CONFIG_STATUS || ac_write_fail=1
12080 rm -f conf$$subs.awk
12081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12082 _ACAWK
12083 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12084 for (key in S) S_is_set[key] = 1
12085 FS = "\a"
12089 line = $ 0
12090 nfields = split(line, field, "@")
12091 substed = 0
12092 len = length(field[1])
12093 for (i = 2; i < nfields; i++) {
12094 key = field[i]
12095 keylen = length(key)
12096 if (S_is_set[key]) {
12097 value = S[key]
12098 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12099 len += length(value) + length(field[++i])
12100 substed = 1
12101 } else
12102 len += 1 + keylen
12105 print line
12108 _ACAWK
12109 _ACEOF
12110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12111 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12112 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12113 else
12115 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12116 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12117 _ACEOF
12119 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12120 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12121 # trailing colons and then remove the whole line if VPATH becomes empty
12122 # (actually we leave an empty line to preserve line numbers).
12123 if test "x$srcdir" = x.; then
12124 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12126 s///
12127 s/^/:/
12128 s/[ ]*$/:/
12129 s/:\$(srcdir):/:/g
12130 s/:\${srcdir}:/:/g
12131 s/:@srcdir@:/:/g
12132 s/^:*//
12133 s/:*$//
12135 s/\(=[ ]*\).*/\1/
12137 s/\n//
12138 s/^[^=]*=[ ]*$//
12142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12143 fi # test -n "$CONFIG_FILES"
12145 # Set up the scripts for CONFIG_HEADERS section.
12146 # No need to generate them if there are no CONFIG_HEADERS.
12147 # This happens for instance with `./config.status Makefile'.
12148 if test -n "$CONFIG_HEADERS"; then
12149 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12150 BEGIN {
12151 _ACEOF
12153 # Transform confdefs.h into an awk script `defines.awk', embedded as
12154 # here-document in config.status, that substitutes the proper values into
12155 # config.h.in to produce config.h.
12157 # Create a delimiter string that does not exist in confdefs.h, to ease
12158 # handling of long lines.
12159 ac_delim='%!_!# '
12160 for ac_last_try in false false :; do
12161 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12162 if test -z "$ac_tt"; then
12163 break
12164 elif $ac_last_try; then
12165 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12166 else
12167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12169 done
12171 # For the awk script, D is an array of macro values keyed by name,
12172 # likewise P contains macro parameters if any. Preserve backslash
12173 # newline sequences.
12175 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12176 sed -n '
12177 s/.\{148\}/&'"$ac_delim"'/g
12178 t rset
12179 :rset
12180 s/^[ ]*#[ ]*define[ ][ ]*/ /
12181 t def
12183 :def
12184 s/\\$//
12185 t bsnl
12186 s/["\\]/\\&/g
12187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12188 D["\1"]=" \3"/p
12189 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12191 :bsnl
12192 s/["\\]/\\&/g
12193 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12194 D["\1"]=" \3\\\\\\n"\\/p
12195 t cont
12196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12197 t cont
12199 :cont
12201 s/.\{148\}/&'"$ac_delim"'/g
12202 t clear
12203 :clear
12204 s/\\$//
12205 t bsnlc
12206 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12208 :bsnlc
12209 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12210 b cont
12211 ' <confdefs.h | sed '
12212 s/'"$ac_delim"'/"\\\
12213 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 for (key in D) D_is_set[key] = 1
12217 FS = "\a"
12219 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12220 line = \$ 0
12221 split(line, arg, " ")
12222 if (arg[1] == "#") {
12223 defundef = arg[2]
12224 mac1 = arg[3]
12225 } else {
12226 defundef = substr(arg[1], 2)
12227 mac1 = arg[2]
12229 split(mac1, mac2, "(") #)
12230 macro = mac2[1]
12231 prefix = substr(line, 1, index(line, defundef) - 1)
12232 if (D_is_set[macro]) {
12233 # Preserve the white space surrounding the "#".
12234 print prefix "define", macro P[macro] D[macro]
12235 next
12236 } else {
12237 # Replace #undef with comments. This is necessary, for example,
12238 # in the case of _POSIX_SOURCE, which is predefined and required
12239 # on some systems where configure will not decide to define it.
12240 if (defundef == "undef") {
12241 print "/*", prefix defundef, macro, "*/"
12242 next
12246 { print }
12247 _ACAWK
12248 _ACEOF
12249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12250 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12251 fi # test -n "$CONFIG_HEADERS"
12254 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12255 shift
12256 for ac_tag
12258 case $ac_tag in
12259 :[FHLC]) ac_mode=$ac_tag; continue;;
12260 esac
12261 case $ac_mode$ac_tag in
12262 :[FHL]*:*);;
12263 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12264 :[FH]-) ac_tag=-:-;;
12265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12266 esac
12267 ac_save_IFS=$IFS
12268 IFS=:
12269 set x $ac_tag
12270 IFS=$ac_save_IFS
12271 shift
12272 ac_file=$1
12273 shift
12275 case $ac_mode in
12276 :L) ac_source=$1;;
12277 :[FH])
12278 ac_file_inputs=
12279 for ac_f
12281 case $ac_f in
12282 -) ac_f="$ac_tmp/stdin";;
12283 *) # Look for the file first in the build tree, then in the source tree
12284 # (if the path is not absolute). The absolute path cannot be DOS-style,
12285 # because $ac_f cannot contain `:'.
12286 test -f "$ac_f" ||
12287 case $ac_f in
12288 [\\/$]*) false;;
12289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12290 esac ||
12291 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12292 esac
12293 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12294 as_fn_append ac_file_inputs " '$ac_f'"
12295 done
12297 # Let's still pretend it is `configure' which instantiates (i.e., don't
12298 # use $as_me), people would be surprised to read:
12299 # /* config.h. Generated by config.status. */
12300 configure_input='Generated from '`
12301 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12302 `' by configure.'
12303 if test x"$ac_file" != x-; then
12304 configure_input="$ac_file. $configure_input"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12306 $as_echo "$as_me: creating $ac_file" >&6;}
12308 # Neutralize special characters interpreted by sed in replacement strings.
12309 case $configure_input in #(
12310 *\&* | *\|* | *\\* )
12311 ac_sed_conf_input=`$as_echo "$configure_input" |
12312 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12313 *) ac_sed_conf_input=$configure_input;;
12314 esac
12316 case $ac_tag in
12317 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12319 esac
12321 esac
12323 ac_dir=`$as_dirname -- "$ac_file" ||
12324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12325 X"$ac_file" : 'X\(//\)[^/]' \| \
12326 X"$ac_file" : 'X\(//\)$' \| \
12327 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12328 $as_echo X"$ac_file" |
12329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12330 s//\1/
12333 /^X\(\/\/\)[^/].*/{
12334 s//\1/
12337 /^X\(\/\/\)$/{
12338 s//\1/
12341 /^X\(\/\).*/{
12342 s//\1/
12345 s/.*/./; q'`
12346 as_dir="$ac_dir"; as_fn_mkdir_p
12347 ac_builddir=.
12349 case "$ac_dir" in
12350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12352 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12353 # A ".." for each directory in $ac_dir_suffix.
12354 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12355 case $ac_top_builddir_sub in
12356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12358 esac ;;
12359 esac
12360 ac_abs_top_builddir=$ac_pwd
12361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12362 # for backward compatibility:
12363 ac_top_builddir=$ac_top_build_prefix
12365 case $srcdir in
12366 .) # We are building in place.
12367 ac_srcdir=.
12368 ac_top_srcdir=$ac_top_builddir_sub
12369 ac_abs_top_srcdir=$ac_pwd ;;
12370 [\\/]* | ?:[\\/]* ) # Absolute name.
12371 ac_srcdir=$srcdir$ac_dir_suffix;
12372 ac_top_srcdir=$srcdir
12373 ac_abs_top_srcdir=$srcdir ;;
12374 *) # Relative name.
12375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12376 ac_top_srcdir=$ac_top_build_prefix$srcdir
12377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12378 esac
12379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12382 case $ac_mode in
12385 # CONFIG_FILE
12388 _ACEOF
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391 # If the template does not know about datarootdir, expand it.
12392 # FIXME: This hack should be removed a few years after 2.60.
12393 ac_datarootdir_hack=; ac_datarootdir_seen=
12394 ac_sed_dataroot='
12395 /datarootdir/ {
12399 /@datadir@/p
12400 /@docdir@/p
12401 /@infodir@/p
12402 /@localedir@/p
12403 /@mandir@/p'
12404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12405 *datarootdir*) ac_datarootdir_seen=yes;;
12406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12408 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12409 _ACEOF
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 ac_datarootdir_hack='
12412 s&@datadir@&$datadir&g
12413 s&@docdir@&$docdir&g
12414 s&@infodir@&$infodir&g
12415 s&@localedir@&$localedir&g
12416 s&@mandir@&$mandir&g
12417 s&\\\${datarootdir}&$datarootdir&g' ;;
12418 esac
12419 _ACEOF
12421 # Neutralize VPATH when `$srcdir' = `.'.
12422 # Shell code in configure.ac might set extrasub.
12423 # FIXME: do we really want to maintain this feature?
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12425 ac_sed_extra="$ac_vpsub
12426 $extrasub
12427 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12431 s|@configure_input@|$ac_sed_conf_input|;t t
12432 s&@top_builddir@&$ac_top_builddir_sub&;t t
12433 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12434 s&@srcdir@&$ac_srcdir&;t t
12435 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12436 s&@top_srcdir@&$ac_top_srcdir&;t t
12437 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12438 s&@builddir@&$ac_builddir&;t t
12439 s&@abs_builddir@&$ac_abs_builddir&;t t
12440 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12441 $ac_datarootdir_hack
12443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12449 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12451 which seems to be undefined. Please make sure it is defined" >&5
12452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12453 which seems to be undefined. Please make sure it is defined" >&2;}
12455 rm -f "$ac_tmp/stdin"
12456 case $ac_file in
12457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12459 esac \
12460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12464 # CONFIG_HEADER
12466 if test x"$ac_file" != x-; then
12468 $as_echo "/* $configure_input */" \
12469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12470 } >"$ac_tmp/config.h" \
12471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12475 else
12476 rm -f "$ac_file"
12477 mv "$ac_tmp/config.h" "$ac_file" \
12478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12480 else
12481 $as_echo "/* $configure_input */" \
12482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12483 || as_fn_error $? "could not create -" "$LINENO" 5
12487 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12488 $as_echo "$as_me: executing $ac_file commands" >&6;}
12490 esac
12493 case $ac_file$ac_mode in
12494 "compiler_executable":C)
12495 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12496 mkdir -p $prefix
12497 prefix="${prefix}/${aros_target_cpu}-aros"
12498 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12500 echo ${prefix}
12501 echo ${prefix2}
12502 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12504 ln -sf ${prefix2}-gcc ${prefix}-gcc
12505 ln -sf ${prefix2}-ld ${prefix}-ld
12507 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12508 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12509 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12510 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12511 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12512 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12513 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12515 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12516 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12517 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12518 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12519 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12520 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12521 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12523 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12525 esac
12526 done # for ac_tag
12529 as_fn_exit 0
12530 _ACEOF
12531 ac_clean_files=$ac_clean_files_save
12533 test $ac_write_fail = 0 ||
12534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12537 # configure is writing to config.log, and then calls config.status.
12538 # config.status does its own redirection, appending to config.log.
12539 # Unfortunately, on DOS this fails, as config.log is still kept open
12540 # by configure, so config.status won't be able to write to it; its
12541 # output is simply discarded. So we exec the FD to /dev/null,
12542 # effectively closing config.log, so it can be properly (re)opened and
12543 # appended to by config.status. When coming back to configure, we
12544 # need to make the FD available again.
12545 if test "$no_create" != yes; then
12546 ac_cs_success=:
12547 ac_config_status_args=
12548 test "$silent" = yes &&
12549 ac_config_status_args="$ac_config_status_args --quiet"
12550 exec 5>/dev/null
12551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12552 exec 5>>config.log
12553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12554 # would make configure fail if this is the last instruction.
12555 $ac_cs_success || as_fn_exit 1
12557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12564 #XXX compatability...
12565 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12567 if test -n "$aros_shared_cflags" ; then
12568 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12569 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg