soft hyphen
[AROS.git] / configure
blob5947ea7817aaffaa86e4ceead15226f2b406e1f4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 crosstools_target
630 aros_target_strip_flags
631 aros_target_genmap
632 aros_paranoia_cflags
633 aros_debug_ldflags
634 aros_debug_aflags
635 aros_debug_cflags
636 aros_target_cflags
637 aros_kernel_ldflags
638 aros_kernel_objcflags
639 aros_kernel_includes
640 aros_kernel_cflags
641 aros_shared_ldflags
642 aros_shared_aflags
643 aros_shared_cflags
644 aros_config_ldflags
645 aros_config_aflags
646 aros_config_cflags
647 aros_arch_libs
648 aros_compiler_libs
649 aros_object_format
650 aros_shared_ld
651 aros_shared_default
652 aros_target_nm
653 aros_target_strip
654 aros_target_objcopy
655 aros_target_objdump
656 aros_target_cc_path
657 aros_target_cc_includes
658 orig_target_ld
659 aros_target_as
660 aros_kernel_cc
661 orig_target_cc
662 aros_kernel_nm
663 aros_target_ranlib
664 aros_target_ar
665 aros_target_incl
666 aros_target_suffix
667 aros_target_variant
668 aros_target_cpu
669 aros_target_family
670 aros_target_arch
671 aros_target_bootloader
672 aros_target_iconset
673 aros_target_guitheme
674 aros_tools_dir
675 aros_host_lib_suffix
676 aros_host_exe_suffix
677 aros_host_mkargs
678 aros_host_mkdep
679 aros_host_debug
680 aros_host_ldflags
681 gnu89_inline
682 aros_host_cflags
683 aros_host_make
684 aros_host_cc
685 aros_host_cpu
686 aros_host_arch
687 aros_cc_pre
688 AROS_PORTSSRCDIR
689 SRCDIR
690 AROS_BUILDDIR_UNIX
691 AROS_BUILDDIR
692 aros_flavour_uc
693 aros_flavour
694 aros_cpu
695 aros_arch
696 SDL_LIBS
697 SDL_CFLAGS
698 SDL_CONFIG
699 XMKMF
700 aros_cflags_iquote_end
701 aros_cflags_iquote
702 kernel_cflags_iquote_end
703 kernel_cflags_iquote
704 host_cflags_iquote_end
705 host_cflags_iquote
706 aros_target_nostdlib_ldflags
707 aros_target_detach_ldflags
708 aros_target_nix_ldflags
709 aros_target_nostartup_ldflags
710 aros_target_nostdinc_cflags
711 aros_kernel_rescomp
712 aros_target_cxx
713 aros_target_strip_ln
714 aros_target_ranlib_ln
715 aros_target_objdump_ln
716 aros_target_objcopy_ln
717 aros_target_nm_ln
718 aros_target_ar_ln
719 aros_kernel_ld
720 aros_target_as_ln
721 aros_target_ld
722 aros_target_cc
723 android_tool
724 CCACHE
725 DISTCC
726 LIBOBJS
727 EGREP
728 GREP
730 TEST
733 pkgpyexecdir
734 pyexecdir
735 pkgpythondir
736 pythondir
737 PYTHON_PLATFORM
738 PYTHON_EXEC_PREFIX
739 PYTHON_PREFIX
740 PYTHON_VERSION
741 PYTHON
742 PATCH
743 CHMOD
745 PPMTOILBM
746 PNGTOPNM
747 FLEX
748 BISON
751 UNIQ
752 SORT
753 TOUCH
754 MKDIR
755 ECHO
759 aros_host_strip
760 aros_host_ranlib
761 aros_host_ar
762 aros_host_automake
763 aros_host_autoheader
764 aros_host_autoconf
765 aros_host_aclocal
766 aros_host_ld
767 MMAKE
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
777 host_os
778 host_vendor
779 host_cpu
780 host
781 build_os
782 build_vendor
783 build_cpu
784 build
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_build_type
827 enable_debug
828 enable_crosstools
829 enable_distcc
830 enable_ccache
831 with_gcc_version
832 with_optimization
833 with_paranoia
834 enable_target_variant
835 with_xcode
836 with_ios_version
837 with_ios_sdk
838 with_sdk
839 with_ndk
840 with_android_version
841 with_portssources
842 with_bootloader
843 with_iconset
844 with_theme
845 enable_includes
846 with_resolution
847 with_serial_debug
848 enable_palm_debug_hack
849 enable_nesting_supervisor
850 enable_mmu
851 enable_x11_hidd
852 with_x
853 enable_x11_shm
854 enable_x11_vidmode
855 enable_sdl_hidd
856 with_sdl_prefix
857 with_sdl_exec_prefix
858 enable_sdltest
859 enable_dbus
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
870 XMKMF'
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
921 ac_prev=
922 ac_dashdash=
923 for ac_option
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
932 case $ac_option in
933 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *) ac_optarg=yes ;;
935 esac
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
941 ac_dashdash=yes ;;
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
960 --config-cache | -C)
961 cache_file=config.cache ;;
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_$ac_useropt"
1011 "*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 ac_prev=sbindir ;;
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 | --sbi=* | --sb=*)
1164 sbindir=$ac_optarg ;;
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1169 | --sha | --sh)
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 | --sha=* | --sh=*)
1175 sharedstatedir=$ac_optarg ;;
1177 -site | --site | --sit)
1178 ac_prev=site ;;
1179 -site=* | --site=* | --sit=*)
1180 site=$ac_optarg ;;
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 ac_prev=srcdir ;;
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 verbose=yes ;;
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1205 -with-* | --with-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) as_fn_error "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information."
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1265 esac
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 esac
1278 done
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error "missing argument to $ac_option"
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
1307 case $ac_val in
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 esac
1311 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1364 /^X\(\/\/\)$/{
1365 s//\1/
1368 /^X\(\/\).*/{
1369 s//\1/
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1377 else
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures this package to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1467 cat <<\_ACEOF
1469 X features:
1470 --x-includes=DIR X include files are in DIR
1471 --x-libraries=DIR X library files are in DIR
1473 System types:
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1479 if test -n "$ac_init_help"; then
1481 cat <<\_ACEOF
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-build-type=TYPE
1488 Select the build type. Available types are:
1489 personal, nightly, snapshot, milestone, release. Do
1490 NOT use this option unless you know what you are
1491 doing! (default=personal)
1492 --enable-debug=list Enable different types of debug. Commas or
1493 whitespaces can be used to separate the items in the
1494 list. Available types of debug are: all, none,
1495 messages, stack, mungwall, modules, symbols. If no
1496 list is provided then "all" is assumed.
1497 (default=none)
1498 --enable-crosstools Build cross-compiler toolchains if necessary
1499 (default=no).
1500 --enable-distcc Use distcc as a front end to the compiler
1501 (default=no).
1502 --enable-ccache Use ccache as a front end to the compiler
1503 (default=no).
1504 --enable-target-variant=NAME
1505 Enable a specific target variant(default=none)
1506 --enable-includes=dir Alternative system include directory
1507 --enable-palm-debug-hack
1508 Enable palm debug output hack in palm native
1509 (default=no)
1510 --enable-nesting-supervisor
1511 Enable nesting supervisor support in unix
1512 (default=no)
1513 --disable-mmu Disable MMU support (default=enabled)
1514 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1515 --enable-x11-shm use X11 shared memory (default=auto)
1516 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1517 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1518 --disable-sdltest Do not try to compile and run a test SDL program
1519 --enable-dbus Enable DBUS support via dbus.library (default=no)
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-gcc-version=VERSION
1525 Use gcc-VERSION for building AROS
1526 --with-optimization=FLAGS
1527 Use optimization flags FLAGS (default=-O2).
1528 --with-paranoia=FLAGS CC flags to enable paranoia
1529 --with-xcode=PATH Specify XCode path for iOS targets
1530 (default=/Developer).
1531 --with-ios-version=VERSION
1532 Specify minimum supported iOS version (default=3.0).
1533 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1534 --with-sdk=PATH Specify Android SDK path
1535 (default=$default_android_sdk).
1536 --with-ndk=PATH Specify Android NDK path
1537 (default=$default_android_ndk).
1538 --with-android-version=VERSION
1539 Use Android platform VERSION (default=2.2).
1540 --with-portssources=DIR Where to download sourcecode for external ports
1541 --with-bootloader=NAME Use a specific bootloader
1542 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1543 --with-theme=NAME Use a specific GUI Theme
1544 --with-resolution=XRESxYRESxDEPTH
1545 Default resolution of the initial WorkbenchScreen
1546 --with-serial-debug Enable serial debug output in native (default=no)
1547 --with-x use the X Window System
1548 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1549 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1551 Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
1559 CPP C preprocessor
1560 XMKMF Path to xmkmf, Makefile generator for X Window System
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to the package provider.
1566 _ACEOF
1567 ac_status=$?
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
1576 ac_builddir=.
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1594 case $srcdir in
1595 .) # We are building in place.
1596 ac_srcdir=.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1618 else
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1622 done
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627 cat <<\_ACEOF
1628 configure
1629 generated by GNU Autoconf 2.65
1631 Copyright (C) 2009 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635 exit
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1673 ac_retval=1
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_c_try_compile
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } >/dev/null && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1710 ac_retval=1
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_cpp
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1721 # accordingly.
1722 ac_fn_c_check_header_mongrel ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 else
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1745 else
1746 ac_header_compiler=no
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1761 else
1762 ac_header_preproc=no
1764 rm -f conftest.err conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770 yes:no: )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776 no:yes:* )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788 esac
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 eval "$3=\$ac_header_compiler"
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 } # ac_fn_c_check_header_mongrel
1804 # ac_fn_c_try_run LINENO
1805 # ----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807 # that executables *can* be run.
1808 ac_fn_c_try_run ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822 { { case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_try") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; }; }; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: program exited with status $ac_status" >&5
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=$ac_status
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_run
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_check_header_compile
1877 # ac_fn_c_try_link LINENO
1878 # -----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_link ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 $as_test_x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=1
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_c_try_link
1923 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1924 # ----------------------------------------------------
1925 # Tries to find if the field MEMBER exists in type AGGR, after including
1926 # INCLUDES, setting cache variable VAR accordingly.
1927 ac_fn_c_check_member ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1931 $as_echo_n "checking for $2.$3... " >&6; }
1932 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1939 main ()
1941 static $2 ac_aggr;
1942 if (ac_aggr.$3)
1943 return 0;
1945 return 0;
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949 eval "$4=yes"
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 main ()
1957 static $2 ac_aggr;
1958 if (sizeof ac_aggr.$3)
1959 return 0;
1961 return 0;
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$4=yes"
1966 else
1967 eval "$4=no"
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 eval ac_res=\$$4
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 } # ac_fn_c_check_member
1980 # ac_fn_c_check_decl LINENO SYMBOL VAR
1981 # ------------------------------------
1982 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1983 ac_fn_c_check_decl ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1987 $as_echo_n "checking whether $2 is declared... " >&6; }
1988 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 main ()
1997 #ifndef $2
1998 (void) $2;
1999 #endif
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 eval "$3=yes"
2007 else
2008 eval "$3=no"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 } # ac_fn_c_check_decl
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type ()
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 eval "$3=no"
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2036 main ()
2038 if (sizeof ($2))
2039 return 0;
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 main ()
2051 if (sizeof (($2)))
2052 return 0;
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2059 else
2060 eval "$3=yes"
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071 } # ac_fn_c_check_type
2073 # ac_fn_c_check_func LINENO FUNC VAR
2074 # ----------------------------------
2075 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2076 ac_fn_c_check_func ()
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2088 #define $2 innocuous_$2
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $2 (); below.
2092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2093 <limits.h> exists even on freestanding compilers. */
2095 #ifdef __STDC__
2096 # include <limits.h>
2097 #else
2098 # include <assert.h>
2099 #endif
2101 #undef $2
2103 /* Override any GCC internal prototype to avoid an error.
2104 Use char because int might match the return type of a GCC
2105 builtin and then its argument prototype would still apply. */
2106 #ifdef __cplusplus
2107 extern "C"
2108 #endif
2109 char $2 ();
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined __stub_$2 || defined __stub___$2
2114 choke me
2115 #endif
2118 main ()
2120 return $2 ();
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_link "$LINENO"; then :
2126 eval "$3=yes"
2127 else
2128 eval "$3=no"
2130 rm -f core conftest.err conftest.$ac_objext \
2131 conftest$ac_exeext conftest.$ac_ext
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 } # ac_fn_c_check_func
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2143 It was created by $as_me, which was
2144 generated by GNU Autoconf 2.65. Invocation command line was
2146 $ $0 $@
2148 _ACEOF
2149 exec 5>>config.log
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2166 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2169 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2170 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2171 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2173 _ASUNAME
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 $as_echo "PATH: $as_dir"
2181 done
2182 IFS=$as_save_IFS
2184 } >&5
2186 cat >&5 <<_ACEOF
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2193 _ACEOF
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2207 for ac_arg
2209 case $ac_arg in
2210 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212 | -silent | --silent | --silen | --sile | --sil)
2213 continue ;;
2214 *\'*)
2215 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216 esac
2217 case $ac_pass in
2218 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 as_fn_append ac_configure_args1 " '$ac_arg'"
2221 if test $ac_must_keep_next = true; then
2222 ac_must_keep_next=false # Got value, back to normal.
2223 else
2224 case $ac_arg in
2225 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228 | -with-* | --with-* | -without-* | --without-* | --x)
2229 case "$ac_configure_args0 " in
2230 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231 esac
2233 -* ) ac_must_keep_next=true ;;
2234 esac
2236 as_fn_append ac_configure_args " '$ac_arg'"
2238 esac
2239 done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log. We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250 # Save into config.log some information that might help in debugging.
2252 echo
2254 cat <<\_ASBOX
2255 ## ---------------- ##
2256 ## Cache variables. ##
2257 ## ---------------- ##
2258 _ASBOX
2259 echo
2260 # The following way of writing the cache mishandles newlines in values,
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in #(
2265 *${as_nl}*)
2266 case $ac_var in #(
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 esac
2270 case $ac_var in #(
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2274 esac ;;
2275 esac
2276 done
2277 (set) 2>&1 |
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2280 sed -n \
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 ;; #(
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2287 esac |
2288 sort
2290 echo
2292 cat <<\_ASBOX
2293 ## ----------------- ##
2294 ## Output variables. ##
2295 ## ----------------- ##
2296 _ASBOX
2297 echo
2298 for ac_var in $ac_subst_vars
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2308 if test -n "$ac_subst_files"; then
2309 cat <<\_ASBOX
2310 ## ------------------- ##
2311 ## File substitutions. ##
2312 ## ------------------- ##
2313 _ASBOX
2314 echo
2315 for ac_var in $ac_subst_files
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2326 if test -s confdefs.h; then
2327 cat <<\_ASBOX
2328 ## ----------- ##
2329 ## confdefs.h. ##
2330 ## ----------- ##
2331 _ASBOX
2332 echo
2333 cat confdefs.h
2334 echo
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2352 $as_echo "/* confdefs.h */" > confdefs.h
2354 # Predefined preprocessor variables.
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2378 _ACEOF
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 ac_site_file1=NONE
2384 ac_site_file2=NONE
2385 if test -n "$CONFIG_SITE"; then
2386 ac_site_file1=$CONFIG_SITE
2387 elif test "x$prefix" != xNONE; then
2388 ac_site_file1=$prefix/share/config.site
2389 ac_site_file2=$prefix/etc/config.site
2390 else
2391 ac_site_file1=$ac_default_prefix/share/config.site
2392 ac_site_file2=$ac_default_prefix/etc/config.site
2394 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396 test "x$ac_site_file" = xNONE && continue
2397 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2399 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2400 sed 's/^/| /' "$ac_site_file" >&5
2401 . "$ac_site_file"
2403 done
2405 if test -r "$cache_file"; then
2406 # Some versions of bash will fail to source /dev/null (special files
2407 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2408 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411 case $cache_file in
2412 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413 *) . "./$cache_file";;
2414 esac
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419 >$cache_file
2422 as_fn_append ac_header_list " stdlib.h"
2423 as_fn_append ac_header_list " unistd.h"
2424 as_fn_append ac_header_list " sys/param.h"
2425 # Check that the precious variables saved in the cache have kept the same
2426 # value.
2427 ac_cache_corrupted=false
2428 for ac_var in $ac_precious_vars; do
2429 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430 eval ac_new_set=\$ac_env_${ac_var}_set
2431 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432 eval ac_new_val=\$ac_env_${ac_var}_value
2433 case $ac_old_set,$ac_new_set in
2434 set,)
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2438 ,set)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,);;
2444 if test "x$ac_old_val" != "x$ac_new_val"; then
2445 # differences in whitespace do not lead to failure.
2446 ac_old_val_w=`echo x $ac_old_val`
2447 ac_new_val_w=`echo x $ac_new_val`
2448 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451 ac_cache_corrupted=:
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455 eval $ac_var=\$ac_old_val
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2458 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2460 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2461 fi;;
2462 esac
2463 # Pass precious variables to config.status.
2464 if test "$ac_new_set" = set; then
2465 case $ac_new_val in
2466 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467 *) ac_arg=$ac_var=$ac_new_val ;;
2468 esac
2469 case " $ac_configure_args " in
2470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2471 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472 esac
2474 done
2475 if $ac_cache_corrupted; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2482 ## -------------------- ##
2483 ## Main body of script. ##
2484 ## -------------------- ##
2486 ac_ext=c
2487 ac_cpp='$CPP $CPPFLAGS'
2488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494 ac_aux_dir=
2495 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2496 for ac_t in install-sh install.sh shtool; do
2497 if test -f "$ac_dir/$ac_t"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/$ac_t -c"
2500 break 2
2502 done
2503 done
2504 if test -z "$ac_aux_dir"; then
2505 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2508 # These three variables are undocumented and unsupported,
2509 # and are intended to be withdrawn in a future Autoconf release.
2510 # They can cause serious problems if a builder's source tree is in a directory
2511 # whose full name contains unusual characters.
2512 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2513 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2514 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2518 # Check what host we are running on.
2519 # If a target is not suggested, we use this one.
2520 # Note that what we call a target, Autoconf calls a host.
2521 # Make sure we can run config.sub.
2522 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2523 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2526 $as_echo_n "checking build system type... " >&6; }
2527 if test "${ac_cv_build+set}" = set; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 ac_build_alias=$build_alias
2531 test "x$ac_build_alias" = x &&
2532 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2533 test "x$ac_build_alias" = x &&
2534 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2535 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2536 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2540 $as_echo "$ac_cv_build" >&6; }
2541 case $ac_cv_build in
2542 *-*-*) ;;
2543 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2544 esac
2545 build=$ac_cv_build
2546 ac_save_IFS=$IFS; IFS='-'
2547 set x $ac_cv_build
2548 shift
2549 build_cpu=$1
2550 build_vendor=$2
2551 shift; shift
2552 # Remember, the first character of IFS is used to create $*,
2553 # except with old shells:
2554 build_os=$*
2555 IFS=$ac_save_IFS
2556 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2560 $as_echo_n "checking host system type... " >&6; }
2561 if test "${ac_cv_host+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test "x$host_alias" = x; then
2565 ac_cv_host=$ac_cv_build
2566 else
2567 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2568 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2573 $as_echo "$ac_cv_host" >&6; }
2574 case $ac_cv_host in
2575 *-*-*) ;;
2576 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2577 esac
2578 host=$ac_cv_host
2579 ac_save_IFS=$IFS; IFS='-'
2580 set x $ac_cv_host
2581 shift
2582 host_cpu=$1
2583 host_vendor=$2
2584 shift; shift
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2587 host_os=$*
2588 IFS=$ac_save_IFS
2589 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593 # The AROS target is slightly different to the normal GNU style
2594 # format. We don't have the middle part, and we reverse the order
2595 # of the $(CPU) and $(OS) bits.
2597 # Don't strip the version of the target yet, it might be
2598 # useful on some systems.
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2601 $as_echo_n "checking for AROS style target... " >&6; }
2603 if test "$target" = "NONE" ; then
2604 target=$host_os-$host_cpu
2605 cross_compile=no
2606 else
2607 if test "$target" = "" ; then
2608 target=$host_os-$host_cpu
2609 cross_compile=no
2610 else
2611 cross_compile=yes
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2615 $as_echo "$target" >&6; }
2617 if test "$host_os" = "mingw32" ; then
2618 PWDCMD="pwd -W"
2621 #don't know where else to put this...
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2623 $as_echo_n "checking Building AROS in .. ... " >&6; }
2624 AROS_BUILDDIR=`${PWDCMD-pwd}`
2625 AROS_BUILDDIR_UNIX=${PWD}
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2627 $as_echo "$AROS_BUILDDIR" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2630 $as_echo_n "checking AROS Source in .. ... " >&6; }
2631 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2632 SRCDIR=${srcpwd}
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2634 $as_echo "$SRCDIR" >&6; }
2636 # Parse the target field into something useful.
2638 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2639 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2642 aros_default_wbwidth=800
2643 aros_default_wbheight=600
2644 aros_default_wbdepth=4
2647 # The first step is to find the host binaries.
2648 # Check for a compiler.
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_CC+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 $as_echo "$CC" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2693 if test -z "$ac_cv_prog_CC"; then
2694 ac_ct_CC=$CC
2695 # Extract the first word of "gcc", so it can be a program name with args.
2696 set dummy gcc; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_ac_ct_CC="gcc"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2716 done
2717 done
2718 IFS=$as_save_IFS
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725 $as_echo "$ac_ct_CC" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2731 if test "x$ac_ct_CC" = x; then
2732 CC=""
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740 CC=$ac_ct_CC
2742 else
2743 CC="$ac_cv_prog_CC"
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}cc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_CC+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_CC="${ac_tool_prefix}cc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2769 done
2770 done
2771 IFS=$as_save_IFS
2775 CC=$ac_cv_prog_CC
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2787 if test -z "$CC"; then
2788 # Extract the first word of "cc", so it can be a program name with args.
2789 set dummy cc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 ac_prog_rejected=no
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2807 ac_prog_rejected=yes
2808 continue
2810 ac_cv_prog_CC="cc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2814 done
2815 done
2816 IFS=$as_save_IFS
2818 if test $ac_prog_rejected = yes; then
2819 # We found a bogon in the path, so make sure we never use it.
2820 set dummy $ac_cv_prog_CC
2821 shift
2822 if test $# != 0; then
2823 # We chose a different compiler from the bogus one.
2824 # However, it has the same basename, so the bogon will be chosen
2825 # first if we set CC to just the basename; use the full file name.
2826 shift
2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2832 CC=$ac_cv_prog_CC
2833 if test -n "$CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2835 $as_echo "$CC" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2843 if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 for ac_prog in cl.exe
2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2868 done
2869 done
2870 IFS=$as_save_IFS
2874 CC=$ac_cv_prog_CC
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2884 test -n "$CC" && break
2885 done
2887 if test -z "$CC"; then
2888 ac_ct_CC=$CC
2889 for ac_prog in cl.exe
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892 set dummy $ac_prog; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$ac_ct_CC"; then
2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_ac_ct_CC="$ac_prog"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2912 done
2913 done
2914 IFS=$as_save_IFS
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 $as_echo "$ac_ct_CC" >&6; }
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2928 test -n "$ac_ct_CC" && break
2929 done
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 CC=$ac_ct_CC
2947 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error "no acceptable C compiler found in \$PATH
2950 See \`config.log' for more details." "$LINENO" 5; }
2952 # Provide some information about the compiler.
2953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2954 set X $ac_compile
2955 ac_compiler=$2
2956 for ac_option in --version -v -V -qversion; do
2957 { { ac_try="$ac_compiler $ac_option >&5"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963 $as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2965 ac_status=$?
2966 if test -s conftest.err; then
2967 sed '10a\
2968 ... rest of stderr output deleted ...
2969 10q' conftest.err >conftest.er1
2970 cat conftest.er1 >&5
2972 rm -f conftest.er1 conftest.err
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }
2975 done
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2981 main ()
2985 return 0;
2987 _ACEOF
2988 ac_clean_files_save=$ac_clean_files
2989 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2990 # Try to create an executable without -o first, disregard a.out.
2991 # It will help us diagnose broken compilers, and finding out an intuition
2992 # of exeext.
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2994 $as_echo_n "checking whether the C compiler works... " >&6; }
2995 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2997 # The possible output files:
2998 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3000 ac_rmfiles=
3001 for ac_file in $ac_files
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3005 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3006 esac
3007 done
3008 rm -f $ac_rmfiles
3010 if { { ac_try="$ac_link_default"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_link_default") 2>&5
3018 ac_status=$?
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3022 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3023 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3024 # so that the user can short-circuit this test for compilers unknown to
3025 # Autoconf.
3026 for ac_file in $ac_files ''
3028 test -f "$ac_file" || continue
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032 [ab].out )
3033 # We found the default executable, but exeext='' is most
3034 # certainly right.
3035 break;;
3036 *.* )
3037 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3038 then :; else
3039 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3041 # We set ac_cv_exeext here because the later test for it is not
3042 # safe: cross compilers may not add the suffix if given an `-o'
3043 # argument, so we may need to know it at that point already.
3044 # Even if this section looks crufty: it has the advantage of
3045 # actually working.
3046 break;;
3048 break;;
3049 esac
3050 done
3051 test "$ac_cv_exeext" = no && ac_cv_exeext=
3053 else
3054 ac_file=''
3056 if test -z "$ac_file"; then :
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 $as_echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 { as_fn_set_status 77
3065 as_fn_error "C compiler cannot create executables
3066 See \`config.log' for more details." "$LINENO" 5; }; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3072 $as_echo_n "checking for C compiler default output file name... " >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3074 $as_echo "$ac_file" >&6; }
3075 ac_exeext=$ac_cv_exeext
3077 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3078 ac_clean_files=$ac_clean_files_save
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3080 $as_echo_n "checking for suffix of executables... " >&6; }
3081 if { { ac_try="$ac_link"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087 $as_echo "$ac_try_echo"; } >&5
3088 (eval "$ac_link") 2>&5
3089 ac_status=$?
3090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091 test $ac_status = 0; }; then :
3092 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3093 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3094 # work properly (i.e., refer to `conftest.exe'), while it won't with
3095 # `rm'.
3096 for ac_file in conftest.exe conftest conftest.*; do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3101 break;;
3102 * ) break;;
3103 esac
3104 done
3105 else
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 as_fn_error "cannot compute suffix of executables: cannot compile and link
3109 See \`config.log' for more details." "$LINENO" 5; }
3111 rm -f conftest conftest$ac_cv_exeext
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3113 $as_echo "$ac_cv_exeext" >&6; }
3115 rm -f conftest.$ac_ext
3116 EXEEXT=$ac_cv_exeext
3117 ac_exeext=$EXEEXT
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120 #include <stdio.h>
3122 main ()
3124 FILE *f = fopen ("conftest.out", "w");
3125 return ferror (f) || fclose (f) != 0;
3128 return 0;
3130 _ACEOF
3131 ac_clean_files="$ac_clean_files conftest.out"
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3135 $as_echo_n "checking whether we are cross compiling... " >&6; }
3136 if test "$cross_compiling" != yes; then
3137 { { ac_try="$ac_link"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link") 2>&5
3145 ac_status=$?
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }
3148 if { ac_try='./conftest$ac_cv_exeext'
3149 { { case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }; }; then
3159 cross_compiling=no
3160 else
3161 if test "$cross_compiling" = maybe; then
3162 cross_compiling=yes
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error "cannot run C compiled programs.
3167 If you meant to cross compile, use \`--host'.
3168 See \`config.log' for more details." "$LINENO" 5; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173 $as_echo "$cross_compiling" >&6; }
3175 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3176 ac_clean_files=$ac_clean_files_save
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3178 $as_echo_n "checking for suffix of object files... " >&6; }
3179 if test "${ac_cv_objext+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3186 main ()
3190 return 0;
3192 _ACEOF
3193 rm -f conftest.o conftest.obj
3194 if { { ac_try="$ac_compile"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_compile") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 for ac_file in conftest.o conftest.obj conftest.*; do
3206 test -f "$ac_file" || continue;
3207 case $ac_file in
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 break;;
3211 esac
3212 done
3213 else
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." "$LINENO" 5; }
3222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3225 $as_echo "$ac_cv_objext" >&6; }
3226 OBJEXT=$ac_cv_objext
3227 ac_objext=$OBJEXT
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3229 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3230 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3237 main ()
3239 #ifndef __GNUC__
3240 choke me
3241 #endif
3244 return 0;
3246 _ACEOF
3247 if ac_fn_c_try_compile "$LINENO"; then :
3248 ac_compiler_gnu=yes
3249 else
3250 ac_compiler_gnu=no
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3257 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3258 if test $ac_compiler_gnu = yes; then
3259 GCC=yes
3260 else
3261 GCC=
3263 ac_test_CFLAGS=${CFLAGS+set}
3264 ac_save_CFLAGS=$CFLAGS
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3266 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3267 if test "${ac_cv_prog_cc_g+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 ac_save_c_werror_flag=$ac_c_werror_flag
3271 ac_c_werror_flag=yes
3272 ac_cv_prog_cc_g=no
3273 CFLAGS="-g"
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3278 main ()
3282 return 0;
3284 _ACEOF
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_cv_prog_cc_g=yes
3287 else
3288 CFLAGS=""
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3293 main ()
3297 return 0;
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3302 else
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3304 CFLAGS="-g"
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3317 ac_cv_prog_cc_g=yes
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 ac_c_werror_flag=$ac_save_c_werror_flag
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3327 $as_echo "$ac_cv_prog_cc_g" >&6; }
3328 if test "$ac_test_CFLAGS" = set; then
3329 CFLAGS=$ac_save_CFLAGS
3330 elif test $ac_cv_prog_cc_g = yes; then
3331 if test "$GCC" = yes; then
3332 CFLAGS="-g -O2"
3333 else
3334 CFLAGS="-g"
3336 else
3337 if test "$GCC" = yes; then
3338 CFLAGS="-O2"
3339 else
3340 CFLAGS=
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3344 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3345 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3347 else
3348 ac_cv_prog_cc_c89=no
3349 ac_save_CC=$CC
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352 #include <stdarg.h>
3353 #include <stdio.h>
3354 #include <sys/types.h>
3355 #include <sys/stat.h>
3356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357 struct buf { int x; };
3358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359 static char *e (p, i)
3360 char **p;
3361 int i;
3363 return p[i];
3365 static char *f (char * (*g) (char **, int), char **p, ...)
3367 char *s;
3368 va_list v;
3369 va_start (v,p);
3370 s = g (p, va_arg (v,int));
3371 va_end (v);
3372 return s;
3375 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3376 function prototypes and stuff, but not '\xHH' hex character constants.
3377 These don't provoke an error unfortunately, instead are silently treated
3378 as 'x'. The following induces an error, until -std is added to get
3379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3380 array size at least. It's necessary to write '\x00'==0 to get something
3381 that's true only with -std. */
3382 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3384 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3385 inside strings and character constants. */
3386 #define FOO(x) 'x'
3387 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3389 int test (int i, double x);
3390 struct s1 {int (*f) (int a);};
3391 struct s2 {int (*f) (double a);};
3392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3393 int argc;
3394 char **argv;
3396 main ()
3398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3400 return 0;
3402 _ACEOF
3403 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3406 CC="$ac_save_CC $ac_arg"
3407 if ac_fn_c_try_compile "$LINENO"; then :
3408 ac_cv_prog_cc_c89=$ac_arg
3410 rm -f core conftest.err conftest.$ac_objext
3411 test "x$ac_cv_prog_cc_c89" != "xno" && break
3412 done
3413 rm -f conftest.$ac_ext
3414 CC=$ac_save_CC
3417 # AC_CACHE_VAL
3418 case "x$ac_cv_prog_cc_c89" in
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3421 $as_echo "none needed" >&6; } ;;
3422 xno)
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424 $as_echo "unsupported" >&6; } ;;
3426 CC="$CC $ac_cv_prog_cc_c89"
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3429 esac
3430 if test "x$ac_cv_prog_cc_c89" != xno; then :
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440 case $ac_cv_prog_cc_stdc in #(
3441 no) :
3442 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3443 *) :
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3445 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3446 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 ac_cv_prog_cc_c99=no
3450 ac_save_CC=$CC
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453 #include <stdarg.h>
3454 #include <stdbool.h>
3455 #include <stdlib.h>
3456 #include <wchar.h>
3457 #include <stdio.h>
3459 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3460 #define debug(...) fprintf (stderr, __VA_ARGS__)
3461 #define showlist(...) puts (#__VA_ARGS__)
3462 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3463 static void
3464 test_varargs_macros (void)
3466 int x = 1234;
3467 int y = 5678;
3468 debug ("Flag");
3469 debug ("X = %d\n", x);
3470 showlist (The first, second, and third items.);
3471 report (x>y, "x is %d but y is %d", x, y);
3474 // Check long long types.
3475 #define BIG64 18446744073709551615ull
3476 #define BIG32 4294967295ul
3477 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3478 #if !BIG_OK
3479 your preprocessor is broken;
3480 #endif
3481 #if BIG_OK
3482 #else
3483 your preprocessor is broken;
3484 #endif
3485 static long long int bignum = -9223372036854775807LL;
3486 static unsigned long long int ubignum = BIG64;
3488 struct incomplete_array
3490 int datasize;
3491 double data[];
3494 struct named_init {
3495 int number;
3496 const wchar_t *name;
3497 double average;
3500 typedef const char *ccp;
3502 static inline int
3503 test_restrict (ccp restrict text)
3505 // See if C++-style comments work.
3506 // Iterate through items via the restricted pointer.
3507 // Also check for declarations in for loops.
3508 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3509 continue;
3510 return 0;
3513 // Check varargs and va_copy.
3514 static void
3515 test_varargs (const char *format, ...)
3517 va_list args;
3518 va_start (args, format);
3519 va_list args_copy;
3520 va_copy (args_copy, args);
3522 const char *str;
3523 int number;
3524 float fnumber;
3526 while (*format)
3528 switch (*format++)
3530 case 's': // string
3531 str = va_arg (args_copy, const char *);
3532 break;
3533 case 'd': // int
3534 number = va_arg (args_copy, int);
3535 break;
3536 case 'f': // float
3537 fnumber = va_arg (args_copy, double);
3538 break;
3539 default:
3540 break;
3543 va_end (args_copy);
3544 va_end (args);
3548 main ()
3551 // Check bool.
3552 _Bool success = false;
3554 // Check restrict.
3555 if (test_restrict ("String literal") == 0)
3556 success = true;
3557 char *restrict newvar = "Another string";
3559 // Check varargs.
3560 test_varargs ("s, d' f .", "string", 65, 34.234);
3561 test_varargs_macros ();
3563 // Check flexible array members.
3564 struct incomplete_array *ia =
3565 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3566 ia->datasize = 10;
3567 for (int i = 0; i < ia->datasize; ++i)
3568 ia->data[i] = i * 1.234;
3570 // Check named initializers.
3571 struct named_init ni = {
3572 .number = 34,
3573 .name = L"Test wide string",
3574 .average = 543.34343,
3577 ni.number = 58;
3579 int dynamic_array[ni.number];
3580 dynamic_array[ni.number - 1] = 543;
3582 // work around unused variable warnings
3583 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3584 || dynamic_array[ni.number - 1] != 543);
3587 return 0;
3589 _ACEOF
3590 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3592 CC="$ac_save_CC $ac_arg"
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_c99=$ac_arg
3596 rm -f core conftest.err conftest.$ac_objext
3597 test "x$ac_cv_prog_cc_c99" != "xno" && break
3598 done
3599 rm -f conftest.$ac_ext
3600 CC=$ac_save_CC
3603 # AC_CACHE_VAL
3604 case "x$ac_cv_prog_cc_c99" in
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3607 $as_echo "none needed" >&6; } ;;
3608 xno)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3610 $as_echo "unsupported" >&6; } ;;
3612 CC="$CC $ac_cv_prog_cc_c99"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3614 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3615 esac
3616 if test "x$ac_cv_prog_cc_c99" != xno; then :
3617 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3620 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3621 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 ac_cv_prog_cc_c89=no
3625 ac_save_CC=$CC
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636 char **p;
3637 int i;
3639 return p[i];
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3643 char *s;
3644 va_list v;
3645 va_start (v,p);
3646 s = g (p, va_arg (v,int));
3647 va_end (v);
3648 return s;
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661 inside strings and character constants. */
3662 #define FOO(x) 'x'
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 int argc;
3670 char **argv;
3672 main ()
3674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3676 return 0;
3678 _ACEOF
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 CC="$ac_save_CC $ac_arg"
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_c89=$ac_arg
3686 rm -f core conftest.err conftest.$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3697 $as_echo "none needed" >&6; } ;;
3698 xno)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3700 $as_echo "unsupported" >&6; } ;;
3702 CC="$CC $ac_cv_prog_cc_c89"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3704 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3708 else
3709 ac_cv_prog_cc_stdc=no
3714 esac
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3716 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3717 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3721 case $ac_cv_prog_cc_stdc in #(
3722 no) :
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;; #(
3725 '') :
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727 $as_echo "none needed" >&6; } ;; #(
3728 *) :
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3730 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3731 esac
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3739 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3740 # On Suns, sometimes $CPP names a directory.
3741 if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3744 if test -z "$CPP"; then
3745 if test "${ac_cv_prog_CPP+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 # Double quotes because CPP needs to be expanded
3749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3751 ac_preproc_ok=false
3752 for ac_c_preproc_warn_flag in '' yes
3754 # Use a header file that comes with gcc, so configuring glibc
3755 # with a fresh cross-compiler works.
3756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757 # <limits.h> exists even on freestanding compilers.
3758 # On the NeXT, cc -E runs the code through the compiler's parser,
3759 # not just through cpp. "Syntax error" is here to catch this case.
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767 Syntax error
3768 _ACEOF
3769 if ac_fn_c_try_cpp "$LINENO"; then :
3771 else
3772 # Broken: fails on valid input.
3773 continue
3775 rm -f conftest.err conftest.$ac_ext
3777 # OK, works on sane cases. Now check whether nonexistent headers
3778 # can be detected and how.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #include <ac_nonexistent.h>
3782 _ACEOF
3783 if ac_fn_c_try_cpp "$LINENO"; then :
3784 # Broken: success on invalid input.
3785 continue
3786 else
3787 # Passes both tests.
3788 ac_preproc_ok=:
3789 break
3791 rm -f conftest.err conftest.$ac_ext
3793 done
3794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3795 rm -f conftest.err conftest.$ac_ext
3796 if $ac_preproc_ok; then :
3797 break
3800 done
3801 ac_cv_prog_CPP=$CPP
3804 CPP=$ac_cv_prog_CPP
3805 else
3806 ac_cv_prog_CPP=$CPP
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3809 $as_echo "$CPP" >&6; }
3810 ac_preproc_ok=false
3811 for ac_c_preproc_warn_flag in '' yes
3813 # Use a header file that comes with gcc, so configuring glibc
3814 # with a fresh cross-compiler works.
3815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816 # <limits.h> exists even on freestanding compilers.
3817 # On the NeXT, cc -E runs the code through the compiler's parser,
3818 # not just through cpp. "Syntax error" is here to catch this case.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #ifdef __STDC__
3822 # include <limits.h>
3823 #else
3824 # include <assert.h>
3825 #endif
3826 Syntax error
3827 _ACEOF
3828 if ac_fn_c_try_cpp "$LINENO"; then :
3830 else
3831 # Broken: fails on valid input.
3832 continue
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #include <ac_nonexistent.h>
3841 _ACEOF
3842 if ac_fn_c_try_cpp "$LINENO"; then :
3843 # Broken: success on invalid input.
3844 continue
3845 else
3846 # Passes both tests.
3847 ac_preproc_ok=:
3848 break
3850 rm -f conftest.err conftest.$ac_ext
3852 done
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.err conftest.$ac_ext
3855 if $ac_preproc_ok; then :
3857 else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3861 See \`config.log' for more details." "$LINENO" 5; }
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871 # Check for a compatible awk
3872 for ac_prog in gawk nawk
3874 # Extract the first word of "$ac_prog", so it can be a program name with args.
3875 set dummy $ac_prog; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_AWK+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$AWK"; then
3882 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_AWK="$ac_prog"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3895 done
3896 done
3897 IFS=$as_save_IFS
3901 AWK=$ac_cv_prog_AWK
3902 if test -n "$AWK"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3904 $as_echo "$AWK" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3911 test -n "$AWK" && break
3912 done
3914 if test "$AWK" = ""; then
3915 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3917 # Extract the first word of "mmake", so it can be a program name with args.
3918 set dummy mmake; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -n "$MMAKE"; then
3925 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 ac_cv_prog_MMAKE="mmake "
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3938 done
3939 done
3940 IFS=$as_save_IFS
3944 MMAKE=$ac_cv_prog_MMAKE
3945 if test -n "$MMAKE"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3947 $as_echo "$MMAKE" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3955 # Perform some default variable assignments. Note all of these will be
3956 # Regenerated from the script, so there is no need to cache them.
3958 aros_host_cc="$CC"
3959 if test "$GCC" = "yes"; then
3960 aros_gcc_ld=`$CC -print-prog-name=ld`
3961 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3962 set dummy `basename $aros_gcc_ld`; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 case $aros_host_ld in
3969 [\\/]* | ?:[\\/]*)
3970 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in `dirname $aros_gcc_ld`
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3986 IFS=$as_save_IFS
3989 esac
3991 aros_host_ld=$ac_cv_path_aros_host_ld
3992 if test -n "$aros_host_ld"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3994 $as_echo "$aros_host_ld" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4002 if test "$aros_host_ld" = ""; then
4003 # Extract the first word of "ld", so it can be a program name with args.
4004 set dummy ld; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 case $aros_host_ld in
4011 [\\/]* | ?:[\\/]*)
4012 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4028 IFS=$as_save_IFS
4031 esac
4033 aros_host_ld=$ac_cv_path_aros_host_ld
4034 if test -n "$aros_host_ld"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4036 $as_echo "$aros_host_ld" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4044 if test "$aros_host_ld" = ""; then
4045 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4047 aros_host_make="make"
4048 aros_host_cflags=$CFLAGS
4049 aros_host_ldflags=$LDFLAGS
4050 aros_host_debug="-g -O0"
4051 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4052 aros_host_mkargs="--no-print-directory"
4053 aros_host_incl="/usr/include"
4054 aros_host_exe_suffix="$EXEEXT"
4055 aros_host_lib_suffix=""
4057 for ac_prog in aclocal aclocal19 aclocal-1.9
4059 # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -n "$aros_host_aclocal"; then
4067 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4076 ac_cv_prog_aros_host_aclocal="$ac_prog"
4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 break 2
4080 done
4081 done
4082 IFS=$as_save_IFS
4086 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4087 if test -n "$aros_host_aclocal"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4089 $as_echo "$aros_host_aclocal" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4096 test -n "$aros_host_aclocal" && break
4097 done
4099 for ac_prog in autoconf autoconf259 autoconf253
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$aros_host_autoconf"; then
4109 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_aros_host_autoconf="$ac_prog"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
4128 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4129 if test -n "$aros_host_autoconf"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4131 $as_echo "$aros_host_autoconf" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4138 test -n "$aros_host_autoconf" && break
4139 done
4141 for ac_prog in autoheader autoheader259 autoheader253
4143 # Extract the first word of "$ac_prog", so it can be a program name with args.
4144 set dummy $ac_prog; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -n "$aros_host_autoheader"; then
4151 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_aros_host_autoheader="$ac_prog"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 break 2
4164 done
4165 done
4166 IFS=$as_save_IFS
4170 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4171 if test -n "$aros_host_autoheader"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4173 $as_echo "$aros_host_autoheader" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4180 test -n "$aros_host_autoheader" && break
4181 done
4183 for ac_prog in automake automake19 automake-1.9
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$aros_host_automake"; then
4193 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_aros_host_automake="$ac_prog"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4206 done
4207 done
4208 IFS=$as_save_IFS
4212 aros_host_automake=$ac_cv_prog_aros_host_automake
4213 if test -n "$aros_host_automake"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4215 $as_echo "$aros_host_automake" >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4222 test -n "$aros_host_automake" && break
4223 done
4226 if test "$aros_host_aclocal" = ""; then
4227 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4229 if test "$aros_host_automake" = ""; then
4230 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4233 case "$aros_host_cc" in
4234 *gcc*)
4235 aros_host_cc_pipe="-pipe"
4237 icc)
4238 aros_host_cc_pipe=""
4241 aros_host_cc_pipe=""
4243 esac
4245 aros_kernel_cc_includes=""
4246 aros_target_cc_includes=""
4248 # This is the main host configuration section. It is where the host
4249 # can change the values of any variables it needs to change. We do
4250 # not look at anything that compiles to the target yet, we'll get
4251 # to that later.
4253 case "$host_os" in
4254 aros*)
4255 aros_host_arch="aros"
4256 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4257 case "$host_cpu" in
4258 *i?86*)
4259 aros_host_cpu="i386"
4261 *x86_64*)
4262 aros_host_cpu="x86_64"
4264 *powerpc*)
4265 aros_host_cpu="ppc"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4269 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4270 aros_host_cpu="$host_cpu"
4272 esac
4275 linux*)
4276 aros_host_arch="linux"
4277 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4278 case "$host_cpu" in
4279 *i?86*)
4280 aros_host_cpu="i386"
4282 *x86_64*)
4283 aros_host_cpu="x86_64"
4285 *m68k*)
4286 aros_host_cpu="m68k"
4288 *powerpc*)
4289 aros_host_cpu="ppc"
4291 *arm*)
4292 aros_host_cpu="arm"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4296 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4297 aros_host_cpu="$host_cpu"
4299 esac
4302 freebsd*)
4303 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4304 aros_host_make="gmake"
4305 aros_host_arch="freebsd"
4306 aros_host_cpu="i386"
4308 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4310 case $host_os in
4311 freebsd[234]*)
4312 aros_object_format="elf_i386"
4316 aros_object_format="elf_i386_fbsd"
4318 esac
4322 darwin*)
4323 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4324 aros_host_arch="darwin"
4325 case "$host_cpu" in
4326 *i?86*)
4327 aros_host_cpu="i386"
4329 *x86_64*)
4330 aros_host_cpu="x86_64"
4332 *powerpc*)
4333 aros_host_cpu="ppc"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4337 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4338 aros_host_cpu="$host_cpu"
4340 esac
4342 aros_host_ldflags="$aros_host_ldflags -liconv"
4346 dragonfly*)
4347 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4348 aros_host_make="gmake"
4349 aros_host_arch="dragonfly"
4350 case $host_cpu in
4351 *i?86*)
4352 aros_host_cpu="i386"
4354 *amd64*)
4355 aros_host_cpu="x86_64"
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4359 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4360 aros_host_cpu="$host_cpu"
4362 esac
4365 netbsd*)
4366 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4367 aros_host_make="gmake"
4368 aros_host_arch="netbsd"
4369 case "$host_cpu" in
4370 *i?86*)
4371 aros_host_cpu="i386"
4373 *m68k*)
4374 aros_host_cpu="m68k"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4378 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4379 aros_host_cpu="$host_cpu"
4381 esac
4382 aros_host_lib_suffix=".0.0"
4385 openbsd*)
4386 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4387 aros_host_make="gmake"
4388 aros_host_arch="openbsd"
4389 case "$host_cpu" in
4390 *i?86*)
4391 aros_host_cpu="i386"
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4395 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4396 aros_host_cpu="$host_cpu"
4398 esac
4401 solaris*)
4402 aros_host_arch="solaris"
4403 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4404 case "$host_cpu" in
4405 *i?86*)
4406 aros_host_cpu="i386"
4408 *sparc*)
4409 aros_host_cpu="sparc"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4413 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4414 aros_host_cpu="$host_cpu"
4416 esac
4419 morphos*)
4420 aros_host_arch="morphos"
4421 aros_host_cpu="ppc"
4424 amiga*)
4425 aros_host_arch="amiga"
4426 SORT="/gg/bin/sort"
4427 TEST="/gg/bin/test"
4428 UNIQ="/gg/bin/uniq"
4429 FOR="for"
4430 TOUCH="/gg/bin/touch"
4431 case "$host_cpu" in
4432 *m68k*)
4433 aros_host_cpu="m68k"
4435 *powerpc*)
4436 aros_host_cpu="ppc"
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4440 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4441 aros_host_cpu="$host_cpu"
4443 esac
4446 cygwin*)
4447 aros_host_arch="cygwin"
4448 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4449 android_build_os="windows"
4450 android_tool="android.bat"
4451 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4453 case "$host_cpu" in
4454 *i?86*)
4455 aros_host_cpu="i386"
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4459 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4460 aros_host_cpu="$host_cpu"
4462 esac
4465 mingw32*)
4466 aros_host_arch="mingw32"
4467 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4468 android_build_os="windows"
4469 android_tool="android.bat"
4470 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4472 case "$host_cpu" in
4473 *i?86*)
4474 aros_host_cpu="i386"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4478 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4479 aros_host_cpu="$host_cpu"
4481 esac
4484 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4486 esac
4488 # Extract the first word of "ar", so it can be a program name with args.
4489 set dummy ar; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test -n "$aros_host_ar"; then
4496 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_aros_host_ar="ar cr"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4511 IFS=$as_save_IFS
4515 aros_host_ar=$ac_cv_prog_aros_host_ar
4516 if test -n "$aros_host_ar"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4518 $as_echo "$aros_host_ar" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4525 if test "$aros_host_ar" = ""; then
4526 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4528 # Extract the first word of "ranlib", so it can be a program name with args.
4529 set dummy ranlib; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$aros_host_ranlib"; then
4536 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_aros_host_ranlib="ranlib "
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4549 done
4550 done
4551 IFS=$as_save_IFS
4555 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4556 if test -n "$aros_host_ranlib"; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4558 $as_echo "$aros_host_ranlib" >&6; }
4559 else
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4565 if test "$aros_host_ranlib" = ""; then
4566 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4568 # Extract the first word of "strip", so it can be a program name with args.
4569 set dummy strip; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$aros_host_strip"; then
4576 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_aros_host_strip="strip "
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4589 done
4590 done
4591 IFS=$as_save_IFS
4595 aros_host_strip=$ac_cv_prog_aros_host_strip
4596 if test -n "$aros_host_strip"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4598 $as_echo "$aros_host_strip" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4605 if test "$aros_host_strip" = ""; then
4606 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4609 # Extract the first word of "rm", so it can be a program name with args.
4610 set dummy rm; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_RM+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$RM"; then
4617 ac_cv_prog_RM="$RM" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626 ac_cv_prog_RM="rm -rf"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4630 done
4631 done
4632 IFS=$as_save_IFS
4636 RM=$ac_cv_prog_RM
4637 if test -n "$RM"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4639 $as_echo "$RM" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4646 if test "$RM" = ""; then
4647 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4649 # Extract the first word of "cp", so it can be a program name with args.
4650 set dummy cp; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_CP+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$CP"; then
4657 ac_cv_prog_CP="$CP" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_CP="cp "
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 CP=$ac_cv_prog_CP
4677 if test -n "$CP"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4679 $as_echo "$CP" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4686 if test "$CP" = ""; then
4687 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4689 # Extract the first word of "mv", so it can be a program name with args.
4690 set dummy mv; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if test "${ac_cv_prog_MV+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if test -n "$MV"; then
4697 ac_cv_prog_MV="$MV" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_MV="mv "
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4710 done
4711 done
4712 IFS=$as_save_IFS
4716 MV=$ac_cv_prog_MV
4717 if test -n "$MV"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4719 $as_echo "$MV" >&6; }
4720 else
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4726 if test "$MV" = ""; then
4727 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4729 # Extract the first word of "echo", so it can be a program name with args.
4730 set dummy echo; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_ECHO+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 if test -n "$ECHO"; then
4737 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ECHO="echo "
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4750 done
4751 done
4752 IFS=$as_save_IFS
4756 ECHO=$ac_cv_prog_ECHO
4757 if test -n "$ECHO"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4759 $as_echo "$ECHO" >&6; }
4760 else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4766 if test "$ECHO" = ""; then
4767 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4769 # Extract the first word of "mkdir", so it can be a program name with args.
4770 set dummy mkdir; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$MKDIR"; then
4777 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_MKDIR="mkdir -p"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 MKDIR=$ac_cv_prog_MKDIR
4797 if test -n "$MKDIR"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4799 $as_echo "$MKDIR" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4806 if test "$MKDIR" = ""; then
4807 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4809 # Extract the first word of "touch", so it can be a program name with args.
4810 set dummy touch; ac_word=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$TOUCH"; then
4817 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_TOUCH="touch "
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 TOUCH=$ac_cv_prog_TOUCH
4837 if test -n "$TOUCH"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4839 $as_echo "$TOUCH" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 if test "$TOUCH" = ""; then
4847 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4849 # Extract the first word of "sort", so it can be a program name with args.
4850 set dummy sort; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_SORT+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$SORT"; then
4857 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_SORT="sort "
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 SORT=$ac_cv_prog_SORT
4877 if test -n "$SORT"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4879 $as_echo "$SORT" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 if test "$SORT" = ""; then
4887 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4889 # Extract the first word of "uniq", so it can be a program name with args.
4890 set dummy uniq; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$UNIQ"; then
4897 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_UNIQ="uniq "
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 UNIQ=$ac_cv_prog_UNIQ
4917 if test -n "$UNIQ"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4919 $as_echo "$UNIQ" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "$UNIQ" = ""; then
4927 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4929 # Extract the first word of "true", so it can be a program name with args.
4930 set dummy true; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_NOP+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$NOP"; then
4937 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_NOP="true "
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 NOP=$ac_cv_prog_NOP
4957 if test -n "$NOP"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4959 $as_echo "$NOP" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4966 if test "$NOP" = ""; then
4967 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4969 # Extract the first word of "cat", so it can be a program name with args.
4970 set dummy cat; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_CAT+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$CAT"; then
4977 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_CAT="cat "
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 CAT=$ac_cv_prog_CAT
4997 if test -n "$CAT"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4999 $as_echo "$CAT" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5006 if test "$CAT" = ""; then
5007 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5009 # Extract the first word of "bison", so it can be a program name with args.
5010 set dummy bison; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if test "${ac_cv_prog_BISON+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$BISON"; then
5017 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_BISON="bison "
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5036 BISON=$ac_cv_prog_BISON
5037 if test -n "$BISON"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5039 $as_echo "$BISON" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 if test "$BISON" = ""; then
5047 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5049 # Extract the first word of "flex", so it can be a program name with args.
5050 set dummy flex; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if test "${ac_cv_prog_FLEX+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 if test -n "$FLEX"; then
5057 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_FLEX="flex "
5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5070 done
5071 done
5072 IFS=$as_save_IFS
5076 FLEX=$ac_cv_prog_FLEX
5077 if test -n "$FLEX"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5079 $as_echo "$FLEX" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5086 if test "$FLEX" = ""; then
5087 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5089 # Extract the first word of "pngtopnm", so it can be a program name with args.
5090 set dummy pngtopnm; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$PNGTOPNM"; then
5097 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_PNGTOPNM="pngtopnm "
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5117 if test -n "$PNGTOPNM"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5119 $as_echo "$PNGTOPNM" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 if test "$PNGTOPNM" = ""; then
5127 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5129 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5130 set dummy ppmtoilbm; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$PPMTOILBM"; then
5137 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5157 if test -n "$PPMTOILBM"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5159 $as_echo "$PPMTOILBM" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 if test "$PPMTOILBM" = ""; then
5167 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5169 # Extract the first word of "sed", so it can be a program name with args.
5170 set dummy sed; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_SED+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$SED"; then
5177 ac_cv_prog_SED="$SED" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_SED="sed "
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 SED=$ac_cv_prog_SED
5197 if test -n "$SED"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5199 $as_echo "$SED" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 if test "$SED" = ""; then
5207 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5209 # Extract the first word of "chmod", so it can be a program name with args.
5210 set dummy chmod; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$CHMOD"; then
5217 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_CHMOD="chmod "
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5230 done
5231 done
5232 IFS=$as_save_IFS
5236 CHMOD=$ac_cv_prog_CHMOD
5237 if test -n "$CHMOD"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5239 $as_echo "$CHMOD" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5246 if test "$CHMOD" = ""; then
5247 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5249 # Extract the first word of "patch", so it can be a program name with args.
5250 set dummy patch; ac_word=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_PATCH+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -n "$PATCH"; then
5257 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_PATCH="patch "
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5270 done
5271 done
5272 IFS=$as_save_IFS
5276 PATCH=$ac_cv_prog_PATCH
5277 if test -n "$PATCH"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5279 $as_echo "$PATCH" >&6; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5286 if test "$PATCH" = ""; then
5287 as_fn_error "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5294 if test -n "$PYTHON"; then
5295 # If the user set $PYTHON, use it and don't search something else.
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5297 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5298 prog="import sys, string
5299 # split strings by '.' and convert to numeric. Append some zeros
5300 # because we need at least 4 digits for the hex conversion.
5301 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5302 minverhex = 0
5303 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5304 sys.exit(sys.hexversion < minverhex)"
5305 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5306 ($PYTHON -c "$prog") >&5 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; then :
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5312 else
5313 as_fn_error "too old" "$LINENO" 5
5315 am_display_PYTHON=$PYTHON
5316 else
5317 # Otherwise, try each interpreter until we find one that satisfies
5318 # VERSION.
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5320 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5321 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5325 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
5326 test "$am_cv_pathless_PYTHON" = none && break
5327 prog="import sys, string
5328 # split strings by '.' and convert to numeric. Append some zeros
5329 # because we need at least 4 digits for the hex conversion.
5330 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5331 minverhex = 0
5332 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5333 sys.exit(sys.hexversion < minverhex)"
5334 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5335 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then :
5339 break
5341 done
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5344 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5345 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5346 if test "$am_cv_pathless_PYTHON" = none; then
5347 PYTHON=:
5348 else
5349 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5350 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_path_PYTHON+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 case $PYTHON in
5357 [\\/]* | ?:[\\/]*)
5358 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5377 esac
5379 PYTHON=$ac_cv_path_PYTHON
5380 if test -n "$PYTHON"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5382 $as_echo "$PYTHON" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5390 am_display_PYTHON=$am_cv_pathless_PYTHON
5394 if test "$PYTHON" = :; then
5395 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5396 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5400 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5401 if test "${am_cv_python_version+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5407 $as_echo "$am_cv_python_version" >&6; }
5408 PYTHON_VERSION=$am_cv_python_version
5412 PYTHON_PREFIX='${prefix}'
5414 PYTHON_EXEC_PREFIX='${exec_prefix}'
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5419 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5420 if test "${am_cv_python_platform+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5426 $as_echo "$am_cv_python_platform" >&6; }
5427 PYTHON_PLATFORM=$am_cv_python_platform
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5433 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5434 if test "${am_cv_python_pythondir+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5438 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5441 $as_echo "$am_cv_python_pythondir" >&6; }
5442 pythondir=$am_cv_python_pythondir
5446 pkgpythondir=\${pythondir}/$PACKAGE
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5450 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5451 if test "${am_cv_python_pyexecdir+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5455 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5458 $as_echo "$am_cv_python_pyexecdir" >&6; }
5459 pyexecdir=$am_cv_python_pyexecdir
5463 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5471 FOR=for
5473 IF=if
5475 TEST=test
5477 CMP=cmp
5481 # Check for some includes for the X11 HIDD and the kernel
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5485 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5486 if test "${ac_cv_path_GREP+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -z "$GREP"; then
5490 ac_path_GREP_found=false
5491 # Loop through the user's path and test for each of PROGNAME-LIST
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_prog in grep ggrep; do
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5500 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5501 # Check for GNU ac_path_GREP and select it if it is found.
5502 # Check for GNU $ac_path_GREP
5503 case `"$ac_path_GREP" --version 2>&1` in
5504 *GNU*)
5505 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5507 ac_count=0
5508 $as_echo_n 0123456789 >"conftest.in"
5509 while :
5511 cat "conftest.in" "conftest.in" >"conftest.tmp"
5512 mv "conftest.tmp" "conftest.in"
5513 cp "conftest.in" "conftest.nl"
5514 $as_echo 'GREP' >> "conftest.nl"
5515 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5517 as_fn_arith $ac_count + 1 && ac_count=$as_val
5518 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5519 # Best one so far, save it but keep looking for a better one
5520 ac_cv_path_GREP="$ac_path_GREP"
5521 ac_path_GREP_max=$ac_count
5523 # 10*(2^10) chars as input seems more than enough
5524 test $ac_count -gt 10 && break
5525 done
5526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5527 esac
5529 $ac_path_GREP_found && break 3
5530 done
5531 done
5532 done
5533 IFS=$as_save_IFS
5534 if test -z "$ac_cv_path_GREP"; then
5535 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537 else
5538 ac_cv_path_GREP=$GREP
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5543 $as_echo "$ac_cv_path_GREP" >&6; }
5544 GREP="$ac_cv_path_GREP"
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5548 $as_echo_n "checking for egrep... " >&6; }
5549 if test "${ac_cv_path_EGREP+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5553 then ac_cv_path_EGREP="$GREP -E"
5554 else
5555 if test -z "$EGREP"; then
5556 ac_path_EGREP_found=false
5557 # Loop through the user's path and test for each of PROGNAME-LIST
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_prog in egrep; do
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5567 # Check for GNU ac_path_EGREP and select it if it is found.
5568 # Check for GNU $ac_path_EGREP
5569 case `"$ac_path_EGREP" --version 2>&1` in
5570 *GNU*)
5571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5573 ac_count=0
5574 $as_echo_n 0123456789 >"conftest.in"
5575 while :
5577 cat "conftest.in" "conftest.in" >"conftest.tmp"
5578 mv "conftest.tmp" "conftest.in"
5579 cp "conftest.in" "conftest.nl"
5580 $as_echo 'EGREP' >> "conftest.nl"
5581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583 as_fn_arith $ac_count + 1 && ac_count=$as_val
5584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5585 # Best one so far, save it but keep looking for a better one
5586 ac_cv_path_EGREP="$ac_path_EGREP"
5587 ac_path_EGREP_max=$ac_count
5589 # 10*(2^10) chars as input seems more than enough
5590 test $ac_count -gt 10 && break
5591 done
5592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5595 $ac_path_EGREP_found && break 3
5596 done
5597 done
5598 done
5599 IFS=$as_save_IFS
5600 if test -z "$ac_cv_path_EGREP"; then
5601 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5603 else
5604 ac_cv_path_EGREP=$EGREP
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5610 $as_echo "$ac_cv_path_EGREP" >&6; }
5611 EGREP="$ac_cv_path_EGREP"
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5615 $as_echo_n "checking for ANSI C header files... " >&6; }
5616 if test "${ac_cv_header_stdc+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <stdlib.h>
5622 #include <stdarg.h>
5623 #include <string.h>
5624 #include <float.h>
5627 main ()
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 ac_cv_header_stdc=yes
5636 else
5637 ac_cv_header_stdc=no
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <string.h>
5647 _ACEOF
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "memchr" >/dev/null 2>&1; then :
5651 else
5652 ac_cv_header_stdc=no
5654 rm -f conftest*
5658 if test $ac_cv_header_stdc = yes; then
5659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <stdlib.h>
5664 _ACEOF
5665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "free" >/dev/null 2>&1; then :
5668 else
5669 ac_cv_header_stdc=no
5671 rm -f conftest*
5675 if test $ac_cv_header_stdc = yes; then
5676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5677 if test "$cross_compiling" = yes; then :
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <ctype.h>
5683 #include <stdlib.h>
5684 #if ((' ' & 0x0FF) == 0x020)
5685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5687 #else
5688 # define ISLOWER(c) \
5689 (('a' <= (c) && (c) <= 'i') \
5690 || ('j' <= (c) && (c) <= 'r') \
5691 || ('s' <= (c) && (c) <= 'z'))
5692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5693 #endif
5695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5697 main ()
5699 int i;
5700 for (i = 0; i < 256; i++)
5701 if (XOR (islower (i), ISLOWER (i))
5702 || toupper (i) != TOUPPER (i))
5703 return 2;
5704 return 0;
5706 _ACEOF
5707 if ac_fn_c_try_run "$LINENO"; then :
5709 else
5710 ac_cv_header_stdc=no
5712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713 conftest.$ac_objext conftest.beam conftest.$ac_ext
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5719 $as_echo "$ac_cv_header_stdc" >&6; }
5720 if test $ac_cv_header_stdc = yes; then
5722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5728 inttypes.h stdint.h unistd.h
5729 do :
5730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5733 eval as_val=\$$as_ac_Header
5734 if test "x$as_val" = x""yes; then :
5735 cat >>confdefs.h <<_ACEOF
5736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5741 done
5744 for ac_header in sys/ipc.h sys/shm.h \
5745 sys/mmap.h sys/mman.h sysexits.h \
5746 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5748 do :
5749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5751 eval as_val=\$$as_ac_Header
5752 if test "x$as_val" = x""yes; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755 _ACEOF
5759 done
5762 for ac_header in sys/mount.h
5763 do :
5764 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5766 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_SYS_MOUNT_H 1
5769 _ACEOF
5773 done
5776 ac_header_dirent=no
5777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5778 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5780 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 #include <sys/types.h>
5787 #include <$ac_hdr>
5790 main ()
5792 if ((DIR *) 0)
5793 return 0;
5795 return 0;
5797 _ACEOF
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 eval "$as_ac_Header=yes"
5800 else
5801 eval "$as_ac_Header=no"
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 eval ac_res=\$$as_ac_Header
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5807 $as_echo "$ac_res" >&6; }
5808 eval as_val=\$$as_ac_Header
5809 if test "x$as_val" = x""yes; then :
5810 cat >>confdefs.h <<_ACEOF
5811 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5812 _ACEOF
5814 ac_header_dirent=$ac_hdr; break
5817 done
5818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5819 if test $ac_header_dirent = dirent.h; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5821 $as_echo_n "checking for library containing opendir... " >&6; }
5822 if test "${ac_cv_search_opendir+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 ac_func_search_save_LIBS=$LIBS
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5829 /* Override any GCC internal prototype to avoid an error.
5830 Use char because int might match the return type of a GCC
5831 builtin and then its argument prototype would still apply. */
5832 #ifdef __cplusplus
5833 extern "C"
5834 #endif
5835 char opendir ();
5837 main ()
5839 return opendir ();
5841 return 0;
5843 _ACEOF
5844 for ac_lib in '' dir; do
5845 if test -z "$ac_lib"; then
5846 ac_res="none required"
5847 else
5848 ac_res=-l$ac_lib
5849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 ac_cv_search_opendir=$ac_res
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext
5856 if test "${ac_cv_search_opendir+set}" = set; then :
5857 break
5859 done
5860 if test "${ac_cv_search_opendir+set}" = set; then :
5862 else
5863 ac_cv_search_opendir=no
5865 rm conftest.$ac_ext
5866 LIBS=$ac_func_search_save_LIBS
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5869 $as_echo "$ac_cv_search_opendir" >&6; }
5870 ac_res=$ac_cv_search_opendir
5871 if test "$ac_res" != no; then :
5872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5876 else
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5878 $as_echo_n "checking for library containing opendir... " >&6; }
5879 if test "${ac_cv_search_opendir+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 ac_func_search_save_LIBS=$LIBS
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5886 /* Override any GCC internal prototype to avoid an error.
5887 Use char because int might match the return type of a GCC
5888 builtin and then its argument prototype would still apply. */
5889 #ifdef __cplusplus
5890 extern "C"
5891 #endif
5892 char opendir ();
5894 main ()
5896 return opendir ();
5898 return 0;
5900 _ACEOF
5901 for ac_lib in '' x; do
5902 if test -z "$ac_lib"; then
5903 ac_res="none required"
5904 else
5905 ac_res=-l$ac_lib
5906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5908 if ac_fn_c_try_link "$LINENO"; then :
5909 ac_cv_search_opendir=$ac_res
5911 rm -f core conftest.err conftest.$ac_objext \
5912 conftest$ac_exeext
5913 if test "${ac_cv_search_opendir+set}" = set; then :
5914 break
5916 done
5917 if test "${ac_cv_search_opendir+set}" = set; then :
5919 else
5920 ac_cv_search_opendir=no
5922 rm conftest.$ac_ext
5923 LIBS=$ac_func_search_save_LIBS
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5926 $as_echo "$ac_cv_search_opendir" >&6; }
5927 ac_res=$ac_cv_search_opendir
5928 if test "$ac_res" != no; then :
5929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5936 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5937 if test "${ac_cv_header_stat_broken+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <sys/types.h>
5943 #include <sys/stat.h>
5945 #if defined S_ISBLK && defined S_IFDIR
5946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5947 #endif
5949 #if defined S_ISBLK && defined S_IFCHR
5950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5951 #endif
5953 #if defined S_ISLNK && defined S_IFREG
5954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5955 #endif
5957 #if defined S_ISSOCK && defined S_IFREG
5958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5959 #endif
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"; then :
5963 ac_cv_header_stat_broken=no
5964 else
5965 ac_cv_header_stat_broken=yes
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5970 $as_echo "$ac_cv_header_stat_broken" >&6; }
5971 if test $ac_cv_header_stat_broken = yes; then
5973 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5978 $as_echo_n "checking for ANSI C header files... " >&6; }
5979 if test "${ac_cv_header_stdc+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <stdlib.h>
5985 #include <stdarg.h>
5986 #include <string.h>
5987 #include <float.h>
5990 main ()
5994 return 0;
5996 _ACEOF
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 ac_cv_header_stdc=yes
5999 else
6000 ac_cv_header_stdc=no
6002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 if test $ac_cv_header_stdc = yes; then
6005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #include <string.h>
6010 _ACEOF
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "memchr" >/dev/null 2>&1; then :
6014 else
6015 ac_cv_header_stdc=no
6017 rm -f conftest*
6021 if test $ac_cv_header_stdc = yes; then
6022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <stdlib.h>
6027 _ACEOF
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "free" >/dev/null 2>&1; then :
6031 else
6032 ac_cv_header_stdc=no
6034 rm -f conftest*
6038 if test $ac_cv_header_stdc = yes; then
6039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6040 if test "$cross_compiling" = yes; then :
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 #include <ctype.h>
6046 #include <stdlib.h>
6047 #if ((' ' & 0x0FF) == 0x020)
6048 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6049 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6050 #else
6051 # define ISLOWER(c) \
6052 (('a' <= (c) && (c) <= 'i') \
6053 || ('j' <= (c) && (c) <= 'r') \
6054 || ('s' <= (c) && (c) <= 'z'))
6055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6056 #endif
6058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6060 main ()
6062 int i;
6063 for (i = 0; i < 256; i++)
6064 if (XOR (islower (i), ISLOWER (i))
6065 || toupper (i) != TOUPPER (i))
6066 return 2;
6067 return 0;
6069 _ACEOF
6070 if ac_fn_c_try_run "$LINENO"; then :
6072 else
6073 ac_cv_header_stdc=no
6075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6076 conftest.$ac_objext conftest.beam conftest.$ac_ext
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6082 $as_echo "$ac_cv_header_stdc" >&6; }
6083 if test $ac_cv_header_stdc = yes; then
6085 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6090 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6091 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/wait.h>
6098 #ifndef WEXITSTATUS
6099 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6100 #endif
6101 #ifndef WIFEXITED
6102 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6103 #endif
6106 main ()
6108 int s;
6109 wait (&s);
6110 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6112 return 0;
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"; then :
6116 ac_cv_header_sys_wait_h=yes
6117 else
6118 ac_cv_header_sys_wait_h=no
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6123 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6124 if test $ac_cv_header_sys_wait_h = yes; then
6126 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6131 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6132 if test "${ac_cv_header_time+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6137 #include <sys/types.h>
6138 #include <sys/time.h>
6139 #include <time.h>
6142 main ()
6144 if ((struct tm *) 0)
6145 return 0;
6147 return 0;
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151 ac_cv_header_time=yes
6152 else
6153 ac_cv_header_time=no
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6158 $as_echo "$ac_cv_header_time" >&6; }
6159 if test $ac_cv_header_time = yes; then
6161 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6165 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6166 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6170 _ACEOF
6173 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6178 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6179 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6183 _ACEOF
6186 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6188 else
6189 case " $LIBOBJS " in
6190 *" fileblocks.$ac_objext "* ) ;;
6191 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6193 esac
6198 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6199 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6201 cat >>confdefs.h <<_ACEOF
6202 #define HAVE_STRUCT_STAT_ST_RDEV 1
6203 _ACEOF
6206 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6212 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6213 if test "${ac_cv_struct_tm+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <time.h>
6222 main ()
6224 struct tm tm;
6225 int *p = &tm.tm_sec;
6226 return !p;
6228 return 0;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 ac_cv_struct_tm=time.h
6233 else
6234 ac_cv_struct_tm=sys/time.h
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6239 $as_echo "$ac_cv_struct_tm" >&6; }
6240 if test $ac_cv_struct_tm = sys/time.h; then
6242 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6246 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6247 #include <$ac_cv_struct_tm>
6250 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6252 cat >>confdefs.h <<_ACEOF
6253 #define HAVE_STRUCT_TM_TM_ZONE 1
6254 _ACEOF
6259 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6261 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6263 else
6264 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6266 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6267 ac_have_decl=1
6268 else
6269 ac_have_decl=0
6272 cat >>confdefs.h <<_ACEOF
6273 #define HAVE_DECL_TZNAME $ac_have_decl
6274 _ACEOF
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6277 $as_echo_n "checking for tzname... " >&6; }
6278 if test "${ac_cv_var_tzname+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <time.h>
6284 #if !HAVE_DECL_TZNAME
6285 extern char *tzname[];
6286 #endif
6289 main ()
6291 return tzname[0][0];
6293 return 0;
6295 _ACEOF
6296 if ac_fn_c_try_link "$LINENO"; then :
6297 ac_cv_var_tzname=yes
6298 else
6299 ac_cv_var_tzname=no
6301 rm -f core conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6305 $as_echo "$ac_cv_var_tzname" >&6; }
6306 if test $ac_cv_var_tzname = yes; then
6308 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6313 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6314 if test "x$ac_cv_type_off_t" = x""yes; then :
6316 else
6318 cat >>confdefs.h <<_ACEOF
6319 #define off_t long int
6320 _ACEOF
6324 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_pid_t" = x""yes; then :
6327 else
6329 cat >>confdefs.h <<_ACEOF
6330 #define pid_t int
6331 _ACEOF
6335 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_size_t" = x""yes; then :
6338 else
6340 cat >>confdefs.h <<_ACEOF
6341 #define size_t unsigned int
6342 _ACEOF
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6347 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6348 if test "${ac_cv_type_uid_t+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 #include <sys/types.h>
6355 _ACEOF
6356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6357 $EGREP "uid_t" >/dev/null 2>&1; then :
6358 ac_cv_type_uid_t=yes
6359 else
6360 ac_cv_type_uid_t=no
6362 rm -f conftest*
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6366 $as_echo "$ac_cv_type_uid_t" >&6; }
6367 if test $ac_cv_type_uid_t = no; then
6369 $as_echo "#define uid_t int" >>confdefs.h
6372 $as_echo "#define gid_t int" >>confdefs.h
6377 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6378 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6380 cat >>confdefs.h <<_ACEOF
6381 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6382 _ACEOF
6388 # Look for some functions
6389 for ac_func in getpagesize kqueue statfs statvfs \
6390 clone kse_create rfork_thread thr_create sa_register \
6391 getcontext makecontext setcontext sigaltstack swapcontext
6392 do :
6393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6394 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6395 eval as_val=\$$as_ac_var
6396 if test "x$as_val" = x""yes; then :
6397 cat >>confdefs.h <<_ACEOF
6398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6399 _ACEOF
6402 done
6408 for ac_header in $ac_header_list
6409 do :
6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6413 eval as_val=\$$as_ac_Header
6414 if test "x$as_val" = x""yes; then :
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417 _ACEOF
6421 done
6430 for ac_func in getpagesize
6431 do :
6432 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6433 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_GETPAGESIZE 1
6436 _ACEOF
6439 done
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6442 $as_echo_n "checking for working mmap... " >&6; }
6443 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test "$cross_compiling" = yes; then :
6447 ac_cv_func_mmap_fixed_mapped=no
6448 else
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 $ac_includes_default
6452 /* malloc might have been renamed as rpl_malloc. */
6453 #undef malloc
6455 /* Thanks to Mike Haertel and Jim Avera for this test.
6456 Here is a matrix of mmap possibilities:
6457 mmap private not fixed
6458 mmap private fixed at somewhere currently unmapped
6459 mmap private fixed at somewhere already mapped
6460 mmap shared not fixed
6461 mmap shared fixed at somewhere currently unmapped
6462 mmap shared fixed at somewhere already mapped
6463 For private mappings, we should verify that changes cannot be read()
6464 back from the file, nor mmap's back from the file at a different
6465 address. (There have been systems where private was not correctly
6466 implemented like the infamous i386 svr4.0, and systems where the
6467 VM page cache was not coherent with the file system buffer cache
6468 like early versions of FreeBSD and possibly contemporary NetBSD.)
6469 For shared mappings, we should conversely verify that changes get
6470 propagated back to all the places they're supposed to be.
6472 Grep wants private fixed already mapped.
6473 The main things grep needs to know about mmap are:
6474 * does it exist and is it safe to write into the mmap'd area
6475 * how to use it (BSD variants) */
6477 #include <fcntl.h>
6478 #include <sys/mman.h>
6480 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6481 char *malloc ();
6482 #endif
6484 /* This mess was copied from the GNU getpagesize.h. */
6485 #ifndef HAVE_GETPAGESIZE
6486 # ifdef _SC_PAGESIZE
6487 # define getpagesize() sysconf(_SC_PAGESIZE)
6488 # else /* no _SC_PAGESIZE */
6489 # ifdef HAVE_SYS_PARAM_H
6490 # include <sys/param.h>
6491 # ifdef EXEC_PAGESIZE
6492 # define getpagesize() EXEC_PAGESIZE
6493 # else /* no EXEC_PAGESIZE */
6494 # ifdef NBPG
6495 # define getpagesize() NBPG * CLSIZE
6496 # ifndef CLSIZE
6497 # define CLSIZE 1
6498 # endif /* no CLSIZE */
6499 # else /* no NBPG */
6500 # ifdef NBPC
6501 # define getpagesize() NBPC
6502 # else /* no NBPC */
6503 # ifdef PAGESIZE
6504 # define getpagesize() PAGESIZE
6505 # endif /* PAGESIZE */
6506 # endif /* no NBPC */
6507 # endif /* no NBPG */
6508 # endif /* no EXEC_PAGESIZE */
6509 # else /* no HAVE_SYS_PARAM_H */
6510 # define getpagesize() 8192 /* punt totally */
6511 # endif /* no HAVE_SYS_PARAM_H */
6512 # endif /* no _SC_PAGESIZE */
6514 #endif /* no HAVE_GETPAGESIZE */
6517 main ()
6519 char *data, *data2, *data3;
6520 const char *cdata2;
6521 int i, pagesize;
6522 int fd, fd2;
6524 pagesize = getpagesize ();
6526 /* First, make a file with some known garbage in it. */
6527 data = (char *) malloc (pagesize);
6528 if (!data)
6529 return 1;
6530 for (i = 0; i < pagesize; ++i)
6531 *(data + i) = rand ();
6532 umask (0);
6533 fd = creat ("conftest.mmap", 0600);
6534 if (fd < 0)
6535 return 2;
6536 if (write (fd, data, pagesize) != pagesize)
6537 return 3;
6538 close (fd);
6540 /* Next, check that the tail of a page is zero-filled. File must have
6541 non-zero length, otherwise we risk SIGBUS for entire page. */
6542 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6543 if (fd2 < 0)
6544 return 4;
6545 cdata2 = "";
6546 if (write (fd2, cdata2, 1) != 1)
6547 return 5;
6548 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6549 if (data2 == MAP_FAILED)
6550 return 6;
6551 for (i = 0; i < pagesize; ++i)
6552 if (*(data2 + i))
6553 return 7;
6554 close (fd2);
6555 if (munmap (data2, pagesize))
6556 return 8;
6558 /* Next, try to mmap the file at a fixed address which already has
6559 something else allocated at it. If we can, also make sure that
6560 we see the same garbage. */
6561 fd = open ("conftest.mmap", O_RDWR);
6562 if (fd < 0)
6563 return 9;
6564 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6566 return 10;
6567 for (i = 0; i < pagesize; ++i)
6568 if (*(data + i) != *(data2 + i))
6569 return 11;
6571 /* Finally, make sure that changes to the mapped area do not
6572 percolate back to the file as seen by read(). (This is a bug on
6573 some variants of i386 svr4.0.) */
6574 for (i = 0; i < pagesize; ++i)
6575 *(data2 + i) = *(data2 + i) + 1;
6576 data3 = (char *) malloc (pagesize);
6577 if (!data3)
6578 return 12;
6579 if (read (fd, data3, pagesize) != pagesize)
6580 return 13;
6581 for (i = 0; i < pagesize; ++i)
6582 if (*(data + i) != *(data3 + i))
6583 return 14;
6584 close (fd);
6585 return 0;
6587 _ACEOF
6588 if ac_fn_c_try_run "$LINENO"; then :
6589 ac_cv_func_mmap_fixed_mapped=yes
6590 else
6591 ac_cv_func_mmap_fixed_mapped=no
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594 conftest.$ac_objext conftest.beam conftest.$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6599 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6600 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6602 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6605 rm -f conftest.mmap conftest.txt
6610 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6611 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6612 aros_config_ldflags=""
6614 aros_shared_default=yes
6616 aros_shared_cflags="-fPIC"
6617 aros_shared_aflags=""
6618 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6619 aros_kernel_ldflags="-Wl,-rpath,./lib"
6621 aros_target_ar_flags="cr"
6622 aros_target_nm_flags="-C -ul"
6623 aros_target_strip_flags="--strip-unneeded -R.comment"
6625 aros_compiler_libs=
6626 aros_arch_libs=
6628 aros_target_genmap="-Wl,-Map -Xlinker"
6630 # Native flavour stuff
6631 aros_serial_debug="0"
6633 # Palm native flavour stuff
6634 aros_palm_debug_hack="0"
6636 # Unix flavour stuff
6637 aros_nesting_supervisor="0"
6639 # Collect-aros stuff: "-ius" to ignore undefined symbols
6640 ignore_undefined_symbols=""
6642 # Check for X11 by default
6643 need_x11="auto"
6645 #-----------------------------------------------------------------------------
6648 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6649 # it switched on by default, and we use the host compiler, so it compiles AROS
6650 # code with this enabled resulting in link failures as we don't have support
6651 # for it.
6653 # We use two methods to disable it. For the host compiler (used to compile
6654 # some hosted modules), we test to see if the compiler supports stack
6655 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6656 # work on all platforms.
6658 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6659 # (this is done unconditionally, as it should have no effect on compilers
6660 # without the stack protection feature). This may be specific to the way that
6661 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6662 # strong enough to disable it in a generic way though, so we'll live with it
6663 # until another vendor ships GCC with it enabled in a different way, and deal
6664 # with it then.
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6668 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6669 save_cflags="$CFLAGS"
6670 CFLAGS="$CFLAGS -fno-stack-protector"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6675 main ()
6679 return 0;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 use_no_stack_protector="yes"
6684 else
6685 use_no_stack_protector="no"
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6689 $as_echo "$use_no_stack_protector" >&6; }
6690 if test "x-$use_no_stack_protector" = "x-yes" ; then
6691 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6693 CFLAGS="$save_cflags"
6695 #-----------------------------------------------------------------------------
6697 # Disable pointer-signedness warnings if the compiler recognises the option
6698 # (this only works for the host compiler at the moment)
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6701 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6702 save_cflags="$CFLAGS"
6703 CFLAGS="$CFLAGS -Wno-pointer-sign"
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6708 main ()
6712 return 0;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 use_no_sign_warning="yes"
6717 else
6718 use_no_sign_warning="no"
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6722 $as_echo "$use_no_sign_warning" >&6; }
6723 if test "x-$use_no_sign_warning" = "x-yes" ; then
6724 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6726 CFLAGS="$save_cflags"
6728 #-----------------------------------------------------------------------------
6730 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6733 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6734 save_cflags="$CFLAGS"
6735 CFLAGS="$CFLAGS -fgnu89-inline"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6740 main ()
6744 return 0;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 use_gnu89_inline="yes"
6749 else
6750 use_gnu89_inline="no"
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6754 $as_echo "$use_gnu89_inline" >&6; }
6755 if test "x-$use_gnu89_inline" = "x-yes" ; then
6756 gnu89_inline="-fgnu89-inline"
6758 CFLAGS="$save_cflags"
6760 #-----------------------------------------------------------------------------
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6763 $as_echo_n "checking for type of build... " >&6; }
6764 # Check whether --enable-build_type was given.
6765 if test "${enable_build_type+set}" = set; then :
6766 enableval=$enable_build_type; build_type=$enableval
6767 else
6768 build_type="personal"
6772 if test "$build_type" = "nightly"; then
6773 build_type_string="NIGHTLY"
6774 elif test "$build_type" = "snapshot"; then
6775 build_type_string="SNAPSHOT"
6776 elif test "$build_type" = "milestone"; then
6777 build_type_string="MILESTONE"
6778 elif test "$build_type" = "release"; then
6779 build_type_string="RELEASE"
6780 else
6781 build_type_string="PERSONAL"
6782 build_type="personal"
6785 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6788 $as_echo "$build_type" >&6; }
6790 #-----------------------------------------------------------------------------
6791 all_debug_types="messages stack modules mungwall symbols"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6794 $as_echo_n "checking which debug types to enable... " >&6; }
6795 # Check whether --enable-debug was given.
6796 if test "${enable_debug+set}" = set; then :
6797 enableval=$enable_debug; debug="$enableval"
6798 else
6799 debug=""
6803 if test "$debug" = "" -o "$debug" = "no"; then
6804 debug="none"
6805 elif test "$debug" = "yes"; then
6806 debug="all"
6809 if test "$debug" = "all" ; then
6810 debug="messages stack modules symbols"
6811 for d in $all_debug_types; do
6812 export aros_${d}_debug="1"
6813 done
6814 else
6815 for d in $all_debug_types; do
6816 export aros_${d}_debug="0"
6817 done
6820 if test "$debug" != "none"; then
6821 debug=`echo $debug | sed s/,/\ /g`
6822 for d in $debug; do
6823 found="0"
6824 for d2 in $all_debug_types; do
6825 if test "$d2" = "$d"; then
6826 found="1"
6827 break
6829 done
6830 if test "$found" = "0"; then
6831 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6833 export aros_${d}_debug="1"
6834 done
6835 aros_debug="yes"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6838 $as_echo "$debug" >&6; }
6840 if test "$aros_messages_debug" = "1"; then
6841 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6842 else
6843 aros_messages_debug=""
6845 if test "$aros_symbols_debug" = "1"; then
6846 aros_symbols_debug="-g"
6847 else
6848 aros_symbols_debug=""
6851 # These are the flags to pass when compiling debugged programs
6852 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6853 aros_debug_aflags=""
6854 aros_debug_ldflags="$aros_symbols_debug"
6856 aros_crosstools="no"
6858 #-----------------------------------------------------------------------------
6859 # Checking if we should build crosstools..
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6861 $as_echo_n "checking whether to build crosstools... " >&6; }
6862 # Check whether --enable-crosstools was given.
6863 if test "${enable_crosstools+set}" = set; then :
6864 enableval=$enable_crosstools; crosstools="$enableval"
6865 else
6866 crosstools="no"
6869 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6871 $as_echo "yes" >&6; }
6872 aros_crosstools="yes"
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6878 #-----------------------------------------------------------------------------
6879 # Checking for distcc and ccache.
6881 # Always apply the transforms in this particular order. Basically you should
6882 # always run 'ccache distcc compiler' in that order for the best performance.
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6885 $as_echo_n "checking whether to enable distcc... " >&6; }
6886 # Check whether --enable-distcc was given.
6887 if test "${enable_distcc+set}" = set; then :
6888 enableval=$enable_distcc; distcc="$enableval"
6889 else
6890 distcc="no"
6893 if test "$distcc" != "" -a "$distcc" != "no"; then
6894 # AC_CHECK_PROG will print out the result in this case
6895 # Extract the first word of "distcc", so it can be a program name with args.
6896 set dummy distcc; ac_word=$2
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898 $as_echo_n "checking for $ac_word... " >&6; }
6899 if test "${ac_cv_path_DISTCC+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 case $DISTCC in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6918 done
6919 done
6920 IFS=$as_save_IFS
6922 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6924 esac
6926 DISTCC=$ac_cv_path_DISTCC
6927 if test -n "$DISTCC"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6929 $as_echo "$DISTCC" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6936 else
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6942 $as_echo_n "checking whether to enable ccache... " >&6; }
6943 # Check whether --enable-ccache was given.
6944 if test "${enable_ccache+set}" = set; then :
6945 enableval=$enable_ccache; ccache="$enableval"
6946 else
6947 ccache="no"
6950 if test "$ccache" != "" -a "$ccache" != "no"; then
6951 # AC_CHECK_PROG will print out the result in this case
6952 # Extract the first word of "ccache", so it can be a program name with args.
6953 set dummy ccache; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 if test -n "$CCACHE"; then
6960 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_CCACHE="ccache"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6973 done
6974 done
6975 IFS=$as_save_IFS
6979 CCACHE=$ac_cv_prog_CCACHE
6980 if test -n "$CCACHE"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6982 $as_echo "$CCACHE" >&6; }
6983 else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6989 else
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 #-----------------------------------------------------------------------------
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
6996 $as_echo_n "checking what specific gcc version to use... " >&6; }
6998 # Check whether --with-gcc-version was given.
6999 if test "${with_gcc_version+set}" = set; then :
7000 withval=$with_gcc_version; target_tool_version="$withval"
7001 else
7002 target_tool_version="default"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7006 $as_echo "$target_tool_version" >&6; }
7008 #-----------------------------------------------------------------------------
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7010 $as_echo_n "checking what optimization flags to use... " >&6; }
7012 # Check whether --with-optimization was given.
7013 if test "${with_optimization+set}" = set; then :
7014 withval=$with_optimization; optimization="$withval"
7015 else
7016 optimization="unknown"
7019 if test "$optimization" = "unknown"; then
7020 if test "$debug" != "none"; then
7021 optimization="-O0"
7022 else
7023 optimization="-O2"
7026 aros_config_cflags="$aros_config_cflags $optimization"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7028 $as_echo "$optimization" >&6; }
7030 #-----------------------------------------------------------------------------
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7032 $as_echo_n "checking what paranoia flags to use... " >&6; }
7034 # Check whether --with-paranoia was given.
7035 if test "${with_paranoia+set}" = set; then :
7036 withval=$with_paranoia; paranoia_flags="$withval"
7037 else
7038 paranoia_flags="default"
7041 if test "$paranoia_flags" = "default"; then
7042 paranoia_flags=""
7043 else if test "$paranoia_flags" = "yes"; then
7044 paranoia_flags="-Wall -Werror"
7045 fi fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7047 $as_echo "$paranoia_flags" >&6; }
7048 aros_paranoia_cflags="$paranoia_flags"
7050 #-----------------------------------------------------------------------------
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7052 $as_echo_n "checking what target variant to enable... " >&6; }
7053 # Check whether --enable-target_variant was given.
7054 if test "${enable_target_variant+set}" = set; then :
7055 enableval=$enable_target_variant; target_variant=$enableval
7056 else
7057 target_variant=""
7060 if test "$target_variant" = ""; then
7061 aros_target_variant=""
7062 aros_target_suffix=""
7063 enableval="none"
7064 else
7065 aros_target_variant="$target_variant"
7066 aros_target_suffix="-$target_variant"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7069 $as_echo "$enableval" >&6; }
7071 target_bootloader="none"
7073 #-----------------------------------------------------------------------------
7074 case "$aros_target_variant" in
7075 ios)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7077 $as_echo_n "checking XCode path... " >&6; }
7079 # Check whether --with-xcode was given.
7080 if test "${with_xcode+set}" = set; then :
7081 withval=$with_xcode; aros_xcode_path="$withval"
7082 else
7083 aros_xcode_path="/Developer"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7087 $as_echo "$aros_xcode_path" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7090 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7092 # Check whether --with-ios-version was given.
7093 if test "${with_ios_version+set}" = set; then :
7094 withval=$with_ios_version; aros_ios_version="$withval"
7095 else
7096 aros_ios_version="3.0"
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7100 $as_echo "$aros_ios_version" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7103 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7105 # Check whether --with-ios-sdk was given.
7106 if test "${with_ios_sdk+set}" = set; then :
7107 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7108 else
7109 aros_ios_sdk="4.1"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7113 $as_echo "$aros_ios_sdk" >&6; }
7117 "android")
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7119 $as_echo_n "checking Android SDK path... " >&6; }
7121 # Check whether --with-sdk was given.
7122 if test "${with_sdk+set}" = set; then :
7123 withval=$with_sdk; aros_android_sdk="$withval"
7124 else
7125 aros_android_sdk=$default_android_sdk
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7129 $as_echo "$aros_android_sdk" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7132 $as_echo_n "checking Android NDK path... " >&6; }
7134 # Check whether --with-ndk was given.
7135 if test "${with_ndk+set}" = set; then :
7136 withval=$with_ndk; aros_android_ndk="$withval"
7137 else
7138 aros_android_ndk=""
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7142 $as_echo "$aros_android_ndk" >&6; }
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7145 $as_echo_n "checking what Android version to use... " >&6; }
7147 # Check whether --with-android-version was given.
7148 if test "${with_android_version+set}" = set; then :
7149 withval=$with_android_version; aros_android_version="$withval"
7150 else
7151 aros_android_version="2.2"
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7155 $as_echo "$aros_android_version" >&6; }
7157 export PATH="$aros_android_sdk/tools:$PATH"
7158 # Extract the first word of "$android_tool", so it can be a program name with args.
7159 set dummy $android_tool; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_path_android_tool+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 case $android_tool in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7186 esac
7188 android_tool=$ac_cv_path_android_tool
7189 if test -n "$android_tool"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7191 $as_echo "$android_tool" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7198 if test "$android_tool" = ""; then
7199 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7202 if test $host_os = "mingw32"; then
7203 android_tool="cmd //c $android_tool"
7207 esac
7209 #-----------------------------------------------------------------------------
7210 # This is the target configuration switch.
7211 case "$target_os" in
7212 linux*)
7213 aros_target_arch="linux"
7214 aros_target_family="unix"
7215 case "$target_cpu" in
7216 *m68k*)
7217 aros_target_cpu="m68k"
7218 aros_object_format="m68kelf"
7219 aros_flavour="emulcompat"
7220 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7221 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7222 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7223 gcc_target_cpu="mc68000"
7225 *i?86*)
7226 aros_target_cpu="i386"
7227 aros_object_format="elf_i386"
7228 aros_flavour="emulation"
7229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7230 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7231 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7232 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7233 aros_config_ldflags="-m32 -march=i486"
7234 aros_kernel_ldflags="-melf_i386"
7235 aros_default_wbdepth=8
7236 gcc_target_cpu="i386"
7237 pci_hidd_target="hidd-pci-linux"
7239 *x86_64*)
7240 aros_target_cpu="x86_64"
7241 aros_object_format="elf_x86_64"
7242 aros_flavour="emulation"
7243 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7244 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7245 aros_default_wbdepth=8
7246 gcc_target_cpu="x86_64"
7247 pci_hidd_target="hidd-pci-linux"
7249 *powerpc*)
7250 aros_target_cpu="ppc"
7251 aros_object_format="elf32ppc"
7252 aros_flavour="emulation"
7253 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7254 aros_default_wbdepth=8
7255 gcc_target_cpu="ppc"
7257 # TODO
7258 # Same as powerpc, but I need this for the nightly build to work again.
7259 # Actually, the nightly should be made working with powerpc target.
7260 # That just was too much work for the moment, another week or two.
7261 *ppc*)
7262 aros_target_cpu="ppc"
7263 aros_object_format="elf32ppc"
7264 aros_flavour="emulation"
7265 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7266 aros_default_wbdepth=8
7267 gcc_target_cpu="ppc"
7269 *arm*)
7270 aros_target_cpu="arm"
7271 aros_object_format="armelf_linux_eabi"
7272 aros_flavour="emulation"
7273 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7274 gcc_target_cpu="arm"
7275 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7276 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7277 aros_arch_libs="-laeabi"
7280 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7282 esac
7283 case "$aros_target_variant" in
7284 android)
7285 case "$aros_android_version" in
7286 2.2)
7287 aros_android_level=android-8
7290 aros_android_level=android-9
7292 esac
7293 aros_default_wbwidth=320
7294 aros_default_wbheight=480
7295 aros_target_cc="arm-aros-gcc"
7296 aros_target_cxx="arm-aros-g++"
7297 aros_target_ld="arm-aros-ld"
7298 aros_target_as="arm-aros-as"
7299 aros_target_ar="arm-aros-ar"
7300 aros_target_ranlib="arm-aros-ranlib"
7301 aros_target_nm="arm-aros-nm"
7302 aros_target_strip="arm-aros-strip"
7303 aros_target_objcopy="arm-aros-objcopy"
7304 aros_target_objdump="arm-aros-objdump"
7305 if test "$aros_android_ndk" = ""; then
7306 aros_kernel_cflags="-mandroid"
7307 aros_kernel_ldflags="-mandroid"
7308 CFLAGS="-mandroid"
7309 else
7310 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7311 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7312 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7313 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7314 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7315 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7317 need_x11=no
7318 target_tool_prefix="arm-linux-androideabi-"
7320 esac
7324 aros_target_arch="pc"
7325 aros_shared_default="no"
7326 target_bootloader="grub2"
7327 case "$target_cpu" in
7328 *i?86*)
7329 aros_target_cpu="i386"
7332 if test "$aros_object_format" = "" ; then
7333 aros_object_format="elf_i386"
7335 aros_flavour="standalone"
7336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7337 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7338 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7339 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7340 aros_config_ldflags="-m32 -march=i486"
7341 aros_kernel_ldflags="-melf_i386"
7342 aros_default_wbwidth=640
7343 aros_default_wbheight=480
7344 gcc_target_cpu="i386"
7346 *x86_64*)
7347 aros_target_cpu="x86_64"
7348 aros_serial_debug=1
7349 if test "$aros_object_format" = "" ; then
7350 aros_object_format="elf_x86_64"
7352 aros_flavour="standalone"
7353 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7354 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7355 aros_kernel_ldflags=""
7356 aros_default_wbwidth=640
7357 aros_default_wbheight=480
7358 gcc_target_cpu="x86_64"
7361 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7363 esac
7366 prep)
7367 aros_target_arch="prep"
7368 aros_shared_default="no"
7369 aros_target_cpu="ppc"
7370 aros_object_format="elf32ppc"
7371 aros_flavour="ppcnative"
7372 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7373 aros_kernel_ldflags=""
7374 aros_default_wbwidth=640
7375 aros_default_wbheight=480
7376 gcc_target_cpu="ppc"
7379 freebsd*)
7380 aros_target_arch="freebsd"
7381 aros_target_family="unix"
7382 aros_target_cpu="i386"
7383 aros_flavour="emulation"
7384 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7385 gcc_target_cpu="i386"
7387 aros_target_strip_flags="-x"
7390 darwin*)
7391 aros_target_arch="darwin"
7392 aros_target_family="unix"
7393 aros_flavour="emulation"
7394 case "$target_cpu" in
7395 *i?86*)
7396 aros_ios_platform="iPhoneSimulator"
7397 aros_target_cpu="i386"
7398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7399 aros_kernel_ldflags=""
7400 aros_macosx_version="10.4"
7401 aros_default_wbdepth=8
7402 gcc_target_cpu="i386"
7403 aros_object_format="elf_i386"
7404 aros_target_strip_flags="-x"
7405 aros_target_cc="i386-aros-gcc"
7406 aros_target_cxx="i386-aros-g++"
7407 aros_target_ld="i386-aros-ld"
7408 aros_target_as="i386-aros-as"
7409 aros_target_ar="i386-aros-ar"
7410 aros_target_ranlib="i386-aros-ranlib"
7411 aros_target_nm="i386-aros-nm"
7412 aros_target_strip="i386-aros-strip"
7413 aros_target_objcopy="i386-aros-objcopy"
7414 aros_target_objdump="i386-aros-objdump"
7415 target_tool_prefix="i686-apple-darwin10-"
7416 target_tool_flags="-m32"
7418 *x86_64*)
7419 aros_target_cpu="x86_64"
7420 aros_object_format="elf_x86_64"
7421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7422 aros_macosx_version="10.6"
7423 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7424 aros_kernel_cflags="-m64"
7425 aros_kernel_ldflags="-m64"
7426 aros_target_cflags="-mcmodel=large"
7427 aros_default_wbdepth=8
7428 gcc_target_cpu="x86_64"
7429 aros_kernel_ld="ld"
7430 aros_target_cc="x86_64-aros-gcc"
7431 aros_target_cxx="x86_64-aros-g++"
7432 aros_target_ld="x86_64-aros-ld"
7433 aros_target_as="x86_64-aros-as"
7434 aros_target_ar="x86_64-aros-ar"
7435 aros_target_ranlib="x86_64-aros-ranlib"
7436 aros_target_nm="x86_64-aros-nm"
7437 aros_target_strip="x86_64-aros-strip"
7438 aros_target_objcopy="x86_64-aros-objcopy"
7439 aros_target_objdump="x86_64-aros-objdump"
7440 target_tool_prefix="i686-apple-darwin10-"
7442 *ppc*)
7443 aros_target_cpu="ppc"
7444 aros_object_format="elf32ppc"
7445 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7446 aros_kernel_ldflags=""
7447 aros_macosx_version="10.0"
7448 aros_default_wbdepth=8
7449 gcc_target_cpu="ppc"
7450 aros_kernel_ld="ld -arch ppc"
7451 aros_target_cc="ppc-aros-gcc"
7452 aros_target_cxx="ppc-aros-g++"
7453 aros_target_ld="ppc-aros-ld"
7454 aros_target_as="ppc-aros-as"
7455 aros_target_ar="ppc-aros-ar"
7456 aros_target_ranlib="ppc-aros-ranlib"
7457 aros_target_nm="ppc-aros-nm"
7458 aros_target_strip="ppc-aros-strip"
7459 aros_target_objcopy="ppc-aros-objcopy"
7460 aros_target_objdump="ppc-aros-objdump"
7461 target_tool_prefix="powerpc-apple-darwin10-"
7463 *arm*)
7464 aros_ios_platform="iPhoneOS"
7465 aros_target_cpu="arm"
7466 aros_object_format="armelf_linux_eabi"
7467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7468 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7469 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7470 aros_arch_libs="-laeabi"
7471 aros_default_wbdepth=8
7472 gcc_target_cpu="arm"
7473 aros_kernel_ld="ld -arch armv6"
7474 aros_target_cc="arm-aros-gcc"
7475 aros_target_cxx="arm-aros-g++"
7476 aros_target_ld="arm-aros-ld"
7477 aros_target_as="arm-aros-as"
7478 aros_target_ar="arm-aros-ar"
7479 aros_target_ranlib="arm-aros-ranlib"
7480 aros_target_nm="arm-aros-nm"
7481 aros_target_strip="arm-aros-strip"
7482 aros_target_objcopy="arm-aros-objcopy"
7483 aros_target_objdump="arm-aros-objdump"
7484 target_tool_prefix="arm-apple-darwin10-"
7485 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7488 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7490 esac
7491 case "$aros_target_variant" in
7492 ios)
7493 aros_default_wbwidth=320
7494 aros_default_wbheight=480
7495 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7496 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7497 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7498 need_x11=no
7499 # This is here because it may depend on iOS or SDK version
7500 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7501 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7502 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7505 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7506 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7508 esac
7511 dragonfly*)
7512 aros_target_arch="dragonfly"
7513 aros_target_family="unix"
7514 aros_flavour="emulation"
7515 case "$target_cpu" in
7516 *i?86*)
7517 aros_target_cpu="i386"
7518 aros_object_format="elf_i386"
7519 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7521 *x86_64*)
7522 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7523 aros_target_cpu="x86_64"
7524 aros_object_format="elf_x86_64"
7525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7528 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7530 esac
7533 netbsd*)
7534 aros_target_arch="netbsd"
7535 aros_target_family="unix"
7536 case "$target_cpu" in
7537 *m68k*)
7538 aros_target_cpu="m68k"
7539 aros_object_format="m68kelf"
7540 aros_flavour="emulcompat"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7542 gcc_target_cpu="mc68000"
7544 *i?86*)
7545 aros_target_cpu="i386"
7546 aros_object_format="elf_i386"
7547 aros_flavour="emulation"
7548 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7549 aros_default_wbdepth=8
7550 gcc_target_cpu="i386"
7553 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7555 esac
7556 aros_target_genmap="-Wl,-M -Xlinker >"
7557 aros_flavour="emulation"
7558 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7561 openbsd*)
7562 aros_target_arch="openbsd"
7563 aros_target_family="unix"
7564 case "$target_cpu" in
7565 *i?86*)
7566 aros_target_cpu="i386"
7567 aros_object_format="elf_i386"
7568 aros_flavour="emulation"
7569 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7570 gcc_target_cpu="i386"
7573 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7575 esac
7576 aros_target_genmap="-Wl,-M -Xlinker >"
7577 aros_target_nm_flags="-u"
7578 aros_flavour="emulation"
7581 solaris*)
7582 aros_target_arch="solaris"
7583 aros_target_family="unix"
7584 case "$target_cpu" in
7585 *i?86*)
7586 aros_target_cpu="i386"
7587 aros_object_format="elf_i386"
7588 aros_flavour="emulation"
7589 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7590 aros_default_wbdepth=8
7591 gcc_target_cpu="i386"
7593 *sparc*)
7594 aros_target_cpu="sparc"
7595 aros_object_format="elf_sparc"
7596 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7597 gcc_target_cpu="sparc"
7600 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7602 esac
7603 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7604 aros_flavour="emulation"
7607 morphos*)
7608 aros_target_arch="morphos"
7609 aros_shared_default="no"
7610 aros_target_cpu="ppc"
7611 aros_object_format="elf_ppc"
7612 aros_flavour="nativecompat"
7613 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7614 gcc_target_cpu="ppc"
7617 sam440)
7618 aros_target_arch="sam440"
7619 aros_shared_default="no"
7620 aros_target_cpu="ppc"
7621 aros_object_format="elf32ppc"
7622 aros_flavour="ppcnative"
7623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7624 aros_kernel_ldflags=""
7625 aros_default_wbwidth=1024
7626 aros_default_wbheight=768
7627 aros_default_wbdepth=24
7628 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7629 gcc_target_cpu="powerpc"
7632 efika)
7633 aros_target_arch="efika"
7634 aros_shared_default="no"
7635 aros_target_cpu="arm"
7636 aros_object_format="armelf_linux_eabi"
7637 aros_flavour="standalone"
7638 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7639 aros_kernel_ldflags=""
7640 aros_default_wbwidth=1024
7641 aros_default_wbheight=600
7642 aros_arch_libs="-laeabi"
7643 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7644 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7647 chrp)
7648 aros_target_arch="chrp"
7649 aros_shared_default="no"
7650 aros_target_cpu="ppc"
7651 aros_object_format="elf32ppc"
7652 aros_flavour="ppcnative"
7653 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7654 aros_kernel_ldflags=""
7655 aros_default_wbwidth=640
7656 aros_default_wbheight=480
7657 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7658 gcc_target_cpu="powerpc"
7659 case "$aros_target_variant" in
7660 efika)
7661 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7663 esac
7666 amiga*)
7667 aros_target_arch="amiga"
7668 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7669 aros_shared_default="no"
7671 case "$target_cpu" in
7672 *m68k*)
7673 aros_enable_mmu=no
7674 aros_target_cpu="m68k"
7675 aros_object_format="m68kelf"
7676 aros_flavour="standcompat"
7677 gcc_target_cpu="m68000"
7678 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7679 aros_config_aflags="$aros_config_aflags -g3 -${gcc_target_cpu}"
7680 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7681 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7682 target_tool_prefix="m68k-elf-"
7683 # Needed to get the correct multilib
7684 aros_config_ldflags="-${gcc_target_cpu}"
7685 aros_debug_ldflags="-${gcc_target_cpu}"
7686 aros_shared_ldflags="-${gcc_target_cpu}"
7687 aros_kernel_ldflags="-${gcc_target_cpu}"
7688 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7689 aros_target_strip_flags="-R.comment --strip-debug"
7690 aros_default_wbwidth=640
7691 aros_default_wbheight=256
7693 *ppc*)
7694 aros_cpu="ppc"
7695 aros_flavour="native"
7696 gcc_target_cpu="ppc"
7699 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7701 esac
7704 mingw*)
7705 aros_target_arch="mingw32"
7706 aros_shared_default="no"
7707 aros_flavour="emulation"
7708 aros_shared_cflags=""
7709 need_dlopen="no"
7710 rescomp="windres"
7711 case "$target_cpu" in
7712 *i?86*)
7713 aros_target_cpu="i386"
7714 aros_object_format="elf_i386"
7715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7716 aros_default_wbdepth=8
7717 gcc_target_cpu="i386"
7718 aros_target_cc="i386-aros-gcc"
7719 aros_target_cxx="i386-aros-g++"
7720 aros_target_ld="i386-aros-ld"
7721 aros_target_as="i386-aros-as"
7722 aros_target_ar="i386-aros-ar"
7723 aros_target_ranlib="i386-aros-ranlib"
7724 aros_target_nm="i386-aros-nm"
7725 aros_target_strip="i386-aros-strip"
7726 aros_target_objcopy="i386-aros-objcopy"
7727 aros_target_objdump="i386-aros-objdump"
7728 target_tool_prefix="i386-mingw32-"
7730 *x86_64*)
7731 aros_target_cpu="x86_64"
7732 aros_object_format="elf_x86_64"
7733 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7734 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7735 aros_default_wbdepth=8
7736 gcc_target_cpu="x86_64"
7737 aros_target_cc="x86_64-aros-gcc"
7738 aros_target_cxx="x86_64-aros-g++"
7739 aros_target_ld="x86_64-aros-ld"
7740 aros_target_as="x86_64-aros-as"
7741 aros_target_ar="x86_64-aros-ar"
7742 aros_target_ranlib="x86_64-aros-ranlib"
7743 aros_target_nm="x86_64-aros-nm"
7744 aros_target_strip="x86_64-aros-strip"
7745 aros_target_objcopy="x86_64-aros-objcopy"
7746 aros_target_objdump="x86_64-aros-objdump"
7747 target_tool_prefix="x86_64-w64-mingw32-"
7749 *arm*)
7750 aros_target_cpu="arm"
7751 aros_object_format="armelf_linux_eabi"
7752 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7753 aros_arch_libs="-laeabi"
7754 aros_default_wbdepth=8
7755 gcc_target_cpu="arm"
7756 aros_target_cc="arm-aros-gcc"
7757 aros_target_cxx="arm-aros-g++"
7758 aros_target_ld="arm-aros-ld"
7759 aros_target_as="arm-aros-as"
7760 aros_target_ar="arm-aros-ar"
7761 aros_target_ranlib="arm-aros-ranlib"
7762 aros_target_nm="arm-aros-nm"
7763 aros_target_strip="arm-aros-strip"
7764 aros_target_objcopy="arm-aros-objcopy"
7765 aros_target_objdump="arm-aros-objdump"
7766 target_tool_prefix="arm-mingw32ce-"
7767 aros_default_wbwidth=160
7768 aros_default_wbheight=160
7771 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7773 esac
7774 if test $host_os = "cygwin"; then
7775 aros_kernel_cflags="-mno-cygwin"
7778 pp*)
7779 aros_target_arch="pp"
7780 aros_shared_default="no"
7781 case "$target_cpu" in
7782 *m68k*)
7783 aros_target_cpu="m68k"
7784 aros_object_format="m68kelf"
7785 aros_flavour="palmnative"
7786 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7787 aros_default_wbwidth=160
7788 aros_default_wbheight=160
7789 aros_default_wbdepth=1
7790 aros_target_ar_flags="cru"
7791 aros_compiler_libs="-lgcc1"
7792 aros_shared_default=no
7793 aros_shared_cflags="-fpic"
7794 aros_shared_aflags=""
7795 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7796 aros_kernel_ldflags="-Wl,-rpath,./lib"
7797 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7798 aros_debug_aflags=""
7799 aros_debug_ldflags="$aros_symbols_debug"
7800 aros_mungwall_debug="0"
7801 aros_modules_debug="0"
7802 gcc_target_cpu="mc68000"
7803 ignore_undefined_symbols="-ius"
7806 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7808 esac
7811 mac*)
7812 aros_target_arch="mac"
7813 aros_shared_default="no"
7814 case "$target_cpu" in
7815 *m68k*)
7816 aros_target_cpu="m68k"
7817 aros_object_format="m68kelf"
7818 aros_flavour="mac68knative"
7819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7820 aros_default_wbwidth=512
7821 aros_default_wbheight=384
7822 aros_default_wbdepth=8
7823 aros_target_ar_flags="cru"
7824 aros_compiler_libs="-lgcc1"
7825 aros_shared_default=no
7826 aros_shared_cflags="-fpic"
7827 aros_shared_aflags=""
7828 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7829 aros_kernel_ldflags="-Wl,-rpath,./lib"
7830 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7831 aros_debug_aflags=""
7832 aros_debug_ldflags="$aros_symbols_debug"
7833 aros_mungwall_debug="0"
7834 aros_modules_debug="0"
7835 gcc_target_cpu="mc68000"
7836 ignore_undefined_symbols="-ius"
7839 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7841 esac
7845 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7847 esac
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7850 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7852 # Check whether --with-portssources was given.
7853 if test "${with_portssources+set}" = set; then :
7854 withval=$with_portssources; with_portssrcdir=$withval
7855 else
7856 with_portssrcdir="default"
7859 if test "$with_portssrcdir" = "default"; then
7860 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7861 else
7862 AROS_PORTSSRCDIR="$with_portssrcdir"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7865 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7868 $as_echo_n "checking which bootloader to use... " >&6; }
7870 # Check whether --with-bootloader was given.
7871 if test "${with_bootloader+set}" = set; then :
7872 withval=$with_bootloader; target_bootloader=$withval
7873 else
7874 target_bootloader=$target_bootloader
7877 if test "$target_bootloader" = "none"; then
7878 aros_target_bootloader=""
7879 else
7880 aros_target_bootloader="$target_bootloader"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7883 $as_echo "$target_bootloader" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7886 $as_echo_n "checking which icon-set to use... " >&6; }
7888 # Check whether --with-iconset was given.
7889 if test "${with_iconset+set}" = set; then :
7890 withval=$with_iconset; target_iconset=$withval
7891 else
7892 target_iconset="default"
7895 if test "$target_iconset" = "default"; then
7896 aros_target_iconset="Gorilla"
7897 target_iconset="default (Gorilla)"
7898 else
7899 aros_target_iconset="$target_iconset"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7902 $as_echo "$target_iconset" >&6; }
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7905 $as_echo_n "checking which GUI Theme to use... " >&6; }
7907 # Check whether --with-theme was given.
7908 if test "${with_theme+set}" = set; then :
7909 withval=$with_theme; target_guitheme=$withval
7910 else
7911 target_guitheme="default"
7914 if test "$target_guitheme" = "default"; then
7915 aros_target_guitheme="Ice"
7916 else
7917 aros_target_guitheme="$target_guitheme"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7920 $as_echo "$aros_target_guitheme" >&6; }
7922 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7923 # for target code)
7924 cross_compiling=no
7925 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7926 cross_compiling=yes
7928 if test "$aros_host_cpu" == "x86_64" ; then
7929 if test "$aros_target_cpu" == "i386" ; then
7930 if test "$aros_target_arch" != "mingw32"; then
7931 cross_compiling=no
7935 if test "$aros_host_arch" == "darwin" ; then
7936 if test "$aros_target_arch" != "darwin" ; then
7937 cross_compiling=yes
7941 # Set prefix for target compiler etc. if we're cross-compiling
7942 # (should possibly be earlier but needs to be after AC_PROG_CC)
7943 if test "$cross_compiling" = "yes" ; then
7944 if test "$target_tool_prefix" = ""; then
7945 target_tool_prefix=${target_cpu}-elf-
7947 CC=${target_tool_prefix}gcc
7948 CPP=${target_tool_prefix}cpp
7949 if test "$target_tool_version" != "default"; then
7950 CC="$CC-$target_tool_version"
7951 CPP="$CC-$target_tool_version"
7953 # Extract the first word of "$CC", so it can be a program name with args.
7954 set dummy $CC; ac_word=$2
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7956 $as_echo_n "checking for $ac_word... " >&6; }
7957 if test "${ac_cv_path_CC+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 case $CC in
7961 [\\/]* | ?:[\\/]*)
7962 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7976 done
7977 done
7978 IFS=$as_save_IFS
7981 esac
7983 CC=$ac_cv_path_CC
7984 if test -n "$CC"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7986 $as_echo "$CC" >&6; }
7987 else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7993 if test "$CC" = ""; then
7994 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7997 CC="$CC $target_tool_flags"
7999 #-----------------------------------------------------------------------------
8001 # Disable pointer-signedness warnings if the compiler recognises the option
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8004 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8005 save_cflags="$CFLAGS"
8006 CFLAGS="$CFLAGS -Wno-pointer-sign"
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8011 main ()
8015 return 0;
8017 _ACEOF
8018 if ac_fn_c_try_compile "$LINENO"; then :
8019 use_no_sign_warning="yes"
8020 else
8021 use_no_sign_warning="no"
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8025 $as_echo "$use_no_sign_warning" >&6; }
8026 if test "x-$use_no_sign_warning" = "x-yes" ; then
8027 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8029 CFLAGS="$save_cflags"
8031 #-----------------------------------------------------------------------------
8033 # Find all the tools we need to compile. This could be cross-compiling
8034 # though! If that is the case we use the GNU form of the target and
8035 # simply add this to the front of the binary name. This is rather simple,
8036 # but it should work under most circumstances.
8038 # The default tools are to use the same as the host, but only if the
8039 # host and target CPU are the same. With GCC this is normally enough.
8042 aros_cc_pre=""
8043 aros_shared_ld="$aros_host_ld"
8045 aros_target_mkdep="$aros_host_mkdep"
8046 aros_target_incl_def="$aros_host_incl"
8048 aros_kernel_cc="$CC"
8050 # The default tools executables to be linked to.
8051 if test "$aros_target_cc" != ""; then
8052 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
8053 set dummy $aros_target_cc; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 case $aros_target_cc in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8080 esac
8082 aros_target_cc=$ac_cv_path_aros_target_cc
8083 if test -n "$aros_target_cc"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
8085 $as_echo "$aros_target_cc" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8092 if test "$aros_target_cc" = ""; then
8093 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8096 if test "$aros_target_ld" != ""; then
8097 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
8098 set dummy $aros_target_ld; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $aros_target_ld in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8125 esac
8127 aros_target_ld=$ac_cv_path_aros_target_ld
8128 if test -n "$aros_target_ld"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
8130 $as_echo "$aros_target_ld" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8137 if test "$aros_target_ld" = ""; then
8138 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8142 if test "$crosstools" != "yes"; then
8144 if test "$aros_target_as" = ""; then
8145 if test "$cross_compiling" = "yes" ; then
8146 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8147 set dummy ${target_tool_prefix}as; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 case $aros_target_as_ln in
8154 [\\/]* | ?:[\\/]*)
8155 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8169 done
8170 done
8171 IFS=$as_save_IFS
8174 esac
8176 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8177 if test -n "$aros_target_as_ln"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8179 $as_echo "$aros_target_as_ln" >&6; }
8180 else
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8186 else
8187 if test "$GCC" = "yes"; then
8188 aros_gcc_as=`$CC -print-prog-name=as`
8189 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8190 set dummy `basename $aros_gcc_as`; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 case $aros_target_as_ln in
8197 [\\/]* | ?:[\\/]*)
8198 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in `dirname $aros_gcc_as`
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8212 done
8213 done
8214 IFS=$as_save_IFS
8217 esac
8219 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8220 if test -n "$aros_target_as_ln"; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8222 $as_echo "$aros_target_as_ln" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 $as_echo "no" >&6; }
8230 if test "$aros_target_as_ln" = ""; then
8231 # Extract the first word of "as", so it can be a program name with args.
8232 set dummy as; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 case $aros_target_as_ln in
8239 [\\/]* | ?:[\\/]*)
8240 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8256 IFS=$as_save_IFS
8259 esac
8261 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8262 if test -n "$aros_target_as_ln"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8264 $as_echo "$aros_target_as_ln" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8273 else
8274 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8275 set dummy $aros_target_as; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 case $aros_target_as_ln in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8302 esac
8304 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8305 if test -n "$aros_target_as_ln"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8307 $as_echo "$aros_target_as_ln" >&6; }
8308 else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8316 if test "$aros_target_as_ln" = ""; then
8317 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8320 if test "$aros_kernel_ld" = ""; then
8321 if test "$cross_compiling" = "yes" ; then
8322 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8323 set dummy ${target_tool_prefix}ld; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 case $aros_kernel_ld in
8330 [\\/]* | ?:[\\/]*)
8331 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335 for as_dir in $PATH
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8341 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8343 break 2
8345 done
8346 done
8347 IFS=$as_save_IFS
8350 esac
8352 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8353 if test -n "$aros_kernel_ld"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8355 $as_echo "$aros_kernel_ld" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8362 else
8363 if test "$GCC" = "yes"; then
8364 aros_gcc_ld=`$CC -print-prog-name=ld`
8365 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8366 set dummy `basename $aros_gcc_ld`; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 case $aros_kernel_ld in
8373 [\\/]* | ?:[\\/]*)
8374 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in `dirname $aros_gcc_ld`
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8388 done
8389 done
8390 IFS=$as_save_IFS
8393 esac
8395 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8396 if test -n "$aros_kernel_ld"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8398 $as_echo "$aros_kernel_ld" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8406 if test "$aros_kernel_ld" = ""; then
8407 # Extract the first word of "ld", so it can be a program name with args.
8408 set dummy ld; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 case $aros_kernel_ld in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8435 esac
8437 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8438 if test -n "$aros_kernel_ld"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8440 $as_echo "$aros_kernel_ld" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8449 else
8450 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8451 set dummy $aros_kernel_ld; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8456 else
8457 case $aros_kernel_ld in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8478 esac
8480 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8481 if test -n "$aros_kernel_ld"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8483 $as_echo "$aros_kernel_ld" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8492 if test "$aros_kernel_ld" = ""; then
8493 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8496 if test "$aros_target_ar" = ""; then
8497 if test "$cross_compiling" = "yes" ; then
8498 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8499 set dummy ${target_tool_prefix}ar; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 case $aros_target_ar_ln in
8506 [\\/]* | ?:[\\/]*)
8507 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8513 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2
8521 done
8522 done
8523 IFS=$as_save_IFS
8526 esac
8528 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8529 if test -n "$aros_target_ar_ln"; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8531 $as_echo "$aros_target_ar_ln" >&6; }
8532 else
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 $as_echo "no" >&6; }
8538 else
8539 if test "$GCC" = "yes"; then
8540 aros_gcc_ar=`$CC -print-prog-name=ar`
8541 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8542 set dummy `basename $aros_gcc_ar`; ac_word=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 case $aros_target_ar_ln in
8549 [\\/]* | ?:[\\/]*)
8550 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in `dirname $aros_gcc_ar`
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8564 done
8565 done
8566 IFS=$as_save_IFS
8569 esac
8571 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8572 if test -n "$aros_target_ar_ln"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8574 $as_echo "$aros_target_ar_ln" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8582 if test "$aros_target_ar_ln" = ""; then
8583 # Extract the first word of "ar", so it can be a program name with args.
8584 set dummy ar; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $aros_target_ar_ln in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8611 esac
8613 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8614 if test -n "$aros_target_ar_ln"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8616 $as_echo "$aros_target_ar_ln" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8625 else
8626 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8627 set dummy $aros_target_ar; ac_word=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8632 else
8633 case $aros_target_ar_ln in
8634 [\\/]* | ?:[\\/]*)
8635 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8649 done
8650 done
8651 IFS=$as_save_IFS
8654 esac
8656 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8657 if test -n "$aros_target_ar_ln"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8659 $as_echo "$aros_target_ar_ln" >&6; }
8660 else
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8668 if test "$aros_target_ar_ln" = ""; then
8669 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8672 if test "$aros_target_nm" = ""; then
8673 if test "$cross_compiling" = "yes" ; then
8674 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8675 set dummy ${target_tool_prefix}nm; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 case $aros_target_nm_ln in
8682 [\\/]* | ?:[\\/]*)
8683 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8702 esac
8704 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8705 if test -n "$aros_target_nm_ln"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8707 $as_echo "$aros_target_nm_ln" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8714 else
8715 if test "$GCC" = "yes"; then
8716 aros_gcc_nm=`$CC -print-prog-name=nm`
8717 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8718 set dummy `basename $aros_gcc_nm`; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 case $aros_target_nm_ln in
8725 [\\/]* | ?:[\\/]*)
8726 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in `dirname $aros_gcc_nm`
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 break 2
8740 done
8741 done
8742 IFS=$as_save_IFS
8745 esac
8747 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8748 if test -n "$aros_target_nm_ln"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8750 $as_echo "$aros_target_nm_ln" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8758 if test "$aros_target_nm_ln" = ""; then
8759 # Extract the first word of "nm", so it can be a program name with args.
8760 set dummy nm; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 case $aros_target_nm_ln in
8767 [\\/]* | ?:[\\/]*)
8768 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780 break 2
8782 done
8783 done
8784 IFS=$as_save_IFS
8787 esac
8789 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8790 if test -n "$aros_target_nm_ln"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8792 $as_echo "$aros_target_nm_ln" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8801 else
8802 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8803 set dummy $aros_target_nm; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 case $aros_target_nm_ln in
8810 [\\/]* | ?:[\\/]*)
8811 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8830 esac
8832 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8833 if test -n "$aros_target_nm_ln"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8835 $as_echo "$aros_target_nm_ln" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8844 if test "$aros_target_nm_ln" = ""; then
8845 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8848 if test "$aros_target_objcopy" = ""; then
8849 if test "$cross_compiling" = "yes" ; then
8850 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8851 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 case $aros_target_objcopy_ln in
8858 [\\/]* | ?:[\\/]*)
8859 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 for as_dir in $PATH
8865 IFS=$as_save_IFS
8866 test -z "$as_dir" && as_dir=.
8867 for ac_exec_ext in '' $ac_executable_extensions; do
8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8869 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8871 break 2
8873 done
8874 done
8875 IFS=$as_save_IFS
8878 esac
8880 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8881 if test -n "$aros_target_objcopy_ln"; then
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8883 $as_echo "$aros_target_objcopy_ln" >&6; }
8884 else
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8890 else
8891 if test "$GCC" = "yes"; then
8892 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8893 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8894 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 case $aros_target_objcopy_ln in
8901 [\\/]* | ?:[\\/]*)
8902 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in `dirname $aros_gcc_objcopy`
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8916 done
8917 done
8918 IFS=$as_save_IFS
8921 esac
8923 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8924 if test -n "$aros_target_objcopy_ln"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8926 $as_echo "$aros_target_objcopy_ln" >&6; }
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8934 if test "$aros_target_objcopy_ln" = ""; then
8935 # Extract the first word of "objcopy", so it can be a program name with args.
8936 set dummy objcopy; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 case $aros_target_objcopy_ln in
8943 [\\/]* | ?:[\\/]*)
8944 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8954 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8960 IFS=$as_save_IFS
8963 esac
8965 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8966 if test -n "$aros_target_objcopy_ln"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8968 $as_echo "$aros_target_objcopy_ln" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8977 else
8978 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8979 set dummy $aros_target_objcopy; ac_word=$2
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981 $as_echo_n "checking for $ac_word... " >&6; }
8982 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 case $aros_target_objcopy_ln in
8986 [\\/]* | ?:[\\/]*)
8987 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9001 done
9002 done
9003 IFS=$as_save_IFS
9006 esac
9008 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9009 if test -n "$aros_target_objcopy_ln"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9011 $as_echo "$aros_target_objcopy_ln" >&6; }
9012 else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9020 if test "$aros_target_objcopy_ln" = ""; then
9021 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9024 if test "$aros_target_objdump" = ""; then
9025 if test "$cross_compiling" = "yes" ; then
9026 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9027 set dummy ${target_tool_prefix}objdump; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 case $aros_target_objdump_ln in
9034 [\\/]* | ?:[\\/]*)
9035 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9054 esac
9056 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9057 if test -n "$aros_target_objdump_ln"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9059 $as_echo "$aros_target_objdump_ln" >&6; }
9060 else
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9062 $as_echo "no" >&6; }
9066 else
9067 if test "$GCC" = "yes"; then
9068 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9069 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9070 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072 $as_echo_n "checking for $ac_word... " >&6; }
9073 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 case $aros_target_objdump_ln in
9077 [\\/]* | ?:[\\/]*)
9078 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082 for as_dir in `dirname $aros_gcc_objdump`
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9092 done
9093 done
9094 IFS=$as_save_IFS
9097 esac
9099 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9100 if test -n "$aros_target_objdump_ln"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9102 $as_echo "$aros_target_objdump_ln" >&6; }
9103 else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9110 if test "$aros_target_objdump_ln" = ""; then
9111 # Extract the first word of "objdump", so it can be a program name with args.
9112 set dummy objdump; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 case $aros_target_objdump_ln in
9119 [\\/]* | ?:[\\/]*)
9120 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124 for as_dir in $PATH
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9130 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9132 break 2
9134 done
9135 done
9136 IFS=$as_save_IFS
9139 esac
9141 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9142 if test -n "$aros_target_objdump_ln"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9144 $as_echo "$aros_target_objdump_ln" >&6; }
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9153 else
9154 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9155 set dummy $aros_target_objdump; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 case $aros_target_objdump_ln in
9162 [\\/]* | ?:[\\/]*)
9163 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9173 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9179 IFS=$as_save_IFS
9182 esac
9184 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9185 if test -n "$aros_target_objdump_ln"; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9187 $as_echo "$aros_target_objdump_ln" >&6; }
9188 else
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9190 $as_echo "no" >&6; }
9196 if test "$aros_target_objdump_ln" = ""; then
9197 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9200 if test "$aros_target_ranlib" = ""; then
9201 if test "$cross_compiling" = "yes" ; then
9202 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9203 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205 $as_echo_n "checking for $ac_word... " >&6; }
9206 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 case $aros_target_ranlib_ln in
9210 [\\/]* | ?:[\\/]*)
9211 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9230 esac
9232 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9233 if test -n "$aros_target_ranlib_ln"; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9235 $as_echo "$aros_target_ranlib_ln" >&6; }
9236 else
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9242 else
9243 if test "$GCC" = "yes"; then
9244 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9245 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9246 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 case $aros_target_ranlib_ln in
9253 [\\/]* | ?:[\\/]*)
9254 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in `dirname $aros_gcc_ranlib`
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9268 done
9269 done
9270 IFS=$as_save_IFS
9273 esac
9275 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9276 if test -n "$aros_target_ranlib_ln"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9278 $as_echo "$aros_target_ranlib_ln" >&6; }
9279 else
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9286 if test "$aros_target_ranlib_ln" = ""; then
9287 # Extract the first word of "ranlib", so it can be a program name with args.
9288 set dummy ranlib; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 case $aros_target_ranlib_ln in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9310 done
9311 done
9312 IFS=$as_save_IFS
9315 esac
9317 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9318 if test -n "$aros_target_ranlib_ln"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9320 $as_echo "$aros_target_ranlib_ln" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9329 else
9330 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9331 set dummy $aros_target_ranlib; ac_word=$2
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9336 else
9337 case $aros_target_ranlib_ln in
9338 [\\/]* | ?:[\\/]*)
9339 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9358 esac
9360 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9361 if test -n "$aros_target_ranlib_ln"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9363 $as_echo "$aros_target_ranlib_ln" >&6; }
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9372 if test "$aros_target_ranlib_ln" = ""; then
9373 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9376 if test "$aros_target_strip" = ""; then
9377 if test "$cross_compiling" = "yes" ; then
9378 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9379 set dummy ${target_tool_prefix}strip; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 case $aros_target_strip_ln in
9386 [\\/]* | ?:[\\/]*)
9387 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391 for as_dir in $PATH
9393 IFS=$as_save_IFS
9394 test -z "$as_dir" && as_dir=.
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9397 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399 break 2
9401 done
9402 done
9403 IFS=$as_save_IFS
9406 esac
9408 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9409 if test -n "$aros_target_strip_ln"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9411 $as_echo "$aros_target_strip_ln" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9418 else
9419 if test "$GCC" = "yes"; then
9420 aros_gcc_strip=`$CC -print-prog-name=strip`
9421 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9422 set dummy `basename $aros_gcc_strip`; ac_word=$2
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9424 $as_echo_n "checking for $ac_word... " >&6; }
9425 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9427 else
9428 case $aros_target_strip_ln in
9429 [\\/]* | ?:[\\/]*)
9430 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in `dirname $aros_gcc_strip`
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9440 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9449 esac
9451 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9452 if test -n "$aros_target_strip_ln"; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9454 $as_echo "$aros_target_strip_ln" >&6; }
9455 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457 $as_echo "no" >&6; }
9462 if test "$aros_target_strip_ln" = ""; then
9463 # Extract the first word of "strip", so it can be a program name with args.
9464 set dummy strip; ac_word=$2
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466 $as_echo_n "checking for $ac_word... " >&6; }
9467 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 case $aros_target_strip_ln in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 for as_dir in $PATH
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9482 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9486 done
9487 done
9488 IFS=$as_save_IFS
9491 esac
9493 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9494 if test -n "$aros_target_strip_ln"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9496 $as_echo "$aros_target_strip_ln" >&6; }
9497 else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9505 else
9506 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9507 set dummy $aros_target_strip; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 case $aros_target_strip_ln in
9514 [\\/]* | ?:[\\/]*)
9515 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9519 for as_dir in $PATH
9521 IFS=$as_save_IFS
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 break 2
9529 done
9530 done
9531 IFS=$as_save_IFS
9534 esac
9536 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9537 if test -n "$aros_target_strip_ln"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9539 $as_echo "$aros_target_strip_ln" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9548 if test "$aros_target_strip_ln" = ""; then
9549 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9551 if test "$aros_target_cxx" != ""; then
9552 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9553 set dummy $aros_target_cxx; ac_word=$2
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9555 $as_echo_n "checking for $ac_word... " >&6; }
9556 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 case $aros_target_cxx in
9560 [\\/]* | ?:[\\/]*)
9561 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 for as_dir in $PATH
9567 IFS=$as_save_IFS
9568 test -z "$as_dir" && as_dir=.
9569 for ac_exec_ext in '' $ac_executable_extensions; do
9570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9571 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 break 2
9575 done
9576 done
9577 IFS=$as_save_IFS
9580 esac
9582 aros_target_cxx=$ac_cv_path_aros_target_cxx
9583 if test -n "$aros_target_cxx"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9585 $as_echo "$aros_target_cxx" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9592 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
9593 # AROS_REQUIRED(c++,$aros_target_cxx)
9595 else
9596 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9597 aros_target_cxx=""
9600 # Build crosstools if we have no C++ - temporary thing
9601 if test "$aros_target_cxx" = ""; then
9602 crosstools_target=tools-crosstools
9605 if test "$rescomp" != ""; then
9606 if test "$cross_compiling" = "yes" ; then
9607 rescomp=${target_tool_prefix}${rescomp}
9609 # Extract the first word of "$rescomp", so it can be a program name with args.
9610 set dummy $rescomp; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 case $aros_kernel_rescomp in
9617 [\\/]* | ?:[\\/]*)
9618 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9632 done
9633 done
9634 IFS=$as_save_IFS
9637 esac
9639 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9640 if test -n "$aros_kernel_rescomp"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9642 $as_echo "$aros_kernel_rescomp" >&6; }
9643 else
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9649 if test "$aros_kernel_rescomp" = ""; then
9650 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9654 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9655 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9656 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9657 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9658 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9659 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9660 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9662 # aros_cc_pre is a variable that is added to the front of the compiler name
9663 # in the generated aros-gcc shell script. We need this to enable the cache
9664 # to work across cleaned builds. Also, support DISTCC using the correct
9665 # environment variable.
9668 if test "x${DISTCC}" != "x" ; then
9669 if test "x${CCACHE}" != "x" ; then
9670 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9671 else
9672 aros_cc_pre="${DISTCC} "
9674 else
9675 if test "x${CCACHE}" != "x" ; then
9676 aros_cc_pre="${CCACHE} "
9680 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9682 aros_target_nostdinc_cflags=-nostdinc
9684 aros_target_nostartup_ldflags=-nostartfiles
9686 aros_target_nix_ldflags=-nix
9688 aros_target_detach_ldflags=-detach
9690 aros_target_nostdlib_ldflags=-nostdlib
9693 # Target tools
9694 if test "$aros_target_cc" = ""; then
9695 orig_target_cc=$aros_kernel_cc
9696 else
9697 orig_target_cc=$aros_target_cc
9699 if test "$aros_target_ld" = ""; then
9700 orig_target_ld=$aros_kernel_ld
9701 else
9702 orig_target_ld=$aros_target_ld
9704 if test "$GCC" = "yes"; then
9705 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9707 aros_target_cc="${prefix}-gcc"
9708 aros_target_as="${prefix}-as"
9709 aros_target_ld="${prefix}-ld"
9710 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9711 aros_target_objcopy=${prefix}-objcopy
9712 aros_target_objdump=${prefix}-objdump
9713 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9714 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9715 aros_kernel_nm="${prefix}-nm"
9716 aros_target_strip=${prefix}-strip
9718 # Find the system include path. We can suggest that an alternative is
9719 # used if we don't get it correct. The default is to use /usr/include.
9720 # Which is set in the aros_target_incl_def variable.
9722 # Check whether --enable-includes was given.
9723 if test "${enable_includes+set}" = set; then :
9724 enableval=$enable_includes; aros_target_incl=$enable_includes
9725 else
9726 aros_target_incl=$aros_target_incl_def
9730 if test "$aros_kernel_includes" = ""; then
9731 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9732 # FIXME: for cross-compiling this should point to another location
9733 aros_kernel_includes="-isystem $aros_target_incl"
9737 if test "$aros_kernel_includes" != "" ; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9739 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9740 if test "$aros_kernel_cc_includes" = "" ; then
9741 # Try to guess where the directory is.
9742 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9743 if test -d $aros_kernel_cc_includes; then
9744 # Check if there is also an include-fixed directory and add it
9745 # to kernel compiler's include path as it may contain some of
9746 # the headers we need.
9747 if test -d "$aros_kernel_cc_includes"-fixed; then
9748 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9750 else
9751 # The directory doesn't exist, we need to do some more work.
9752 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9754 # These are the headers we're looking for.
9755 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9756 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9757 zutil.h"
9759 dirs=
9760 for h in $headers; do
9761 # Which other headers are needed by each of the above?
9762 deps=$(echo "#include <$h>" | \
9763 $aros_kernel_cc -E -M - 2>/dev/null | \
9764 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9766 # Copy all the needed headers to a directory beneath gendir.
9767 for d in $deps; do
9768 h=$(basename $d)
9769 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9770 sed -n "s,^.*/include\(/.*\),\1,p")
9771 ! test -d $dir && mkdir -p $dir
9772 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9773 done
9774 done
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9778 $as_echo "$aros_kernel_cc_includes" >&6; }
9779 # Adding -nostdinc to kernel includes as they are always used together.
9780 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9784 $as_echo_n "checking for the target compiler's include path... " >&6; }
9785 if test "$aros_target_cc_includes" = "" ; then
9786 #try to guess where the directory is
9787 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9788 if ! test -d $aros_target_cc_includes; then
9789 #the directory doesn't exist, we need to do some more work
9790 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9792 #these are the headers we're looling for
9793 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9794 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9795 zutil.h"
9797 dirs=
9798 for h in $headers; do
9799 #which other headers each of the above headers needs?
9800 deps=$(echo "#include <$h>" | \
9801 $orig_target_cc -E -M - 2>/dev/null | \
9802 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9804 #copy all the needed headers to a directory beneath gendir
9805 for d in $deps; do
9806 h=$(basename $d)
9807 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9808 sed -n "s,^.*/include\(/.*\),\1,p")
9809 ! test -d $dir && mkdir -p $dir
9810 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9811 done
9812 done
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9816 $as_echo "$aros_target_cc_includes" >&6; }
9819 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9820 # On GCC >= 4.0 -iquote should be used
9823 save_cc="$CC"
9824 save_cflags="$CFLAGS"
9825 CFLAGS="-iquote."
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9827 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9832 main ()
9836 return 0;
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"; then :
9840 has_iquote="yes"
9841 else
9842 has_iquote="no"
9844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9846 $as_echo "$has_iquote" >&6; }
9847 if test "x-$has_iquote" = "x-yes" ; then
9848 host_cflags_iquote=-iquote
9849 host_cflags_iquote_end=
9850 else
9851 host_cflags_iquote=-I
9852 host_cflags_iquote_end=-I-
9854 kernel_cflags_iquote=$host_cflags_iquote
9855 kernel_cflags_iquote_end=$host_cflags_iquote_end
9856 if test "x-$cross_compiling" = "x-yes"; then
9857 CC="$aros_kernel_cc"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9859 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9864 main ()
9868 return 0;
9870 _ACEOF
9871 if ac_fn_c_try_compile "$LINENO"; then :
9872 use_no_stack_protector="yes"
9873 else
9874 use_no_stack_protector="no"
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9878 $as_echo "$use_no_stack_protector" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9880 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9885 main ()
9889 return 0;
9891 _ACEOF
9892 if ac_fn_c_try_compile "$LINENO"; then :
9893 has_iquote="yes"
9894 else
9895 has_iquote="no"
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9899 $as_echo "$has_iquote" >&6; }
9900 if test "x-$has_iquote" = "x-yes" ; then
9901 kernel_cflags_iquote=-iquote
9902 kernel_cflags_iquote_end=
9903 else
9904 kernel_cflags_iquote=-I
9905 kernel_cflags_iquote_end=-I-
9908 aros_cflags_iquote=$kernel_cflags_iquote
9909 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9910 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9911 CC="$orig_target_cc"
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9913 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9918 main ()
9922 return 0;
9924 _ACEOF
9925 if ac_fn_c_try_compile "$LINENO"; then :
9926 has_iquote="yes"
9927 else
9928 has_iquote="no"
9930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9932 $as_echo "$has_iquote" >&6; }
9933 if test "x-$has_iquote" = "x-yes" ; then
9934 aros_cflags_iquote=-iquote
9935 aros_cflags_iquote_end=
9936 else
9937 aros_cflags_iquote=-I
9938 aros_cflags_iquote_end=-I-
9941 if test "x-$use_no_stack_protector" = "x-yes" ; then
9942 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9945 #-----------------------------------------------------------------------------
9947 # Check if we can explicitly choose older version of symbol hashing
9949 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9950 CC="$aros_kernel_cc"
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9952 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9957 main ()
9961 return 0;
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9965 use_hash_style="yes"
9966 else
9967 use_hash_style="no"
9969 rm -f core conftest.err conftest.$ac_objext \
9970 conftest$ac_exeext conftest.$ac_ext
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9972 $as_echo "$use_hash_style" >&6; }
9973 if test "x-$use_hash_style" = "x-yes" ; then
9974 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9976 CC="$save_cc"
9977 CFLAGS="$save_cflags"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9988 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9990 # Check whether --with-resolution was given.
9991 if test "${with_resolution+set}" = set; then :
9992 withval=$with_resolution; resolution=$withval
9993 else
9994 resolution=none
9997 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9998 if test "$resolution" = "yes" ; then
9999 resolution="none"
10001 if test "$resolution" = "no" ; then
10002 resolution="none"
10004 if test "$resolution" != "none" ; then
10005 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10006 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10007 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10010 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10011 aros_cv_default_wbwidth=$aros_default_wbwidth
10012 aros_cv_default_wbheight=$aros_default_wbheight
10013 aros_cv_default_wbdepth=$aros_default_wbdepth
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10016 $as_echo_n "checking if serial debug is enabled... " >&6; }
10018 # Check whether --with-serial-debug was given.
10019 if test "${with_serial_debug+set}" = set; then :
10020 withval=$with_serial_debug; serial_debug=$withval
10021 else
10022 serial_debug=none
10025 if test "$aros_serial_debug" = 0 ; then
10026 serial_debug_forced=""
10027 if test "$serial_debug" = "yes" ; then
10028 serial_debug="2"
10030 if test "$serial_debug" = "no" ; then
10031 serial_debug="none"
10033 else
10034 serial_debug_forced="(forced)"
10035 serial_debug=$aros_serial_debug
10037 if test "$serial_debug" != "none" ; then
10038 aros_serial_debug=$serial_debug
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10040 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10047 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10048 # Check whether --enable-palm_debug_hack was given.
10049 if test "${enable_palm_debug_hack+set}" = set; then :
10050 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10051 else
10052 palm_debug_hack="no"
10055 if test "$palm_debug_hack" = "yes" ; then
10056 aros_palm_debug_hack="1"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10059 $as_echo "$palm_debug_hack" >&6; }
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10063 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10064 # Check whether --enable-nesting_supervisor was given.
10065 if test "${enable_nesting_supervisor+set}" = set; then :
10066 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10067 else
10068 nesting_supervisor="no"
10071 if test "$nesting_supervisor" = "yes" ; then
10072 aros_nesting_supervisor="1"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10075 $as_echo "$nesting_supervisor" >&6; }
10077 if test "$aros_enable_mmu" = "" ; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10079 $as_echo_n "checking if MMU support is enabled... " >&6; }
10080 # Check whether --enable-mmu was given.
10081 if test "${enable_mmu+set}" = set; then :
10082 enableval=$enable_mmu; aros_enable_mmu=$enableval
10083 else
10084 aros_enable_mmu="yes"
10087 if test "$aros_enable_mmu" = "" ; then
10088 aros_enable_mmu="yes"
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10091 $as_echo "$aros_enable_mmu" >&6; }
10093 if test "$aros_enable_mmu" = "no" ; then
10094 aros_enable_mmu="0"
10095 else
10096 aros_enable_mmu="1"
10100 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10102 if test "x-$need_dlopen" != "x-no" ; then
10103 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10104 if test "x$ac_cv_func_dlopen" = x""yes; then :
10105 have_dl="yes"
10106 else
10107 have_dl="no"
10110 if test "x-$have_dl" = "x-no" ; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 ac_check_lib_save_LIBS=$LIBS
10117 LIBS="-ldl $LIBS"
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */
10121 /* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124 #ifdef __cplusplus
10125 extern "C"
10126 #endif
10127 char dlopen ();
10129 main ()
10131 return dlopen ();
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_link "$LINENO"; then :
10137 ac_cv_lib_dl_dlopen=yes
10138 else
10139 ac_cv_lib_dl_dlopen=no
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10147 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10148 have_dl="yes"
10149 aros_host_ldflags="$aros_host_ldflags -ldl"
10150 else
10151 have_dl="no"
10155 if test "x-$have_dl" = "x-no" ; then
10156 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
10161 # Check whether --enable-x11_hidd was given.
10162 if test "${enable_x11_hidd+set}" = set; then :
10163 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10164 else
10165 x11_hidd="$need_x11"
10168 case "x-$x11_hidd" in
10169 x-yes|x-no|x-auto) ;;
10170 *) x11_hidd="$need_x11" ;;
10171 esac
10173 ENABLE_X11=0
10175 if test "x-$x11_hidd" != "x-no" ; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10178 $as_echo_n "checking for X... " >&6; }
10181 # Check whether --with-x was given.
10182 if test "${with_x+set}" = set; then :
10183 withval=$with_x;
10186 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10187 if test "x$with_x" = xno; then
10188 # The user explicitly disabled X.
10189 have_x=disabled
10190 else
10191 case $x_includes,$x_libraries in #(
10192 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10193 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 # One or both of the vars are not set, and there is no cached value.
10197 ac_x_includes=no ac_x_libraries=no
10198 rm -f -r conftest.dir
10199 if mkdir conftest.dir; then
10200 cd conftest.dir
10201 cat >Imakefile <<'_ACEOF'
10202 incroot:
10203 @echo incroot='${INCROOT}'
10204 usrlibdir:
10205 @echo usrlibdir='${USRLIBDIR}'
10206 libdir:
10207 @echo libdir='${LIBDIR}'
10208 _ACEOF
10209 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10211 for ac_var in incroot usrlibdir libdir; do
10212 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10213 done
10214 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10215 for ac_extension in a so sl dylib la dll; do
10216 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10217 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10218 ac_im_usrlibdir=$ac_im_libdir; break
10220 done
10221 # Screen out bogus values from the imake configuration. They are
10222 # bogus both because they are the default anyway, and because
10223 # using them would break gcc on systems where it needs fixed includes.
10224 case $ac_im_incroot in
10225 /usr/include) ac_x_includes= ;;
10226 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10227 esac
10228 case $ac_im_usrlibdir in
10229 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10230 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10231 esac
10233 cd ..
10234 rm -f -r conftest.dir
10237 # Standard set of common directories for X headers.
10238 # Check X11 before X11Rn because it is often a symlink to the current release.
10239 ac_x_header_dirs='
10240 /usr/X11/include
10241 /usr/X11R7/include
10242 /usr/X11R6/include
10243 /usr/X11R5/include
10244 /usr/X11R4/include
10246 /usr/include/X11
10247 /usr/include/X11R7
10248 /usr/include/X11R6
10249 /usr/include/X11R5
10250 /usr/include/X11R4
10252 /usr/local/X11/include
10253 /usr/local/X11R7/include
10254 /usr/local/X11R6/include
10255 /usr/local/X11R5/include
10256 /usr/local/X11R4/include
10258 /usr/local/include/X11
10259 /usr/local/include/X11R7
10260 /usr/local/include/X11R6
10261 /usr/local/include/X11R5
10262 /usr/local/include/X11R4
10264 /usr/X386/include
10265 /usr/x386/include
10266 /usr/XFree86/include/X11
10268 /usr/include
10269 /usr/local/include
10270 /usr/unsupported/include
10271 /usr/athena/include
10272 /usr/local/x11r5/include
10273 /usr/lpp/Xamples/include
10275 /usr/openwin/include
10276 /usr/openwin/share/include'
10278 if test "$ac_x_includes" = no; then
10279 # Guess where to find include files, by looking for Xlib.h.
10280 # First, try using that file with no special directory specified.
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 #include <X11/Xlib.h>
10284 _ACEOF
10285 if ac_fn_c_try_cpp "$LINENO"; then :
10286 # We can compile using X headers with no special include directory.
10287 ac_x_includes=
10288 else
10289 for ac_dir in $ac_x_header_dirs; do
10290 if test -r "$ac_dir/X11/Xlib.h"; then
10291 ac_x_includes=$ac_dir
10292 break
10294 done
10296 rm -f conftest.err conftest.$ac_ext
10297 fi # $ac_x_includes = no
10299 if test "$ac_x_libraries" = no; then
10300 # Check for the libraries.
10301 # See if we find them without any special options.
10302 # Don't add to $LIBS permanently.
10303 ac_save_LIBS=$LIBS
10304 LIBS="-lX11 $LIBS"
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 #include <X11/Xlib.h>
10309 main ()
10311 XrmInitialize ()
10313 return 0;
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10317 LIBS=$ac_save_LIBS
10318 # We can link X programs with no special library path.
10319 ac_x_libraries=
10320 else
10321 LIBS=$ac_save_LIBS
10322 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10324 # Don't even attempt the hair of trying to link an X program!
10325 for ac_extension in a so sl dylib la dll; do
10326 if test -r "$ac_dir/libX11.$ac_extension"; then
10327 ac_x_libraries=$ac_dir
10328 break 2
10330 done
10331 done
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 fi # $ac_x_libraries = no
10337 case $ac_x_includes,$ac_x_libraries in #(
10338 no,* | *,no | *\'*)
10339 # Didn't find X, or a directory has "'" in its name.
10340 ac_cv_have_x="have_x=no";; #(
10342 # Record where we found X for the cache.
10343 ac_cv_have_x="have_x=yes\
10344 ac_x_includes='$ac_x_includes'\
10345 ac_x_libraries='$ac_x_libraries'"
10346 esac
10348 ;; #(
10349 *) have_x=yes;;
10350 esac
10351 eval "$ac_cv_have_x"
10352 fi # $with_x != no
10354 if test "$have_x" != yes; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10356 $as_echo "$have_x" >&6; }
10357 no_x=yes
10358 else
10359 # If each of the values was on the command line, it overrides each guess.
10360 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10361 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10362 # Update the cache value to reflect the command line values.
10363 ac_cv_have_x="have_x=yes\
10364 ac_x_includes='$x_includes'\
10365 ac_x_libraries='$x_libraries'"
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10367 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10371 x_cflags=
10372 for path in $x_libraries
10374 x_cflags="$x_cflags -L$path"
10375 done
10377 for path in $x_includes
10379 x_cflags="$x_cflags -I$path"
10380 done
10382 if test "x-$no_x" = "x-yes" ; then
10384 if test "x-$x11_hidd" != "x-auto" ; then
10385 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10388 else
10389 x11_hidd_target=kernel-x11gfx-kobj
10390 ENABLE_X11=1
10392 # Check whether --enable-x11_shm was given.
10393 if test "${enable_x11_shm+set}" = set; then :
10394 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10395 else
10396 x11_hidd_shm="auto"
10399 case "x-$x11_hidd_shm" in
10400 x-yes|x-no|x-auto) ;;
10401 *) x11_hidd_shm="auto" ;;
10402 esac
10404 have_xshm=no
10406 if test "x-$x11_hidd_shm" != "x-no" ; then
10408 for ac_header in sys/ipc.h
10409 do :
10410 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10411 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10412 cat >>confdefs.h <<_ACEOF
10413 #define HAVE_SYS_IPC_H 1
10414 _ACEOF
10418 done
10420 for ac_header in sys/shm.h
10421 do :
10422 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10423 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define HAVE_SYS_SHM_H 1
10426 _ACEOF
10430 done
10433 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10435 save_cflags="$CFLAGS"
10436 CFLAGS="$CFLAGS $x_cflags"
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10438 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10439 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lXext $LIBS"
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 char XShmQueryExtension ();
10455 main ()
10457 return XShmQueryExtension ();
10459 return 0;
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 ac_cv_lib_Xext_XShmQueryExtension=yes
10464 else
10465 ac_cv_lib_Xext_XShmQueryExtension=no
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LIBS=$ac_check_lib_save_LIBS
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10472 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10473 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10474 have_xshm=yes
10477 CFLAGS="$save_cflags"
10481 if test "x-$have_xshm" = "x-yes" ; then
10482 DO_XSHM_SUPPORT="1"
10483 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10484 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10485 else
10486 DO_XSHM_SUPPORT="0"
10490 # Check whether --enable-x11_vidmode was given.
10491 if test "${enable_x11_vidmode+set}" = set; then :
10492 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10493 else
10494 x11_hidd_vidmode="auto"
10497 case "x-$x11_hidd_vidmode" in
10498 x-yes|x-no|x-auto) ;;
10499 *) x11_hidd_vidmode="auto" ;;
10500 esac
10502 have_vidmode=no
10504 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10506 save_cflags="$CFLAGS"
10507 CFLAGS="$CFLAGS $x_cflags"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10509 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10510 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10512 else
10513 ac_check_lib_save_LIBS=$LIBS
10514 LIBS="-lXxf86vm $LIBS"
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10518 /* Override any GCC internal prototype to avoid an error.
10519 Use char because int might match the return type of a GCC
10520 builtin and then its argument prototype would still apply. */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 char XF86VidModeQueryExtension ();
10526 main ()
10528 return XF86VidModeQueryExtension ();
10530 return 0;
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10535 else
10536 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10543 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10544 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10545 have_vidmode=yes
10548 CFLAGS="$save_cflags"
10551 if test "x-$have_vidmode" = "x-yes" ; then
10552 DO_VIDMODE_SUPPORT="1"
10553 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10554 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10555 else
10556 DO_VIDMODE_SUPPORT="0"
10560 aros_host_x11_includes=$x_includes
10561 aros_host_x11_libdirs=$x_libraries
10565 # Check whether --enable-sdl_hidd was given.
10566 if test "${enable_sdl_hidd+set}" = set; then :
10567 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10568 else
10569 sdl_hidd="auto"
10572 case "x-$sdl_hidd" in
10573 x-yes|x-no|x-auto) ;;
10574 *) sdl_hidd="auto" ;;
10575 esac
10577 if test "x-$sdl_hidd" != "x-no" ; then
10580 # Check whether --with-sdl-prefix was given.
10581 if test "${with_sdl_prefix+set}" = set; then :
10582 withval=$with_sdl_prefix; sdl_prefix="$withval"
10583 else
10584 sdl_prefix=""
10588 # Check whether --with-sdl-exec-prefix was given.
10589 if test "${with_sdl_exec_prefix+set}" = set; then :
10590 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10591 else
10592 sdl_exec_prefix=""
10595 # Check whether --enable-sdltest was given.
10596 if test "${enable_sdltest+set}" = set; then :
10597 enableval=$enable_sdltest;
10598 else
10599 enable_sdltest=yes
10603 if test x$sdl_exec_prefix != x ; then
10604 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10605 if test x${SDL_CONFIG+set} != xset ; then
10606 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10609 if test x$sdl_prefix != x ; then
10610 sdl_args="$sdl_args --prefix=$sdl_prefix"
10611 if test x${SDL_CONFIG+set} != xset ; then
10612 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10616 if test "x$prefix" != xNONE; then
10617 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10619 # Extract the first word of "sdl-config", so it can be a program name with args.
10620 set dummy sdl-config; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 case $SDL_CONFIG in
10627 [\\/]* | ?:[\\/]*)
10628 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10632 for as_dir in $PATH
10634 IFS=$as_save_IFS
10635 test -z "$as_dir" && as_dir=.
10636 for ac_exec_ext in '' $ac_executable_extensions; do
10637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10638 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 break 2
10642 done
10643 done
10644 IFS=$as_save_IFS
10646 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10648 esac
10650 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10651 if test -n "$SDL_CONFIG"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10653 $as_echo "$SDL_CONFIG" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10660 min_sdl_version=1.2.10
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10662 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10663 no_sdl=""
10664 if test "$SDL_CONFIG" = "no" ; then
10665 no_sdl=yes
10666 else
10667 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10668 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10670 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10671 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10672 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10674 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10676 if test "x$enable_sdltest" = "xyes" ; then
10677 ac_save_CFLAGS="$CFLAGS"
10678 ac_save_CXXFLAGS="$CXXFLAGS"
10679 ac_save_LIBS="$LIBS"
10680 CFLAGS="$CFLAGS $SDL_CFLAGS"
10681 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10682 LIBS="$LIBS $SDL_LIBS"
10683 rm -f conf.sdltest
10684 if test "$cross_compiling" = yes; then :
10685 echo $ac_n "cross compiling; assumed OK... $ac_c"
10686 else
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 #include <stdio.h>
10691 #include <stdlib.h>
10692 #include <string.h>
10693 #include "SDL.h"
10695 char*
10696 my_strdup (char *str)
10698 char *new_str;
10700 if (str)
10702 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10703 strcpy (new_str, str);
10705 else
10706 new_str = NULL;
10708 return new_str;
10711 int main (int argc, char *argv[])
10713 int major, minor, micro;
10714 char *tmp_version;
10716 /* This hangs on some systems (?)
10717 system ("touch conf.sdltest");
10719 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10721 /* HP/UX 9 (%@#!) writes to sscanf strings */
10722 tmp_version = my_strdup("$min_sdl_version");
10723 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10724 printf("%s, bad version string\n", "$min_sdl_version");
10725 exit(1);
10728 if (($sdl_major_version > major) ||
10729 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10730 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10732 return 0;
10734 else
10736 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10737 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10738 printf("*** best to upgrade to the required version.\n");
10739 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10740 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10741 printf("*** config.cache before re-running configure\n");
10742 return 1;
10747 _ACEOF
10748 if ac_fn_c_try_run "$LINENO"; then :
10750 else
10751 no_sdl=yes
10753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10754 conftest.$ac_objext conftest.beam conftest.$ac_ext
10757 CFLAGS="$ac_save_CFLAGS"
10758 CXXFLAGS="$ac_save_CXXFLAGS"
10759 LIBS="$ac_save_LIBS"
10762 if test "x$no_sdl" = x ; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; }
10765 have_sdl="yes"
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 if test "$SDL_CONFIG" = "no" ; then
10770 echo "*** The sdl-config script installed by SDL could not be found"
10771 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10772 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10773 echo "*** full path to sdl-config."
10774 else
10775 if test -f conf.sdltest ; then
10777 else
10778 echo "*** Could not run SDL test program, checking why..."
10779 CFLAGS="$CFLAGS $SDL_CFLAGS"
10780 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10781 LIBS="$LIBS $SDL_LIBS"
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10785 #include <stdio.h>
10786 #include "SDL.h"
10788 int main(int argc, char *argv[])
10789 { return 0; }
10790 #undef main
10791 #define main K_and_R_C_main
10794 main ()
10796 return 0;
10798 return 0;
10800 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then :
10802 echo "*** The test program compiled, but did not run. This usually means"
10803 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10804 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10805 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10806 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10807 echo "*** is required on your system"
10808 echo "***"
10809 echo "*** If you have an old version installed, it is best to remove it, although"
10810 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10811 else
10812 echo "*** The test program failed to compile or link. See the file config.log for the"
10813 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10814 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10815 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10817 rm -f core conftest.err conftest.$ac_objext \
10818 conftest$ac_exeext conftest.$ac_ext
10819 CFLAGS="$ac_save_CFLAGS"
10820 CXXFLAGS="$ac_save_CXXFLAGS"
10821 LIBS="$ac_save_LIBS"
10824 SDL_CFLAGS=""
10825 SDL_LIBS=""
10826 have_sdl="no"
10830 rm -f conf.sdltest
10833 if test "x-$have_sdl" != "x-yes" ; then
10835 if test "x-$sdl_hidd" != "x-auto" ; then
10836 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10839 else
10840 sdl_hidd_target=kernel-hidd-sdl
10841 aros_host_sdl_cflags=SDL_CFLAGS
10842 aros_host_sdl_libs=SDL_LIBS
10846 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10847 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10852 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10853 oss_library_target=workbench-libs-oss-unix
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10859 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10860 # Check whether --enable-dbus was given.
10861 if test "${enable_dbus+set}" = set; then :
10862 enableval=$enable_dbus; dbus="yes"
10863 else
10864 dbus="no"
10867 if test "$dbus" = "yes" ; then
10868 ENABLE_DBUS=1
10869 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10870 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10871 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10872 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10873 else
10874 ENABLE_DBUS=0
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10877 $as_echo "$dbus" >&6; }
10881 # Generic
10891 # Host related
10915 # Target Related
10970 # Graphics Related
10987 # Native version related
10990 # Palm native version related
10993 # Unix/Hosted version related
10996 # MMU related
10999 # Apple iOS related
11004 # Android related
11008 # DBUS related
11015 #X11 related
11018 # Debug related
11024 # Collect-aros stuff: "-ius" to ignore undefined symbols
11027 # C compiler related
11030 case "$aros_flavour" in
11031 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11032 aros_flavour="emulation" ;;
11033 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11034 aros_flavour="emulation" ;;
11035 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11036 aros_flavour="standalone";;
11037 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11038 aros_flavour="standalone";;
11039 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11040 aros_flavour="native" ;;
11041 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11042 aros_flavour="native" ;;
11043 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11044 aros_flavour="linklib" ;;
11045 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11046 aros_flavour="palmnative" ;;
11047 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11048 aros_flavour="mac68knative" ;;
11049 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11050 aros_flavour="ppcnative" ;;
11051 esac
11053 if test ! -d ${aros_inc_dir} ; then
11054 ${MKDIR} ${aros_inc_dir}
11056 if test ! -d ${aros_geninc_dir} ; then
11057 ${MKDIR} ${aros_geninc_dir}
11059 if test ! -d ${aros_hostcfg_dir} ; then
11060 ${MKDIR} ${aros_hostcfg_dir}
11062 if test ! -d ${aros_targetcfg_dir} ; then
11063 ${MKDIR} ${aros_targetcfg_dir}
11065 if test ! -d ${aros_tools_dir} ; then
11066 ${MKDIR} ${aros_tools_dir}
11068 if test ! -d ${aros_scripts_dir} ; then
11069 ${MKDIR} ${aros_scripts_dir}
11072 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11075 ac_config_commands="$ac_config_commands compiler_executable"
11077 ac_config_commands="$ac_config_commands genshared_executable"
11079 ac_config_commands="$ac_config_commands genmf_executable"
11082 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_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.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"
11085 cat >confcache <<\_ACEOF
11086 # This file is a shell script that caches the results of configure
11087 # tests run on this system so they can be shared between configure
11088 # scripts and configure runs, see configure's option --config-cache.
11089 # It is not useful on other systems. If it contains results you don't
11090 # want to keep, you may remove or edit it.
11092 # config.status only pays attention to the cache file if you give it
11093 # the --recheck option to rerun configure.
11095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11097 # following values.
11099 _ACEOF
11101 # The following way of writing the cache mishandles newlines in values,
11102 # but we know of no workaround that is simple, portable, and efficient.
11103 # So, we kill variables containing newlines.
11104 # Ultrix sh set writes to stderr and can't be redirected directly,
11105 # and sets the high bit in the cache file unless we assign to the vars.
11107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11108 eval ac_val=\$$ac_var
11109 case $ac_val in #(
11110 *${as_nl}*)
11111 case $ac_var in #(
11112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11114 esac
11115 case $ac_var in #(
11116 _ | IFS | as_nl) ;; #(
11117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11118 *) { eval $ac_var=; unset $ac_var;} ;;
11119 esac ;;
11120 esac
11121 done
11123 (set) 2>&1 |
11124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11125 *${as_nl}ac_space=\ *)
11126 # `set' does not quote correctly, so add quotes: double-quote
11127 # substitution turns \\\\ into \\, and sed turns \\ into \.
11128 sed -n \
11129 "s/'/'\\\\''/g;
11130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11131 ;; #(
11133 # `set' quotes correctly as required by POSIX, so do not add quotes.
11134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11136 esac |
11137 sort
11139 sed '
11140 /^ac_cv_env_/b end
11141 t clear
11142 :clear
11143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11144 t end
11145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11146 :end' >>confcache
11147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11148 if test -w "$cache_file"; then
11149 test "x$cache_file" != "x/dev/null" &&
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11151 $as_echo "$as_me: updating cache $cache_file" >&6;}
11152 cat confcache >$cache_file
11153 else
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11155 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11158 rm -f confcache
11160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11161 # Let make expand exec_prefix.
11162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11164 DEFS=-DHAVE_CONFIG_H
11166 ac_libobjs=
11167 ac_ltlibobjs=
11168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11169 # 1. Remove the extension, and $U if already installed.
11170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11173 # will be set to the directory where LIBOBJS objects are built.
11174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11176 done
11177 LIBOBJS=$ac_libobjs
11179 LTLIBOBJS=$ac_ltlibobjs
11183 : ${CONFIG_STATUS=./config.status}
11184 ac_write_fail=0
11185 ac_clean_files_save=$ac_clean_files
11186 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11188 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11189 as_write_fail=0
11190 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11191 #! $SHELL
11192 # Generated by $as_me.
11193 # Run this file to recreate the current configuration.
11194 # Compiler output produced by configure, useful for debugging
11195 # configure, is in config.log if it exists.
11197 debug=false
11198 ac_cs_recheck=false
11199 ac_cs_silent=false
11201 SHELL=\${CONFIG_SHELL-$SHELL}
11202 export SHELL
11203 _ASEOF
11204 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11205 ## -------------------- ##
11206 ## M4sh Initialization. ##
11207 ## -------------------- ##
11209 # Be more Bourne compatible
11210 DUALCASE=1; export DUALCASE # for MKS sh
11211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11212 emulate sh
11213 NULLCMD=:
11214 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11215 # is contrary to our usage. Disable this feature.
11216 alias -g '${1+"$@"}'='"$@"'
11217 setopt NO_GLOB_SUBST
11218 else
11219 case `(set -o) 2>/dev/null` in #(
11220 *posix*) :
11221 set -o posix ;; #(
11222 *) :
11224 esac
11228 as_nl='
11230 export as_nl
11231 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11232 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11233 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11234 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11235 # Prefer a ksh shell builtin over an external printf program on Solaris,
11236 # but without wasting forks for bash or zsh.
11237 if test -z "$BASH_VERSION$ZSH_VERSION" \
11238 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11239 as_echo='print -r --'
11240 as_echo_n='print -rn --'
11241 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11242 as_echo='printf %s\n'
11243 as_echo_n='printf %s'
11244 else
11245 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11246 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11247 as_echo_n='/usr/ucb/echo -n'
11248 else
11249 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11250 as_echo_n_body='eval
11251 arg=$1;
11252 case $arg in #(
11253 *"$as_nl"*)
11254 expr "X$arg" : "X\\(.*\\)$as_nl";
11255 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11256 esac;
11257 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11259 export as_echo_n_body
11260 as_echo_n='sh -c $as_echo_n_body as_echo'
11262 export as_echo_body
11263 as_echo='sh -c $as_echo_body as_echo'
11266 # The user is always right.
11267 if test "${PATH_SEPARATOR+set}" != set; then
11268 PATH_SEPARATOR=:
11269 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11270 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11271 PATH_SEPARATOR=';'
11276 # IFS
11277 # We need space, tab and new line, in precisely that order. Quoting is
11278 # there to prevent editors from complaining about space-tab.
11279 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11280 # splitting by setting IFS to empty value.)
11281 IFS=" "" $as_nl"
11283 # Find who we are. Look in the path if we contain no directory separator.
11284 case $0 in #((
11285 *[\\/]* ) as_myself=$0 ;;
11286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11292 done
11293 IFS=$as_save_IFS
11296 esac
11297 # We did not find ourselves, most probably we were run as `sh COMMAND'
11298 # in which case we are not to be found in the path.
11299 if test "x$as_myself" = x; then
11300 as_myself=$0
11302 if test ! -f "$as_myself"; then
11303 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11304 exit 1
11307 # Unset variables that we do not need and which cause bugs (e.g. in
11308 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11309 # suppresses any "Segmentation fault" message there. '((' could
11310 # trigger a bug in pdksh 5.2.14.
11311 for as_var in BASH_ENV ENV MAIL MAILPATH
11312 do eval test x\${$as_var+set} = xset \
11313 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11314 done
11315 PS1='$ '
11316 PS2='> '
11317 PS4='+ '
11319 # NLS nuisances.
11320 LC_ALL=C
11321 export LC_ALL
11322 LANGUAGE=C
11323 export LANGUAGE
11325 # CDPATH.
11326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11329 # as_fn_error ERROR [LINENO LOG_FD]
11330 # ---------------------------------
11331 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11332 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11333 # script with status $?, using 1 if that was 0.
11334 as_fn_error ()
11336 as_status=$?; test $as_status -eq 0 && as_status=1
11337 if test "$3"; then
11338 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11339 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11341 $as_echo "$as_me: error: $1" >&2
11342 as_fn_exit $as_status
11343 } # as_fn_error
11346 # as_fn_set_status STATUS
11347 # -----------------------
11348 # Set $? to STATUS, without forking.
11349 as_fn_set_status ()
11351 return $1
11352 } # as_fn_set_status
11354 # as_fn_exit STATUS
11355 # -----------------
11356 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11357 as_fn_exit ()
11359 set +e
11360 as_fn_set_status $1
11361 exit $1
11362 } # as_fn_exit
11364 # as_fn_unset VAR
11365 # ---------------
11366 # Portably unset VAR.
11367 as_fn_unset ()
11369 { eval $1=; unset $1;}
11371 as_unset=as_fn_unset
11372 # as_fn_append VAR VALUE
11373 # ----------------------
11374 # Append the text in VALUE to the end of the definition contained in VAR. Take
11375 # advantage of any shell optimizations that allow amortized linear growth over
11376 # repeated appends, instead of the typical quadratic growth present in naive
11377 # implementations.
11378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11379 eval 'as_fn_append ()
11381 eval $1+=\$2
11383 else
11384 as_fn_append ()
11386 eval $1=\$$1\$2
11388 fi # as_fn_append
11390 # as_fn_arith ARG...
11391 # ------------------
11392 # Perform arithmetic evaluation on the ARGs, and store the result in the
11393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11394 # must be portable across $(()) and expr.
11395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11396 eval 'as_fn_arith ()
11398 as_val=$(( $* ))
11400 else
11401 as_fn_arith ()
11403 as_val=`expr "$@" || test $? -eq 1`
11405 fi # as_fn_arith
11408 if expr a : '\(a\)' >/dev/null 2>&1 &&
11409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11410 as_expr=expr
11411 else
11412 as_expr=false
11415 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11416 as_basename=basename
11417 else
11418 as_basename=false
11421 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11422 as_dirname=dirname
11423 else
11424 as_dirname=false
11427 as_me=`$as_basename -- "$0" ||
11428 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11429 X"$0" : 'X\(//\)$' \| \
11430 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11431 $as_echo X/"$0" |
11432 sed '/^.*\/\([^/][^/]*\)\/*$/{
11433 s//\1/
11436 /^X\/\(\/\/\)$/{
11437 s//\1/
11440 /^X\/\(\/\).*/{
11441 s//\1/
11444 s/.*/./; q'`
11446 # Avoid depending upon Character Ranges.
11447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11450 as_cr_digits='0123456789'
11451 as_cr_alnum=$as_cr_Letters$as_cr_digits
11453 ECHO_C= ECHO_N= ECHO_T=
11454 case `echo -n x` in #(((((
11455 -n*)
11456 case `echo 'xy\c'` in
11457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11458 xy) ECHO_C='\c';;
11459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11460 ECHO_T=' ';;
11461 esac;;
11463 ECHO_N='-n';;
11464 esac
11466 rm -f conf$$ conf$$.exe conf$$.file
11467 if test -d conf$$.dir; then
11468 rm -f conf$$.dir/conf$$.file
11469 else
11470 rm -f conf$$.dir
11471 mkdir conf$$.dir 2>/dev/null
11473 if (echo >conf$$.file) 2>/dev/null; then
11474 if ln -s conf$$.file conf$$ 2>/dev/null; then
11475 as_ln_s='ln -s'
11476 # ... but there are two gotchas:
11477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11479 # In both cases, we have to default to `cp -p'.
11480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11481 as_ln_s='cp -p'
11482 elif ln conf$$.file conf$$ 2>/dev/null; then
11483 as_ln_s=ln
11484 else
11485 as_ln_s='cp -p'
11487 else
11488 as_ln_s='cp -p'
11490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11491 rmdir conf$$.dir 2>/dev/null
11494 # as_fn_mkdir_p
11495 # -------------
11496 # Create "$as_dir" as a directory, including parents if necessary.
11497 as_fn_mkdir_p ()
11500 case $as_dir in #(
11501 -*) as_dir=./$as_dir;;
11502 esac
11503 test -d "$as_dir" || eval $as_mkdir_p || {
11504 as_dirs=
11505 while :; do
11506 case $as_dir in #(
11507 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11508 *) as_qdir=$as_dir;;
11509 esac
11510 as_dirs="'$as_qdir' $as_dirs"
11511 as_dir=`$as_dirname -- "$as_dir" ||
11512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11513 X"$as_dir" : 'X\(//\)[^/]' \| \
11514 X"$as_dir" : 'X\(//\)$' \| \
11515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11516 $as_echo X"$as_dir" |
11517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11518 s//\1/
11521 /^X\(\/\/\)[^/].*/{
11522 s//\1/
11525 /^X\(\/\/\)$/{
11526 s//\1/
11529 /^X\(\/\).*/{
11530 s//\1/
11533 s/.*/./; q'`
11534 test -d "$as_dir" && break
11535 done
11536 test -z "$as_dirs" || eval "mkdir $as_dirs"
11537 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11540 } # as_fn_mkdir_p
11541 if mkdir -p . 2>/dev/null; then
11542 as_mkdir_p='mkdir -p "$as_dir"'
11543 else
11544 test -d ./-p && rmdir ./-p
11545 as_mkdir_p=false
11548 if test -x / >/dev/null 2>&1; then
11549 as_test_x='test -x'
11550 else
11551 if ls -dL / >/dev/null 2>&1; then
11552 as_ls_L_option=L
11553 else
11554 as_ls_L_option=
11556 as_test_x='
11557 eval sh -c '\''
11558 if test -d "$1"; then
11559 test -d "$1/.";
11560 else
11561 case $1 in #(
11562 -*)set "./$1";;
11563 esac;
11564 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11565 ???[sx]*):;;*)false;;esac;fi
11566 '\'' sh
11569 as_executable_p=$as_test_x
11571 # Sed expression to map a string onto a valid CPP name.
11572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11574 # Sed expression to map a string onto a valid variable name.
11575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11578 exec 6>&1
11579 ## ----------------------------------- ##
11580 ## Main body of $CONFIG_STATUS script. ##
11581 ## ----------------------------------- ##
11582 _ASEOF
11583 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11586 # Save the log message, to keep $0 and so on meaningful, and to
11587 # report actual input values of CONFIG_FILES etc. instead of their
11588 # values after options handling.
11589 ac_log="
11590 This file was extended by $as_me, which was
11591 generated by GNU Autoconf 2.65. Invocation command line was
11593 CONFIG_FILES = $CONFIG_FILES
11594 CONFIG_HEADERS = $CONFIG_HEADERS
11595 CONFIG_LINKS = $CONFIG_LINKS
11596 CONFIG_COMMANDS = $CONFIG_COMMANDS
11597 $ $0 $@
11599 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11602 _ACEOF
11604 case $ac_config_files in *"
11605 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11606 esac
11608 case $ac_config_headers in *"
11609 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11610 esac
11613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11614 # Files that config.status was made for.
11615 config_files="$ac_config_files"
11616 config_headers="$ac_config_headers"
11617 config_commands="$ac_config_commands"
11619 _ACEOF
11621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11622 ac_cs_usage="\
11623 \`$as_me' instantiates files and other configuration actions
11624 from templates according to the current configuration. Unless the files
11625 and actions are specified as TAGs, all are instantiated by default.
11627 Usage: $0 [OPTION]... [TAG]...
11629 -h, --help print this help, then exit
11630 -V, --version print version number and configuration settings, then exit
11631 --config print configuration, then exit
11632 -q, --quiet, --silent
11633 do not print progress messages
11634 -d, --debug don't remove temporary files
11635 --recheck update $as_me by reconfiguring in the same conditions
11636 --file=FILE[:TEMPLATE]
11637 instantiate the configuration file FILE
11638 --header=FILE[:TEMPLATE]
11639 instantiate the configuration header FILE
11641 Configuration files:
11642 $config_files
11644 Configuration headers:
11645 $config_headers
11647 Configuration commands:
11648 $config_commands
11650 Report bugs to the package provider."
11652 _ACEOF
11653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11654 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11655 ac_cs_version="\\
11656 config.status
11657 configured by $0, generated by GNU Autoconf 2.65,
11658 with options \\"\$ac_cs_config\\"
11660 Copyright (C) 2009 Free Software Foundation, Inc.
11661 This config.status script is free software; the Free Software Foundation
11662 gives unlimited permission to copy, distribute and modify it."
11664 ac_pwd='$ac_pwd'
11665 srcdir='$srcdir'
11666 test -n "\$AWK" || AWK=awk
11667 _ACEOF
11669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11670 # The default lists apply if the user does not specify any file.
11671 ac_need_defaults=:
11672 while test $# != 0
11674 case $1 in
11675 --*=*)
11676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11677 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11678 ac_shift=:
11681 ac_option=$1
11682 ac_optarg=$2
11683 ac_shift=shift
11685 esac
11687 case $ac_option in
11688 # Handling of the options.
11689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11690 ac_cs_recheck=: ;;
11691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11692 $as_echo "$ac_cs_version"; exit ;;
11693 --config | --confi | --conf | --con | --co | --c )
11694 $as_echo "$ac_cs_config"; exit ;;
11695 --debug | --debu | --deb | --de | --d | -d )
11696 debug=: ;;
11697 --file | --fil | --fi | --f )
11698 $ac_shift
11699 case $ac_optarg in
11700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11701 esac
11702 as_fn_append CONFIG_FILES " '$ac_optarg'"
11703 ac_need_defaults=false;;
11704 --header | --heade | --head | --hea )
11705 $ac_shift
11706 case $ac_optarg in
11707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11708 esac
11709 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11710 ac_need_defaults=false;;
11711 --he | --h)
11712 # Conflict between --help and --header
11713 as_fn_error "ambiguous option: \`$1'
11714 Try \`$0 --help' for more information.";;
11715 --help | --hel | -h )
11716 $as_echo "$ac_cs_usage"; exit ;;
11717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11718 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11719 ac_cs_silent=: ;;
11721 # This is an error.
11722 -*) as_fn_error "unrecognized option: \`$1'
11723 Try \`$0 --help' for more information." ;;
11725 *) as_fn_append ac_config_targets " $1"
11726 ac_need_defaults=false ;;
11728 esac
11729 shift
11730 done
11732 ac_configure_extra_args=
11734 if $ac_cs_silent; then
11735 exec 6>/dev/null
11736 ac_configure_extra_args="$ac_configure_extra_args --silent"
11739 _ACEOF
11740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741 if \$ac_cs_recheck; then
11742 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11743 shift
11744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11745 CONFIG_SHELL='$SHELL'
11746 export CONFIG_SHELL
11747 exec "\$@"
11750 _ACEOF
11751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11752 exec 5>>config.log
11754 echo
11755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11756 ## Running $as_me. ##
11757 _ASBOX
11758 $as_echo "$ac_log"
11759 } >&5
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11764 # INIT-COMMANDS
11767 aros_host_exe_suffix=${aros_host_exe_suffix}
11768 aros_tools_dir=${aros_tools_dir}
11769 aros_target_cpu=${aros_target_cpu}
11770 aros_target_arch=${aros_target_arch}
11771 aros_target_suffix=${aros_target_suffix}
11772 aros_target_nm_ln=${aros_target_nm_ln}
11773 aros_target_as_ln=${aros_target_as_ln}
11774 aros_target_ar_ln=${aros_target_ar_ln}
11775 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11776 aros_target_objdump_ln=${aros_target_objdump_ln}
11777 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11778 aros_target_strip_ln=${aros_target_strip_ln}
11781 aros_scripts_dir=${aros_scripts_dir}
11783 aros_tools_dir=${aros_tools_dir}
11786 _ACEOF
11788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11790 # Handling of arguments.
11791 for ac_config_target in $ac_config_targets
11793 case $ac_config_target in
11794 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11795 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11796 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11797 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11798 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11799 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11800 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11801 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11802 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11803 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11804 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11805 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11806 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11807 "${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" ;;
11808 "${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" ;;
11809 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
11810 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11811 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11812 "${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" ;;
11814 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11815 esac
11816 done
11819 # If the user did not use the arguments to specify the items to instantiate,
11820 # then the envvar interface is used. Set only those that are not.
11821 # We use the long form for the default assignment because of an extremely
11822 # bizarre bug on SunOS 4.1.3.
11823 if $ac_need_defaults; then
11824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11829 # Have a temporary directory for convenience. Make it in the build tree
11830 # simply because there is no reason against having it here, and in addition,
11831 # creating and moving files from /tmp can sometimes cause problems.
11832 # Hook for its removal unless debugging.
11833 # Note that there is a small window in which the directory will not be cleaned:
11834 # after its creation but before its name has been assigned to `$tmp'.
11835 $debug ||
11837 tmp=
11838 trap 'exit_status=$?
11839 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11841 trap 'as_fn_exit 1' 1 2 13 15
11843 # Create a (secure) tmp directory for tmp files.
11846 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11847 test -n "$tmp" && test -d "$tmp"
11848 } ||
11850 tmp=./conf$$-$RANDOM
11851 (umask 077 && mkdir "$tmp")
11852 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11854 # Set up the scripts for CONFIG_FILES section.
11855 # No need to generate them if there are no CONFIG_FILES.
11856 # This happens for instance with `./config.status config.h'.
11857 if test -n "$CONFIG_FILES"; then
11860 ac_cr=`echo X | tr X '\015'`
11861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11862 # But we know of no other shell where ac_cr would be empty at this
11863 # point, so we can use a bashism as a fallback.
11864 if test "x$ac_cr" = x; then
11865 eval ac_cr=\$\'\\r\'
11867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11869 ac_cs_awk_cr='\r'
11870 else
11871 ac_cs_awk_cr=$ac_cr
11874 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11875 _ACEOF
11879 echo "cat >conf$$subs.awk <<_ACEOF" &&
11880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11881 echo "_ACEOF"
11882 } >conf$$subs.sh ||
11883 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11884 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11885 ac_delim='%!_!# '
11886 for ac_last_try in false false false false false :; do
11887 . ./conf$$subs.sh ||
11888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11890 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11891 if test $ac_delim_n = $ac_delim_num; then
11892 break
11893 elif $ac_last_try; then
11894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11895 else
11896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11898 done
11899 rm -f conf$$subs.sh
11901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11902 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11903 _ACEOF
11904 sed -n '
11906 s/^/S["/; s/!.*/"]=/
11909 s/^[^!]*!//
11910 :repl
11911 t repl
11912 s/'"$ac_delim"'$//
11913 t delim
11916 s/\(.\{148\}\)..*/\1/
11917 t more1
11918 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11921 b repl
11922 :more1
11923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11926 s/.\{148\}//
11927 t nl
11928 :delim
11930 s/\(.\{148\}\)..*/\1/
11931 t more2
11932 s/["\\]/\\&/g; s/^/"/; s/$/"/
11935 :more2
11936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11939 s/.\{148\}//
11940 t delim
11941 ' <conf$$subs.awk | sed '
11942 /^[^""]/{
11944 s/\n//
11946 ' >>$CONFIG_STATUS || ac_write_fail=1
11947 rm -f conf$$subs.awk
11948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11949 _ACAWK
11950 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11951 for (key in S) S_is_set[key] = 1
11952 FS = "\a"
11956 line = $ 0
11957 nfields = split(line, field, "@")
11958 substed = 0
11959 len = length(field[1])
11960 for (i = 2; i < nfields; i++) {
11961 key = field[i]
11962 keylen = length(key)
11963 if (S_is_set[key]) {
11964 value = S[key]
11965 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11966 len += length(value) + length(field[++i])
11967 substed = 1
11968 } else
11969 len += 1 + keylen
11972 print line
11975 _ACAWK
11976 _ACEOF
11977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11978 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11980 else
11982 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11983 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11984 _ACEOF
11986 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11987 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11988 # trailing colons and then remove the whole line if VPATH becomes empty
11989 # (actually we leave an empty line to preserve line numbers).
11990 if test "x$srcdir" = x.; then
11991 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11992 s/:*\$(srcdir):*/:/
11993 s/:*\${srcdir}:*/:/
11994 s/:*@srcdir@:*/:/
11995 s/^\([^=]*=[ ]*\):*/\1/
11996 s/:*$//
11997 s/^[^=]*=[ ]*$//
12001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12002 fi # test -n "$CONFIG_FILES"
12004 # Set up the scripts for CONFIG_HEADERS section.
12005 # No need to generate them if there are no CONFIG_HEADERS.
12006 # This happens for instance with `./config.status Makefile'.
12007 if test -n "$CONFIG_HEADERS"; then
12008 cat >"$tmp/defines.awk" <<\_ACAWK ||
12009 BEGIN {
12010 _ACEOF
12012 # Transform confdefs.h into an awk script `defines.awk', embedded as
12013 # here-document in config.status, that substitutes the proper values into
12014 # config.h.in to produce config.h.
12016 # Create a delimiter string that does not exist in confdefs.h, to ease
12017 # handling of long lines.
12018 ac_delim='%!_!# '
12019 for ac_last_try in false false :; do
12020 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12021 if test -z "$ac_t"; then
12022 break
12023 elif $ac_last_try; then
12024 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12025 else
12026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12028 done
12030 # For the awk script, D is an array of macro values keyed by name,
12031 # likewise P contains macro parameters if any. Preserve backslash
12032 # newline sequences.
12034 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12035 sed -n '
12036 s/.\{148\}/&'"$ac_delim"'/g
12037 t rset
12038 :rset
12039 s/^[ ]*#[ ]*define[ ][ ]*/ /
12040 t def
12042 :def
12043 s/\\$//
12044 t bsnl
12045 s/["\\]/\\&/g
12046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12047 D["\1"]=" \3"/p
12048 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12050 :bsnl
12051 s/["\\]/\\&/g
12052 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12053 D["\1"]=" \3\\\\\\n"\\/p
12054 t cont
12055 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12056 t cont
12058 :cont
12060 s/.\{148\}/&'"$ac_delim"'/g
12061 t clear
12062 :clear
12063 s/\\$//
12064 t bsnlc
12065 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12067 :bsnlc
12068 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12069 b cont
12070 ' <confdefs.h | sed '
12071 s/'"$ac_delim"'/"\\\
12072 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12075 for (key in D) D_is_set[key] = 1
12076 FS = "\a"
12078 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12079 line = \$ 0
12080 split(line, arg, " ")
12081 if (arg[1] == "#") {
12082 defundef = arg[2]
12083 mac1 = arg[3]
12084 } else {
12085 defundef = substr(arg[1], 2)
12086 mac1 = arg[2]
12088 split(mac1, mac2, "(") #)
12089 macro = mac2[1]
12090 prefix = substr(line, 1, index(line, defundef) - 1)
12091 if (D_is_set[macro]) {
12092 # Preserve the white space surrounding the "#".
12093 print prefix "define", macro P[macro] D[macro]
12094 next
12095 } else {
12096 # Replace #undef with comments. This is necessary, for example,
12097 # in the case of _POSIX_SOURCE, which is predefined and required
12098 # on some systems where configure will not decide to define it.
12099 if (defundef == "undef") {
12100 print "/*", prefix defundef, macro, "*/"
12101 next
12105 { print }
12106 _ACAWK
12107 _ACEOF
12108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12110 fi # test -n "$CONFIG_HEADERS"
12113 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12114 shift
12115 for ac_tag
12117 case $ac_tag in
12118 :[FHLC]) ac_mode=$ac_tag; continue;;
12119 esac
12120 case $ac_mode$ac_tag in
12121 :[FHL]*:*);;
12122 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12123 :[FH]-) ac_tag=-:-;;
12124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12125 esac
12126 ac_save_IFS=$IFS
12127 IFS=:
12128 set x $ac_tag
12129 IFS=$ac_save_IFS
12130 shift
12131 ac_file=$1
12132 shift
12134 case $ac_mode in
12135 :L) ac_source=$1;;
12136 :[FH])
12137 ac_file_inputs=
12138 for ac_f
12140 case $ac_f in
12141 -) ac_f="$tmp/stdin";;
12142 *) # Look for the file first in the build tree, then in the source tree
12143 # (if the path is not absolute). The absolute path cannot be DOS-style,
12144 # because $ac_f cannot contain `:'.
12145 test -f "$ac_f" ||
12146 case $ac_f in
12147 [\\/$]*) false;;
12148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12149 esac ||
12150 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12151 esac
12152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12153 as_fn_append ac_file_inputs " '$ac_f'"
12154 done
12156 # Let's still pretend it is `configure' which instantiates (i.e., don't
12157 # use $as_me), people would be surprised to read:
12158 # /* config.h. Generated by config.status. */
12159 configure_input='Generated from '`
12160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12161 `' by configure.'
12162 if test x"$ac_file" != x-; then
12163 configure_input="$ac_file. $configure_input"
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12165 $as_echo "$as_me: creating $ac_file" >&6;}
12167 # Neutralize special characters interpreted by sed in replacement strings.
12168 case $configure_input in #(
12169 *\&* | *\|* | *\\* )
12170 ac_sed_conf_input=`$as_echo "$configure_input" |
12171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12172 *) ac_sed_conf_input=$configure_input;;
12173 esac
12175 case $ac_tag in
12176 *:-:* | *:-) cat >"$tmp/stdin" \
12177 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12178 esac
12180 esac
12182 ac_dir=`$as_dirname -- "$ac_file" ||
12183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12184 X"$ac_file" : 'X\(//\)[^/]' \| \
12185 X"$ac_file" : 'X\(//\)$' \| \
12186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12187 $as_echo X"$ac_file" |
12188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12189 s//\1/
12192 /^X\(\/\/\)[^/].*/{
12193 s//\1/
12196 /^X\(\/\/\)$/{
12197 s//\1/
12200 /^X\(\/\).*/{
12201 s//\1/
12204 s/.*/./; q'`
12205 as_dir="$ac_dir"; as_fn_mkdir_p
12206 ac_builddir=.
12208 case "$ac_dir" in
12209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12212 # A ".." for each directory in $ac_dir_suffix.
12213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12214 case $ac_top_builddir_sub in
12215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12217 esac ;;
12218 esac
12219 ac_abs_top_builddir=$ac_pwd
12220 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12221 # for backward compatibility:
12222 ac_top_builddir=$ac_top_build_prefix
12224 case $srcdir in
12225 .) # We are building in place.
12226 ac_srcdir=.
12227 ac_top_srcdir=$ac_top_builddir_sub
12228 ac_abs_top_srcdir=$ac_pwd ;;
12229 [\\/]* | ?:[\\/]* ) # Absolute name.
12230 ac_srcdir=$srcdir$ac_dir_suffix;
12231 ac_top_srcdir=$srcdir
12232 ac_abs_top_srcdir=$srcdir ;;
12233 *) # Relative name.
12234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12235 ac_top_srcdir=$ac_top_build_prefix$srcdir
12236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12237 esac
12238 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12241 case $ac_mode in
12244 # CONFIG_FILE
12247 _ACEOF
12249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12250 # If the template does not know about datarootdir, expand it.
12251 # FIXME: This hack should be removed a few years after 2.60.
12252 ac_datarootdir_hack=; ac_datarootdir_seen=
12253 ac_sed_dataroot='
12254 /datarootdir/ {
12258 /@datadir@/p
12259 /@docdir@/p
12260 /@infodir@/p
12261 /@localedir@/p
12262 /@mandir@/p'
12263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12264 *datarootdir*) ac_datarootdir_seen=yes;;
12265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12268 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 ac_datarootdir_hack='
12271 s&@datadir@&$datadir&g
12272 s&@docdir@&$docdir&g
12273 s&@infodir@&$infodir&g
12274 s&@localedir@&$localedir&g
12275 s&@mandir@&$mandir&g
12276 s&\\\${datarootdir}&$datarootdir&g' ;;
12277 esac
12278 _ACEOF
12280 # Neutralize VPATH when `$srcdir' = `.'.
12281 # Shell code in configure.ac might set extrasub.
12282 # FIXME: do we really want to maintain this feature?
12283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12284 ac_sed_extra="$ac_vpsub
12285 $extrasub
12286 _ACEOF
12287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12290 s|@configure_input@|$ac_sed_conf_input|;t t
12291 s&@top_builddir@&$ac_top_builddir_sub&;t t
12292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12293 s&@srcdir@&$ac_srcdir&;t t
12294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12295 s&@top_srcdir@&$ac_top_srcdir&;t t
12296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12297 s&@builddir@&$ac_builddir&;t t
12298 s&@abs_builddir@&$ac_abs_builddir&;t t
12299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12300 $ac_datarootdir_hack
12302 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12303 || as_fn_error "could not create $ac_file" "$LINENO" 5
12305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12309 which seems to be undefined. Please make sure it is defined." >&5
12310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12311 which seems to be undefined. Please make sure it is defined." >&2;}
12313 rm -f "$tmp/stdin"
12314 case $ac_file in
12315 -) cat "$tmp/out" && rm -f "$tmp/out";;
12316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12317 esac \
12318 || as_fn_error "could not create $ac_file" "$LINENO" 5
12322 # CONFIG_HEADER
12324 if test x"$ac_file" != x-; then
12326 $as_echo "/* $configure_input */" \
12327 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12328 } >"$tmp/config.h" \
12329 || as_fn_error "could not create $ac_file" "$LINENO" 5
12330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12333 else
12334 rm -f "$ac_file"
12335 mv "$tmp/config.h" "$ac_file" \
12336 || as_fn_error "could not create $ac_file" "$LINENO" 5
12338 else
12339 $as_echo "/* $configure_input */" \
12340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12341 || as_fn_error "could not create -" "$LINENO" 5
12345 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12346 $as_echo "$as_me: executing $ac_file commands" >&6;}
12348 esac
12351 case $ac_file$ac_mode in
12352 "compiler_executable":C)
12353 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12354 mkdir -p $prefix
12355 prefix="${prefix}/${aros_target_cpu}-aros"
12356 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12358 echo ${prefix}
12359 echo ${prefix2}
12360 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12362 ln -sf ${prefix2}-gcc ${prefix}-gcc
12363 ln -sf ${prefix2}-ld ${prefix}-ld
12365 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12366 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12367 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12368 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12369 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12370 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12371 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12373 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12374 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12375 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12376 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12377 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12378 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12379 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12381 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12382 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12384 esac
12385 done # for ac_tag
12388 as_fn_exit 0
12389 _ACEOF
12390 ac_clean_files=$ac_clean_files_save
12392 test $ac_write_fail = 0 ||
12393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12396 # configure is writing to config.log, and then calls config.status.
12397 # config.status does its own redirection, appending to config.log.
12398 # Unfortunately, on DOS this fails, as config.log is still kept open
12399 # by configure, so config.status won't be able to write to it; its
12400 # output is simply discarded. So we exec the FD to /dev/null,
12401 # effectively closing config.log, so it can be properly (re)opened and
12402 # appended to by config.status. When coming back to configure, we
12403 # need to make the FD available again.
12404 if test "$no_create" != yes; then
12405 ac_cs_success=:
12406 ac_config_status_args=
12407 test "$silent" = yes &&
12408 ac_config_status_args="$ac_config_status_args --quiet"
12409 exec 5>/dev/null
12410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12411 exec 5>>config.log
12412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12413 # would make configure fail if this is the last instruction.
12414 $ac_cs_success || as_fn_exit $?
12416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12423 #XXX compatability...
12424 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12426 if test -n "$aros_shared_cflags" ; then
12427 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12428 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg