fix properties
[AROS.git] / configure
blobc1c3f4f0325ff61956dfe7f66a12a1b6c82c4a0b
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_nesting_supervisor
613 aros_palm_debug_hack
614 aros_serial_debug
615 aros_host_sdl_libs
616 aros_host_sdl_cflags
617 aros_host_x11_libdirs
618 aros_host_x11_includes
619 DO_VIDMODE_SUPPORT
620 DO_XSHM_SUPPORT
621 aros_default_wbdepth
622 aros_default_wbheight
623 aros_default_wbwidth
624 oss_library_target
625 pci_hidd_target
626 sdl_hidd_target
627 x11_hidd_target
628 crosstools_target
629 aros_target_strip_flags
630 aros_target_genmap
631 aros_paranoia_cflags
632 aros_debug_ldflags
633 aros_debug_aflags
634 aros_debug_cflags
635 aros_kernel_ldflags
636 aros_kernel_objcflags
637 aros_kernel_includes
638 aros_kernel_cflags
639 aros_shared_ldflags
640 aros_shared_aflags
641 aros_shared_cflags
642 aros_config_ldflags
643 aros_config_aflags
644 aros_config_cflags
645 aros_arch_libs
646 aros_compiler_libs
647 aros_object_format
648 aros_shared_ld
649 aros_shared_default
650 aros_target_nm
651 aros_target_strip
652 aros_target_objcopy
653 aros_target_objdump
654 aros_target_cc_path
655 aros_target_cc_includes
656 orig_target_ld
657 aros_target_as
658 aros_kernel_cc
659 orig_target_cc
660 aros_kernel_nm
661 aros_target_ranlib
662 aros_target_ar
663 aros_target_incl
664 aros_target_suffix
665 aros_target_variant
666 aros_target_cpu
667 aros_target_family
668 aros_target_arch
669 aros_target_bootloader
670 aros_target_iconset
671 aros_target_guitheme
672 aros_tools_dir
673 aros_host_lib_suffix
674 aros_host_exe_suffix
675 aros_host_mkargs
676 aros_host_mkdep
677 aros_host_debug
678 aros_host_ldflags
679 aros_host_cflags
680 aros_host_make
681 aros_host_cc
682 aros_host_cpu
683 aros_host_arch
684 aros_cc_pre
685 AROS_PORTSSRCDIR
686 SRCDIR
687 AROS_BUILDDIR_UNIX
688 AROS_BUILDDIR
689 aros_flavour_uc
690 aros_flavour
691 aros_cpu
692 aros_arch
693 SDL_LIBS
694 SDL_CFLAGS
695 SDL_CONFIG
696 XMKMF
697 aros_cflags_iquote_end
698 aros_cflags_iquote
699 kernel_cflags_iquote_end
700 kernel_cflags_iquote
701 host_cflags_iquote_end
702 host_cflags_iquote
703 aros_target_nostdlib_ldflags
704 aros_target_detach_ldflags
705 aros_target_nix_ldflags
706 aros_target_nostartup_ldflags
707 aros_target_nostdinc_cflags
708 aros_kernel_rescomp
709 aros_target_cxx
710 aros_target_strip_ln
711 aros_target_ranlib_ln
712 aros_target_objdump_ln
713 aros_target_objcopy_ln
714 aros_target_nm_ln
715 aros_target_ar_ln
716 aros_kernel_ld
717 aros_target_as_ln
718 aros_target_ld
719 aros_target_cc
720 android_tool
721 CCACHE
722 DISTCC
723 LIBOBJS
724 EGREP
725 GREP
727 TEST
730 pkgpyexecdir
731 pyexecdir
732 pkgpythondir
733 pythondir
734 PYTHON_PLATFORM
735 PYTHON_EXEC_PREFIX
736 PYTHON_PREFIX
737 PYTHON_VERSION
738 PYTHON
739 CHMOD
741 PPMTOILBM
742 PNGTOPNM
743 FLEX
744 BISON
747 UNIQ
748 SORT
749 TOUCH
750 MKDIR
751 ECHO
755 aros_host_strip
756 aros_host_ranlib
757 aros_host_ar
758 aros_host_automake
759 aros_host_autoheader
760 aros_host_autoconf
761 aros_host_aclocal
762 aros_host_ld
763 MMAKE
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_build_type
823 enable_debug
824 enable_crosstools
825 enable_distcc
826 enable_ccache
827 with_gcc_version
828 with_optimization
829 with_paranoia
830 enable_target_variant
831 with_xcode
832 with_ios_version
833 with_ios_sdk
834 with_sdk
835 with_ndk
836 with_android_version
837 with_portssources
838 with_bootloader
839 with_iconset
840 with_theme
841 enable_includes
842 with_resolution
843 with_serial_debug
844 enable_palm_debug_hack
845 enable_nesting_supervisor
846 enable_x11_hidd
847 with_x
848 enable_x11_shm
849 enable_x11_vidmode
850 enable_sdl_hidd
851 with_sdl_prefix
852 with_sdl_exec_prefix
853 enable_sdltest
854 enable_dbus
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
865 XMKMF'
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
916 ac_prev=
917 ac_dashdash=
918 for ac_option
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
927 case $ac_option in
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *) ac_optarg=yes ;;
930 esac
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
936 ac_dashdash=yes ;;
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
955 --config-cache | -C)
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) as_fn_error "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information."
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 esac
1273 done
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error "missing argument to $ac_option"
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error "pwd does not report name of working directory"
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1359 /^X\(\/\/\)$/{
1360 s//\1/
1363 /^X\(\/\).*/{
1364 s//\1/
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1372 else
1373 ac_srcdir_defaulted=no
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures this package to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1460 _ACEOF
1462 cat <<\_ACEOF
1464 X features:
1465 --x-includes=DIR X include files are in DIR
1466 --x-libraries=DIR X library files are in DIR
1468 System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 _ACEOF
1474 if test -n "$ac_init_help"; then
1476 cat <<\_ACEOF
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-build-type=TYPE
1483 Select the build type. Available types are:
1484 personal, nightly, snapshot, milestone, release. Do
1485 NOT use this option unless you know what you are
1486 doing! (default=personal)
1487 --enable-debug=list Enable different types of debug. Commas or
1488 whitespaces can be used to separate the items in the
1489 list. Available types of debug are: all, none,
1490 messages, stack, mungwall, modules, symbols. If no
1491 list is provided then "all" is assumed.
1492 (default=none)
1493 --enable-crosstools Build cross-compiler toolchains if necessary
1494 (default=no).
1495 --enable-distcc Use distcc as a front end to the compiler
1496 (default=no).
1497 --enable-ccache Use ccache as a front end to the compiler
1498 (default=no).
1499 --enable-target-variant=NAME
1500 Enable a specific target variant(default=none)
1501 --enable-includes=dir Alternative system include directory
1502 --enable-palm-debug-hack
1503 Enable palm debug output hack in palm native
1504 (default=no)
1505 --enable-nesting-supervisor
1506 Enable nesting supervisor support in unix
1507 (default=no)
1508 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1509 --enable-x11-shm use X11 shared memory (default=auto)
1510 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1511 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1512 --disable-sdltest Do not try to compile and run a test SDL program
1513 --enable-dbus Enable DBUS support via dbus.library (default=no)
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-gcc-version=VERSION
1519 Use gcc-VERSION for building AROS
1520 --with-optimization=FLAGS
1521 Use optimization flags FLAGS (default=-O2).
1522 --with-paranoia=FLAGS CC flags to enable paranoia
1523 --with-xcode=PATH Specify XCode path for iOS targets
1524 (default=/Developer).
1525 --with-ios-version=VERSION
1526 Specify minimum supported iOS version (default=3.0).
1527 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1528 --with-sdk=PATH Specify Android SDK path
1529 (default=$default_android_sdk).
1530 --with-ndk=PATH Specify Android NDK path
1531 (default=$default_android_ndk).
1532 --with-android-version=VERSION
1533 Use Android platform VERSION (default=2.2.1).
1534 --with-portssources=DIR Where to download sourcecode for external ports
1535 --with-bootloader=NAME Use a specific bootloader
1536 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1537 --with-theme=NAME Use a specific GUI Theme
1538 --with-resolution=XRESxYRESxDEPTH
1539 Default resolution of the initial WorkbenchScreen
1540 --with-serial-debug Enable serial debug output in native (default=no)
1541 --with-x use the X Window System
1542 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1543 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554 XMKMF Path to xmkmf, Makefile generator for X Window System
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to the package provider.
1560 _ACEOF
1561 ac_status=$?
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 configure
1623 generated by GNU Autoconf 2.65
1625 Copyright (C) 2009 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=1
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_cpp
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1758 rm -f conftest.err conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_run
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1918 # ----------------------------------------------------
1919 # Tries to find if the field MEMBER exists in type AGGR, after including
1920 # INCLUDES, setting cache variable VAR accordingly.
1921 ac_fn_c_check_member ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1925 $as_echo_n "checking for $2.$3... " >&6; }
1926 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main ()
1935 static $2 ac_aggr;
1936 if (ac_aggr.$3)
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$4=yes"
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static $2 ac_aggr;
1952 if (sizeof ac_aggr.$3)
1953 return 0;
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$4=yes"
1960 else
1961 eval "$4=no"
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 eval ac_res=\$$4
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_member
1974 # ac_fn_c_check_decl LINENO SYMBOL VAR
1975 # ------------------------------------
1976 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1977 ac_fn_c_check_decl ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1981 $as_echo_n "checking whether $2 is declared... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 #ifndef $2
1992 (void) $2;
1993 #endif
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 } # ac_fn_c_check_decl
2013 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014 # -------------------------------------------
2015 # Tests whether TYPE exists after having included INCLUDES, setting cache
2016 # variable VAR accordingly.
2017 ac_fn_c_check_type ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 eval "$3=no"
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 if (sizeof ($2))
2033 return 0;
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 if (sizeof (($2)))
2046 return 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2053 else
2054 eval "$3=yes"
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_type
2067 # ac_fn_c_check_func LINENO FUNC VAR
2068 # ----------------------------------
2069 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2070 ac_fn_c_check_func ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2082 #define $2 innocuous_$2
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $2 (); below.
2086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2087 <limits.h> exists even on freestanding compilers. */
2089 #ifdef __STDC__
2090 # include <limits.h>
2091 #else
2092 # include <assert.h>
2093 #endif
2095 #undef $2
2097 /* Override any GCC internal prototype to avoid an error.
2098 Use char because int might match the return type of a GCC
2099 builtin and then its argument prototype would still apply. */
2100 #ifdef __cplusplus
2101 extern "C"
2102 #endif
2103 char $2 ();
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined __stub_$2 || defined __stub___$2
2108 choke me
2109 #endif
2112 main ()
2114 return $2 ();
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_link "$LINENO"; then :
2120 eval "$3=yes"
2121 else
2122 eval "$3=no"
2124 rm -f core conftest.err conftest.$ac_objext \
2125 conftest$ac_exeext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_c_check_func
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2137 It was created by $as_me, which was
2138 generated by GNU Autoconf 2.65. Invocation command line was
2140 $ $0 $@
2142 _ACEOF
2143 exec 5>>config.log
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167 _ASUNAME
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2175 done
2176 IFS=$as_save_IFS
2178 } >&5
2180 cat >&5 <<_ACEOF
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2187 _ACEOF
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2201 for ac_arg
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
2208 *\'*)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 esac
2211 case $ac_pass in
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2230 as_fn_append ac_configure_args " '$ac_arg'"
2232 esac
2233 done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log. We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2246 echo
2248 cat <<\_ASBOX
2249 ## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##
2252 _ASBOX
2253 echo
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in #(
2259 *${as_nl}*)
2260 case $ac_var in #(
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 esac
2264 case $ac_var in #(
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2268 esac ;;
2269 esac
2270 done
2271 (set) 2>&1 |
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2274 sed -n \
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 ;; #(
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281 esac |
2282 sort
2284 echo
2286 cat <<\_ASBOX
2287 ## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##
2290 _ASBOX
2291 echo
2292 for ac_var in $ac_subst_vars
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 $as_echo "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2302 if test -n "$ac_subst_files"; then
2303 cat <<\_ASBOX
2304 ## ------------------- ##
2305 ## File substitutions. ##
2306 ## ------------------- ##
2307 _ASBOX
2308 echo
2309 for ac_var in $ac_subst_files
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2320 if test -s confdefs.h; then
2321 cat <<\_ASBOX
2322 ## ----------- ##
2323 ## confdefs.h. ##
2324 ## ----------- ##
2325 _ASBOX
2326 echo
2327 cat confdefs.h
2328 echo
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2333 } >&5
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 exit $exit_status
2338 for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 done
2341 ac_signal=0
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2346 $as_echo "/* confdefs.h */" > confdefs.h
2348 # Predefined preprocessor variables.
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 _ACEOF
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 _ACEOF
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2372 _ACEOF
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2377 ac_site_file1=NONE
2378 ac_site_file2=NONE
2379 if test -n "$CONFIG_SITE"; then
2380 ac_site_file1=$CONFIG_SITE
2381 elif test "x$prefix" != xNONE; then
2382 ac_site_file1=$prefix/share/config.site
2383 ac_site_file2=$prefix/etc/config.site
2384 else
2385 ac_site_file1=$ac_default_prefix/share/config.site
2386 ac_site_file2=$ac_default_prefix/etc/config.site
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2390 test "x$ac_site_file" = xNONE && continue
2391 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394 sed 's/^/| /' "$ac_site_file" >&5
2395 . "$ac_site_file"
2397 done
2399 if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special files
2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2416 as_fn_append ac_header_list " stdlib.h"
2417 as_fn_append ac_header_list " unistd.h"
2418 as_fn_append ac_header_list " sys/param.h"
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424 eval ac_new_set=\$ac_env_${ac_var}_set
2425 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426 eval ac_new_val=\$ac_env_${ac_var}_value
2427 case $ac_old_set,$ac_new_set in
2428 set,)
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,set)
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,);;
2438 if test "x$ac_old_val" != "x$ac_new_val"; then
2439 # differences in whitespace do not lead to failure.
2440 ac_old_val_w=`echo x $ac_old_val`
2441 ac_new_val_w=`echo x $ac_new_val`
2442 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445 ac_cache_corrupted=:
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449 eval $ac_var=\$ac_old_val
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2452 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2455 fi;;
2456 esac
2457 # Pass precious variables to config.status.
2458 if test "$ac_new_set" = set; then
2459 case $ac_new_val in
2460 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461 *) ac_arg=$ac_var=$ac_new_val ;;
2462 esac
2463 case " $ac_configure_args " in
2464 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2465 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466 esac
2468 done
2469 if $ac_cache_corrupted; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 ac_aux_dir=
2489 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2490 for ac_t in install-sh install.sh shtool; do
2491 if test -f "$ac_dir/$ac_t"; then
2492 ac_aux_dir=$ac_dir
2493 ac_install_sh="$ac_aux_dir/$ac_t -c"
2494 break 2
2496 done
2497 done
2498 if test -z "$ac_aux_dir"; then
2499 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2502 # These three variables are undocumented and unsupported,
2503 # and are intended to be withdrawn in a future Autoconf release.
2504 # They can cause serious problems if a builder's source tree is in a directory
2505 # whose full name contains unusual characters.
2506 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2507 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2508 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2512 # Check what host we are running on.
2513 # If a target is not suggested, we use this one.
2514 # Note that what we call a target, Autoconf calls a host.
2515 # Make sure we can run config.sub.
2516 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520 $as_echo_n "checking build system type... " >&6; }
2521 if test "${ac_cv_build+set}" = set; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 ac_build_alias=$build_alias
2525 test "x$ac_build_alias" = x &&
2526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527 test "x$ac_build_alias" = x &&
2528 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2529 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534 $as_echo "$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2538 esac
2539 build=$ac_cv_build
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_build
2542 shift
2543 build_cpu=$1
2544 build_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 build_os=$*
2549 IFS=$ac_save_IFS
2550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554 $as_echo_n "checking host system type... " >&6; }
2555 if test "${ac_cv_host+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test "x$host_alias" = x; then
2559 ac_cv_host=$ac_cv_build
2560 else
2561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567 $as_echo "$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2587 # The AROS target is slightly different to the normal GNU style
2588 # format. We don't have the middle part, and we reverse the order
2589 # of the $(CPU) and $(OS) bits.
2591 # Don't strip the version of the target yet, it might be
2592 # useful on some systems.
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2595 $as_echo_n "checking for AROS style target... " >&6; }
2597 if test "$target" = "NONE" ; then
2598 target=$host_os-$host_cpu
2599 cross_compile=no
2600 else
2601 if test "$target" = "" ; then
2602 target=$host_os-$host_cpu
2603 cross_compile=no
2604 else
2605 cross_compile=yes
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2609 $as_echo "$target" >&6; }
2611 if test "$host_os" = "mingw32" ; then
2612 PWDCMD="pwd -W"
2615 #don't know where else to put this...
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2617 $as_echo_n "checking Building AROS in .. ... " >&6; }
2618 AROS_BUILDDIR=`${PWDCMD-pwd}`
2619 AROS_BUILDDIR_UNIX=${PWD}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2621 $as_echo "$AROS_BUILDDIR" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2624 $as_echo_n "checking AROS Source in .. ... " >&6; }
2625 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2626 SRCDIR=${srcpwd}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2628 $as_echo "$SRCDIR" >&6; }
2630 # Parse the target field into something useful.
2632 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2633 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2636 aros_default_wbwidth=800
2637 aros_default_wbheight=600
2638 aros_default_wbdepth=4
2641 # The first step is to find the host binaries.
2642 # Check for a compiler.
2643 ac_ext=c
2644 ac_cpp='$CPP $CPPFLAGS'
2645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 CC=$ac_cv_prog_CC
2677 if test -n "$CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2679 $as_echo "$CC" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2687 if test -z "$ac_cv_prog_CC"; then
2688 ac_ct_CC=$CC
2689 # Extract the first word of "gcc", so it can be a program name with args.
2690 set dummy gcc; ac_word=$2
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test -n "$ac_ct_CC"; then
2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_CC="gcc"
2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717 if test -n "$ac_ct_CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2719 $as_echo "$ac_ct_CC" >&6; }
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2725 if test "x$ac_ct_CC" = x; then
2726 CC=""
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729 yes:)
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732 ac_tool_warned=yes ;;
2733 esac
2734 CC=$ac_ct_CC
2736 else
2737 CC="$ac_cv_prog_CC"
2740 if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}cc; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_CC+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}cc"
2760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2763 done
2764 done
2765 IFS=$as_save_IFS
2769 CC=$ac_cv_prog_CC
2770 if test -n "$CC"; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2772 $as_echo "$CC" >&6; }
2773 else
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2781 if test -z "$CC"; then
2782 # Extract the first word of "cc", so it can be a program name with args.
2783 set dummy cc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 ac_prog_rejected=no
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2801 ac_prog_rejected=yes
2802 continue
2804 ac_cv_prog_CC="cc"
2805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2810 IFS=$as_save_IFS
2812 if test $ac_prog_rejected = yes; then
2813 # We found a bogon in the path, so make sure we never use it.
2814 set dummy $ac_cv_prog_CC
2815 shift
2816 if test $# != 0; then
2817 # We chose a different compiler from the bogus one.
2818 # However, it has the same basename, so the bogon will be chosen
2819 # first if we set CC to just the basename; use the full file name.
2820 shift
2821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in cl.exe
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_CC+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2878 test -n "$CC" && break
2879 done
2881 if test -z "$CC"; then
2882 ac_ct_CC=$CC
2883 for ac_prog in cl.exe
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886 set dummy $ac_prog; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="$ac_prog"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2906 done
2907 done
2908 IFS=$as_save_IFS
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2922 test -n "$ac_ct_CC" && break
2923 done
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CC=$ac_ct_CC
2941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 as_fn_error "no acceptable C compiler found in \$PATH
2944 See \`config.log' for more details." "$LINENO" 5; }
2946 # Provide some information about the compiler.
2947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2948 set X $ac_compile
2949 ac_compiler=$2
2950 for ac_option in --version -v -V -qversion; do
2951 { { ac_try="$ac_compiler $ac_option >&5"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2959 ac_status=$?
2960 if test -s conftest.err; then
2961 sed '10a\
2962 ... rest of stderr output deleted ...
2963 10q' conftest.err >conftest.er1
2964 cat conftest.er1 >&5
2966 rm -f conftest.er1 conftest.err
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }
2969 done
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2975 main ()
2979 return 0;
2981 _ACEOF
2982 ac_clean_files_save=$ac_clean_files
2983 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2984 # Try to create an executable without -o first, disregard a.out.
2985 # It will help us diagnose broken compilers, and finding out an intuition
2986 # of exeext.
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2988 $as_echo_n "checking whether the C compiler works... " >&6; }
2989 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2991 # The possible output files:
2992 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2994 ac_rmfiles=
2995 for ac_file in $ac_files
2997 case $ac_file in
2998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2999 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3000 esac
3001 done
3002 rm -f $ac_rmfiles
3004 if { { ac_try="$ac_link_default"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link_default") 2>&5
3012 ac_status=$?
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }; then :
3015 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3016 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3017 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3018 # so that the user can short-circuit this test for compilers unknown to
3019 # Autoconf.
3020 for ac_file in $ac_files ''
3022 test -f "$ac_file" || continue
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3026 [ab].out )
3027 # We found the default executable, but exeext='' is most
3028 # certainly right.
3029 break;;
3030 *.* )
3031 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3032 then :; else
3033 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035 # We set ac_cv_exeext here because the later test for it is not
3036 # safe: cross compilers may not add the suffix if given an `-o'
3037 # argument, so we may need to know it at that point already.
3038 # Even if this section looks crufty: it has the advantage of
3039 # actually working.
3040 break;;
3042 break;;
3043 esac
3044 done
3045 test "$ac_cv_exeext" = no && ac_cv_exeext=
3047 else
3048 ac_file=''
3050 if test -z "$ac_file"; then :
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 { as_fn_set_status 77
3059 as_fn_error "C compiler cannot create executables
3060 See \`config.log' for more details." "$LINENO" 5; }; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3066 $as_echo_n "checking for C compiler default output file name... " >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3068 $as_echo "$ac_file" >&6; }
3069 ac_exeext=$ac_cv_exeext
3071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3072 ac_clean_files=$ac_clean_files_save
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3074 $as_echo_n "checking for suffix of executables... " >&6; }
3075 if { { ac_try="$ac_link"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_link") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085 test $ac_status = 0; }; then :
3086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 break;;
3096 * ) break;;
3097 esac
3098 done
3099 else
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error "cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." "$LINENO" 5; }
3105 rm -f conftest conftest$ac_cv_exeext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3107 $as_echo "$ac_cv_exeext" >&6; }
3109 rm -f conftest.$ac_ext
3110 EXEEXT=$ac_cv_exeext
3111 ac_exeext=$EXEEXT
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114 #include <stdio.h>
3116 main ()
3118 FILE *f = fopen ("conftest.out", "w");
3119 return ferror (f) || fclose (f) != 0;
3122 return 0;
3124 _ACEOF
3125 ac_clean_files="$ac_clean_files conftest.out"
3126 # Check that the compiler produces executables we can run. If not, either
3127 # the compiler is broken, or we cross compile.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3129 $as_echo_n "checking whether we are cross compiling... " >&6; }
3130 if test "$cross_compiling" != yes; then
3131 { { ac_try="$ac_link"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_link") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }
3142 if { ac_try='./conftest$ac_cv_exeext'
3143 { { case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; }; then
3153 cross_compiling=no
3154 else
3155 if test "$cross_compiling" = maybe; then
3156 cross_compiling=yes
3157 else
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error "cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details." "$LINENO" 5; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3167 $as_echo "$cross_compiling" >&6; }
3169 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3172 $as_echo_n "checking for suffix of object files... " >&6; }
3173 if test "${ac_cv_objext+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3180 main ()
3184 return 0;
3186 _ACEOF
3187 rm -f conftest.o conftest.obj
3188 if { { ac_try="$ac_compile"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_compile") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 for ac_file in conftest.o conftest.obj conftest.*; do
3200 test -f "$ac_file" || continue;
3201 case $ac_file in
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204 break;;
3205 esac
3206 done
3207 else
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error "cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." "$LINENO" 5; }
3216 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3219 $as_echo "$ac_cv_objext" >&6; }
3220 OBJEXT=$ac_cv_objext
3221 ac_objext=$OBJEXT
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3223 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3224 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3231 main ()
3233 #ifndef __GNUC__
3234 choke me
3235 #endif
3238 return 0;
3240 _ACEOF
3241 if ac_fn_c_try_compile "$LINENO"; then :
3242 ac_compiler_gnu=yes
3243 else
3244 ac_compiler_gnu=no
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3251 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3252 if test $ac_compiler_gnu = yes; then
3253 GCC=yes
3254 else
3255 GCC=
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3260 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3261 if test "${ac_cv_prog_cc_g+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 ac_save_c_werror_flag=$ac_c_werror_flag
3265 ac_c_werror_flag=yes
3266 ac_cv_prog_cc_g=no
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3281 else
3282 CFLAGS=""
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3287 main ()
3291 return 0;
3293 _ACEOF
3294 if ac_fn_c_try_compile "$LINENO"; then :
3296 else
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3298 CFLAGS="-g"
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3303 main ()
3307 return 0;
3309 _ACEOF
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311 ac_cv_prog_cc_g=yes
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_c_werror_flag=$ac_save_c_werror_flag
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3321 $as_echo "$ac_cv_prog_cc_g" >&6; }
3322 if test "$ac_test_CFLAGS" = set; then
3323 CFLAGS=$ac_save_CFLAGS
3324 elif test $ac_cv_prog_cc_g = yes; then
3325 if test "$GCC" = yes; then
3326 CFLAGS="-g -O2"
3327 else
3328 CFLAGS="-g"
3330 else
3331 if test "$GCC" = yes; then
3332 CFLAGS="-O2"
3333 else
3334 CFLAGS=
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3338 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3339 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 ac_cv_prog_cc_c89=no
3343 ac_save_CC=$CC
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346 #include <stdarg.h>
3347 #include <stdio.h>
3348 #include <sys/types.h>
3349 #include <sys/stat.h>
3350 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3351 struct buf { int x; };
3352 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353 static char *e (p, i)
3354 char **p;
3355 int i;
3357 return p[i];
3359 static char *f (char * (*g) (char **, int), char **p, ...)
3361 char *s;
3362 va_list v;
3363 va_start (v,p);
3364 s = g (p, va_arg (v,int));
3365 va_end (v);
3366 return s;
3369 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3370 function prototypes and stuff, but not '\xHH' hex character constants.
3371 These don't provoke an error unfortunately, instead are silently treated
3372 as 'x'. The following induces an error, until -std is added to get
3373 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3374 array size at least. It's necessary to write '\x00'==0 to get something
3375 that's true only with -std. */
3376 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3378 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379 inside strings and character constants. */
3380 #define FOO(x) 'x'
3381 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3383 int test (int i, double x);
3384 struct s1 {int (*f) (int a);};
3385 struct s2 {int (*f) (double a);};
3386 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387 int argc;
3388 char **argv;
3390 main ()
3392 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3394 return 0;
3396 _ACEOF
3397 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3400 CC="$ac_save_CC $ac_arg"
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_cv_prog_cc_c89=$ac_arg
3404 rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406 done
3407 rm -f conftest.$ac_ext
3408 CC=$ac_save_CC
3411 # AC_CACHE_VAL
3412 case "x$ac_cv_prog_cc_c89" in
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3415 $as_echo "none needed" >&6; } ;;
3416 xno)
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3418 $as_echo "unsupported" >&6; } ;;
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3422 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3423 esac
3424 if test "x$ac_cv_prog_cc_c89" != xno; then :
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 case $ac_cv_prog_cc_stdc in #(
3435 no) :
3436 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3437 *) :
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3439 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3440 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_cv_prog_cc_c99=no
3444 ac_save_CC=$CC
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447 #include <stdarg.h>
3448 #include <stdbool.h>
3449 #include <stdlib.h>
3450 #include <wchar.h>
3451 #include <stdio.h>
3453 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3454 #define debug(...) fprintf (stderr, __VA_ARGS__)
3455 #define showlist(...) puts (#__VA_ARGS__)
3456 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3457 static void
3458 test_varargs_macros (void)
3460 int x = 1234;
3461 int y = 5678;
3462 debug ("Flag");
3463 debug ("X = %d\n", x);
3464 showlist (The first, second, and third items.);
3465 report (x>y, "x is %d but y is %d", x, y);
3468 // Check long long types.
3469 #define BIG64 18446744073709551615ull
3470 #define BIG32 4294967295ul
3471 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3472 #if !BIG_OK
3473 your preprocessor is broken;
3474 #endif
3475 #if BIG_OK
3476 #else
3477 your preprocessor is broken;
3478 #endif
3479 static long long int bignum = -9223372036854775807LL;
3480 static unsigned long long int ubignum = BIG64;
3482 struct incomplete_array
3484 int datasize;
3485 double data[];
3488 struct named_init {
3489 int number;
3490 const wchar_t *name;
3491 double average;
3494 typedef const char *ccp;
3496 static inline int
3497 test_restrict (ccp restrict text)
3499 // See if C++-style comments work.
3500 // Iterate through items via the restricted pointer.
3501 // Also check for declarations in for loops.
3502 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3503 continue;
3504 return 0;
3507 // Check varargs and va_copy.
3508 static void
3509 test_varargs (const char *format, ...)
3511 va_list args;
3512 va_start (args, format);
3513 va_list args_copy;
3514 va_copy (args_copy, args);
3516 const char *str;
3517 int number;
3518 float fnumber;
3520 while (*format)
3522 switch (*format++)
3524 case 's': // string
3525 str = va_arg (args_copy, const char *);
3526 break;
3527 case 'd': // int
3528 number = va_arg (args_copy, int);
3529 break;
3530 case 'f': // float
3531 fnumber = va_arg (args_copy, double);
3532 break;
3533 default:
3534 break;
3537 va_end (args_copy);
3538 va_end (args);
3542 main ()
3545 // Check bool.
3546 _Bool success = false;
3548 // Check restrict.
3549 if (test_restrict ("String literal") == 0)
3550 success = true;
3551 char *restrict newvar = "Another string";
3553 // Check varargs.
3554 test_varargs ("s, d' f .", "string", 65, 34.234);
3555 test_varargs_macros ();
3557 // Check flexible array members.
3558 struct incomplete_array *ia =
3559 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3560 ia->datasize = 10;
3561 for (int i = 0; i < ia->datasize; ++i)
3562 ia->data[i] = i * 1.234;
3564 // Check named initializers.
3565 struct named_init ni = {
3566 .number = 34,
3567 .name = L"Test wide string",
3568 .average = 543.34343,
3571 ni.number = 58;
3573 int dynamic_array[ni.number];
3574 dynamic_array[ni.number - 1] = 543;
3576 // work around unused variable warnings
3577 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3578 || dynamic_array[ni.number - 1] != 543);
3581 return 0;
3583 _ACEOF
3584 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3586 CC="$ac_save_CC $ac_arg"
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_c99=$ac_arg
3590 rm -f core conftest.err conftest.$ac_objext
3591 test "x$ac_cv_prog_cc_c99" != "xno" && break
3592 done
3593 rm -f conftest.$ac_ext
3594 CC=$ac_save_CC
3597 # AC_CACHE_VAL
3598 case "x$ac_cv_prog_cc_c99" in
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3601 $as_echo "none needed" >&6; } ;;
3602 xno)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3604 $as_echo "unsupported" >&6; } ;;
3606 CC="$CC $ac_cv_prog_cc_c99"
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3608 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3609 esac
3610 if test "x$ac_cv_prog_cc_c99" != xno; then :
3611 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3614 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3615 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 ac_cv_prog_cc_c89=no
3619 ac_save_CC=$CC
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdarg.h>
3623 #include <stdio.h>
3624 #include <sys/types.h>
3625 #include <sys/stat.h>
3626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3627 struct buf { int x; };
3628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3629 static char *e (p, i)
3630 char **p;
3631 int i;
3633 return p[i];
3635 static char *f (char * (*g) (char **, int), char **p, ...)
3637 char *s;
3638 va_list v;
3639 va_start (v,p);
3640 s = g (p, va_arg (v,int));
3641 va_end (v);
3642 return s;
3645 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3646 function prototypes and stuff, but not '\xHH' hex character constants.
3647 These don't provoke an error unfortunately, instead are silently treated
3648 as 'x'. The following induces an error, until -std is added to get
3649 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3650 array size at least. It's necessary to write '\x00'==0 to get something
3651 that's true only with -std. */
3652 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3655 inside strings and character constants. */
3656 #define FOO(x) 'x'
3657 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659 int test (int i, double x);
3660 struct s1 {int (*f) (int a);};
3661 struct s2 {int (*f) (double a);};
3662 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 int argc;
3664 char **argv;
3666 main ()
3668 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3670 return 0;
3672 _ACEOF
3673 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3674 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676 CC="$ac_save_CC $ac_arg"
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678 ac_cv_prog_cc_c89=$ac_arg
3680 rm -f core conftest.err conftest.$ac_objext
3681 test "x$ac_cv_prog_cc_c89" != "xno" && break
3682 done
3683 rm -f conftest.$ac_ext
3684 CC=$ac_save_CC
3687 # AC_CACHE_VAL
3688 case "x$ac_cv_prog_cc_c89" in
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 $as_echo "none needed" >&6; } ;;
3692 xno)
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3694 $as_echo "unsupported" >&6; } ;;
3696 CC="$CC $ac_cv_prog_cc_c89"
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3698 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3699 esac
3700 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3702 else
3703 ac_cv_prog_cc_stdc=no
3708 esac
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3710 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3711 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3715 case $ac_cv_prog_cc_stdc in #(
3716 no) :
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;; #(
3719 '') :
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;; #(
3722 *) :
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3724 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3725 esac
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3736 CPP=
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 ac_preproc_ok=false
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error" is here to catch this case.
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #ifdef __STDC__
3757 # include <limits.h>
3758 #else
3759 # include <assert.h>
3760 #endif
3761 Syntax error
3762 _ACEOF
3763 if ac_fn_c_try_cpp "$LINENO"; then :
3765 else
3766 # Broken: fails on valid input.
3767 continue
3769 rm -f conftest.err conftest.$ac_ext
3771 # OK, works on sane cases. Now check whether nonexistent headers
3772 # can be detected and how.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #include <ac_nonexistent.h>
3776 _ACEOF
3777 if ac_fn_c_try_cpp "$LINENO"; then :
3778 # Broken: success on invalid input.
3779 continue
3780 else
3781 # Passes both tests.
3782 ac_preproc_ok=:
3783 break
3785 rm -f conftest.err conftest.$ac_ext
3787 done
3788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3789 rm -f conftest.err conftest.$ac_ext
3790 if $ac_preproc_ok; then :
3791 break
3794 done
3795 ac_cv_prog_CPP=$CPP
3798 CPP=$ac_cv_prog_CPP
3799 else
3800 ac_cv_prog_CPP=$CPP
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3803 $as_echo "$CPP" >&6; }
3804 ac_preproc_ok=false
3805 for ac_c_preproc_warn_flag in '' yes
3807 # Use a header file that comes with gcc, so configuring glibc
3808 # with a fresh cross-compiler works.
3809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810 # <limits.h> exists even on freestanding compilers.
3811 # On the NeXT, cc -E runs the code through the compiler's parser,
3812 # not just through cpp. "Syntax error" is here to catch this case.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #ifdef __STDC__
3816 # include <limits.h>
3817 #else
3818 # include <assert.h>
3819 #endif
3820 Syntax error
3821 _ACEOF
3822 if ac_fn_c_try_cpp "$LINENO"; then :
3824 else
3825 # Broken: fails on valid input.
3826 continue
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <ac_nonexistent.h>
3835 _ACEOF
3836 if ac_fn_c_try_cpp "$LINENO"; then :
3837 # Broken: success on invalid input.
3838 continue
3839 else
3840 # Passes both tests.
3841 ac_preproc_ok=:
3842 break
3844 rm -f conftest.err conftest.$ac_ext
3846 done
3847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3848 rm -f conftest.err conftest.$ac_ext
3849 if $ac_preproc_ok; then :
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3855 See \`config.log' for more details." "$LINENO" 5; }
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865 # Check for a compatible awk
3866 for ac_prog in gawk nawk
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869 set dummy $ac_prog; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_AWK+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$AWK"; then
3876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_AWK="$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3889 done
3890 done
3891 IFS=$as_save_IFS
3895 AWK=$ac_cv_prog_AWK
3896 if test -n "$AWK"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3898 $as_echo "$AWK" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3905 test -n "$AWK" && break
3906 done
3908 if test "$AWK" = ""; then
3909 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3911 # Extract the first word of "mmake", so it can be a program name with args.
3912 set dummy mmake; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$MMAKE"; then
3919 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_MMAKE="mmake "
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3932 done
3933 done
3934 IFS=$as_save_IFS
3938 MMAKE=$ac_cv_prog_MMAKE
3939 if test -n "$MMAKE"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3941 $as_echo "$MMAKE" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3949 # Perform some default variable assignments. Note all of these will be
3950 # Regenerated from the script, so there is no need to cache them.
3952 aros_host_cc="$CC"
3953 if test "$GCC" = "yes"; then
3954 aros_gcc_ld=`$CC -print-prog-name=ld`
3955 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3956 set dummy `basename $aros_gcc_ld`; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 case $aros_host_ld in
3963 [\\/]* | ?:[\\/]*)
3964 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in `dirname $aros_gcc_ld`
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3980 IFS=$as_save_IFS
3983 esac
3985 aros_host_ld=$ac_cv_path_aros_host_ld
3986 if test -n "$aros_host_ld"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3988 $as_echo "$aros_host_ld" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3996 if test "$aros_host_ld" = ""; then
3997 # Extract the first word of "ld", so it can be a program name with args.
3998 set dummy ld; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 case $aros_host_ld in
4005 [\\/]* | ?:[\\/]*)
4006 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4022 IFS=$as_save_IFS
4025 esac
4027 aros_host_ld=$ac_cv_path_aros_host_ld
4028 if test -n "$aros_host_ld"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4030 $as_echo "$aros_host_ld" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4038 if test "$aros_host_ld" = ""; then
4039 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4041 aros_host_make="make"
4042 aros_host_cflags=$CFLAGS
4043 aros_host_ldflags=$LDFLAGS
4044 aros_host_debug="-g -O0"
4045 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4046 aros_host_mkargs="--no-print-directory"
4047 aros_host_incl="/usr/include"
4048 aros_host_exe_suffix="$EXEEXT"
4049 aros_host_lib_suffix=""
4051 for ac_prog in aclocal aclocal19 aclocal-1.9
4053 # Extract the first word of "$ac_prog", so it can be a program name with args.
4054 set dummy $ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$aros_host_aclocal"; then
4061 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_aros_host_aclocal="$ac_prog"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4074 done
4075 done
4076 IFS=$as_save_IFS
4080 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4081 if test -n "$aros_host_aclocal"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4083 $as_echo "$aros_host_aclocal" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4090 test -n "$aros_host_aclocal" && break
4091 done
4093 for ac_prog in autoconf autoconf259 autoconf253
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 if test -n "$aros_host_autoconf"; then
4103 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_aros_host_autoconf="$ac_prog"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4116 done
4117 done
4118 IFS=$as_save_IFS
4122 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4123 if test -n "$aros_host_autoconf"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4125 $as_echo "$aros_host_autoconf" >&6; }
4126 else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4132 test -n "$aros_host_autoconf" && break
4133 done
4135 for ac_prog in autoheader autoheader259 autoheader253
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -n "$aros_host_autoheader"; then
4145 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_aros_host_autoheader="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4158 done
4159 done
4160 IFS=$as_save_IFS
4164 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4165 if test -n "$aros_host_autoheader"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4167 $as_echo "$aros_host_autoheader" >&6; }
4168 else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 test -n "$aros_host_autoheader" && break
4175 done
4177 for ac_prog in automake automake19 automake-1.9
4179 # Extract the first word of "$ac_prog", so it can be a program name with args.
4180 set dummy $ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$aros_host_automake"; then
4187 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_aros_host_automake="$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4202 IFS=$as_save_IFS
4206 aros_host_automake=$ac_cv_prog_aros_host_automake
4207 if test -n "$aros_host_automake"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4209 $as_echo "$aros_host_automake" >&6; }
4210 else
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$aros_host_automake" && break
4217 done
4220 if test "$aros_host_aclocal" = ""; then
4221 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4223 if test "$aros_host_automake" = ""; then
4224 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4227 case "$aros_host_cc" in
4228 *gcc*)
4229 aros_host_cc_pipe="-pipe"
4231 icc)
4232 aros_host_cc_pipe=""
4235 aros_host_cc_pipe=""
4237 esac
4239 aros_kernel_cc_includes=""
4240 aros_target_cc_includes=""
4242 # This is the main host configuration section. It is where the host
4243 # can change the values of any variables it needs to change. We do
4244 # not look at anything that compiles to the target yet, we'll get
4245 # to that later.
4247 case "$host_os" in
4248 aros*)
4249 aros_host_arch="aros"
4250 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4251 case "$host_cpu" in
4252 *i?86*)
4253 aros_host_cpu="i386"
4255 *x86_64*)
4256 aros_host_cpu="x86_64"
4258 *powerpc*)
4259 aros_host_cpu="ppc"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4263 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4264 aros_host_cpu="$host_cpu"
4266 esac
4269 linux*)
4270 aros_host_arch="linux"
4271 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4272 case "$host_cpu" in
4273 *i?86*)
4274 aros_host_cpu="i386"
4276 *x86_64*)
4277 aros_host_cpu="x86_64"
4279 *m68k*)
4280 aros_host_cpu="m68k"
4282 *powerpc*)
4283 aros_host_cpu="ppc"
4285 *arm*)
4286 aros_host_cpu="arm"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4290 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4291 aros_host_cpu="$host_cpu"
4293 esac
4296 freebsd*)
4297 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4298 aros_host_make="gmake"
4299 aros_host_arch="freebsd"
4300 aros_host_cpu="i386"
4302 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4304 case $host_os in
4305 freebsd[234]*)
4306 aros_object_format="elf_i386"
4310 aros_object_format="elf_i386_fbsd"
4312 esac
4316 darwin*)
4317 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4318 aros_host_arch="darwin"
4319 case "$host_cpu" in
4320 *i?86*)
4321 aros_host_cpu="i386"
4323 *x86_64*)
4324 aros_host_cpu="x86_64"
4326 *powerpc*)
4327 aros_host_cpu="ppc"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4331 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4332 aros_host_cpu="$host_cpu"
4334 esac
4336 aros_host_ldflags="$aros_host_ldflags -liconv"
4340 dragonfly*)
4341 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4342 aros_host_make="gmake"
4343 aros_host_arch="dragonfly"
4344 case $host_cpu in
4345 *i?86*)
4346 aros_host_cpu="i386"
4348 *amd64*)
4349 aros_host_cpu="x86_64"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4353 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4354 aros_host_cpu="$host_cpu"
4356 esac
4359 netbsd*)
4360 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4361 aros_host_make="gmake"
4362 aros_host_arch="netbsd"
4363 case "$host_cpu" in
4364 *i?86*)
4365 aros_host_cpu="i386"
4367 *m68k*)
4368 aros_host_cpu="m68k"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4372 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4373 aros_host_cpu="$host_cpu"
4375 esac
4376 aros_host_lib_suffix=".0.0"
4379 openbsd*)
4380 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4381 aros_host_make="gmake"
4382 aros_host_arch="openbsd"
4383 case "$host_cpu" in
4384 *i?86*)
4385 aros_host_cpu="i386"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4389 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4390 aros_host_cpu="$host_cpu"
4392 esac
4395 solaris*)
4396 aros_host_arch="solaris"
4397 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4398 case "$host_cpu" in
4399 *i?86*)
4400 aros_host_cpu="i386"
4402 *sparc*)
4403 aros_host_cpu="sparc"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4407 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4408 aros_host_cpu="$host_cpu"
4410 esac
4413 morphos*)
4414 aros_host_arch="morphos"
4415 aros_host_cpu="ppc"
4418 amiga*)
4419 aros_host_arch="amiga"
4420 SORT="/gg/bin/sort"
4421 TEST="/gg/bin/test"
4422 UNIQ="/gg/bin/uniq"
4423 FOR="for"
4424 TOUCH="/gg/bin/touch"
4425 case "$host_cpu" in
4426 *m68k*)
4427 aros_host_cpu="m68k"
4429 *powerpc*)
4430 aros_host_cpu="ppc"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4434 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4435 aros_host_cpu="$host_cpu"
4437 esac
4440 cygwin*)
4441 aros_host_arch="cygwin"
4442 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4443 android_build_os="windows"
4444 android_tool="android.bat"
4445 default_android_ndk="/cygdrive/c/android-ndk-r5"
4446 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4448 case "$host_cpu" in
4449 *i?86*)
4450 aros_host_cpu="i386"
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4454 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4455 aros_host_cpu="$host_cpu"
4457 esac
4460 mingw32*)
4461 aros_host_arch="mingw32"
4462 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4463 android_build_os="windows"
4464 android_tool="android.bat"
4465 default_android_ndk="/c/android-ndk-r5"
4466 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4468 case "$host_cpu" in
4469 *i?86*)
4470 aros_host_cpu="i386"
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4474 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4475 aros_host_cpu="$host_cpu"
4477 esac
4480 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4482 esac
4484 # Extract the first word of "ar", so it can be a program name with args.
4485 set dummy ar; ac_word=$2
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 $as_echo_n "checking for $ac_word... " >&6; }
4488 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -n "$aros_host_ar"; then
4492 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4493 else
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_prog_aros_host_ar="ar cr"
4502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 break 2
4505 done
4506 done
4507 IFS=$as_save_IFS
4511 aros_host_ar=$ac_cv_prog_aros_host_ar
4512 if test -n "$aros_host_ar"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4514 $as_echo "$aros_host_ar" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4521 if test "$aros_host_ar" = ""; then
4522 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4524 # Extract the first word of "ranlib", so it can be a program name with args.
4525 set dummy ranlib; ac_word=$2
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 $as_echo_n "checking for $ac_word... " >&6; }
4528 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if test -n "$aros_host_ranlib"; then
4532 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_aros_host_ranlib="ranlib "
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4545 done
4546 done
4547 IFS=$as_save_IFS
4551 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4552 if test -n "$aros_host_ranlib"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4554 $as_echo "$aros_host_ranlib" >&6; }
4555 else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4561 if test "$aros_host_ranlib" = ""; then
4562 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4564 # Extract the first word of "strip", so it can be a program name with args.
4565 set dummy strip; ac_word=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$aros_host_strip"; then
4572 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_aros_host_strip="strip "
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4585 done
4586 done
4587 IFS=$as_save_IFS
4591 aros_host_strip=$ac_cv_prog_aros_host_strip
4592 if test -n "$aros_host_strip"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4594 $as_echo "$aros_host_strip" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4601 if test "$aros_host_strip" = ""; then
4602 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4605 # Extract the first word of "rm", so it can be a program name with args.
4606 set dummy rm; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_RM+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$RM"; then
4613 ac_cv_prog_RM="$RM" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_RM="rm -rf"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 RM=$ac_cv_prog_RM
4633 if test -n "$RM"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4635 $as_echo "$RM" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4642 if test "$RM" = ""; then
4643 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4645 # Extract the first word of "cp", so it can be a program name with args.
4646 set dummy cp; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_CP+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$CP"; then
4653 ac_cv_prog_CP="$CP" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_CP="cp "
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 CP=$ac_cv_prog_CP
4673 if test -n "$CP"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4675 $as_echo "$CP" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4682 if test "$CP" = ""; then
4683 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4685 # Extract the first word of "mv", so it can be a program name with args.
4686 set dummy mv; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_MV+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$MV"; then
4693 ac_cv_prog_MV="$MV" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_MV="mv "
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 MV=$ac_cv_prog_MV
4713 if test -n "$MV"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4715 $as_echo "$MV" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4722 if test "$MV" = ""; then
4723 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4725 # Extract the first word of "echo", so it can be a program name with args.
4726 set dummy echo; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_ECHO+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$ECHO"; then
4733 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_ECHO="echo "
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 ECHO=$ac_cv_prog_ECHO
4753 if test -n "$ECHO"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4755 $as_echo "$ECHO" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4762 if test "$ECHO" = ""; then
4763 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4765 # Extract the first word of "mkdir", so it can be a program name with args.
4766 set dummy mkdir; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$MKDIR"; then
4773 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_MKDIR="mkdir -p"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 MKDIR=$ac_cv_prog_MKDIR
4793 if test -n "$MKDIR"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4795 $as_echo "$MKDIR" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4802 if test "$MKDIR" = ""; then
4803 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4805 # Extract the first word of "touch", so it can be a program name with args.
4806 set dummy touch; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$TOUCH"; then
4813 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_TOUCH="touch "
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 TOUCH=$ac_cv_prog_TOUCH
4833 if test -n "$TOUCH"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4835 $as_echo "$TOUCH" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 if test "$TOUCH" = ""; then
4843 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4845 # Extract the first word of "sort", so it can be a program name with args.
4846 set dummy sort; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_SORT+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$SORT"; then
4853 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_SORT="sort "
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 SORT=$ac_cv_prog_SORT
4873 if test -n "$SORT"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4875 $as_echo "$SORT" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 if test "$SORT" = ""; then
4883 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4885 # Extract the first word of "uniq", so it can be a program name with args.
4886 set dummy uniq; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$UNIQ"; then
4893 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_UNIQ="uniq "
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4906 done
4907 done
4908 IFS=$as_save_IFS
4912 UNIQ=$ac_cv_prog_UNIQ
4913 if test -n "$UNIQ"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4915 $as_echo "$UNIQ" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 if test "$UNIQ" = ""; then
4923 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4925 # Extract the first word of "true", so it can be a program name with args.
4926 set dummy true; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_NOP+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$NOP"; then
4933 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_NOP="true "
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 NOP=$ac_cv_prog_NOP
4953 if test -n "$NOP"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4955 $as_echo "$NOP" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 if test "$NOP" = ""; then
4963 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4965 # Extract the first word of "cat", so it can be a program name with args.
4966 set dummy cat; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_CAT+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$CAT"; then
4973 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_CAT="cat "
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4992 CAT=$ac_cv_prog_CAT
4993 if test -n "$CAT"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4995 $as_echo "$CAT" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 if test "$CAT" = ""; then
5003 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5005 # Extract the first word of "bison", so it can be a program name with args.
5006 set dummy bison; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_BISON+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$BISON"; then
5013 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_BISON="bison "
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 BISON=$ac_cv_prog_BISON
5033 if test -n "$BISON"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5035 $as_echo "$BISON" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5042 if test "$BISON" = ""; then
5043 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5045 # Extract the first word of "flex", so it can be a program name with args.
5046 set dummy flex; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_FLEX+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$FLEX"; then
5053 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_FLEX="flex "
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 FLEX=$ac_cv_prog_FLEX
5073 if test -n "$FLEX"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5075 $as_echo "$FLEX" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 if test "$FLEX" = ""; then
5083 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5085 # Extract the first word of "pngtopnm", so it can be a program name with args.
5086 set dummy pngtopnm; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$PNGTOPNM"; then
5093 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_PNGTOPNM="pngtopnm "
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5113 if test -n "$PNGTOPNM"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5115 $as_echo "$PNGTOPNM" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 if test "$PNGTOPNM" = ""; then
5123 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5125 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5126 set dummy ppmtoilbm; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$PPMTOILBM"; then
5133 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5153 if test -n "$PPMTOILBM"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5155 $as_echo "$PPMTOILBM" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 if test "$PPMTOILBM" = ""; then
5163 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5165 # Extract the first word of "sed", so it can be a program name with args.
5166 set dummy sed; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_SED+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$SED"; then
5173 ac_cv_prog_SED="$SED" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_SED="sed "
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5192 SED=$ac_cv_prog_SED
5193 if test -n "$SED"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5195 $as_echo "$SED" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5202 if test "$SED" = ""; then
5203 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5205 # Extract the first word of "chmod", so it can be a program name with args.
5206 set dummy chmod; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$CHMOD"; then
5213 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_CHMOD="chmod "
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 CHMOD=$ac_cv_prog_CHMOD
5233 if test -n "$CHMOD"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5235 $as_echo "$CHMOD" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5242 if test "$CHMOD" = ""; then
5243 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5250 if test -n "$PYTHON"; then
5251 # If the user set $PYTHON, use it and don't search something else.
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5253 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5254 prog="import sys, string
5255 # split strings by '.' and convert to numeric. Append some zeros
5256 # because we need at least 4 digits for the hex conversion.
5257 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5258 minverhex = 0
5259 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5260 sys.exit(sys.hexversion < minverhex)"
5261 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5262 ($PYTHON -c "$prog") >&5 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; then :
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 $as_echo "yes" >&6; }
5268 else
5269 as_fn_error "too old" "$LINENO" 5
5271 am_display_PYTHON=$PYTHON
5272 else
5273 # Otherwise, try each interpreter until we find one that satisfies
5274 # VERSION.
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5276 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5277 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5281 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
5282 test "$am_cv_pathless_PYTHON" = none && break
5283 prog="import sys, string
5284 # split strings by '.' and convert to numeric. Append some zeros
5285 # because we need at least 4 digits for the hex conversion.
5286 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5287 minverhex = 0
5288 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5289 sys.exit(sys.hexversion < minverhex)"
5290 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5291 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; then :
5295 break
5297 done
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5300 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5301 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5302 if test "$am_cv_pathless_PYTHON" = none; then
5303 PYTHON=:
5304 else
5305 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5306 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_path_PYTHON+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 case $PYTHON in
5313 [\\/]* | ?:[\\/]*)
5314 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5324 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5330 IFS=$as_save_IFS
5333 esac
5335 PYTHON=$ac_cv_path_PYTHON
5336 if test -n "$PYTHON"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5338 $as_echo "$PYTHON" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5346 am_display_PYTHON=$am_cv_pathless_PYTHON
5350 if test "$PYTHON" = :; then
5351 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5352 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5356 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5357 if test "${am_cv_python_version+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5363 $as_echo "$am_cv_python_version" >&6; }
5364 PYTHON_VERSION=$am_cv_python_version
5368 PYTHON_PREFIX='${prefix}'
5370 PYTHON_EXEC_PREFIX='${exec_prefix}'
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5375 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5376 if test "${am_cv_python_platform+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5382 $as_echo "$am_cv_python_platform" >&6; }
5383 PYTHON_PLATFORM=$am_cv_python_platform
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5389 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5390 if test "${am_cv_python_pythondir+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5394 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5397 $as_echo "$am_cv_python_pythondir" >&6; }
5398 pythondir=$am_cv_python_pythondir
5402 pkgpythondir=\${pythondir}/$PACKAGE
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5406 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5407 if test "${am_cv_python_pyexecdir+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5411 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5414 $as_echo "$am_cv_python_pyexecdir" >&6; }
5415 pyexecdir=$am_cv_python_pyexecdir
5419 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5427 FOR=for
5429 IF=if
5431 TEST=test
5433 CMP=cmp
5437 # Check for some includes for the X11 HIDD and the kernel
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5441 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5442 if test "${ac_cv_path_GREP+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 if test -z "$GREP"; then
5446 ac_path_GREP_found=false
5447 # Loop through the user's path and test for each of PROGNAME-LIST
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
5453 for ac_prog in grep ggrep; do
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5456 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5457 # Check for GNU ac_path_GREP and select it if it is found.
5458 # Check for GNU $ac_path_GREP
5459 case `"$ac_path_GREP" --version 2>&1` in
5460 *GNU*)
5461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5463 ac_count=0
5464 $as_echo_n 0123456789 >"conftest.in"
5465 while :
5467 cat "conftest.in" "conftest.in" >"conftest.tmp"
5468 mv "conftest.tmp" "conftest.in"
5469 cp "conftest.in" "conftest.nl"
5470 $as_echo 'GREP' >> "conftest.nl"
5471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5473 as_fn_arith $ac_count + 1 && ac_count=$as_val
5474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5475 # Best one so far, save it but keep looking for a better one
5476 ac_cv_path_GREP="$ac_path_GREP"
5477 ac_path_GREP_max=$ac_count
5479 # 10*(2^10) chars as input seems more than enough
5480 test $ac_count -gt 10 && break
5481 done
5482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5483 esac
5485 $ac_path_GREP_found && break 3
5486 done
5487 done
5488 done
5489 IFS=$as_save_IFS
5490 if test -z "$ac_cv_path_GREP"; then
5491 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5493 else
5494 ac_cv_path_GREP=$GREP
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5499 $as_echo "$ac_cv_path_GREP" >&6; }
5500 GREP="$ac_cv_path_GREP"
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5504 $as_echo_n "checking for egrep... " >&6; }
5505 if test "${ac_cv_path_EGREP+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5509 then ac_cv_path_EGREP="$GREP -E"
5510 else
5511 if test -z "$EGREP"; then
5512 ac_path_EGREP_found=false
5513 # Loop through the user's path and test for each of PROGNAME-LIST
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_prog in egrep; do
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5522 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5523 # Check for GNU ac_path_EGREP and select it if it is found.
5524 # Check for GNU $ac_path_EGREP
5525 case `"$ac_path_EGREP" --version 2>&1` in
5526 *GNU*)
5527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5529 ac_count=0
5530 $as_echo_n 0123456789 >"conftest.in"
5531 while :
5533 cat "conftest.in" "conftest.in" >"conftest.tmp"
5534 mv "conftest.tmp" "conftest.in"
5535 cp "conftest.in" "conftest.nl"
5536 $as_echo 'EGREP' >> "conftest.nl"
5537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5539 as_fn_arith $ac_count + 1 && ac_count=$as_val
5540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5541 # Best one so far, save it but keep looking for a better one
5542 ac_cv_path_EGREP="$ac_path_EGREP"
5543 ac_path_EGREP_max=$ac_count
5545 # 10*(2^10) chars as input seems more than enough
5546 test $ac_count -gt 10 && break
5547 done
5548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5549 esac
5551 $ac_path_EGREP_found && break 3
5552 done
5553 done
5554 done
5555 IFS=$as_save_IFS
5556 if test -z "$ac_cv_path_EGREP"; then
5557 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5559 else
5560 ac_cv_path_EGREP=$EGREP
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5566 $as_echo "$ac_cv_path_EGREP" >&6; }
5567 EGREP="$ac_cv_path_EGREP"
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5571 $as_echo_n "checking for ANSI C header files... " >&6; }
5572 if test "${ac_cv_header_stdc+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <stdlib.h>
5578 #include <stdarg.h>
5579 #include <string.h>
5580 #include <float.h>
5583 main ()
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 ac_cv_header_stdc=yes
5592 else
5593 ac_cv_header_stdc=no
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 if test $ac_cv_header_stdc = yes; then
5598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include <string.h>
5603 _ACEOF
5604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5605 $EGREP "memchr" >/dev/null 2>&1; then :
5607 else
5608 ac_cv_header_stdc=no
5610 rm -f conftest*
5614 if test $ac_cv_header_stdc = yes; then
5615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <stdlib.h>
5620 _ACEOF
5621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5622 $EGREP "free" >/dev/null 2>&1; then :
5624 else
5625 ac_cv_header_stdc=no
5627 rm -f conftest*
5631 if test $ac_cv_header_stdc = yes; then
5632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5633 if test "$cross_compiling" = yes; then :
5635 else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ctype.h>
5639 #include <stdlib.h>
5640 #if ((' ' & 0x0FF) == 0x020)
5641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5643 #else
5644 # define ISLOWER(c) \
5645 (('a' <= (c) && (c) <= 'i') \
5646 || ('j' <= (c) && (c) <= 'r') \
5647 || ('s' <= (c) && (c) <= 'z'))
5648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5649 #endif
5651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5653 main ()
5655 int i;
5656 for (i = 0; i < 256; i++)
5657 if (XOR (islower (i), ISLOWER (i))
5658 || toupper (i) != TOUPPER (i))
5659 return 2;
5660 return 0;
5662 _ACEOF
5663 if ac_fn_c_try_run "$LINENO"; then :
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5669 conftest.$ac_objext conftest.beam conftest.$ac_ext
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5675 $as_echo "$ac_cv_header_stdc" >&6; }
5676 if test $ac_cv_header_stdc = yes; then
5678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5684 inttypes.h stdint.h unistd.h
5685 do :
5686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5689 eval as_val=\$$as_ac_Header
5690 if test "x$as_val" = x""yes; then :
5691 cat >>confdefs.h <<_ACEOF
5692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5697 done
5700 for ac_header in sys/ipc.h sys/shm.h \
5701 sys/mmap.h sys/mman.h sysexits.h \
5702 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5704 do :
5705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5707 eval as_val=\$$as_ac_Header
5708 if test "x$as_val" = x""yes; then :
5709 cat >>confdefs.h <<_ACEOF
5710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5711 _ACEOF
5715 done
5718 for ac_header in sys/mount.h
5719 do :
5720 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5722 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5723 cat >>confdefs.h <<_ACEOF
5724 #define HAVE_SYS_MOUNT_H 1
5725 _ACEOF
5729 done
5732 ac_header_dirent=no
5733 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5734 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5736 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 #include <$ac_hdr>
5746 main ()
5748 if ((DIR *) 0)
5749 return 0;
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 eval "$as_ac_Header=yes"
5756 else
5757 eval "$as_ac_Header=no"
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 eval ac_res=\$$as_ac_Header
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5763 $as_echo "$ac_res" >&6; }
5764 eval as_val=\$$as_ac_Header
5765 if test "x$as_val" = x""yes; then :
5766 cat >>confdefs.h <<_ACEOF
5767 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5768 _ACEOF
5770 ac_header_dirent=$ac_hdr; break
5773 done
5774 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5775 if test $ac_header_dirent = dirent.h; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5777 $as_echo_n "checking for library containing opendir... " >&6; }
5778 if test "${ac_cv_search_opendir+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 ac_func_search_save_LIBS=$LIBS
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5785 /* Override any GCC internal prototype to avoid an error.
5786 Use char because int might match the return type of a GCC
5787 builtin and then its argument prototype would still apply. */
5788 #ifdef __cplusplus
5789 extern "C"
5790 #endif
5791 char opendir ();
5793 main ()
5795 return opendir ();
5797 return 0;
5799 _ACEOF
5800 for ac_lib in '' dir; do
5801 if test -z "$ac_lib"; then
5802 ac_res="none required"
5803 else
5804 ac_res=-l$ac_lib
5805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5807 if ac_fn_c_try_link "$LINENO"; then :
5808 ac_cv_search_opendir=$ac_res
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext
5812 if test "${ac_cv_search_opendir+set}" = set; then :
5813 break
5815 done
5816 if test "${ac_cv_search_opendir+set}" = set; then :
5818 else
5819 ac_cv_search_opendir=no
5821 rm conftest.$ac_ext
5822 LIBS=$ac_func_search_save_LIBS
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5825 $as_echo "$ac_cv_search_opendir" >&6; }
5826 ac_res=$ac_cv_search_opendir
5827 if test "$ac_res" != no; then :
5828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5834 $as_echo_n "checking for library containing opendir... " >&6; }
5835 if test "${ac_cv_search_opendir+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 ac_func_search_save_LIBS=$LIBS
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 char opendir ();
5850 main ()
5852 return opendir ();
5854 return 0;
5856 _ACEOF
5857 for ac_lib in '' x; do
5858 if test -z "$ac_lib"; then
5859 ac_res="none required"
5860 else
5861 ac_res=-l$ac_lib
5862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5864 if ac_fn_c_try_link "$LINENO"; then :
5865 ac_cv_search_opendir=$ac_res
5867 rm -f core conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext
5869 if test "${ac_cv_search_opendir+set}" = set; then :
5870 break
5872 done
5873 if test "${ac_cv_search_opendir+set}" = set; then :
5875 else
5876 ac_cv_search_opendir=no
5878 rm conftest.$ac_ext
5879 LIBS=$ac_func_search_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5882 $as_echo "$ac_cv_search_opendir" >&6; }
5883 ac_res=$ac_cv_search_opendir
5884 if test "$ac_res" != no; then :
5885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5892 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5893 if test "${ac_cv_header_stat_broken+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5898 #include <sys/types.h>
5899 #include <sys/stat.h>
5901 #if defined S_ISBLK && defined S_IFDIR
5902 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5903 #endif
5905 #if defined S_ISBLK && defined S_IFCHR
5906 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5907 #endif
5909 #if defined S_ISLNK && defined S_IFREG
5910 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5911 #endif
5913 #if defined S_ISSOCK && defined S_IFREG
5914 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5915 #endif
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ac_cv_header_stat_broken=no
5920 else
5921 ac_cv_header_stat_broken=yes
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5926 $as_echo "$ac_cv_header_stat_broken" >&6; }
5927 if test $ac_cv_header_stat_broken = yes; then
5929 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5934 $as_echo_n "checking for ANSI C header files... " >&6; }
5935 if test "${ac_cv_header_stdc+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940 #include <stdlib.h>
5941 #include <stdarg.h>
5942 #include <string.h>
5943 #include <float.h>
5946 main ()
5950 return 0;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 ac_cv_header_stdc=yes
5955 else
5956 ac_cv_header_stdc=no
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 if test $ac_cv_header_stdc = yes; then
5961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #include <string.h>
5966 _ACEOF
5967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "memchr" >/dev/null 2>&1; then :
5970 else
5971 ac_cv_header_stdc=no
5973 rm -f conftest*
5977 if test $ac_cv_header_stdc = yes; then
5978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <stdlib.h>
5983 _ACEOF
5984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5985 $EGREP "free" >/dev/null 2>&1; then :
5987 else
5988 ac_cv_header_stdc=no
5990 rm -f conftest*
5994 if test $ac_cv_header_stdc = yes; then
5995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5996 if test "$cross_compiling" = yes; then :
5998 else
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <ctype.h>
6002 #include <stdlib.h>
6003 #if ((' ' & 0x0FF) == 0x020)
6004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6006 #else
6007 # define ISLOWER(c) \
6008 (('a' <= (c) && (c) <= 'i') \
6009 || ('j' <= (c) && (c) <= 'r') \
6010 || ('s' <= (c) && (c) <= 'z'))
6011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6012 #endif
6014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6016 main ()
6018 int i;
6019 for (i = 0; i < 256; i++)
6020 if (XOR (islower (i), ISLOWER (i))
6021 || toupper (i) != TOUPPER (i))
6022 return 2;
6023 return 0;
6025 _ACEOF
6026 if ac_fn_c_try_run "$LINENO"; then :
6028 else
6029 ac_cv_header_stdc=no
6031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6032 conftest.$ac_objext conftest.beam conftest.$ac_ext
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6038 $as_echo "$ac_cv_header_stdc" >&6; }
6039 if test $ac_cv_header_stdc = yes; then
6041 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6046 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6047 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/wait.h>
6054 #ifndef WEXITSTATUS
6055 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6056 #endif
6057 #ifndef WIFEXITED
6058 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6059 #endif
6062 main ()
6064 int s;
6065 wait (&s);
6066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6068 return 0;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"; then :
6072 ac_cv_header_sys_wait_h=yes
6073 else
6074 ac_cv_header_sys_wait_h=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6079 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6080 if test $ac_cv_header_sys_wait_h = yes; then
6082 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6087 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6088 if test "${ac_cv_header_time+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #include <sys/types.h>
6094 #include <sys/time.h>
6095 #include <time.h>
6098 main ()
6100 if ((struct tm *) 0)
6101 return 0;
6103 return 0;
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 ac_cv_header_time=yes
6108 else
6109 ac_cv_header_time=no
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6114 $as_echo "$ac_cv_header_time" >&6; }
6115 if test $ac_cv_header_time = yes; then
6117 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6121 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6122 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6124 cat >>confdefs.h <<_ACEOF
6125 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6126 _ACEOF
6129 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6134 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6135 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6139 _ACEOF
6142 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6144 else
6145 case " $LIBOBJS " in
6146 *" fileblocks.$ac_objext "* ) ;;
6147 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6149 esac
6154 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6155 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6157 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_STRUCT_STAT_ST_RDEV 1
6159 _ACEOF
6162 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6168 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6169 if test "${ac_cv_struct_tm+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <sys/types.h>
6175 #include <time.h>
6178 main ()
6180 struct tm tm;
6181 int *p = &tm.tm_sec;
6182 return !p;
6184 return 0;
6186 _ACEOF
6187 if ac_fn_c_try_compile "$LINENO"; then :
6188 ac_cv_struct_tm=time.h
6189 else
6190 ac_cv_struct_tm=sys/time.h
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6195 $as_echo "$ac_cv_struct_tm" >&6; }
6196 if test $ac_cv_struct_tm = sys/time.h; then
6198 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6202 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6203 #include <$ac_cv_struct_tm>
6206 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_STRUCT_TM_TM_ZONE 1
6210 _ACEOF
6215 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6217 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6219 else
6220 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6222 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6223 ac_have_decl=1
6224 else
6225 ac_have_decl=0
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_DECL_TZNAME $ac_have_decl
6230 _ACEOF
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6233 $as_echo_n "checking for tzname... " >&6; }
6234 if test "${ac_cv_var_tzname+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <time.h>
6240 #if !HAVE_DECL_TZNAME
6241 extern char *tzname[];
6242 #endif
6245 main ()
6247 return tzname[0][0];
6249 return 0;
6251 _ACEOF
6252 if ac_fn_c_try_link "$LINENO"; then :
6253 ac_cv_var_tzname=yes
6254 else
6255 ac_cv_var_tzname=no
6257 rm -f core conftest.err conftest.$ac_objext \
6258 conftest$ac_exeext conftest.$ac_ext
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6261 $as_echo "$ac_cv_var_tzname" >&6; }
6262 if test $ac_cv_var_tzname = yes; then
6264 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6269 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6270 if test "x$ac_cv_type_off_t" = x""yes; then :
6272 else
6274 cat >>confdefs.h <<_ACEOF
6275 #define off_t long int
6276 _ACEOF
6280 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6281 if test "x$ac_cv_type_pid_t" = x""yes; then :
6283 else
6285 cat >>confdefs.h <<_ACEOF
6286 #define pid_t int
6287 _ACEOF
6291 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6292 if test "x$ac_cv_type_size_t" = x""yes; then :
6294 else
6296 cat >>confdefs.h <<_ACEOF
6297 #define size_t unsigned int
6298 _ACEOF
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6303 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6304 if test "${ac_cv_type_uid_t+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <sys/types.h>
6311 _ACEOF
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "uid_t" >/dev/null 2>&1; then :
6314 ac_cv_type_uid_t=yes
6315 else
6316 ac_cv_type_uid_t=no
6318 rm -f conftest*
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6322 $as_echo "$ac_cv_type_uid_t" >&6; }
6323 if test $ac_cv_type_uid_t = no; then
6325 $as_echo "#define uid_t int" >>confdefs.h
6328 $as_echo "#define gid_t int" >>confdefs.h
6333 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6334 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6336 cat >>confdefs.h <<_ACEOF
6337 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6338 _ACEOF
6344 # Look for some functions
6345 for ac_func in getpagesize kqueue statfs statvfs \
6346 clone kse_create rfork_thread thr_create sa_register \
6347 getcontext makecontext setcontext sigaltstack swapcontext
6348 do :
6349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6350 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6351 eval as_val=\$$as_ac_var
6352 if test "x$as_val" = x""yes; then :
6353 cat >>confdefs.h <<_ACEOF
6354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6355 _ACEOF
6358 done
6364 for ac_header in $ac_header_list
6365 do :
6366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6369 eval as_val=\$$as_ac_Header
6370 if test "x$as_val" = x""yes; then :
6371 cat >>confdefs.h <<_ACEOF
6372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 _ACEOF
6377 done
6386 for ac_func in getpagesize
6387 do :
6388 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6389 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6390 cat >>confdefs.h <<_ACEOF
6391 #define HAVE_GETPAGESIZE 1
6392 _ACEOF
6395 done
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6398 $as_echo_n "checking for working mmap... " >&6; }
6399 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test "$cross_compiling" = yes; then :
6403 ac_cv_func_mmap_fixed_mapped=no
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 $ac_includes_default
6408 /* malloc might have been renamed as rpl_malloc. */
6409 #undef malloc
6411 /* Thanks to Mike Haertel and Jim Avera for this test.
6412 Here is a matrix of mmap possibilities:
6413 mmap private not fixed
6414 mmap private fixed at somewhere currently unmapped
6415 mmap private fixed at somewhere already mapped
6416 mmap shared not fixed
6417 mmap shared fixed at somewhere currently unmapped
6418 mmap shared fixed at somewhere already mapped
6419 For private mappings, we should verify that changes cannot be read()
6420 back from the file, nor mmap's back from the file at a different
6421 address. (There have been systems where private was not correctly
6422 implemented like the infamous i386 svr4.0, and systems where the
6423 VM page cache was not coherent with the file system buffer cache
6424 like early versions of FreeBSD and possibly contemporary NetBSD.)
6425 For shared mappings, we should conversely verify that changes get
6426 propagated back to all the places they're supposed to be.
6428 Grep wants private fixed already mapped.
6429 The main things grep needs to know about mmap are:
6430 * does it exist and is it safe to write into the mmap'd area
6431 * how to use it (BSD variants) */
6433 #include <fcntl.h>
6434 #include <sys/mman.h>
6436 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6437 char *malloc ();
6438 #endif
6440 /* This mess was copied from the GNU getpagesize.h. */
6441 #ifndef HAVE_GETPAGESIZE
6442 # ifdef _SC_PAGESIZE
6443 # define getpagesize() sysconf(_SC_PAGESIZE)
6444 # else /* no _SC_PAGESIZE */
6445 # ifdef HAVE_SYS_PARAM_H
6446 # include <sys/param.h>
6447 # ifdef EXEC_PAGESIZE
6448 # define getpagesize() EXEC_PAGESIZE
6449 # else /* no EXEC_PAGESIZE */
6450 # ifdef NBPG
6451 # define getpagesize() NBPG * CLSIZE
6452 # ifndef CLSIZE
6453 # define CLSIZE 1
6454 # endif /* no CLSIZE */
6455 # else /* no NBPG */
6456 # ifdef NBPC
6457 # define getpagesize() NBPC
6458 # else /* no NBPC */
6459 # ifdef PAGESIZE
6460 # define getpagesize() PAGESIZE
6461 # endif /* PAGESIZE */
6462 # endif /* no NBPC */
6463 # endif /* no NBPG */
6464 # endif /* no EXEC_PAGESIZE */
6465 # else /* no HAVE_SYS_PARAM_H */
6466 # define getpagesize() 8192 /* punt totally */
6467 # endif /* no HAVE_SYS_PARAM_H */
6468 # endif /* no _SC_PAGESIZE */
6470 #endif /* no HAVE_GETPAGESIZE */
6473 main ()
6475 char *data, *data2, *data3;
6476 int i, pagesize;
6477 int fd, fd2;
6479 pagesize = getpagesize ();
6481 /* First, make a file with some known garbage in it. */
6482 data = (char *) malloc (pagesize);
6483 if (!data)
6484 return 1;
6485 for (i = 0; i < pagesize; ++i)
6486 *(data + i) = rand ();
6487 umask (0);
6488 fd = creat ("conftest.mmap", 0600);
6489 if (fd < 0)
6490 return 2;
6491 if (write (fd, data, pagesize) != pagesize)
6492 return 3;
6493 close (fd);
6495 /* Next, check that the tail of a page is zero-filled. File must have
6496 non-zero length, otherwise we risk SIGBUS for entire page. */
6497 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6498 if (fd2 < 0)
6499 return 4;
6500 data2 = "";
6501 if (write (fd2, data2, 1) != 1)
6502 return 5;
6503 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6504 if (data2 == MAP_FAILED)
6505 return 6;
6506 for (i = 0; i < pagesize; ++i)
6507 if (*(data2 + i))
6508 return 7;
6509 close (fd2);
6510 if (munmap (data2, pagesize))
6511 return 8;
6513 /* Next, try to mmap the file at a fixed address which already has
6514 something else allocated at it. If we can, also make sure that
6515 we see the same garbage. */
6516 fd = open ("conftest.mmap", O_RDWR);
6517 if (fd < 0)
6518 return 9;
6519 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6520 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6521 return 10;
6522 for (i = 0; i < pagesize; ++i)
6523 if (*(data + i) != *(data2 + i))
6524 return 11;
6526 /* Finally, make sure that changes to the mapped area do not
6527 percolate back to the file as seen by read(). (This is a bug on
6528 some variants of i386 svr4.0.) */
6529 for (i = 0; i < pagesize; ++i)
6530 *(data2 + i) = *(data2 + i) + 1;
6531 data3 = (char *) malloc (pagesize);
6532 if (!data3)
6533 return 12;
6534 if (read (fd, data3, pagesize) != pagesize)
6535 return 13;
6536 for (i = 0; i < pagesize; ++i)
6537 if (*(data + i) != *(data3 + i))
6538 return 14;
6539 close (fd);
6540 return 0;
6542 _ACEOF
6543 if ac_fn_c_try_run "$LINENO"; then :
6544 ac_cv_func_mmap_fixed_mapped=yes
6545 else
6546 ac_cv_func_mmap_fixed_mapped=no
6548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6549 conftest.$ac_objext conftest.beam conftest.$ac_ext
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6554 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6557 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6560 rm -f conftest.mmap conftest.txt
6565 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6566 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6567 aros_config_ldflags=""
6569 aros_shared_default=yes
6571 aros_shared_cflags="-fPIC"
6572 aros_shared_aflags=""
6573 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6574 aros_kernel_ldflags="-Wl,-rpath,./lib"
6576 aros_target_ar_flags="cr"
6577 aros_target_nm_flags="-C -ul"
6578 aros_target_strip_flags="--strip-unneeded -R.comment"
6580 aros_compiler_libs=
6581 aros_arch_libs=
6583 aros_target_genmap="-Wl,-Map -Xlinker"
6585 # Native flavour stuff
6586 aros_serial_debug="0"
6588 # Palm native flavour stuff
6589 aros_palm_debug_hack="0"
6591 # Unix flavour stuff
6592 aros_nesting_supervisor="0"
6594 # Collect-aros stuff: "-ius" to ignore undefined symbols
6595 ignore_undefined_symbols=""
6597 # Check for X11 by default
6598 need_x11="auto"
6600 #-----------------------------------------------------------------------------
6603 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6604 # it switched on by default, and we use the host compiler, so it compiles AROS
6605 # code with this enabled resulting in link failures as we don't have support
6606 # for it.
6608 # We use two methods to disable it. For the host compiler (used to compile
6609 # some hosted modules), we test to see if the compiler supports stack
6610 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6611 # work on all platforms.
6613 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6614 # (this is done unconditionally, as it should have no effect on compilers
6615 # without the stack protection feature). This may be specific to the way that
6616 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6617 # strong enough to disable it in a generic way though, so we'll live with it
6618 # until another vendor ships GCC with it enabled in a different way, and deal
6619 # with it then.
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6623 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6624 save_cflags="$CFLAGS"
6625 CFLAGS="$CFLAGS -fno-stack-protector"
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6630 main ()
6634 return 0;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 use_no_stack_protector="yes"
6639 else
6640 use_no_stack_protector="no"
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6644 $as_echo "$use_no_stack_protector" >&6; }
6645 if test "x-$use_no_stack_protector" = "x-yes" ; then
6646 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6648 CFLAGS="$save_cflags"
6650 #-----------------------------------------------------------------------------
6652 # Disable pointer-signedness warnings if the compiler recognises the option
6653 # (this only works for the host compiler at the moment)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6656 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6657 save_cflags="$CFLAGS"
6658 CFLAGS="$CFLAGS -Wno-pointer-sign"
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6663 main ()
6667 return 0;
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 use_no_sign_warning="yes"
6672 else
6673 use_no_sign_warning="no"
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6677 $as_echo "$use_no_sign_warning" >&6; }
6678 if test "x-$use_no_sign_warning" = "x-yes" ; then
6679 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6681 CFLAGS="$save_cflags"
6683 #-----------------------------------------------------------------------------
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6686 $as_echo_n "checking for type of build... " >&6; }
6687 # Check whether --enable-build_type was given.
6688 if test "${enable_build_type+set}" = set; then :
6689 enableval=$enable_build_type; build_type=$enableval
6690 else
6691 build_type="personal"
6695 if test "$build_type" = "nightly"; then
6696 build_type_string="NIGHTLY"
6697 elif test "$build_type" = "snapshot"; then
6698 build_type_string="SNAPSHOT"
6699 elif test "$build_type" = "milestone"; then
6700 build_type_string="MILESTONE"
6701 elif test "$build_type" = "release"; then
6702 build_type_string="RELEASE"
6703 else
6704 build_type_string="PERSONAL"
6705 build_type="personal"
6708 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6711 $as_echo "$build_type" >&6; }
6713 #-----------------------------------------------------------------------------
6714 all_debug_types="messages stack modules mungwall symbols"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6717 $as_echo_n "checking which debug types to enable... " >&6; }
6718 # Check whether --enable-debug was given.
6719 if test "${enable_debug+set}" = set; then :
6720 enableval=$enable_debug; debug="$enableval"
6721 else
6722 debug=""
6726 if test "$debug" = "" -o "$debug" = "no"; then
6727 debug="none"
6728 elif test "$debug" = "yes"; then
6729 debug="all"
6732 if test "$debug" = "all" ; then
6733 debug="messages stack modules symbols"
6734 for d in $all_debug_types; do
6735 export aros_${d}_debug="1"
6736 done
6737 else
6738 for d in $all_debug_types; do
6739 export aros_${d}_debug="0"
6740 done
6743 if test "$debug" != "none"; then
6744 debug=`echo $debug | sed s/,/\ /g`
6745 for d in $debug; do
6746 found="0"
6747 for d2 in $all_debug_types; do
6748 if test "$d2" = "$d"; then
6749 found="1"
6750 break
6752 done
6753 if test "$found" = "0"; then
6754 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6756 export aros_${d}_debug="1"
6757 done
6758 aros_debug="yes"
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6761 $as_echo "$debug" >&6; }
6763 if test "$aros_messages_debug" = "1"; then
6764 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6765 else
6766 aros_messages_debug=""
6768 if test "$aros_symbols_debug" = "1"; then
6769 aros_symbols_debug="-g"
6770 else
6771 aros_symbols_debug=""
6774 # These are the flags to pass when compiling debugged programs
6775 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6776 aros_debug_aflags=""
6777 aros_debug_ldflags="$aros_symbols_debug"
6779 aros_crosstools="no"
6781 #-----------------------------------------------------------------------------
6782 # Checking if we should build crosstools..
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6784 $as_echo_n "checking whether to build crosstools... " >&6; }
6785 # Check whether --enable-crosstools was given.
6786 if test "${enable_crosstools+set}" = set; then :
6787 enableval=$enable_crosstools; crosstools="$enableval"
6788 else
6789 crosstools="no"
6792 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6794 $as_echo "yes" >&6; }
6795 aros_crosstools="yes"
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 #-----------------------------------------------------------------------------
6802 # Checking for distcc and ccache.
6804 # Always apply the transforms in this particular order. Basically you should
6805 # always run 'ccache distcc compiler' in that order for the best performance.
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6808 $as_echo_n "checking whether to enable distcc... " >&6; }
6809 # Check whether --enable-distcc was given.
6810 if test "${enable_distcc+set}" = set; then :
6811 enableval=$enable_distcc; distcc="$enableval"
6812 else
6813 distcc="no"
6816 if test "$distcc" != "" -a "$distcc" != "no"; then
6817 # AC_CHECK_PROG will print out the result in this case
6818 # Extract the first word of "distcc", so it can be a program name with args.
6819 set dummy distcc; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_path_DISTCC+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 case $DISTCC in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6841 done
6842 done
6843 IFS=$as_save_IFS
6845 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6847 esac
6849 DISTCC=$ac_cv_path_DISTCC
6850 if test -n "$DISTCC"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6852 $as_echo "$DISTCC" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6865 $as_echo_n "checking whether to enable ccache... " >&6; }
6866 # Check whether --enable-ccache was given.
6867 if test "${enable_ccache+set}" = set; then :
6868 enableval=$enable_ccache; ccache="$enableval"
6869 else
6870 ccache="no"
6873 if test "$ccache" != "" -a "$ccache" != "no"; then
6874 # AC_CHECK_PROG will print out the result in this case
6875 # Extract the first word of "ccache", so it can be a program name with args.
6876 set dummy ccache; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$CCACHE"; then
6883 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_CCACHE="ccache"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6896 done
6897 done
6898 IFS=$as_save_IFS
6902 CCACHE=$ac_cv_prog_CCACHE
6903 if test -n "$CCACHE"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6905 $as_echo "$CCACHE" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6917 #-----------------------------------------------------------------------------
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
6919 $as_echo_n "checking what specific gcc version to use... " >&6; }
6921 # Check whether --with-gcc-version was given.
6922 if test "${with_gcc_version+set}" = set; then :
6923 withval=$with_gcc_version; target_tool_version="$withval"
6924 else
6925 target_tool_version="default"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
6929 $as_echo "$target_tool_version" >&6; }
6931 #-----------------------------------------------------------------------------
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6933 $as_echo_n "checking what optimization flags to use... " >&6; }
6935 # Check whether --with-optimization was given.
6936 if test "${with_optimization+set}" = set; then :
6937 withval=$with_optimization; optimization="$withval"
6938 else
6939 optimization="unknown"
6942 if test "$optimization" = "unknown"; then
6943 if test "$debug" != "none"; then
6944 optimization="-O0"
6945 else
6946 optimization="-O2"
6949 aros_config_cflags="$aros_config_cflags $optimization"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6951 $as_echo "$optimization" >&6; }
6953 #-----------------------------------------------------------------------------
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
6955 $as_echo_n "checking what paranoia flags to use... " >&6; }
6957 # Check whether --with-paranoia was given.
6958 if test "${with_paranoia+set}" = set; then :
6959 withval=$with_paranoia; paranoia_flags="$withval"
6960 else
6961 paranoia_flags="default"
6964 if test "$paranoia_flags" = "default"; then
6965 paranoia_flags=""
6966 else if test "$paranoia_flags" = "yes"; then
6967 paranoia_flags="-Wall -Werror"
6968 fi fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
6970 $as_echo "$paranoia_flags" >&6; }
6971 aros_paranoia_cflags="$paranoia_flags"
6973 #-----------------------------------------------------------------------------
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6975 $as_echo_n "checking what target variant to enable... " >&6; }
6976 # Check whether --enable-target_variant was given.
6977 if test "${enable_target_variant+set}" = set; then :
6978 enableval=$enable_target_variant; target_variant=$enableval
6979 else
6980 target_variant=""
6983 if test "$target_variant" = ""; then
6984 aros_target_variant=""
6985 aros_target_suffix=""
6986 enableval="none"
6987 else
6988 aros_target_variant="$target_variant"
6989 aros_target_suffix="-$target_variant"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6992 $as_echo "$enableval" >&6; }
6994 target_bootloader="none"
6996 #-----------------------------------------------------------------------------
6997 case "$aros_target_variant" in
6998 ios)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7000 $as_echo_n "checking XCode path... " >&6; }
7002 # Check whether --with-xcode was given.
7003 if test "${with_xcode+set}" = set; then :
7004 withval=$with_xcode; aros_xcode_path="$withval"
7005 else
7006 aros_xcode_path="/Developer"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7010 $as_echo "$aros_xcode_path" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7013 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7015 # Check whether --with-ios-version was given.
7016 if test "${with_ios_version+set}" = set; then :
7017 withval=$with_ios_version; aros_ios_version="$withval"
7018 else
7019 aros_ios_version="3.0"
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7023 $as_echo "$aros_ios_version" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7026 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7028 # Check whether --with-ios-sdk was given.
7029 if test "${with_ios_sdk+set}" = set; then :
7030 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7031 else
7032 aros_ios_sdk="4.1"
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7036 $as_echo "$aros_ios_sdk" >&6; }
7040 "android")
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7042 $as_echo_n "checking Android SDK path... " >&6; }
7044 # Check whether --with-sdk was given.
7045 if test "${with_sdk+set}" = set; then :
7046 withval=$with_sdk; aros_android_sdk="$withval"
7047 else
7048 aros_android_sdk=$default_android_sdk
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7052 $as_echo "$aros_android_sdk" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7055 $as_echo_n "checking Android NDK path... " >&6; }
7057 # Check whether --with-ndk was given.
7058 if test "${with_ndk+set}" = set; then :
7059 withval=$with_ndk; aros_android_ndk="$withval"
7060 else
7061 aros_android_ndk=$default_android_ndk
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7065 $as_echo "$aros_android_ndk" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7068 $as_echo_n "checking what Android version to use... " >&6; }
7070 # Check whether --with-android-version was given.
7071 if test "${with_android_version+set}" = set; then :
7072 withval=$with_android_version; aros_android_version="$withval"
7073 else
7074 aros_android_version="2.2.1"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7078 $as_echo "$aros_android_version" >&6; }
7080 export PATH="$aros_android_sdk/tools:$PATH"
7081 # Extract the first word of "$android_tool", so it can be a program name with args.
7082 set dummy $android_tool; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if test "${ac_cv_path_android_tool+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 case $android_tool in
7089 [\\/]* | ?:[\\/]*)
7090 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7104 done
7105 done
7106 IFS=$as_save_IFS
7109 esac
7111 android_tool=$ac_cv_path_android_tool
7112 if test -n "$android_tool"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7114 $as_echo "$android_tool" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7121 if test "$android_tool" = ""; then
7122 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7126 esac
7128 #-----------------------------------------------------------------------------
7129 # This is the target configuration switch.
7130 case "$target_os" in
7131 linux*)
7132 aros_target_arch="linux"
7133 aros_target_family="unix"
7134 case "$target_cpu" in
7135 *m68k*)
7136 aros_target_cpu="m68k"
7137 aros_object_format="m68kelf"
7138 aros_flavour="emulcompat"
7139 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7140 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7141 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7142 gcc_target_cpu="mc68000"
7144 *i?86*)
7145 aros_target_cpu="i386"
7146 aros_object_format="elf_i386"
7147 aros_flavour="emulation"
7148 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7149 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7150 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7151 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7152 aros_config_ldflags="-m32 -march=i486"
7153 aros_kernel_ldflags="-melf_i386"
7154 aros_default_wbdepth=8
7155 gcc_target_cpu="i386"
7156 pci_hidd_target="hidd-pci-linux"
7158 *x86_64*)
7159 aros_target_cpu="x86_64"
7160 aros_object_format="elf_x86_64"
7161 aros_flavour="emulation"
7162 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7163 aros_config_cflags="$aros_config_cflags -mno-red-zone"
7164 aros_default_wbdepth=8
7165 gcc_target_cpu="x86_64"
7166 pci_hidd_target="hidd-pci-linux"
7168 *powerpc*)
7169 aros_target_cpu="ppc"
7170 aros_object_format="elf32ppc"
7171 aros_flavour="emulation"
7172 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7173 aros_default_wbdepth=8
7174 gcc_target_cpu="ppc"
7176 # TODO
7177 # Same as powerpc, but I need this for the nightly build to work again.
7178 # Actually, the nightly should be made working with powerpc target.
7179 # That just was too much work for the moment, another week or two.
7180 *ppc*)
7181 aros_target_cpu="ppc"
7182 aros_object_format="elf32ppc"
7183 aros_flavour="emulation"
7184 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7185 aros_default_wbdepth=8
7186 gcc_target_cpu="ppc"
7188 *arm*)
7189 aros_target_cpu="arm"
7190 aros_object_format="armelf_linux_eabi"
7191 aros_flavour="emulation"
7192 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7193 gcc_target_cpu="arm"
7194 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7195 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7196 aros_arch_libs="-laeabi"
7199 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7201 esac
7202 case "$aros_target_variant" in
7203 android)
7204 case "$aros_android_version" in
7205 2.2)
7206 aros_android_level=android-8
7209 aros_android_level=android-9
7211 esac
7212 aros_default_wbwidth=320
7213 aros_default_wbheight=480
7214 aros_target_cc="arm-aros-gcc"
7215 aros_target_cxx="arm-aros-g++"
7216 aros_target_ld="arm-aros-ld"
7217 aros_target_as="arm-aros-as"
7218 aros_target_ar="arm-aros-ar"
7219 aros_target_ranlib="arm-aros-ranlib"
7220 aros_target_nm="arm-aros-nm"
7221 aros_target_strip="arm-aros-strip"
7222 aros_target_objcopy="arm-aros-objcopy"
7223 aros_target_objdump="arm-aros-objdump"
7224 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7225 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7226 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7227 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7228 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7229 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7230 need_x11=no
7231 target_tool_prefix="arm-linux-androideabi-"
7233 esac
7237 aros_target_arch="pc"
7238 aros_shared_default="no"
7239 target_bootloader="grub2"
7240 case "$target_cpu" in
7241 *i?86*)
7242 aros_target_cpu="i386"
7245 if test "$aros_object_format" = "" ; then
7246 aros_object_format="elf_i386"
7248 aros_flavour="standalone"
7249 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7250 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7251 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7252 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7253 aros_config_ldflags="-m32 -march=i486"
7254 aros_kernel_ldflags="-melf_i386"
7255 aros_default_wbwidth=640
7256 aros_default_wbheight=480
7257 gcc_target_cpu="i386"
7259 *x86_64*)
7260 aros_target_cpu="x86_64"
7261 aros_serial_debug=1
7262 if test "$aros_object_format" = "" ; then
7263 aros_object_format="elf_x86_64"
7265 aros_flavour="standalone"
7266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7267 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7268 aros_kernel_ldflags=""
7269 aros_default_wbwidth=640
7270 aros_default_wbheight=480
7271 gcc_target_cpu="x86_64"
7274 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7276 esac
7279 prep)
7280 aros_target_arch="prep"
7281 aros_shared_default="no"
7282 aros_target_cpu="ppc"
7283 aros_object_format="elf32ppc"
7284 aros_flavour="ppcnative"
7285 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7286 aros_kernel_ldflags=""
7287 aros_default_wbwidth=640
7288 aros_default_wbheight=480
7289 gcc_target_cpu="ppc"
7292 freebsd*)
7293 aros_target_arch="freebsd"
7294 aros_target_family="unix"
7295 aros_target_cpu="i386"
7296 aros_flavour="emulation"
7297 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7298 gcc_target_cpu="i386"
7300 aros_target_strip_flags="-x"
7303 darwin*)
7304 aros_target_arch="darwin"
7305 aros_target_family="unix"
7306 aros_flavour="emulation"
7307 case "$target_cpu" in
7308 *i?86*)
7309 aros_ios_platform="iPhoneSimulator"
7310 aros_target_cpu="i386"
7311 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7312 aros_kernel_ldflags=""
7313 aros_macosx_version="10.4"
7314 aros_default_wbdepth=8
7315 gcc_target_cpu="i386"
7316 aros_object_format="elf_i386"
7317 aros_target_strip_flags="-x"
7318 aros_target_cc="i386-aros-gcc"
7319 aros_target_cxx="i386-aros-g++"
7320 aros_target_ld="i386-aros-ld"
7321 aros_target_as="i386-aros-as"
7322 aros_target_ar="i386-aros-ar"
7323 aros_target_ranlib="i386-aros-ranlib"
7324 aros_target_nm="i386-aros-nm"
7325 aros_target_strip="i386-aros-strip"
7326 aros_target_objcopy="i386-aros-objcopy"
7327 aros_target_objdump="i386-aros-objdump"
7328 target_tool_prefix="i686-apple-darwin10-"
7329 target_tool_flags="-m32"
7331 *x86_64*)
7332 aros_target_cpu="x86_64"
7333 aros_object_format="elf_x86_64"
7334 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7335 aros_macosx_version="10.6"
7336 aros_kernel_cflags="-m64"
7337 aros_kernel_ldflags="-m64"
7338 aros_default_wbdepth=8
7339 gcc_target_cpu="x86_64"
7340 aros_kernel_ld="ld"
7341 aros_target_cc="x86_64-aros-gcc"
7342 aros_target_cxx="x86_64-aros-g++"
7343 aros_target_ld="x86_64-aros-ld"
7344 aros_target_as="x86_64-aros-as"
7345 aros_target_ar="x86_64-aros-ar"
7346 aros_target_ranlib="x86_64-aros-ranlib"
7347 aros_target_nm="x86_64-aros-nm"
7348 aros_target_strip="x86_64-aros-strip"
7349 aros_target_objcopy="x86_64-aros-objcopy"
7350 aros_target_objdump="x86_64-aros-objdump"
7351 target_tool_prefix="i686-apple-darwin10-"
7353 *ppc*)
7354 aros_target_cpu="ppc"
7355 aros_object_format="elf32ppc"
7356 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7357 aros_kernel_ldflags=""
7358 aros_macosx_version="10.0"
7359 aros_default_wbdepth=8
7360 gcc_target_cpu="ppc"
7361 aros_kernel_ld="ld -arch ppc"
7362 aros_target_cc="ppc-aros-gcc"
7363 aros_target_cxx="ppc-aros-g++"
7364 aros_target_ld="ppc-aros-ld"
7365 aros_target_as="ppc-aros-as"
7366 aros_target_ar="ppc-aros-ar"
7367 aros_target_ranlib="ppc-aros-ranlib"
7368 aros_target_nm="ppc-aros-nm"
7369 aros_target_strip="ppc-aros-strip"
7370 aros_target_objcopy="ppc-aros-objcopy"
7371 aros_target_objdump="ppc-aros-objdump"
7372 target_tool_prefix="powerpc-apple-darwin10-"
7374 *arm*)
7375 aros_ios_platform="iPhoneOS"
7376 aros_target_cpu="arm"
7377 aros_object_format="armelf_linux_eabi"
7378 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7379 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7380 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7381 aros_arch_libs="-laeabi"
7382 aros_default_wbdepth=8
7383 gcc_target_cpu="arm"
7384 aros_kernel_ld="ld -arch armv6"
7385 aros_target_cc="arm-aros-gcc"
7386 aros_target_cxx="arm-aros-g++"
7387 aros_target_ld="arm-aros-ld"
7388 aros_target_as="arm-aros-as"
7389 aros_target_ar="arm-aros-ar"
7390 aros_target_ranlib="arm-aros-ranlib"
7391 aros_target_nm="arm-aros-nm"
7392 aros_target_strip="arm-aros-strip"
7393 aros_target_objcopy="arm-aros-objcopy"
7394 aros_target_objdump="arm-aros-objdump"
7395 target_tool_prefix="arm-apple-darwin10-"
7396 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7399 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7401 esac
7402 case "$aros_target_variant" in
7403 ios)
7404 aros_default_wbwidth=320
7405 aros_default_wbheight=480
7406 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7407 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7408 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7409 need_x11=no
7410 # This is here because it may depend on iOS or SDK version
7411 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7412 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7413 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7416 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7417 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7419 esac
7422 dragonfly*)
7423 aros_target_arch="dragonfly"
7424 aros_target_family="unix"
7425 aros_flavour="emulation"
7426 case "$target_cpu" in
7427 *i?86*)
7428 aros_target_cpu="i386"
7429 aros_object_format="elf_i386"
7430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7432 *x86_64*)
7433 aros_target_cpu="x86_64"
7434 aros_object_format="elf_x86_64"
7435 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7438 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7440 esac
7443 netbsd*)
7444 aros_target_arch="netbsd"
7445 aros_target_family="unix"
7446 case "$target_cpu" in
7447 *m68k*)
7448 aros_target_cpu="m68k"
7449 aros_object_format="m68kelf"
7450 aros_flavour="emulcompat"
7451 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7452 gcc_target_cpu="mc68000"
7454 *i?86*)
7455 aros_target_cpu="i386"
7456 aros_object_format="elf_i386"
7457 aros_flavour="emulation"
7458 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7459 aros_default_wbdepth=8
7460 gcc_target_cpu="i386"
7463 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7465 esac
7466 aros_target_genmap="-Wl,-M -Xlinker >"
7467 aros_flavour="emulation"
7468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7471 openbsd*)
7472 aros_target_arch="openbsd"
7473 aros_target_family="unix"
7474 case "$target_cpu" in
7475 *i?86*)
7476 aros_target_cpu="i386"
7477 aros_object_format="elf_i386"
7478 aros_flavour="emulation"
7479 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7480 gcc_target_cpu="i386"
7483 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7485 esac
7486 aros_target_genmap="-Wl,-M -Xlinker >"
7487 aros_target_nm_flags="-u"
7488 aros_flavour="emulation"
7491 solaris*)
7492 aros_target_arch="solaris"
7493 aros_target_family="unix"
7494 case "$target_cpu" in
7495 *i?86*)
7496 aros_target_cpu="i386"
7497 aros_object_format="elf_i386"
7498 aros_flavour="emulation"
7499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7500 aros_default_wbdepth=8
7501 gcc_target_cpu="i386"
7503 *sparc*)
7504 aros_target_cpu="sparc"
7505 aros_object_format="elf_sparc"
7506 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7507 gcc_target_cpu="sparc"
7510 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7512 esac
7513 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7514 aros_flavour="emulation"
7517 morphos*)
7518 aros_target_arch="morphos"
7519 aros_shared_default="no"
7520 aros_target_cpu="ppc"
7521 aros_object_format="elf_ppc"
7522 aros_flavour="nativecompat"
7523 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7524 gcc_target_cpu="ppc"
7527 sam440)
7528 aros_target_arch="sam440"
7529 aros_shared_default="no"
7530 aros_target_cpu="ppc"
7531 aros_object_format="elf32ppc"
7532 aros_flavour="ppcnative"
7533 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7534 aros_kernel_ldflags=""
7535 aros_default_wbwidth=1024
7536 aros_default_wbheight=768
7537 aros_default_wbdepth=24
7538 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7539 gcc_target_cpu="powerpc"
7542 efika)
7543 aros_target_arch="efika"
7544 aros_shared_default="no"
7545 aros_target_cpu="arm"
7546 aros_object_format="armelf_linux_eabi"
7547 aros_flavour="standalone"
7548 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7549 aros_kernel_ldflags=""
7550 aros_default_wbwidth=1024
7551 aros_default_wbheight=600
7552 aros_arch_libs="-laeabi"
7553 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"
7554 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"
7557 chrp)
7558 aros_target_arch="chrp"
7559 aros_shared_default="no"
7560 aros_target_cpu="ppc"
7561 aros_object_format="elf32ppc"
7562 aros_flavour="ppcnative"
7563 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7564 aros_kernel_ldflags=""
7565 aros_default_wbwidth=640
7566 aros_default_wbheight=480
7567 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7568 gcc_target_cpu="powerpc"
7569 case "$aros_target_variant" in
7570 efika)
7571 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7573 esac
7576 amiga*)
7577 aros_target_arch="amiga"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7579 aros_shared_default="no"
7581 case "$target_cpu" in
7582 *m68k*)
7583 aros_target_cpu="m68k"
7584 aros_object_format="m68kelf"
7585 aros_flavour="standcompat"
7586 gcc_target_cpu="m68000"
7587 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_CREATE_ROM -DAROS_DOS_PACKETS"
7588 aros_config_aflags="$aros_config_aflags -g3 -${gcc_target_cpu}"
7589 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7590 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7591 target_tool_prefix="m68k-elf-"
7592 # Needed to get the correct multilib
7593 aros_config_ldflags="-${gcc_target_cpu}"
7594 aros_debug_ldflags="-${gcc_target_cpu}"
7595 aros_shared_ldflags="-${gcc_target_cpu}"
7596 aros_kernel_ldflags="-${gcc_target_cpu}"
7597 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7598 aros_target_strip_flags="-R.comment --strip-debug"
7599 aros_default_wbwidth=640
7600 aros_default_wbheight=480
7602 *ppc*)
7603 aros_cpu="ppc"
7604 aros_flavour="native"
7605 gcc_target_cpu="ppc"
7608 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7610 esac
7613 mingw*)
7614 aros_target_arch="mingw32"
7615 aros_shared_default="no"
7616 aros_flavour="emulation"
7617 aros_shared_cflags=""
7618 need_dlopen="no"
7619 rescomp="windres"
7620 case "$target_cpu" in
7621 *i?86*)
7622 aros_target_cpu="i386"
7623 aros_object_format="elf_i386"
7624 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7625 aros_default_wbdepth=8
7626 gcc_target_cpu="i386"
7627 aros_target_cc="i386-aros-gcc"
7628 aros_target_cxx="i386-aros-g++"
7629 aros_target_ld="i386-aros-ld"
7630 aros_target_as="i386-aros-as"
7631 aros_target_ar="i386-aros-ar"
7632 aros_target_ranlib="i386-aros-ranlib"
7633 aros_target_nm="i386-aros-nm"
7634 aros_target_strip="i386-aros-strip"
7635 aros_target_objcopy="i386-aros-objcopy"
7636 aros_target_objdump="i386-aros-objdump"
7637 target_tool_prefix="i386-mingw32-"
7639 *x86_64*)
7640 aros_target_cpu="x86_64"
7641 aros_object_format="elf_x86_64"
7642 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7643 aros_default_wbdepth=8
7644 gcc_target_cpu="x86_64"
7645 aros_target_cc="x86_64-aros-gcc"
7646 aros_target_cxx="x86_64-aros-g++"
7647 aros_target_ld="x86_64-aros-ld"
7648 aros_target_as="x86_64-aros-as"
7649 aros_target_ar="x86_64-aros-ar"
7650 aros_target_ranlib="x86_64-aros-ranlib"
7651 aros_target_nm="x86_64-aros-nm"
7652 aros_target_strip="x86_64-aros-strip"
7653 aros_target_objcopy="x86_64-aros-objcopy"
7654 aros_target_objdump="x86_64-aros-objdump"
7655 target_tool_prefix="x86_64-w64-mingw32-"
7657 *arm*)
7658 aros_target_cpu="arm"
7659 aros_object_format="armelf_linux_eabi"
7660 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7661 aros_arch_libs="-laeabi"
7662 aros_default_wbdepth=8
7663 gcc_target_cpu="arm"
7664 aros_target_cc="arm-aros-gcc"
7665 aros_target_cxx="arm-aros-g++"
7666 aros_target_ld="arm-aros-ld"
7667 aros_target_as="arm-aros-as"
7668 aros_target_ar="arm-aros-ar"
7669 aros_target_ranlib="arm-aros-ranlib"
7670 aros_target_nm="arm-aros-nm"
7671 aros_target_strip="arm-aros-strip"
7672 aros_target_objcopy="arm-aros-objcopy"
7673 aros_target_objdump="arm-aros-objdump"
7674 target_tool_prefix="arm-mingw32ce-"
7675 aros_default_wbwidth=160
7676 aros_default_wbheight=160
7679 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7681 esac
7682 if test $host_os = "cygwin"; then
7683 aros_kernel_cflags="-mno-cygwin"
7686 pp*)
7687 aros_target_arch="pp"
7688 aros_shared_default="no"
7689 case "$target_cpu" in
7690 *m68k*)
7691 aros_target_cpu="m68k"
7692 aros_object_format="m68kelf"
7693 aros_flavour="palmnative"
7694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7695 aros_default_wbwidth=160
7696 aros_default_wbheight=160
7697 aros_default_wbdepth=1
7698 aros_target_ar_flags="cru"
7699 aros_compiler_libs="-lgcc1"
7700 aros_shared_default=no
7701 aros_shared_cflags="-fpic"
7702 aros_shared_aflags=""
7703 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7704 aros_kernel_ldflags="-Wl,-rpath,./lib"
7705 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7706 aros_debug_aflags=""
7707 aros_debug_ldflags="$aros_symbols_debug"
7708 aros_mungwall_debug="0"
7709 aros_modules_debug="0"
7710 gcc_target_cpu="mc68000"
7711 ignore_undefined_symbols="-ius"
7714 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7716 esac
7719 mac*)
7720 aros_target_arch="mac"
7721 aros_shared_default="no"
7722 case "$target_cpu" in
7723 *m68k*)
7724 aros_target_cpu="m68k"
7725 aros_object_format="m68kelf"
7726 aros_flavour="mac68knative"
7727 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7728 aros_default_wbwidth=512
7729 aros_default_wbheight=384
7730 aros_default_wbdepth=8
7731 aros_target_ar_flags="cru"
7732 aros_compiler_libs="-lgcc1"
7733 aros_shared_default=no
7734 aros_shared_cflags="-fpic"
7735 aros_shared_aflags=""
7736 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7737 aros_kernel_ldflags="-Wl,-rpath,./lib"
7738 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7739 aros_debug_aflags=""
7740 aros_debug_ldflags="$aros_symbols_debug"
7741 aros_mungwall_debug="0"
7742 aros_modules_debug="0"
7743 gcc_target_cpu="mc68000"
7744 ignore_undefined_symbols="-ius"
7747 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7749 esac
7753 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7755 esac
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7758 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7760 # Check whether --with-portssources was given.
7761 if test "${with_portssources+set}" = set; then :
7762 withval=$with_portssources; with_portssrcdir=$withval
7763 else
7764 with_portssrcdir="default"
7767 if test "$with_portssrcdir" = "default"; then
7768 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7769 else
7770 AROS_PORTSSRCDIR="$with_portssrcdir"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7773 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7776 $as_echo_n "checking which bootloader to use... " >&6; }
7778 # Check whether --with-bootloader was given.
7779 if test "${with_bootloader+set}" = set; then :
7780 withval=$with_bootloader; target_bootloader=$withval
7781 else
7782 target_bootloader=$target_bootloader
7785 if test "$target_bootloader" = "none"; then
7786 aros_target_bootloader=""
7787 else
7788 aros_target_bootloader="$target_bootloader"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7791 $as_echo "$target_bootloader" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7794 $as_echo_n "checking which icon-set to use... " >&6; }
7796 # Check whether --with-iconset was given.
7797 if test "${with_iconset+set}" = set; then :
7798 withval=$with_iconset; target_iconset=$withval
7799 else
7800 target_iconset="default"
7803 if test "$target_iconset" = "default"; then
7804 aros_target_iconset="Gorilla"
7805 target_iconset="default (Gorilla)"
7806 else
7807 aros_target_iconset="$target_iconset"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7810 $as_echo "$target_iconset" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7813 $as_echo_n "checking which GUI Theme to use... " >&6; }
7815 # Check whether --with-theme was given.
7816 if test "${with_theme+set}" = set; then :
7817 withval=$with_theme; target_guitheme=$withval
7818 else
7819 target_guitheme="default"
7822 if test "$target_guitheme" = "default"; then
7823 aros_target_guitheme="Ice"
7824 else
7825 aros_target_guitheme="$target_guitheme"
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7828 $as_echo "$aros_target_guitheme" >&6; }
7830 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7831 # for target code)
7832 cross_compiling=no
7833 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7834 cross_compiling=yes
7836 if test "$aros_host_cpu" == "x86_64" ; then
7837 if test "$aros_target_cpu" == "i386" ; then
7838 if test "$aros_target_arch" != "mingw32"; then
7839 cross_compiling=no
7843 if test "$aros_host_arch" == "darwin" ; then
7844 if test "$aros_target_arch" != "darwin" ; then
7845 cross_compiling=yes
7849 # Set prefix for target compiler etc. if we're cross-compiling
7850 # (should possibly be earlier but needs to be after AC_PROG_CC)
7851 if test "$cross_compiling" = "yes" ; then
7852 if test "$target_tool_prefix" = ""; then
7853 target_tool_prefix=${target_cpu}-elf-
7855 CC=${target_tool_prefix}gcc
7856 CPP=${target_tool_prefix}cpp
7857 if test "$target_tool_version" != "default"; then
7858 CC="$CC-$target_tool_version"
7859 CPP="$CC-$target_tool_version"
7861 # Extract the first word of "$CC", so it can be a program name with args.
7862 set dummy $CC; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if test "${ac_cv_path_CC+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 case $CC in
7869 [\\/]* | ?:[\\/]*)
7870 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7884 done
7885 done
7886 IFS=$as_save_IFS
7889 esac
7891 CC=$ac_cv_path_CC
7892 if test -n "$CC"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7894 $as_echo "$CC" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 if test "$CC" = ""; then
7902 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7905 CC="$CC $target_tool_flags"
7907 #-----------------------------------------------------------------------------
7909 # Disable pointer-signedness warnings if the compiler recognises the option
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7912 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7913 save_cflags="$CFLAGS"
7914 CFLAGS="$CFLAGS -Wno-pointer-sign"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7919 main ()
7923 return 0;
7925 _ACEOF
7926 if ac_fn_c_try_compile "$LINENO"; then :
7927 use_no_sign_warning="yes"
7928 else
7929 use_no_sign_warning="no"
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7933 $as_echo "$use_no_sign_warning" >&6; }
7934 if test "x-$use_no_sign_warning" = "x-yes" ; then
7935 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7937 CFLAGS="$save_cflags"
7939 #-----------------------------------------------------------------------------
7941 # Find all the tools we need to compile. This could be cross-compiling
7942 # though! If that is the case we use the GNU form of the target and
7943 # simply add this to the front of the binary name. This is rather simple,
7944 # but it should work under most circumstances.
7946 # The default tools are to use the same as the host, but only if the
7947 # host and target CPU are the same. With GCC this is normally enough.
7950 aros_cc_pre=""
7951 aros_shared_ld="$aros_host_ld"
7953 aros_target_mkdep="$aros_host_mkdep"
7954 aros_target_incl_def="$aros_host_incl"
7956 aros_kernel_cc="$CC"
7958 # The default tools executables to be linked to.
7959 if test "$aros_target_cc" != ""; then
7960 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7961 set dummy $aros_target_cc; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $aros_target_cc in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7988 esac
7990 aros_target_cc=$ac_cv_path_aros_target_cc
7991 if test -n "$aros_target_cc"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7993 $as_echo "$aros_target_cc" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 if test "$aros_target_cc" = ""; then
8001 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8004 if test "$aros_target_ld" != ""; then
8005 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
8006 set dummy $aros_target_ld; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 case $aros_target_ld in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8028 done
8029 done
8030 IFS=$as_save_IFS
8033 esac
8035 aros_target_ld=$ac_cv_path_aros_target_ld
8036 if test -n "$aros_target_ld"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
8038 $as_echo "$aros_target_ld" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8045 if test "$aros_target_ld" = ""; then
8046 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8050 if test "$crosstools" != "yes"; then
8052 if test "$aros_target_as" = ""; then
8053 if test "$cross_compiling" = "yes" ; then
8054 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8055 set dummy ${target_tool_prefix}as; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 case $aros_target_as_ln in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8077 done
8078 done
8079 IFS=$as_save_IFS
8082 esac
8084 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8085 if test -n "$aros_target_as_ln"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8087 $as_echo "$aros_target_as_ln" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8094 else
8095 if test "$GCC" = "yes"; then
8096 aros_gcc_as=`$CC -print-prog-name=as`
8097 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8098 set dummy `basename $aros_gcc_as`; 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_as_ln+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 case $aros_target_as_ln in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in `dirname $aros_gcc_as`
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_as_ln="$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_as_ln=$ac_cv_path_aros_target_as_ln
8128 if test -n "$aros_target_as_ln"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8130 $as_echo "$aros_target_as_ln" >&6; }
8131 else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8138 if test "$aros_target_as_ln" = ""; then
8139 # Extract the first word of "as", so it can be a program name with args.
8140 set dummy as; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 case $aros_target_as_ln in
8147 [\\/]* | ?:[\\/]*)
8148 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
8157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8158 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8164 IFS=$as_save_IFS
8167 esac
8169 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8170 if test -n "$aros_target_as_ln"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8172 $as_echo "$aros_target_as_ln" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8181 else
8182 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8183 set dummy $aros_target_as; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 case $aros_target_as_ln in
8190 [\\/]* | ?:[\\/]*)
8191 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8201 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8205 done
8206 done
8207 IFS=$as_save_IFS
8210 esac
8212 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8213 if test -n "$aros_target_as_ln"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8215 $as_echo "$aros_target_as_ln" >&6; }
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8224 if test "$aros_target_as_ln" = ""; then
8225 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8228 if test "$aros_kernel_ld" = ""; then
8229 if test "$cross_compiling" = "yes" ; then
8230 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8231 set dummy ${target_tool_prefix}ld; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 case $aros_kernel_ld in
8238 [\\/]* | ?:[\\/]*)
8239 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8258 esac
8260 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8261 if test -n "$aros_kernel_ld"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8263 $as_echo "$aros_kernel_ld" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8270 else
8271 if test "$GCC" = "yes"; then
8272 aros_gcc_ld=`$CC -print-prog-name=ld`
8273 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8274 set dummy `basename $aros_gcc_ld`; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 case $aros_kernel_ld in
8281 [\\/]* | ?:[\\/]*)
8282 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in `dirname $aros_gcc_ld`
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8301 esac
8303 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8304 if test -n "$aros_kernel_ld"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8306 $as_echo "$aros_kernel_ld" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8314 if test "$aros_kernel_ld" = ""; then
8315 # Extract the first word of "ld", so it can be a program name with args.
8316 set dummy ld; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 case $aros_kernel_ld in
8323 [\\/]* | ?:[\\/]*)
8324 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
8333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8334 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8338 done
8339 done
8340 IFS=$as_save_IFS
8343 esac
8345 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8346 if test -n "$aros_kernel_ld"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8348 $as_echo "$aros_kernel_ld" >&6; }
8349 else
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8357 else
8358 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8359 set dummy $aros_kernel_ld; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 case $aros_kernel_ld in
8366 [\\/]* | ?:[\\/]*)
8367 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8383 IFS=$as_save_IFS
8386 esac
8388 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8389 if test -n "$aros_kernel_ld"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8391 $as_echo "$aros_kernel_ld" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8400 if test "$aros_kernel_ld" = ""; then
8401 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8404 if test "$aros_target_ar" = ""; then
8405 if test "$cross_compiling" = "yes" ; then
8406 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8407 set dummy ${target_tool_prefix}ar; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 case $aros_target_ar_ln in
8414 [\\/]* | ?:[\\/]*)
8415 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8429 done
8430 done
8431 IFS=$as_save_IFS
8434 esac
8436 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8437 if test -n "$aros_target_ar_ln"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8439 $as_echo "$aros_target_ar_ln" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 else
8447 if test "$GCC" = "yes"; then
8448 aros_gcc_ar=`$CC -print-prog-name=ar`
8449 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8450 set dummy `basename $aros_gcc_ar`; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 case $aros_target_ar_ln in
8457 [\\/]* | ?:[\\/]*)
8458 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in `dirname $aros_gcc_ar`
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8477 esac
8479 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8480 if test -n "$aros_target_ar_ln"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8482 $as_echo "$aros_target_ar_ln" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8490 if test "$aros_target_ar_ln" = ""; then
8491 # Extract the first word of "ar", so it can be a program name with args.
8492 set dummy ar; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 case $aros_target_ar_ln in
8499 [\\/]* | ?:[\\/]*)
8500 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8519 esac
8521 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8522 if test -n "$aros_target_ar_ln"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8524 $as_echo "$aros_target_ar_ln" >&6; }
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8533 else
8534 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8535 set dummy $aros_target_ar; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 case $aros_target_ar_ln in
8542 [\\/]* | ?:[\\/]*)
8543 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8559 IFS=$as_save_IFS
8562 esac
8564 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8565 if test -n "$aros_target_ar_ln"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8567 $as_echo "$aros_target_ar_ln" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8576 if test "$aros_target_ar_ln" = ""; then
8577 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8580 if test "$aros_target_nm" = ""; then
8581 if test "$cross_compiling" = "yes" ; then
8582 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8583 set dummy ${target_tool_prefix}nm; ac_word=$2
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 $as_echo_n "checking for $ac_word... " >&6; }
8586 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 case $aros_target_nm_ln in
8590 [\\/]* | ?:[\\/]*)
8591 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8607 IFS=$as_save_IFS
8610 esac
8612 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8613 if test -n "$aros_target_nm_ln"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8615 $as_echo "$aros_target_nm_ln" >&6; }
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8622 else
8623 if test "$GCC" = "yes"; then
8624 aros_gcc_nm=`$CC -print-prog-name=nm`
8625 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8626 set dummy `basename $aros_gcc_nm`; ac_word=$2
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 case $aros_target_nm_ln in
8633 [\\/]* | ?:[\\/]*)
8634 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in `dirname $aros_gcc_nm`
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8644 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8648 done
8649 done
8650 IFS=$as_save_IFS
8653 esac
8655 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8656 if test -n "$aros_target_nm_ln"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8658 $as_echo "$aros_target_nm_ln" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8666 if test "$aros_target_nm_ln" = ""; then
8667 # Extract the first word of "nm", so it can be a program name with args.
8668 set dummy nm; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 case $aros_target_nm_ln in
8675 [\\/]* | ?:[\\/]*)
8676 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8682 IFS=$as_save_IFS
8683 test -z "$as_dir" && as_dir=.
8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8690 done
8691 done
8692 IFS=$as_save_IFS
8695 esac
8697 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8698 if test -n "$aros_target_nm_ln"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8700 $as_echo "$aros_target_nm_ln" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8709 else
8710 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8711 set dummy $aros_target_nm; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 case $aros_target_nm_ln in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8733 done
8734 done
8735 IFS=$as_save_IFS
8738 esac
8740 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8741 if test -n "$aros_target_nm_ln"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8743 $as_echo "$aros_target_nm_ln" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8752 if test "$aros_target_nm_ln" = ""; then
8753 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8756 if test "$aros_target_objcopy" = ""; then
8757 if test "$cross_compiling" = "yes" ; then
8758 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8759 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 case $aros_target_objcopy_ln in
8766 [\\/]* | ?:[\\/]*)
8767 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8777 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 break 2
8781 done
8782 done
8783 IFS=$as_save_IFS
8786 esac
8788 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8789 if test -n "$aros_target_objcopy_ln"; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8791 $as_echo "$aros_target_objcopy_ln" >&6; }
8792 else
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8798 else
8799 if test "$GCC" = "yes"; then
8800 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8801 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8802 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 case $aros_target_objcopy_ln in
8809 [\\/]* | ?:[\\/]*)
8810 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in `dirname $aros_gcc_objcopy`
8816 IFS=$as_save_IFS
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8820 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822 break 2
8824 done
8825 done
8826 IFS=$as_save_IFS
8829 esac
8831 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8832 if test -n "$aros_target_objcopy_ln"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8834 $as_echo "$aros_target_objcopy_ln" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8842 if test "$aros_target_objcopy_ln" = ""; then
8843 # Extract the first word of "objcopy", so it can be a program name with args.
8844 set dummy objcopy; ac_word=$2
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846 $as_echo_n "checking for $ac_word... " >&6; }
8847 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 case $aros_target_objcopy_ln in
8851 [\\/]* | ?:[\\/]*)
8852 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8866 done
8867 done
8868 IFS=$as_save_IFS
8871 esac
8873 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8874 if test -n "$aros_target_objcopy_ln"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8876 $as_echo "$aros_target_objcopy_ln" >&6; }
8877 else
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8885 else
8886 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8887 set dummy $aros_target_objcopy; ac_word=$2
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889 $as_echo_n "checking for $ac_word... " >&6; }
8890 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 case $aros_target_objcopy_ln in
8894 [\\/]* | ?:[\\/]*)
8895 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8909 done
8910 done
8911 IFS=$as_save_IFS
8914 esac
8916 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8917 if test -n "$aros_target_objcopy_ln"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8919 $as_echo "$aros_target_objcopy_ln" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8928 if test "$aros_target_objcopy_ln" = ""; then
8929 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8932 if test "$aros_target_objdump" = ""; then
8933 if test "$cross_compiling" = "yes" ; then
8934 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8935 set dummy ${target_tool_prefix}objdump; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 case $aros_target_objdump_ln in
8942 [\\/]* | ?:[\\/]*)
8943 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8955 break 2
8957 done
8958 done
8959 IFS=$as_save_IFS
8962 esac
8964 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8965 if test -n "$aros_target_objdump_ln"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8967 $as_echo "$aros_target_objdump_ln" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8974 else
8975 if test "$GCC" = "yes"; then
8976 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8977 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8978 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 case $aros_target_objdump_ln in
8985 [\\/]* | ?:[\\/]*)
8986 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in `dirname $aros_gcc_objdump`
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
9000 done
9001 done
9002 IFS=$as_save_IFS
9005 esac
9007 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9008 if test -n "$aros_target_objdump_ln"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9010 $as_echo "$aros_target_objdump_ln" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9018 if test "$aros_target_objdump_ln" = ""; then
9019 # Extract the first word of "objdump", so it can be a program name with args.
9020 set dummy objdump; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 case $aros_target_objdump_ln in
9027 [\\/]* | ?:[\\/]*)
9028 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032 for as_dir in $PATH
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9038 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9042 done
9043 done
9044 IFS=$as_save_IFS
9047 esac
9049 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9050 if test -n "$aros_target_objdump_ln"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9052 $as_echo "$aros_target_objdump_ln" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9061 else
9062 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9063 set dummy $aros_target_objdump; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 case $aros_target_objdump_ln in
9070 [\\/]* | ?:[\\/]*)
9071 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9085 done
9086 done
9087 IFS=$as_save_IFS
9090 esac
9092 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9093 if test -n "$aros_target_objdump_ln"; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9095 $as_echo "$aros_target_objdump_ln" >&6; }
9096 else
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9104 if test "$aros_target_objdump_ln" = ""; then
9105 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9108 if test "$aros_target_ranlib" = ""; then
9109 if test "$cross_compiling" = "yes" ; then
9110 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9111 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 case $aros_target_ranlib_ln in
9118 [\\/]* | ?:[\\/]*)
9119 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9138 esac
9140 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9141 if test -n "$aros_target_ranlib_ln"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9143 $as_echo "$aros_target_ranlib_ln" >&6; }
9144 else
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9150 else
9151 if test "$GCC" = "yes"; then
9152 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9153 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9154 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 case $aros_target_ranlib_ln in
9161 [\\/]* | ?:[\\/]*)
9162 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in `dirname $aros_gcc_ranlib`
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9172 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 break 2
9176 done
9177 done
9178 IFS=$as_save_IFS
9181 esac
9183 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9184 if test -n "$aros_target_ranlib_ln"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9186 $as_echo "$aros_target_ranlib_ln" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9194 if test "$aros_target_ranlib_ln" = ""; then
9195 # Extract the first word of "ranlib", so it can be a program name with args.
9196 set dummy ranlib; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9200 $as_echo_n "(cached) " >&6
9201 else
9202 case $aros_target_ranlib_ln in
9203 [\\/]* | ?:[\\/]*)
9204 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9218 done
9219 done
9220 IFS=$as_save_IFS
9223 esac
9225 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9226 if test -n "$aros_target_ranlib_ln"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9228 $as_echo "$aros_target_ranlib_ln" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9237 else
9238 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9239 set dummy $aros_target_ranlib; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 case $aros_target_ranlib_ln in
9246 [\\/]* | ?:[\\/]*)
9247 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9266 esac
9268 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9269 if test -n "$aros_target_ranlib_ln"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9271 $as_echo "$aros_target_ranlib_ln" >&6; }
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9280 if test "$aros_target_ranlib_ln" = ""; then
9281 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9284 if test "$aros_target_strip" = ""; then
9285 if test "$cross_compiling" = "yes" ; then
9286 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9287 set dummy ${target_tool_prefix}strip; ac_word=$2
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 case $aros_target_strip_ln in
9294 [\\/]* | ?:[\\/]*)
9295 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9314 esac
9316 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9317 if test -n "$aros_target_strip_ln"; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9319 $as_echo "$aros_target_strip_ln" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322 $as_echo "no" >&6; }
9326 else
9327 if test "$GCC" = "yes"; then
9328 aros_gcc_strip=`$CC -print-prog-name=strip`
9329 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9330 set dummy `basename $aros_gcc_strip`; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 case $aros_target_strip_ln in
9337 [\\/]* | ?:[\\/]*)
9338 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9342 for as_dir in `dirname $aros_gcc_strip`
9344 IFS=$as_save_IFS
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9348 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9350 break 2
9352 done
9353 done
9354 IFS=$as_save_IFS
9357 esac
9359 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9360 if test -n "$aros_target_strip_ln"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9362 $as_echo "$aros_target_strip_ln" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test "$aros_target_strip_ln" = ""; then
9371 # Extract the first word of "strip", so it can be a program name with args.
9372 set dummy strip; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 case $aros_target_strip_ln in
9379 [\\/]* | ?:[\\/]*)
9380 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9386 IFS=$as_save_IFS
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9390 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392 break 2
9394 done
9395 done
9396 IFS=$as_save_IFS
9399 esac
9401 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9402 if test -n "$aros_target_strip_ln"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9404 $as_echo "$aros_target_strip_ln" >&6; }
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9413 else
9414 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9415 set dummy $aros_target_strip; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 case $aros_target_strip_ln in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9442 esac
9444 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9445 if test -n "$aros_target_strip_ln"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9447 $as_echo "$aros_target_strip_ln" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9456 if test "$aros_target_strip_ln" = ""; then
9457 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9459 if test "$aros_target_cxx" != ""; then
9460 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9461 set dummy $aros_target_cxx; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 case $aros_target_cxx in
9468 [\\/]* | ?:[\\/]*)
9469 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9479 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9483 done
9484 done
9485 IFS=$as_save_IFS
9488 esac
9490 aros_target_cxx=$ac_cv_path_aros_target_cxx
9491 if test -n "$aros_target_cxx"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9493 $as_echo "$aros_target_cxx" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496 $as_echo "no" >&6; }
9500 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
9501 # AROS_REQUIRED(c++,$aros_target_cxx)
9503 else
9504 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9505 aros_target_cxx=""
9508 # Build crosstools if we have no C++ - temporary thing
9509 if test "$aros_target_cxx" = ""; then
9510 crosstools_target=tools-crosstools
9513 if test "$rescomp" != ""; then
9514 if test "$cross_compiling" = "yes" ; then
9515 rescomp=${target_tool_prefix}${rescomp}
9517 # Extract the first word of "$rescomp", so it can be a program name with args.
9518 set dummy $rescomp; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 case $aros_kernel_rescomp in
9525 [\\/]* | ?:[\\/]*)
9526 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9540 done
9541 done
9542 IFS=$as_save_IFS
9545 esac
9547 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9548 if test -n "$aros_kernel_rescomp"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9550 $as_echo "$aros_kernel_rescomp" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9557 if test "$aros_kernel_rescomp" = ""; then
9558 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9562 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9563 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9564 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9565 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9566 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9567 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9568 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9570 # aros_cc_pre is a variable that is added to the front of the compiler name
9571 # in the generated aros-gcc shell script. We need this to enable the cache
9572 # to work across cleaned builds. Also, support DISTCC using the correct
9573 # environment variable.
9576 if test "x${DISTCC}" != "x" ; then
9577 if test "x${CCACHE}" != "x" ; then
9578 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9579 else
9580 aros_cc_pre="${DISTCC} "
9582 else
9583 if test "x${CCACHE}" != "x" ; then
9584 aros_cc_pre="${CCACHE} "
9588 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9590 aros_target_nostdinc_cflags=-nostdinc
9592 aros_target_nostartup_ldflags=-nostartfiles
9594 aros_target_nix_ldflags=-nix
9596 aros_target_detach_ldflags=-detach
9598 aros_target_nostdlib_ldflags=-nostdlib
9601 # Target tools
9602 if test "$aros_target_cc" = ""; then
9603 orig_target_cc=$aros_kernel_cc
9604 else
9605 orig_target_cc=$aros_target_cc
9607 if test "$aros_target_ld" = ""; then
9608 orig_target_ld=$aros_kernel_ld
9609 else
9610 orig_target_ld=$aros_target_ld
9612 if test "$GCC" = "yes"; then
9613 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9615 aros_target_cc="${prefix}-gcc"
9616 aros_target_as="${prefix}-as"
9617 aros_target_ld="${prefix}-ld"
9618 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9619 aros_target_objcopy=${prefix}-objcopy
9620 aros_target_objdump=${prefix}-objdump
9621 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9622 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9623 aros_kernel_nm="${prefix}-nm"
9624 aros_target_strip=${prefix}-strip
9626 # Find the system include path. We can suggest that an alternative is
9627 # used if we don't get it correct. The default is to use /usr/include.
9628 # Which is set in the aros_target_incl_def variable.
9630 # Check whether --enable-includes was given.
9631 if test "${enable_includes+set}" = set; then :
9632 enableval=$enable_includes; aros_target_incl=$enable_includes
9633 else
9634 aros_target_incl=$aros_target_incl_def
9638 if test "$aros_kernel_includes" = ""; then
9639 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9640 # FIXME: for cross-compiling this should point to another location
9641 aros_kernel_includes="-isystem $aros_target_incl"
9645 if test "$aros_kernel_includes" != "" ; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9647 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9648 if test "$aros_kernel_cc_includes" = "" ; then
9649 # Try to guess where the directory is.
9650 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9651 if test -d $aros_kernel_cc_includes; then
9652 # Check if there is also an include-fixed directory and add it
9653 # to kernel compiler's include path as it may contain some of
9654 # the headers we need.
9655 if test -d "$aros_kernel_cc_includes"-fixed; then
9656 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9658 else
9659 # The directory doesn't exist, we need to do some more work.
9660 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9662 # These are the headers we're looking for.
9663 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9664 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9665 zutil.h"
9667 dirs=
9668 for h in $headers; do
9669 # Which other headers are needed by each of the above?
9670 deps=$(echo "#include <$h>" | \
9671 $aros_kernel_cc -E -M - 2>/dev/null | \
9672 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9674 # Copy all the needed headers to a directory beneath gendir.
9675 for d in $deps; do
9676 h=$(basename $d)
9677 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9678 sed -n "s,^.*/include\(/.*\),\1,p")
9679 ! test -d $dir && mkdir -p $dir
9680 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9681 done
9682 done
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9686 $as_echo "$aros_kernel_cc_includes" >&6; }
9687 # Adding -nostdinc to kernel includes as they are always used together.
9688 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9692 $as_echo_n "checking for the target compiler's include path... " >&6; }
9693 if test "$aros_target_cc_includes" = "" ; then
9694 #try to guess where the directory is
9695 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9696 if ! test -d $aros_target_cc_includes; then
9697 #the directory doesn't exist, we need to do some more work
9698 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9700 #these are the headers we're looling for
9701 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9702 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9703 zutil.h"
9705 dirs=
9706 for h in $headers; do
9707 #which other headers each of the above headers needs?
9708 deps=$(echo "#include <$h>" | \
9709 $orig_target_cc -E -M - 2>/dev/null | \
9710 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9712 #copy all the needed headers to a directory beneath gendir
9713 for d in $deps; do
9714 h=$(basename $d)
9715 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9716 sed -n "s,^.*/include\(/.*\),\1,p")
9717 ! test -d $dir && mkdir -p $dir
9718 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9719 done
9720 done
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9724 $as_echo "$aros_target_cc_includes" >&6; }
9727 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9728 # On GCC >= 4.0 -iquote should be used
9731 save_cc="$CC"
9732 save_cflags="$CFLAGS"
9733 CFLAGS="-iquote."
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9735 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9740 main ()
9744 return 0;
9746 _ACEOF
9747 if ac_fn_c_try_compile "$LINENO"; then :
9748 has_iquote="yes"
9749 else
9750 has_iquote="no"
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9754 $as_echo "$has_iquote" >&6; }
9755 if test "x-$has_iquote" = "x-yes" ; then
9756 host_cflags_iquote=-iquote
9757 host_cflags_iquote_end=
9758 else
9759 host_cflags_iquote=-I
9760 host_cflags_iquote_end=-I-
9762 kernel_cflags_iquote=$host_cflags_iquote
9763 kernel_cflags_iquote_end=$host_cflags_iquote_end
9764 if test "x-$cross_compiling" = "x-yes"; then
9765 CC="$aros_kernel_cc"
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9767 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9772 main ()
9776 return 0;
9778 _ACEOF
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 use_no_stack_protector="yes"
9781 else
9782 use_no_stack_protector="no"
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9786 $as_echo "$use_no_stack_protector" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9788 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9793 main ()
9797 return 0;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"; then :
9801 has_iquote="yes"
9802 else
9803 has_iquote="no"
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9807 $as_echo "$has_iquote" >&6; }
9808 if test "x-$has_iquote" = "x-yes" ; then
9809 kernel_cflags_iquote=-iquote
9810 kernel_cflags_iquote_end=
9811 else
9812 kernel_cflags_iquote=-I
9813 kernel_cflags_iquote_end=-I-
9816 aros_cflags_iquote=$kernel_cflags_iquote
9817 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9818 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9819 CC="$orig_target_cc"
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9821 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9826 main ()
9830 return 0;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 has_iquote="yes"
9835 else
9836 has_iquote="no"
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9840 $as_echo "$has_iquote" >&6; }
9841 if test "x-$has_iquote" = "x-yes" ; then
9842 aros_cflags_iquote=-iquote
9843 aros_cflags_iquote_end=
9844 else
9845 aros_cflags_iquote=-I
9846 aros_cflags_iquote_end=-I-
9849 if test "x-$use_no_stack_protector" = "x-yes" ; then
9850 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9853 #-----------------------------------------------------------------------------
9855 # Check if we can explicitly choose older version of symbol hashing
9857 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9858 CC="$aros_kernel_cc"
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9860 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9865 main ()
9869 return 0;
9871 _ACEOF
9872 if ac_fn_c_try_link "$LINENO"; then :
9873 use_hash_style="yes"
9874 else
9875 use_hash_style="no"
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9880 $as_echo "$use_hash_style" >&6; }
9881 if test "x-$use_hash_style" = "x-yes" ; then
9882 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9884 CC="$save_cc"
9885 CFLAGS="$save_cflags"
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9896 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9898 # Check whether --with-resolution was given.
9899 if test "${with_resolution+set}" = set; then :
9900 withval=$with_resolution; resolution=$withval
9901 else
9902 resolution=none
9905 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9906 if test "$resolution" = "yes" ; then
9907 resolution="none"
9909 if test "$resolution" = "no" ; then
9910 resolution="none"
9912 if test "$resolution" != "none" ; then
9913 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9914 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9915 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9918 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9919 aros_cv_default_wbwidth=$aros_default_wbwidth
9920 aros_cv_default_wbheight=$aros_default_wbheight
9921 aros_cv_default_wbdepth=$aros_default_wbdepth
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9924 $as_echo_n "checking if serial debug is enabled... " >&6; }
9926 # Check whether --with-serial-debug was given.
9927 if test "${with_serial_debug+set}" = set; then :
9928 withval=$with_serial_debug; serial_debug=$withval
9929 else
9930 serial_debug=none
9933 if test "$aros_serial_debug" = 0 ; then
9934 serial_debug_forced=""
9935 if test "$serial_debug" = "yes" ; then
9936 serial_debug="2"
9938 if test "$serial_debug" = "no" ; then
9939 serial_debug="none"
9941 else
9942 serial_debug_forced="(forced)"
9943 serial_debug=$aros_serial_debug
9945 if test "$serial_debug" != "none" ; then
9946 aros_serial_debug=$serial_debug
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9948 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9949 else
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9955 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9956 # Check whether --enable-palm_debug_hack was given.
9957 if test "${enable_palm_debug_hack+set}" = set; then :
9958 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9959 else
9960 palm_debug_hack="no"
9963 if test "$palm_debug_hack" = "yes" ; then
9964 aros_palm_debug_hack="1"
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9967 $as_echo "$palm_debug_hack" >&6; }
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9971 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9972 # Check whether --enable-nesting_supervisor was given.
9973 if test "${enable_nesting_supervisor+set}" = set; then :
9974 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9975 else
9976 nesting_supervisor="no"
9979 if test "$nesting_supervisor" = "yes" ; then
9980 aros_nesting_supervisor="1"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9983 $as_echo "$nesting_supervisor" >&6; }
9986 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9988 if test "x-$need_dlopen" != "x-no" ; then
9989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9990 if test "x$ac_cv_func_dlopen" = x""yes; then :
9991 have_dl="yes"
9992 else
9993 have_dl="no"
9996 if test "x-$have_dl" = "x-no" ; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9999 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-ldl $LIBS"
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char dlopen ();
10015 main ()
10017 return dlopen ();
10019 return 0;
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 ac_cv_lib_dl_dlopen=yes
10024 else
10025 ac_cv_lib_dl_dlopen=no
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10033 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10034 have_dl="yes"
10035 aros_host_ldflags="$aros_host_ldflags -ldl"
10036 else
10037 have_dl="no"
10041 if test "x-$have_dl" = "x-no" ; then
10042 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
10047 # Check whether --enable-x11_hidd was given.
10048 if test "${enable_x11_hidd+set}" = set; then :
10049 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10050 else
10051 x11_hidd="$need_x11"
10054 case "x-$x11_hidd" in
10055 x-yes|x-no|x-auto) ;;
10056 *) x11_hidd="$need_x11" ;;
10057 esac
10059 ENABLE_X11=0
10061 if test "x-$x11_hidd" != "x-no" ; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10064 $as_echo_n "checking for X... " >&6; }
10067 # Check whether --with-x was given.
10068 if test "${with_x+set}" = set; then :
10069 withval=$with_x;
10072 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10073 if test "x$with_x" = xno; then
10074 # The user explicitly disabled X.
10075 have_x=disabled
10076 else
10077 case $x_includes,$x_libraries in #(
10078 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10079 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 # One or both of the vars are not set, and there is no cached value.
10083 ac_x_includes=no ac_x_libraries=no
10084 rm -f -r conftest.dir
10085 if mkdir conftest.dir; then
10086 cd conftest.dir
10087 cat >Imakefile <<'_ACEOF'
10088 incroot:
10089 @echo incroot='${INCROOT}'
10090 usrlibdir:
10091 @echo usrlibdir='${USRLIBDIR}'
10092 libdir:
10093 @echo libdir='${LIBDIR}'
10094 _ACEOF
10095 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10096 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10097 for ac_var in incroot usrlibdir libdir; do
10098 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10099 done
10100 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10101 for ac_extension in a so sl dylib la dll; do
10102 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10103 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10104 ac_im_usrlibdir=$ac_im_libdir; break
10106 done
10107 # Screen out bogus values from the imake configuration. They are
10108 # bogus both because they are the default anyway, and because
10109 # using them would break gcc on systems where it needs fixed includes.
10110 case $ac_im_incroot in
10111 /usr/include) ac_x_includes= ;;
10112 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10113 esac
10114 case $ac_im_usrlibdir in
10115 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10116 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10117 esac
10119 cd ..
10120 rm -f -r conftest.dir
10123 # Standard set of common directories for X headers.
10124 # Check X11 before X11Rn because it is often a symlink to the current release.
10125 ac_x_header_dirs='
10126 /usr/X11/include
10127 /usr/X11R7/include
10128 /usr/X11R6/include
10129 /usr/X11R5/include
10130 /usr/X11R4/include
10132 /usr/include/X11
10133 /usr/include/X11R7
10134 /usr/include/X11R6
10135 /usr/include/X11R5
10136 /usr/include/X11R4
10138 /usr/local/X11/include
10139 /usr/local/X11R7/include
10140 /usr/local/X11R6/include
10141 /usr/local/X11R5/include
10142 /usr/local/X11R4/include
10144 /usr/local/include/X11
10145 /usr/local/include/X11R7
10146 /usr/local/include/X11R6
10147 /usr/local/include/X11R5
10148 /usr/local/include/X11R4
10150 /usr/X386/include
10151 /usr/x386/include
10152 /usr/XFree86/include/X11
10154 /usr/include
10155 /usr/local/include
10156 /usr/unsupported/include
10157 /usr/athena/include
10158 /usr/local/x11r5/include
10159 /usr/lpp/Xamples/include
10161 /usr/openwin/include
10162 /usr/openwin/share/include'
10164 if test "$ac_x_includes" = no; then
10165 # Guess where to find include files, by looking for Xlib.h.
10166 # First, try using that file with no special directory specified.
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169 #include <X11/Xlib.h>
10170 _ACEOF
10171 if ac_fn_c_try_cpp "$LINENO"; then :
10172 # We can compile using X headers with no special include directory.
10173 ac_x_includes=
10174 else
10175 for ac_dir in $ac_x_header_dirs; do
10176 if test -r "$ac_dir/X11/Xlib.h"; then
10177 ac_x_includes=$ac_dir
10178 break
10180 done
10182 rm -f conftest.err conftest.$ac_ext
10183 fi # $ac_x_includes = no
10185 if test "$ac_x_libraries" = no; then
10186 # Check for the libraries.
10187 # See if we find them without any special options.
10188 # Don't add to $LIBS permanently.
10189 ac_save_LIBS=$LIBS
10190 LIBS="-lX11 $LIBS"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 #include <X11/Xlib.h>
10195 main ()
10197 XrmInitialize ()
10199 return 0;
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 LIBS=$ac_save_LIBS
10204 # We can link X programs with no special library path.
10205 ac_x_libraries=
10206 else
10207 LIBS=$ac_save_LIBS
10208 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10210 # Don't even attempt the hair of trying to link an X program!
10211 for ac_extension in a so sl dylib la dll; do
10212 if test -r "$ac_dir/libX11.$ac_extension"; then
10213 ac_x_libraries=$ac_dir
10214 break 2
10216 done
10217 done
10219 rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 fi # $ac_x_libraries = no
10223 case $ac_x_includes,$ac_x_libraries in #(
10224 no,* | *,no | *\'*)
10225 # Didn't find X, or a directory has "'" in its name.
10226 ac_cv_have_x="have_x=no";; #(
10228 # Record where we found X for the cache.
10229 ac_cv_have_x="have_x=yes\
10230 ac_x_includes='$ac_x_includes'\
10231 ac_x_libraries='$ac_x_libraries'"
10232 esac
10234 ;; #(
10235 *) have_x=yes;;
10236 esac
10237 eval "$ac_cv_have_x"
10238 fi # $with_x != no
10240 if test "$have_x" != yes; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10242 $as_echo "$have_x" >&6; }
10243 no_x=yes
10244 else
10245 # If each of the values was on the command line, it overrides each guess.
10246 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10247 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10248 # Update the cache value to reflect the command line values.
10249 ac_cv_have_x="have_x=yes\
10250 ac_x_includes='$x_includes'\
10251 ac_x_libraries='$x_libraries'"
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10253 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10257 x_cflags=
10258 for path in $x_libraries
10260 x_cflags="$x_cflags -L$path"
10261 done
10263 for path in $x_includes
10265 x_cflags="$x_cflags -I$path"
10266 done
10268 if test "x-$no_x" = "x-yes" ; then
10270 if test "x-$x11_hidd" != "x-auto" ; then
10271 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10274 else
10275 x11_hidd_target=kernel-x11gfx-kobj
10276 ENABLE_X11=1
10278 # Check whether --enable-x11_shm was given.
10279 if test "${enable_x11_shm+set}" = set; then :
10280 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10281 else
10282 x11_hidd_shm="auto"
10285 case "x-$x11_hidd_shm" in
10286 x-yes|x-no|x-auto) ;;
10287 *) x11_hidd_shm="auto" ;;
10288 esac
10290 have_xshm=no
10292 if test "x-$x11_hidd_shm" != "x-no" ; then
10294 for ac_header in sys/ipc.h
10295 do :
10296 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10297 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10298 cat >>confdefs.h <<_ACEOF
10299 #define HAVE_SYS_IPC_H 1
10300 _ACEOF
10304 done
10306 for ac_header in sys/shm.h
10307 do :
10308 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10309 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10310 cat >>confdefs.h <<_ACEOF
10311 #define HAVE_SYS_SHM_H 1
10312 _ACEOF
10316 done
10319 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10321 save_cflags="$CFLAGS"
10322 CFLAGS="$CFLAGS $x_cflags"
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10324 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10325 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-lXext $LIBS"
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char XShmQueryExtension ();
10341 main ()
10343 return XShmQueryExtension ();
10345 return 0;
10347 _ACEOF
10348 if ac_fn_c_try_link "$LINENO"; then :
10349 ac_cv_lib_Xext_XShmQueryExtension=yes
10350 else
10351 ac_cv_lib_Xext_XShmQueryExtension=no
10353 rm -f core conftest.err conftest.$ac_objext \
10354 conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10358 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10359 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10360 have_xshm=yes
10363 CFLAGS="$save_cflags"
10367 if test "x-$have_xshm" = "x-yes" ; then
10368 DO_XSHM_SUPPORT="1"
10369 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10370 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10371 else
10372 DO_XSHM_SUPPORT="0"
10376 # Check whether --enable-x11_vidmode was given.
10377 if test "${enable_x11_vidmode+set}" = set; then :
10378 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10379 else
10380 x11_hidd_vidmode="auto"
10383 case "x-$x11_hidd_vidmode" in
10384 x-yes|x-no|x-auto) ;;
10385 *) x11_hidd_vidmode="auto" ;;
10386 esac
10388 have_vidmode=no
10390 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10392 save_cflags="$CFLAGS"
10393 CFLAGS="$CFLAGS $x_cflags"
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10395 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10396 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lXxf86vm $LIBS"
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char XF86VidModeQueryExtension ();
10412 main ()
10414 return XF86VidModeQueryExtension ();
10416 return 0;
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10421 else
10422 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10429 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10430 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10431 have_vidmode=yes
10434 CFLAGS="$save_cflags"
10437 if test "x-$have_vidmode" = "x-yes" ; then
10438 DO_VIDMODE_SUPPORT="1"
10439 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10440 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10441 else
10442 DO_VIDMODE_SUPPORT="0"
10446 aros_host_x11_includes=$x_includes
10447 aros_host_x11_libdirs=$x_libraries
10451 # Check whether --enable-sdl_hidd was given.
10452 if test "${enable_sdl_hidd+set}" = set; then :
10453 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10454 else
10455 sdl_hidd="auto"
10458 case "x-$sdl_hidd" in
10459 x-yes|x-no|x-auto) ;;
10460 *) sdl_hidd="auto" ;;
10461 esac
10463 if test "x-$sdl_hidd" != "x-no" ; then
10466 # Check whether --with-sdl-prefix was given.
10467 if test "${with_sdl_prefix+set}" = set; then :
10468 withval=$with_sdl_prefix; sdl_prefix="$withval"
10469 else
10470 sdl_prefix=""
10474 # Check whether --with-sdl-exec-prefix was given.
10475 if test "${with_sdl_exec_prefix+set}" = set; then :
10476 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10477 else
10478 sdl_exec_prefix=""
10481 # Check whether --enable-sdltest was given.
10482 if test "${enable_sdltest+set}" = set; then :
10483 enableval=$enable_sdltest;
10484 else
10485 enable_sdltest=yes
10489 if test x$sdl_exec_prefix != x ; then
10490 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10491 if test x${SDL_CONFIG+set} != xset ; then
10492 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10495 if test x$sdl_prefix != x ; then
10496 sdl_args="$sdl_args --prefix=$sdl_prefix"
10497 if test x${SDL_CONFIG+set} != xset ; then
10498 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10502 if test "x$prefix" != xNONE; then
10503 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10505 # Extract the first word of "sdl-config", so it can be a program name with args.
10506 set dummy sdl-config; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 case $SDL_CONFIG in
10513 [\\/]* | ?:[\\/]*)
10514 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10532 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10534 esac
10536 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10537 if test -n "$SDL_CONFIG"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10539 $as_echo "$SDL_CONFIG" >&6; }
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10546 min_sdl_version=1.2.10
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10548 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10549 no_sdl=""
10550 if test "$SDL_CONFIG" = "no" ; then
10551 no_sdl=yes
10552 else
10553 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10554 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10556 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10557 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10558 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10559 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10560 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10561 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10562 if test "x$enable_sdltest" = "xyes" ; then
10563 ac_save_CFLAGS="$CFLAGS"
10564 ac_save_CXXFLAGS="$CXXFLAGS"
10565 ac_save_LIBS="$LIBS"
10566 CFLAGS="$CFLAGS $SDL_CFLAGS"
10567 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10568 LIBS="$LIBS $SDL_LIBS"
10569 rm -f conf.sdltest
10570 if test "$cross_compiling" = yes; then :
10571 echo $ac_n "cross compiling; assumed OK... $ac_c"
10572 else
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 #include <stdio.h>
10577 #include <stdlib.h>
10578 #include <string.h>
10579 #include "SDL.h"
10581 char*
10582 my_strdup (char *str)
10584 char *new_str;
10586 if (str)
10588 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10589 strcpy (new_str, str);
10591 else
10592 new_str = NULL;
10594 return new_str;
10597 int main (int argc, char *argv[])
10599 int major, minor, micro;
10600 char *tmp_version;
10602 /* This hangs on some systems (?)
10603 system ("touch conf.sdltest");
10605 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10607 /* HP/UX 9 (%@#!) writes to sscanf strings */
10608 tmp_version = my_strdup("$min_sdl_version");
10609 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10610 printf("%s, bad version string\n", "$min_sdl_version");
10611 exit(1);
10614 if (($sdl_major_version > major) ||
10615 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10616 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10618 return 0;
10620 else
10622 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10623 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10624 printf("*** best to upgrade to the required version.\n");
10625 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10626 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10627 printf("*** config.cache before re-running configure\n");
10628 return 1;
10633 _ACEOF
10634 if ac_fn_c_try_run "$LINENO"; then :
10636 else
10637 no_sdl=yes
10639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10640 conftest.$ac_objext conftest.beam conftest.$ac_ext
10643 CFLAGS="$ac_save_CFLAGS"
10644 CXXFLAGS="$ac_save_CXXFLAGS"
10645 LIBS="$ac_save_LIBS"
10648 if test "x$no_sdl" = x ; then
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; }
10651 have_sdl="yes"
10652 else
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10655 if test "$SDL_CONFIG" = "no" ; then
10656 echo "*** The sdl-config script installed by SDL could not be found"
10657 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10658 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10659 echo "*** full path to sdl-config."
10660 else
10661 if test -f conf.sdltest ; then
10663 else
10664 echo "*** Could not run SDL test program, checking why..."
10665 CFLAGS="$CFLAGS $SDL_CFLAGS"
10666 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10667 LIBS="$LIBS $SDL_LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10671 #include <stdio.h>
10672 #include "SDL.h"
10674 int main(int argc, char *argv[])
10675 { return 0; }
10676 #undef main
10677 #define main K_and_R_C_main
10680 main ()
10682 return 0;
10684 return 0;
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 echo "*** The test program compiled, but did not run. This usually means"
10689 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10690 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10691 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10692 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10693 echo "*** is required on your system"
10694 echo "***"
10695 echo "*** If you have an old version installed, it is best to remove it, although"
10696 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10697 else
10698 echo "*** The test program failed to compile or link. See the file config.log for the"
10699 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10700 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10701 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 CFLAGS="$ac_save_CFLAGS"
10706 CXXFLAGS="$ac_save_CXXFLAGS"
10707 LIBS="$ac_save_LIBS"
10710 SDL_CFLAGS=""
10711 SDL_LIBS=""
10712 have_sdl="no"
10716 rm -f conf.sdltest
10719 if test "x-$have_sdl" != "x-yes" ; then
10721 if test "x-$sdl_hidd" != "x-auto" ; then
10722 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10725 else
10726 sdl_hidd_target=kernel-hidd-sdl
10727 aros_host_sdl_cflags=SDL_CFLAGS
10728 aros_host_sdl_libs=SDL_LIBS
10732 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10733 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10738 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10739 oss_library_target=workbench-libs-oss-unix
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10745 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10746 # Check whether --enable-dbus was given.
10747 if test "${enable_dbus+set}" = set; then :
10748 enableval=$enable_dbus; dbus="yes"
10749 else
10750 dbus="no"
10753 if test "$dbus" = "yes" ; then
10754 ENABLE_DBUS=1
10755 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10756 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10757 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10758 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10759 else
10760 ENABLE_DBUS=0
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10763 $as_echo "$dbus" >&6; }
10767 # Generic
10777 # Host related
10800 # Target Related
10854 # Graphics Related
10871 # Native version related
10874 # Palm native version related
10877 # Unix/Hosted version related
10880 # Apple iOS related
10885 # Android related
10889 # DBUS related
10896 #X11 related
10899 # Debug related
10905 # Collect-aros stuff: "-ius" to ignore undefined symbols
10908 # C compiler related
10911 case "$aros_flavour" in
10912 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10913 aros_flavour="emulation" ;;
10914 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10915 aros_flavour="emulation" ;;
10916 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10917 aros_flavour="standalone";;
10918 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10919 aros_flavour="standalone";;
10920 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10921 aros_flavour="native" ;;
10922 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10923 aros_flavour="native" ;;
10924 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10925 aros_flavour="linklib" ;;
10926 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10927 aros_flavour="palmnative" ;;
10928 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10929 aros_flavour="mac68knative" ;;
10930 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10931 aros_flavour="ppcnative" ;;
10932 esac
10934 if test ! -d ${aros_inc_dir} ; then
10935 ${MKDIR} ${aros_inc_dir}
10937 if test ! -d ${aros_geninc_dir} ; then
10938 ${MKDIR} ${aros_geninc_dir}
10940 if test ! -d ${aros_hostcfg_dir} ; then
10941 ${MKDIR} ${aros_hostcfg_dir}
10943 if test ! -d ${aros_targetcfg_dir} ; then
10944 ${MKDIR} ${aros_targetcfg_dir}
10946 if test ! -d ${aros_tools_dir} ; then
10947 ${MKDIR} ${aros_tools_dir}
10949 if test ! -d ${aros_scripts_dir} ; then
10950 ${MKDIR} ${aros_scripts_dir}
10953 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10956 ac_config_commands="$ac_config_commands compiler_executable"
10958 ac_config_commands="$ac_config_commands genshared_executable"
10960 ac_config_commands="$ac_config_commands genmf_executable"
10963 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"
10966 cat >confcache <<\_ACEOF
10967 # This file is a shell script that caches the results of configure
10968 # tests run on this system so they can be shared between configure
10969 # scripts and configure runs, see configure's option --config-cache.
10970 # It is not useful on other systems. If it contains results you don't
10971 # want to keep, you may remove or edit it.
10973 # config.status only pays attention to the cache file if you give it
10974 # the --recheck option to rerun configure.
10976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10978 # following values.
10980 _ACEOF
10982 # The following way of writing the cache mishandles newlines in values,
10983 # but we know of no workaround that is simple, portable, and efficient.
10984 # So, we kill variables containing newlines.
10985 # Ultrix sh set writes to stderr and can't be redirected directly,
10986 # and sets the high bit in the cache file unless we assign to the vars.
10988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10989 eval ac_val=\$$ac_var
10990 case $ac_val in #(
10991 *${as_nl}*)
10992 case $ac_var in #(
10993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10995 esac
10996 case $ac_var in #(
10997 _ | IFS | as_nl) ;; #(
10998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10999 *) { eval $ac_var=; unset $ac_var;} ;;
11000 esac ;;
11001 esac
11002 done
11004 (set) 2>&1 |
11005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11006 *${as_nl}ac_space=\ *)
11007 # `set' does not quote correctly, so add quotes: double-quote
11008 # substitution turns \\\\ into \\, and sed turns \\ into \.
11009 sed -n \
11010 "s/'/'\\\\''/g;
11011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11012 ;; #(
11014 # `set' quotes correctly as required by POSIX, so do not add quotes.
11015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11017 esac |
11018 sort
11020 sed '
11021 /^ac_cv_env_/b end
11022 t clear
11023 :clear
11024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11025 t end
11026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11027 :end' >>confcache
11028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11029 if test -w "$cache_file"; then
11030 test "x$cache_file" != "x/dev/null" &&
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11032 $as_echo "$as_me: updating cache $cache_file" >&6;}
11033 cat confcache >$cache_file
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11036 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11039 rm -f confcache
11041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11042 # Let make expand exec_prefix.
11043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11045 DEFS=-DHAVE_CONFIG_H
11047 ac_libobjs=
11048 ac_ltlibobjs=
11049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11050 # 1. Remove the extension, and $U if already installed.
11051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11054 # will be set to the directory where LIBOBJS objects are built.
11055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11057 done
11058 LIBOBJS=$ac_libobjs
11060 LTLIBOBJS=$ac_ltlibobjs
11064 : ${CONFIG_STATUS=./config.status}
11065 ac_write_fail=0
11066 ac_clean_files_save=$ac_clean_files
11067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11070 as_write_fail=0
11071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11072 #! $SHELL
11073 # Generated by $as_me.
11074 # Run this file to recreate the current configuration.
11075 # Compiler output produced by configure, useful for debugging
11076 # configure, is in config.log if it exists.
11078 debug=false
11079 ac_cs_recheck=false
11080 ac_cs_silent=false
11082 SHELL=\${CONFIG_SHELL-$SHELL}
11083 export SHELL
11084 _ASEOF
11085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11086 ## -------------------- ##
11087 ## M4sh Initialization. ##
11088 ## -------------------- ##
11090 # Be more Bourne compatible
11091 DUALCASE=1; export DUALCASE # for MKS sh
11092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11093 emulate sh
11094 NULLCMD=:
11095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11096 # is contrary to our usage. Disable this feature.
11097 alias -g '${1+"$@"}'='"$@"'
11098 setopt NO_GLOB_SUBST
11099 else
11100 case `(set -o) 2>/dev/null` in #(
11101 *posix*) :
11102 set -o posix ;; #(
11103 *) :
11105 esac
11109 as_nl='
11111 export as_nl
11112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11116 # Prefer a ksh shell builtin over an external printf program on Solaris,
11117 # but without wasting forks for bash or zsh.
11118 if test -z "$BASH_VERSION$ZSH_VERSION" \
11119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11120 as_echo='print -r --'
11121 as_echo_n='print -rn --'
11122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11123 as_echo='printf %s\n'
11124 as_echo_n='printf %s'
11125 else
11126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11128 as_echo_n='/usr/ucb/echo -n'
11129 else
11130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11131 as_echo_n_body='eval
11132 arg=$1;
11133 case $arg in #(
11134 *"$as_nl"*)
11135 expr "X$arg" : "X\\(.*\\)$as_nl";
11136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11137 esac;
11138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11140 export as_echo_n_body
11141 as_echo_n='sh -c $as_echo_n_body as_echo'
11143 export as_echo_body
11144 as_echo='sh -c $as_echo_body as_echo'
11147 # The user is always right.
11148 if test "${PATH_SEPARATOR+set}" != set; then
11149 PATH_SEPARATOR=:
11150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11152 PATH_SEPARATOR=';'
11157 # IFS
11158 # We need space, tab and new line, in precisely that order. Quoting is
11159 # there to prevent editors from complaining about space-tab.
11160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11161 # splitting by setting IFS to empty value.)
11162 IFS=" "" $as_nl"
11164 # Find who we are. Look in the path if we contain no directory separator.
11165 case $0 in #((
11166 *[\\/]* ) as_myself=$0 ;;
11167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
11172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11173 done
11174 IFS=$as_save_IFS
11177 esac
11178 # We did not find ourselves, most probably we were run as `sh COMMAND'
11179 # in which case we are not to be found in the path.
11180 if test "x$as_myself" = x; then
11181 as_myself=$0
11183 if test ! -f "$as_myself"; then
11184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11185 exit 1
11188 # Unset variables that we do not need and which cause bugs (e.g. in
11189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11190 # suppresses any "Segmentation fault" message there. '((' could
11191 # trigger a bug in pdksh 5.2.14.
11192 for as_var in BASH_ENV ENV MAIL MAILPATH
11193 do eval test x\${$as_var+set} = xset \
11194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11195 done
11196 PS1='$ '
11197 PS2='> '
11198 PS4='+ '
11200 # NLS nuisances.
11201 LC_ALL=C
11202 export LC_ALL
11203 LANGUAGE=C
11204 export LANGUAGE
11206 # CDPATH.
11207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11210 # as_fn_error ERROR [LINENO LOG_FD]
11211 # ---------------------------------
11212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11214 # script with status $?, using 1 if that was 0.
11215 as_fn_error ()
11217 as_status=$?; test $as_status -eq 0 && as_status=1
11218 if test "$3"; then
11219 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11222 $as_echo "$as_me: error: $1" >&2
11223 as_fn_exit $as_status
11224 } # as_fn_error
11227 # as_fn_set_status STATUS
11228 # -----------------------
11229 # Set $? to STATUS, without forking.
11230 as_fn_set_status ()
11232 return $1
11233 } # as_fn_set_status
11235 # as_fn_exit STATUS
11236 # -----------------
11237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11238 as_fn_exit ()
11240 set +e
11241 as_fn_set_status $1
11242 exit $1
11243 } # as_fn_exit
11245 # as_fn_unset VAR
11246 # ---------------
11247 # Portably unset VAR.
11248 as_fn_unset ()
11250 { eval $1=; unset $1;}
11252 as_unset=as_fn_unset
11253 # as_fn_append VAR VALUE
11254 # ----------------------
11255 # Append the text in VALUE to the end of the definition contained in VAR. Take
11256 # advantage of any shell optimizations that allow amortized linear growth over
11257 # repeated appends, instead of the typical quadratic growth present in naive
11258 # implementations.
11259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11260 eval 'as_fn_append ()
11262 eval $1+=\$2
11264 else
11265 as_fn_append ()
11267 eval $1=\$$1\$2
11269 fi # as_fn_append
11271 # as_fn_arith ARG...
11272 # ------------------
11273 # Perform arithmetic evaluation on the ARGs, and store the result in the
11274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11275 # must be portable across $(()) and expr.
11276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11277 eval 'as_fn_arith ()
11279 as_val=$(( $* ))
11281 else
11282 as_fn_arith ()
11284 as_val=`expr "$@" || test $? -eq 1`
11286 fi # as_fn_arith
11289 if expr a : '\(a\)' >/dev/null 2>&1 &&
11290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11291 as_expr=expr
11292 else
11293 as_expr=false
11296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11297 as_basename=basename
11298 else
11299 as_basename=false
11302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11303 as_dirname=dirname
11304 else
11305 as_dirname=false
11308 as_me=`$as_basename -- "$0" ||
11309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11310 X"$0" : 'X\(//\)$' \| \
11311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11312 $as_echo X/"$0" |
11313 sed '/^.*\/\([^/][^/]*\)\/*$/{
11314 s//\1/
11317 /^X\/\(\/\/\)$/{
11318 s//\1/
11321 /^X\/\(\/\).*/{
11322 s//\1/
11325 s/.*/./; q'`
11327 # Avoid depending upon Character Ranges.
11328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11331 as_cr_digits='0123456789'
11332 as_cr_alnum=$as_cr_Letters$as_cr_digits
11334 ECHO_C= ECHO_N= ECHO_T=
11335 case `echo -n x` in #(((((
11336 -n*)
11337 case `echo 'xy\c'` in
11338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11339 xy) ECHO_C='\c';;
11340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11341 ECHO_T=' ';;
11342 esac;;
11344 ECHO_N='-n';;
11345 esac
11347 rm -f conf$$ conf$$.exe conf$$.file
11348 if test -d conf$$.dir; then
11349 rm -f conf$$.dir/conf$$.file
11350 else
11351 rm -f conf$$.dir
11352 mkdir conf$$.dir 2>/dev/null
11354 if (echo >conf$$.file) 2>/dev/null; then
11355 if ln -s conf$$.file conf$$ 2>/dev/null; then
11356 as_ln_s='ln -s'
11357 # ... but there are two gotchas:
11358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11360 # In both cases, we have to default to `cp -p'.
11361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11362 as_ln_s='cp -p'
11363 elif ln conf$$.file conf$$ 2>/dev/null; then
11364 as_ln_s=ln
11365 else
11366 as_ln_s='cp -p'
11368 else
11369 as_ln_s='cp -p'
11371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11372 rmdir conf$$.dir 2>/dev/null
11375 # as_fn_mkdir_p
11376 # -------------
11377 # Create "$as_dir" as a directory, including parents if necessary.
11378 as_fn_mkdir_p ()
11381 case $as_dir in #(
11382 -*) as_dir=./$as_dir;;
11383 esac
11384 test -d "$as_dir" || eval $as_mkdir_p || {
11385 as_dirs=
11386 while :; do
11387 case $as_dir in #(
11388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11389 *) as_qdir=$as_dir;;
11390 esac
11391 as_dirs="'$as_qdir' $as_dirs"
11392 as_dir=`$as_dirname -- "$as_dir" ||
11393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11394 X"$as_dir" : 'X\(//\)[^/]' \| \
11395 X"$as_dir" : 'X\(//\)$' \| \
11396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11397 $as_echo X"$as_dir" |
11398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11399 s//\1/
11402 /^X\(\/\/\)[^/].*/{
11403 s//\1/
11406 /^X\(\/\/\)$/{
11407 s//\1/
11410 /^X\(\/\).*/{
11411 s//\1/
11414 s/.*/./; q'`
11415 test -d "$as_dir" && break
11416 done
11417 test -z "$as_dirs" || eval "mkdir $as_dirs"
11418 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11421 } # as_fn_mkdir_p
11422 if mkdir -p . 2>/dev/null; then
11423 as_mkdir_p='mkdir -p "$as_dir"'
11424 else
11425 test -d ./-p && rmdir ./-p
11426 as_mkdir_p=false
11429 if test -x / >/dev/null 2>&1; then
11430 as_test_x='test -x'
11431 else
11432 if ls -dL / >/dev/null 2>&1; then
11433 as_ls_L_option=L
11434 else
11435 as_ls_L_option=
11437 as_test_x='
11438 eval sh -c '\''
11439 if test -d "$1"; then
11440 test -d "$1/.";
11441 else
11442 case $1 in #(
11443 -*)set "./$1";;
11444 esac;
11445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11446 ???[sx]*):;;*)false;;esac;fi
11447 '\'' sh
11450 as_executable_p=$as_test_x
11452 # Sed expression to map a string onto a valid CPP name.
11453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11455 # Sed expression to map a string onto a valid variable name.
11456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11459 exec 6>&1
11460 ## ----------------------------------- ##
11461 ## Main body of $CONFIG_STATUS script. ##
11462 ## ----------------------------------- ##
11463 _ASEOF
11464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11467 # Save the log message, to keep $0 and so on meaningful, and to
11468 # report actual input values of CONFIG_FILES etc. instead of their
11469 # values after options handling.
11470 ac_log="
11471 This file was extended by $as_me, which was
11472 generated by GNU Autoconf 2.65. Invocation command line was
11474 CONFIG_FILES = $CONFIG_FILES
11475 CONFIG_HEADERS = $CONFIG_HEADERS
11476 CONFIG_LINKS = $CONFIG_LINKS
11477 CONFIG_COMMANDS = $CONFIG_COMMANDS
11478 $ $0 $@
11480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11483 _ACEOF
11485 case $ac_config_files in *"
11486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11487 esac
11489 case $ac_config_headers in *"
11490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11491 esac
11494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11495 # Files that config.status was made for.
11496 config_files="$ac_config_files"
11497 config_headers="$ac_config_headers"
11498 config_commands="$ac_config_commands"
11500 _ACEOF
11502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11503 ac_cs_usage="\
11504 \`$as_me' instantiates files and other configuration actions
11505 from templates according to the current configuration. Unless the files
11506 and actions are specified as TAGs, all are instantiated by default.
11508 Usage: $0 [OPTION]... [TAG]...
11510 -h, --help print this help, then exit
11511 -V, --version print version number and configuration settings, then exit
11512 --config print configuration, then exit
11513 -q, --quiet, --silent
11514 do not print progress messages
11515 -d, --debug don't remove temporary files
11516 --recheck update $as_me by reconfiguring in the same conditions
11517 --file=FILE[:TEMPLATE]
11518 instantiate the configuration file FILE
11519 --header=FILE[:TEMPLATE]
11520 instantiate the configuration header FILE
11522 Configuration files:
11523 $config_files
11525 Configuration headers:
11526 $config_headers
11528 Configuration commands:
11529 $config_commands
11531 Report bugs to the package provider."
11533 _ACEOF
11534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11535 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11536 ac_cs_version="\\
11537 config.status
11538 configured by $0, generated by GNU Autoconf 2.65,
11539 with options \\"\$ac_cs_config\\"
11541 Copyright (C) 2009 Free Software Foundation, Inc.
11542 This config.status script is free software; the Free Software Foundation
11543 gives unlimited permission to copy, distribute and modify it."
11545 ac_pwd='$ac_pwd'
11546 srcdir='$srcdir'
11547 test -n "\$AWK" || AWK=awk
11548 _ACEOF
11550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11551 # The default lists apply if the user does not specify any file.
11552 ac_need_defaults=:
11553 while test $# != 0
11555 case $1 in
11556 --*=*)
11557 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11558 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11559 ac_shift=:
11562 ac_option=$1
11563 ac_optarg=$2
11564 ac_shift=shift
11566 esac
11568 case $ac_option in
11569 # Handling of the options.
11570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11571 ac_cs_recheck=: ;;
11572 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11573 $as_echo "$ac_cs_version"; exit ;;
11574 --config | --confi | --conf | --con | --co | --c )
11575 $as_echo "$ac_cs_config"; exit ;;
11576 --debug | --debu | --deb | --de | --d | -d )
11577 debug=: ;;
11578 --file | --fil | --fi | --f )
11579 $ac_shift
11580 case $ac_optarg in
11581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11582 esac
11583 as_fn_append CONFIG_FILES " '$ac_optarg'"
11584 ac_need_defaults=false;;
11585 --header | --heade | --head | --hea )
11586 $ac_shift
11587 case $ac_optarg in
11588 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11589 esac
11590 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11591 ac_need_defaults=false;;
11592 --he | --h)
11593 # Conflict between --help and --header
11594 as_fn_error "ambiguous option: \`$1'
11595 Try \`$0 --help' for more information.";;
11596 --help | --hel | -h )
11597 $as_echo "$ac_cs_usage"; exit ;;
11598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11599 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11600 ac_cs_silent=: ;;
11602 # This is an error.
11603 -*) as_fn_error "unrecognized option: \`$1'
11604 Try \`$0 --help' for more information." ;;
11606 *) as_fn_append ac_config_targets " $1"
11607 ac_need_defaults=false ;;
11609 esac
11610 shift
11611 done
11613 ac_configure_extra_args=
11615 if $ac_cs_silent; then
11616 exec 6>/dev/null
11617 ac_configure_extra_args="$ac_configure_extra_args --silent"
11620 _ACEOF
11621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11622 if \$ac_cs_recheck; then
11623 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11624 shift
11625 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11626 CONFIG_SHELL='$SHELL'
11627 export CONFIG_SHELL
11628 exec "\$@"
11631 _ACEOF
11632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11633 exec 5>>config.log
11635 echo
11636 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11637 ## Running $as_me. ##
11638 _ASBOX
11639 $as_echo "$ac_log"
11640 } >&5
11642 _ACEOF
11643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11645 # INIT-COMMANDS
11648 aros_host_exe_suffix=${aros_host_exe_suffix}
11649 aros_tools_dir=${aros_tools_dir}
11650 aros_target_cpu=${aros_target_cpu}
11651 aros_target_arch=${aros_target_arch}
11652 aros_target_suffix=${aros_target_suffix}
11653 aros_target_nm_ln=${aros_target_nm_ln}
11654 aros_target_as_ln=${aros_target_as_ln}
11655 aros_target_ar_ln=${aros_target_ar_ln}
11656 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11657 aros_target_objdump_ln=${aros_target_objdump_ln}
11658 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11659 aros_target_strip_ln=${aros_target_strip_ln}
11662 aros_scripts_dir=${aros_scripts_dir}
11664 aros_tools_dir=${aros_tools_dir}
11667 _ACEOF
11669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11671 # Handling of arguments.
11672 for ac_config_target in $ac_config_targets
11674 case $ac_config_target in
11675 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11676 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11677 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11678 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11680 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11681 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11682 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11683 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11684 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11685 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11686 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11687 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11688 "${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" ;;
11689 "${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" ;;
11690 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
11691 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11692 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11693 "${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" ;;
11695 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11696 esac
11697 done
11700 # If the user did not use the arguments to specify the items to instantiate,
11701 # then the envvar interface is used. Set only those that are not.
11702 # We use the long form for the default assignment because of an extremely
11703 # bizarre bug on SunOS 4.1.3.
11704 if $ac_need_defaults; then
11705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11710 # Have a temporary directory for convenience. Make it in the build tree
11711 # simply because there is no reason against having it here, and in addition,
11712 # creating and moving files from /tmp can sometimes cause problems.
11713 # Hook for its removal unless debugging.
11714 # Note that there is a small window in which the directory will not be cleaned:
11715 # after its creation but before its name has been assigned to `$tmp'.
11716 $debug ||
11718 tmp=
11719 trap 'exit_status=$?
11720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11722 trap 'as_fn_exit 1' 1 2 13 15
11724 # Create a (secure) tmp directory for tmp files.
11727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11728 test -n "$tmp" && test -d "$tmp"
11729 } ||
11731 tmp=./conf$$-$RANDOM
11732 (umask 077 && mkdir "$tmp")
11733 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11735 # Set up the scripts for CONFIG_FILES section.
11736 # No need to generate them if there are no CONFIG_FILES.
11737 # This happens for instance with `./config.status config.h'.
11738 if test -n "$CONFIG_FILES"; then
11741 ac_cr=`echo X | tr X '\015'`
11742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11743 # But we know of no other shell where ac_cr would be empty at this
11744 # point, so we can use a bashism as a fallback.
11745 if test "x$ac_cr" = x; then
11746 eval ac_cr=\$\'\\r\'
11748 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11750 ac_cs_awk_cr='\r'
11751 else
11752 ac_cs_awk_cr=$ac_cr
11755 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11756 _ACEOF
11760 echo "cat >conf$$subs.awk <<_ACEOF" &&
11761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11762 echo "_ACEOF"
11763 } >conf$$subs.sh ||
11764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11766 ac_delim='%!_!# '
11767 for ac_last_try in false false false false false :; do
11768 . ./conf$$subs.sh ||
11769 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11772 if test $ac_delim_n = $ac_delim_num; then
11773 break
11774 elif $ac_last_try; then
11775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11776 else
11777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11779 done
11780 rm -f conf$$subs.sh
11782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11783 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11784 _ACEOF
11785 sed -n '
11787 s/^/S["/; s/!.*/"]=/
11790 s/^[^!]*!//
11791 :repl
11792 t repl
11793 s/'"$ac_delim"'$//
11794 t delim
11797 s/\(.\{148\}\)..*/\1/
11798 t more1
11799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11802 b repl
11803 :more1
11804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11807 s/.\{148\}//
11808 t nl
11809 :delim
11811 s/\(.\{148\}\)..*/\1/
11812 t more2
11813 s/["\\]/\\&/g; s/^/"/; s/$/"/
11816 :more2
11817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11820 s/.\{148\}//
11821 t delim
11822 ' <conf$$subs.awk | sed '
11823 /^[^""]/{
11825 s/\n//
11827 ' >>$CONFIG_STATUS || ac_write_fail=1
11828 rm -f conf$$subs.awk
11829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11830 _ACAWK
11831 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11832 for (key in S) S_is_set[key] = 1
11833 FS = "\a"
11837 line = $ 0
11838 nfields = split(line, field, "@")
11839 substed = 0
11840 len = length(field[1])
11841 for (i = 2; i < nfields; i++) {
11842 key = field[i]
11843 keylen = length(key)
11844 if (S_is_set[key]) {
11845 value = S[key]
11846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11847 len += length(value) + length(field[++i])
11848 substed = 1
11849 } else
11850 len += 1 + keylen
11853 print line
11856 _ACAWK
11857 _ACEOF
11858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11861 else
11863 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11864 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11865 _ACEOF
11867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11869 # trailing colons and then remove the whole line if VPATH becomes empty
11870 # (actually we leave an empty line to preserve line numbers).
11871 if test "x$srcdir" = x.; then
11872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11873 s/:*\$(srcdir):*/:/
11874 s/:*\${srcdir}:*/:/
11875 s/:*@srcdir@:*/:/
11876 s/^\([^=]*=[ ]*\):*/\1/
11877 s/:*$//
11878 s/^[^=]*=[ ]*$//
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 fi # test -n "$CONFIG_FILES"
11885 # Set up the scripts for CONFIG_HEADERS section.
11886 # No need to generate them if there are no CONFIG_HEADERS.
11887 # This happens for instance with `./config.status Makefile'.
11888 if test -n "$CONFIG_HEADERS"; then
11889 cat >"$tmp/defines.awk" <<\_ACAWK ||
11890 BEGIN {
11891 _ACEOF
11893 # Transform confdefs.h into an awk script `defines.awk', embedded as
11894 # here-document in config.status, that substitutes the proper values into
11895 # config.h.in to produce config.h.
11897 # Create a delimiter string that does not exist in confdefs.h, to ease
11898 # handling of long lines.
11899 ac_delim='%!_!# '
11900 for ac_last_try in false false :; do
11901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11902 if test -z "$ac_t"; then
11903 break
11904 elif $ac_last_try; then
11905 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11906 else
11907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11909 done
11911 # For the awk script, D is an array of macro values keyed by name,
11912 # likewise P contains macro parameters if any. Preserve backslash
11913 # newline sequences.
11915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11916 sed -n '
11917 s/.\{148\}/&'"$ac_delim"'/g
11918 t rset
11919 :rset
11920 s/^[ ]*#[ ]*define[ ][ ]*/ /
11921 t def
11923 :def
11924 s/\\$//
11925 t bsnl
11926 s/["\\]/\\&/g
11927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11928 D["\1"]=" \3"/p
11929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11931 :bsnl
11932 s/["\\]/\\&/g
11933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11934 D["\1"]=" \3\\\\\\n"\\/p
11935 t cont
11936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11937 t cont
11939 :cont
11941 s/.\{148\}/&'"$ac_delim"'/g
11942 t clear
11943 :clear
11944 s/\\$//
11945 t bsnlc
11946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11948 :bsnlc
11949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11950 b cont
11951 ' <confdefs.h | sed '
11952 s/'"$ac_delim"'/"\\\
11953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11956 for (key in D) D_is_set[key] = 1
11957 FS = "\a"
11959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11960 line = \$ 0
11961 split(line, arg, " ")
11962 if (arg[1] == "#") {
11963 defundef = arg[2]
11964 mac1 = arg[3]
11965 } else {
11966 defundef = substr(arg[1], 2)
11967 mac1 = arg[2]
11969 split(mac1, mac2, "(") #)
11970 macro = mac2[1]
11971 prefix = substr(line, 1, index(line, defundef) - 1)
11972 if (D_is_set[macro]) {
11973 # Preserve the white space surrounding the "#".
11974 print prefix "define", macro P[macro] D[macro]
11975 next
11976 } else {
11977 # Replace #undef with comments. This is necessary, for example,
11978 # in the case of _POSIX_SOURCE, which is predefined and required
11979 # on some systems where configure will not decide to define it.
11980 if (defundef == "undef") {
11981 print "/*", prefix defundef, macro, "*/"
11982 next
11986 { print }
11987 _ACAWK
11988 _ACEOF
11989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11990 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11991 fi # test -n "$CONFIG_HEADERS"
11994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11995 shift
11996 for ac_tag
11998 case $ac_tag in
11999 :[FHLC]) ac_mode=$ac_tag; continue;;
12000 esac
12001 case $ac_mode$ac_tag in
12002 :[FHL]*:*);;
12003 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12004 :[FH]-) ac_tag=-:-;;
12005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12006 esac
12007 ac_save_IFS=$IFS
12008 IFS=:
12009 set x $ac_tag
12010 IFS=$ac_save_IFS
12011 shift
12012 ac_file=$1
12013 shift
12015 case $ac_mode in
12016 :L) ac_source=$1;;
12017 :[FH])
12018 ac_file_inputs=
12019 for ac_f
12021 case $ac_f in
12022 -) ac_f="$tmp/stdin";;
12023 *) # Look for the file first in the build tree, then in the source tree
12024 # (if the path is not absolute). The absolute path cannot be DOS-style,
12025 # because $ac_f cannot contain `:'.
12026 test -f "$ac_f" ||
12027 case $ac_f in
12028 [\\/$]*) false;;
12029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12030 esac ||
12031 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12032 esac
12033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12034 as_fn_append ac_file_inputs " '$ac_f'"
12035 done
12037 # Let's still pretend it is `configure' which instantiates (i.e., don't
12038 # use $as_me), people would be surprised to read:
12039 # /* config.h. Generated by config.status. */
12040 configure_input='Generated from '`
12041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12042 `' by configure.'
12043 if test x"$ac_file" != x-; then
12044 configure_input="$ac_file. $configure_input"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12046 $as_echo "$as_me: creating $ac_file" >&6;}
12048 # Neutralize special characters interpreted by sed in replacement strings.
12049 case $configure_input in #(
12050 *\&* | *\|* | *\\* )
12051 ac_sed_conf_input=`$as_echo "$configure_input" |
12052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12053 *) ac_sed_conf_input=$configure_input;;
12054 esac
12056 case $ac_tag in
12057 *:-:* | *:-) cat >"$tmp/stdin" \
12058 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12059 esac
12061 esac
12063 ac_dir=`$as_dirname -- "$ac_file" ||
12064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12065 X"$ac_file" : 'X\(//\)[^/]' \| \
12066 X"$ac_file" : 'X\(//\)$' \| \
12067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12068 $as_echo X"$ac_file" |
12069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12070 s//\1/
12073 /^X\(\/\/\)[^/].*/{
12074 s//\1/
12077 /^X\(\/\/\)$/{
12078 s//\1/
12081 /^X\(\/\).*/{
12082 s//\1/
12085 s/.*/./; q'`
12086 as_dir="$ac_dir"; as_fn_mkdir_p
12087 ac_builddir=.
12089 case "$ac_dir" in
12090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12093 # A ".." for each directory in $ac_dir_suffix.
12094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12095 case $ac_top_builddir_sub in
12096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12098 esac ;;
12099 esac
12100 ac_abs_top_builddir=$ac_pwd
12101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12102 # for backward compatibility:
12103 ac_top_builddir=$ac_top_build_prefix
12105 case $srcdir in
12106 .) # We are building in place.
12107 ac_srcdir=.
12108 ac_top_srcdir=$ac_top_builddir_sub
12109 ac_abs_top_srcdir=$ac_pwd ;;
12110 [\\/]* | ?:[\\/]* ) # Absolute name.
12111 ac_srcdir=$srcdir$ac_dir_suffix;
12112 ac_top_srcdir=$srcdir
12113 ac_abs_top_srcdir=$srcdir ;;
12114 *) # Relative name.
12115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12116 ac_top_srcdir=$ac_top_build_prefix$srcdir
12117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12118 esac
12119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12122 case $ac_mode in
12125 # CONFIG_FILE
12128 _ACEOF
12130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12131 # If the template does not know about datarootdir, expand it.
12132 # FIXME: This hack should be removed a few years after 2.60.
12133 ac_datarootdir_hack=; ac_datarootdir_seen=
12134 ac_sed_dataroot='
12135 /datarootdir/ {
12139 /@datadir@/p
12140 /@docdir@/p
12141 /@infodir@/p
12142 /@localedir@/p
12143 /@mandir@/p'
12144 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12145 *datarootdir*) ac_datarootdir_seen=yes;;
12146 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12148 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12149 _ACEOF
12150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12151 ac_datarootdir_hack='
12152 s&@datadir@&$datadir&g
12153 s&@docdir@&$docdir&g
12154 s&@infodir@&$infodir&g
12155 s&@localedir@&$localedir&g
12156 s&@mandir@&$mandir&g
12157 s&\\\${datarootdir}&$datarootdir&g' ;;
12158 esac
12159 _ACEOF
12161 # Neutralize VPATH when `$srcdir' = `.'.
12162 # Shell code in configure.ac might set extrasub.
12163 # FIXME: do we really want to maintain this feature?
12164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12165 ac_sed_extra="$ac_vpsub
12166 $extrasub
12167 _ACEOF
12168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12170 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12171 s|@configure_input@|$ac_sed_conf_input|;t t
12172 s&@top_builddir@&$ac_top_builddir_sub&;t t
12173 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12174 s&@srcdir@&$ac_srcdir&;t t
12175 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12176 s&@top_srcdir@&$ac_top_srcdir&;t t
12177 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12178 s&@builddir@&$ac_builddir&;t t
12179 s&@abs_builddir@&$ac_abs_builddir&;t t
12180 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12181 $ac_datarootdir_hack
12183 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12184 || as_fn_error "could not create $ac_file" "$LINENO" 5
12186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12190 which seems to be undefined. Please make sure it is defined." >&5
12191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12192 which seems to be undefined. Please make sure it is defined." >&2;}
12194 rm -f "$tmp/stdin"
12195 case $ac_file in
12196 -) cat "$tmp/out" && rm -f "$tmp/out";;
12197 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12198 esac \
12199 || as_fn_error "could not create $ac_file" "$LINENO" 5
12203 # CONFIG_HEADER
12205 if test x"$ac_file" != x-; then
12207 $as_echo "/* $configure_input */" \
12208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12209 } >"$tmp/config.h" \
12210 || as_fn_error "could not create $ac_file" "$LINENO" 5
12211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12214 else
12215 rm -f "$ac_file"
12216 mv "$tmp/config.h" "$ac_file" \
12217 || as_fn_error "could not create $ac_file" "$LINENO" 5
12219 else
12220 $as_echo "/* $configure_input */" \
12221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12222 || as_fn_error "could not create -" "$LINENO" 5
12226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12227 $as_echo "$as_me: executing $ac_file commands" >&6;}
12229 esac
12232 case $ac_file$ac_mode in
12233 "compiler_executable":C)
12234 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12235 mkdir -p $prefix
12236 prefix="${prefix}/${aros_target_cpu}-aros"
12237 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12239 echo ${prefix}
12240 echo ${prefix2}
12241 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12243 ln -sf ${prefix2}-gcc ${prefix}-gcc
12244 ln -sf ${prefix2}-ld ${prefix}-ld
12246 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12247 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12248 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12249 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12250 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12251 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12252 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12254 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12255 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12256 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12257 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12258 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12259 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12260 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12262 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12263 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12265 esac
12266 done # for ac_tag
12269 as_fn_exit 0
12270 _ACEOF
12271 ac_clean_files=$ac_clean_files_save
12273 test $ac_write_fail = 0 ||
12274 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12277 # configure is writing to config.log, and then calls config.status.
12278 # config.status does its own redirection, appending to config.log.
12279 # Unfortunately, on DOS this fails, as config.log is still kept open
12280 # by configure, so config.status won't be able to write to it; its
12281 # output is simply discarded. So we exec the FD to /dev/null,
12282 # effectively closing config.log, so it can be properly (re)opened and
12283 # appended to by config.status. When coming back to configure, we
12284 # need to make the FD available again.
12285 if test "$no_create" != yes; then
12286 ac_cs_success=:
12287 ac_config_status_args=
12288 test "$silent" = yes &&
12289 ac_config_status_args="$ac_config_status_args --quiet"
12290 exec 5>/dev/null
12291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12292 exec 5>>config.log
12293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12294 # would make configure fail if this is the last instruction.
12295 $ac_cs_success || as_fn_exit $?
12297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12299 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12304 #XXX compatability...
12305 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12307 if test -n "$aros_shared_cflags" ; then
12308 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12309 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg