Locales with a week day start of Monday (instead
[tangerine.git] / configure
blob50418d79a2fa1914ed710f8741893271599d0eaf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="mmakefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MMAKE aros_host_ld aros_host_aclocal aros_host_autoconf aros_host_autoheader aros_host_automake aros_host_ar aros_host_ranlib aros_host_strip RM CP MV ECHO MKDIR TOUCH SORT UNIQ NOP CAT BISON FLEX PNGTOPNM PPMTOILBM SED CHMOD PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir FOR IF TEST CMP EGREP LIBOBJS DISTCC CCACHE aros_kernel_cc aros_target_as_ln aros_kernel_ld aros_target_ar_ln aros_target_nm_ln aros_target_objcopy_ln aros_target_objdump_ln aros_target_ranlib_ln aros_target_strip_ln aros_target_nostdinc_cflags aros_target_nostartup_ldflags aros_target_nix_ldflags aros_target_detach_ldflags aros_target_nostdlib_ldflags aros_arch aros_cpu aros_flavour aros_flavour_uc TOPDIR aros_cc_pre aros_host_arch aros_host_cpu aros_host_cc aros_host_make aros_host_cflags aros_host_ldflags aros_host_debug aros_host_mkdep aros_host_mkargs aros_host_exe_suffix aros_host_lib_suffix aros_tools_dir aros_target_arch aros_target_cpu aros_target_variant aros_target_suffix aros_target_incl aros_target_ar aros_target_ranlib aros_kernel_nm aros_target_cc aros_target_as aros_target_ld aros_target_cc_includes aros_target_cc_path aros_target_objdump aros_target_objcopy aros_target_strip aros_target_nm aros_shared_default aros_shared_ld aros_object_format aros_compiler_libs aros_config_cflags aros_config_aflags aros_config_ldflags aros_shared_cflags aros_shared_aflags aros_shared_ldflags aros_kernel_ldflags aros_debug_cflags aros_debug_aflags aros_debug_ldflags aros_target_genmap aros_target_strip_flags aros_gui_libdir aros_gui_ldflags aros_gui_libflags aros_gui_incdir aros_gui_ccflags aros_default_wbwidth aros_default_wbheight aros_default_wbdepth DO_XSHM_SUPPORT DO_VIDMODE_SUPPORT aros_bochs_hack aros_serial_debug aros_palm_debug_hack aros_nesting_supervisor ENABLE_DBUS DBUS_CFLAGS DBUS_LIBFLAGS KERNEL_DBUS_KOBJ KERNEL_DBUS_INCLUDES aros_debug aros_mungwall_debug aros_stack_debug aros_modules_debug ignore_undefined_symbols gcc_target_cpu LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-build-type=TYPE
852 Select the build type. Available types are:
853 personal, nightly, snapshot, milestone, release. Do
854 NOT use this option unless you know what you are
855 doing! (default=personal)
856 --enable-debug=list Enable different types of debug. Commas or
857 whitespaces can be used to separate the items in the
858 list. Available types of debug are: all, none,
859 messages, stack, mungwall, modules, symbols. If no
860 list is provided then "all" is assumed.
861 (default=none)
862 --enable-distcc Use distcc as a front end to the compiler
863 (default=no).
864 --enable-ccache Use ccache as a front end to the compiler
865 (default=no).
866 --enable-target-variant=NAME
867 Enable a specific target variant(default=none)
868 --enable-includes=dir Alternative system include directory
869 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
870 (default=no)
871 --enable-palm-debug-hack
872 Enable palm debug output hack in palm native
873 (default=no)
874 --enable-nesting-supervisor
875 Enable nesting supervisor support in unix
876 (default=no)
877 --enable-xshm-extension Enable X11 MIT-SHM extension (default=yes)
878 --enable-vidmode-extension
879 Enable X11 vidmode extension (default=yes)
880 --enable-dbus Enable DBUS support via dbus.library (default=no)
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-x use the X Window System
886 --with-optimization=FLAGS
887 Use optimization flags FLAGS (default=-O2).
888 --with-resolution=XRESxYRESxDEPTH
889 Default resolution of the initial WorkbenchScreen
890 --with-serial-debug Enable serial debug output in native (default=no)
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CPP C preprocessor
901 Use these variables to override the choices made by `configure' or to help
902 it to find libraries and programs with nonstandard names/locations.
904 _ACEOF
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 cd $ac_popdir
993 done
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
1000 Copyright (C) 2003 Free Software Foundation, Inc.
1001 This configure script is free software; the Free Software Foundation
1002 gives unlimited permission to copy, distribute and modify it.
1003 _ACEOF
1004 exit 0
1006 exec 5>config.log
1007 cat >&5 <<_ACEOF
1008 This file contains any messages produced by compilers while
1009 running configure, to aid debugging if configure makes a mistake.
1011 It was created by $as_me, which was
1012 generated by GNU Autoconf 2.59. Invocation command line was
1014 $ $0 $@
1016 _ACEOF
1018 cat <<_ASUNAME
1019 ## --------- ##
1020 ## Platform. ##
1021 ## --------- ##
1023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040 _ASUNAME
1042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 for as_dir in $PATH
1045 IFS=$as_save_IFS
1046 test -z "$as_dir" && as_dir=.
1047 echo "PATH: $as_dir"
1048 done
1050 } >&5
1052 cat >&5 <<_ACEOF
1055 ## ----------- ##
1056 ## Core tests. ##
1057 ## ----------- ##
1059 _ACEOF
1062 # Keep a trace of the command line.
1063 # Strip out --no-create and --no-recursion so they do not pile up.
1064 # Strip out --silent because we don't want to record it for future runs.
1065 # Also quote any args containing shell meta-characters.
1066 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_configure_args=
1068 ac_configure_args0=
1069 ac_configure_args1=
1070 ac_sep=
1071 ac_must_keep_next=false
1072 for ac_pass in 1 2
1074 for ac_arg
1076 case $ac_arg in
1077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 continue ;;
1081 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083 esac
1084 case $ac_pass in
1085 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088 if test $ac_must_keep_next = true; then
1089 ac_must_keep_next=false # Got value, back to normal.
1090 else
1091 case $ac_arg in
1092 *=* | --config-cache | -C | -disable-* | --disable-* \
1093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095 | -with-* | --with-* | -without-* | --without-* | --x)
1096 case "$ac_configure_args0 " in
1097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098 esac
1100 -* ) ac_must_keep_next=true ;;
1101 esac
1103 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104 # Get rid of the leading space.
1105 ac_sep=" "
1107 esac
1108 done
1109 done
1110 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113 # When interrupted or exit'd, cleanup temporary files, and complete
1114 # config.log. We remove comments because anyway the quotes in there
1115 # would cause problems or look ugly.
1116 # WARNING: Be sure not to use single quotes in there, as some shells,
1117 # such as our DU 5.0 friend, will then `close' the trap.
1118 trap 'exit_status=$?
1119 # Save into config.log some information that might help in debugging.
1121 echo
1123 cat <<\_ASBOX
1124 ## ---------------- ##
1125 ## Cache variables. ##
1126 ## ---------------- ##
1127 _ASBOX
1128 echo
1129 # The following way of writing the cache mishandles newlines in values,
1131 (set) 2>&1 |
1132 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133 *ac_space=\ *)
1134 sed -n \
1135 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 sed -n \
1140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 esac;
1144 echo
1146 cat <<\_ASBOX
1147 ## ----------------- ##
1148 ## Output variables. ##
1149 ## ----------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_vars
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1159 if test -n "$ac_subst_files"; then
1160 cat <<\_ASBOX
1161 ## ------------- ##
1162 ## Output files. ##
1163 ## ------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_files
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1174 if test -s confdefs.h; then
1175 cat <<\_ASBOX
1176 ## ----------- ##
1177 ## confdefs.h. ##
1178 ## ----------- ##
1179 _ASBOX
1180 echo
1181 sed "/^$/d" confdefs.h | sort
1182 echo
1184 test "$ac_signal" != 0 &&
1185 echo "$as_me: caught signal $ac_signal"
1186 echo "$as_me: exit $exit_status"
1187 } >&5
1188 rm -f core *.core &&
1189 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190 exit $exit_status
1192 for ac_signal in 1 2 13 15; do
1193 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 done
1195 ac_signal=0
1197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1198 rm -rf conftest* confdefs.h
1199 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200 echo >confdefs.h
1202 # Predefined preprocessor variables.
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 _ACEOF
1229 # Let the site file select an alternate cache file if it wants to.
1230 # Prefer explicitly selected file to automatically selected ones.
1231 if test -z "$CONFIG_SITE"; then
1232 if test "x$prefix" != xNONE; then
1233 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 else
1235 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 for ac_site_file in $CONFIG_SITE; do
1239 if test -r "$ac_site_file"; then
1240 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241 echo "$as_me: loading site script $ac_site_file" >&6;}
1242 sed 's/^/| /' "$ac_site_file" >&5
1243 . "$ac_site_file"
1245 done
1247 if test -r "$cache_file"; then
1248 # Some versions of bash will fail to source /dev/null (special
1249 # files actually), so we avoid doing that.
1250 if test -f "$cache_file"; then
1251 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252 echo "$as_me: loading cache $cache_file" >&6;}
1253 case $cache_file in
1254 [\\/]* | ?:[\\/]* ) . $cache_file;;
1255 *) . ./$cache_file;;
1256 esac
1258 else
1259 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260 echo "$as_me: creating cache $cache_file" >&6;}
1261 >$cache_file
1264 # Check that the precious variables saved in the cache have kept the same
1265 # value.
1266 ac_cache_corrupted=false
1267 for ac_var in `(set) 2>&1 |
1268 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270 eval ac_new_set=\$ac_env_${ac_var}_set
1271 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272 eval ac_new_val="\$ac_env_${ac_var}_value"
1273 case $ac_old_set,$ac_new_set in
1274 set,)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,set)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,);;
1284 if test "x$ac_old_val" != "x$ac_new_val"; then
1285 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1288 echo "$as_me: former value: $ac_old_val" >&2;}
1289 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1290 echo "$as_me: current value: $ac_new_val" >&2;}
1291 ac_cache_corrupted=:
1292 fi;;
1293 esac
1294 # Pass precious variables to config.status.
1295 if test "$ac_new_set" = set; then
1296 case $ac_new_val in
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 *) ac_arg=$ac_var=$ac_new_val ;;
1300 esac
1301 case " $ac_configure_args " in
1302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1303 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 esac
1306 done
1307 if $ac_cache_corrupted; then
1308 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312 { (exit 1); exit 1; }; }
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_aux_dir=
1341 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366 # Check what host we are running on.
1367 # If a target is not suggested, we use this one.
1368 # Note that what we call a target, Autoconf calls a host.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:$LINENO: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1379 else
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1395 build=$ac_cv_build
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1401 echo "$as_me:$LINENO: checking host system type" >&5
1402 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1403 if test "${ac_cv_host+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406 ac_cv_host_alias=$host_alias
1407 test -z "$ac_cv_host_alias" &&
1408 ac_cv_host_alias=$ac_cv_build_alias
1409 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1416 echo "${ECHO_T}$ac_cv_host" >&6
1417 host=$ac_cv_host
1418 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The AROS target is slightly different to the normal GNU style
1425 # format. We don't have the middle part, and we reverse the order
1426 # of the $(CPU) and $(OS) bits.
1428 # Don't strip the version of the target yet, it might be
1429 # useful on some systems.
1431 echo "$as_me:$LINENO: checking for AROS style target" >&5
1432 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1434 if test "$target" = "NONE" ; then
1435 target=$host_os-$host_cpu
1436 cross_compile=no
1437 else
1438 if test "$target" = "" ; then
1439 target=$host_os-$host_cpu
1440 cross_compile=no
1441 else
1442 cross_compile=yes
1445 echo "$as_me:$LINENO: result: $target" >&5
1446 echo "${ECHO_T}$target" >&6
1448 #don't know where else to put this...
1449 TOPDIR=$PWD
1451 # Parse the target field into something useful.
1453 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1454 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1457 aros_default_wbwidth=800
1458 aros_default_wbheight=600
1459 aros_default_wbdepth=4
1462 # The first step is to find the host binaries.
1463 # Check for a compiler.
1464 ac_ext=c
1465 ac_cpp='$CPP $CPPFLAGS'
1466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 else
1480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 break 2
1491 done
1492 done
1496 CC=$ac_cv_prog_CC
1497 if test -n "$CC"; then
1498 echo "$as_me:$LINENO: result: $CC" >&5
1499 echo "${ECHO_T}$CC" >&6
1500 else
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1506 if test -z "$ac_cv_prog_CC"; then
1507 ac_ct_CC=$CC
1508 # Extract the first word of "gcc", so it can be a program name with args.
1509 set dummy gcc; ac_word=$2
1510 echo "$as_me:$LINENO: checking for $ac_word" >&5
1511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514 else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517 else
1518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 for as_dir in $PATH
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1529 done
1530 done
1534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535 if test -n "$ac_ct_CC"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1537 echo "${ECHO_T}$ac_ct_CC" >&6
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1543 CC=$ac_ct_CC
1544 else
1545 CC="$ac_cv_prog_CC"
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551 set dummy ${ac_tool_prefix}cc; ac_word=$2
1552 echo "$as_me:$LINENO: checking for $ac_word" >&5
1553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554 if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 else
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1559 else
1560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561 for as_dir in $PATH
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="${ac_tool_prefix}cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1571 done
1572 done
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578 echo "$as_me:$LINENO: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1586 if test -z "$ac_cv_prog_CC"; then
1587 ac_ct_CC=$CC
1588 # Extract the first word of "cc", so it can be a program name with args.
1589 set dummy cc; ac_word=$2
1590 echo "$as_me:$LINENO: checking for $ac_word" >&5
1591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597 else
1598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1609 done
1610 done
1614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1618 else
1619 echo "$as_me:$LINENO: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 CC=$ac_ct_CC
1624 else
1625 CC="$ac_cv_prog_CC"
1629 if test -z "$CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631 set dummy cc; ac_word=$2
1632 echo "$as_me:$LINENO: checking for $ac_word" >&5
1633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634 if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1639 else
1640 ac_prog_rejected=no
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649 ac_prog_rejected=yes
1650 continue
1652 ac_cv_prog_CC="cc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1656 done
1657 done
1659 if test $ac_prog_rejected = yes; then
1660 # We found a bogon in the path, so make sure we never use it.
1661 set dummy $ac_cv_prog_CC
1662 shift
1663 if test $# != 0; then
1664 # We chose a different compiler from the bogus one.
1665 # However, it has the same basename, so the bogon will be chosen
1666 # first if we set CC to just the basename; use the full file name.
1667 shift
1668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673 CC=$ac_cv_prog_CC
1674 if test -n "$CC"; then
1675 echo "$as_me:$LINENO: result: $CC" >&5
1676 echo "${ECHO_T}$CC" >&6
1677 else
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 for ac_prog in cl
1687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1708 done
1709 done
1713 CC=$ac_cv_prog_CC
1714 if test -n "$CC"; then
1715 echo "$as_me:$LINENO: result: $CC" >&5
1716 echo "${ECHO_T}$CC" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1722 test -n "$CC" && break
1723 done
1725 if test -z "$CC"; then
1726 ac_ct_CC=$CC
1727 for ac_prog in cl
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730 set dummy $ac_prog; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1750 done
1751 done
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1764 test -n "$ac_ct_CC" && break
1765 done
1767 CC=$ac_ct_CC
1773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1774 See \`config.log' for more details." >&5
1775 echo "$as_me: error: no acceptable C compiler found in \$PATH
1776 See \`config.log' for more details." >&2;}
1777 { (exit 1); exit 1; }; }
1779 # Provide some information about the compiler.
1780 echo "$as_me:$LINENO:" \
1781 "checking for C compiler version" >&5
1782 ac_compiler=`set X $ac_compile; echo $2`
1783 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1785 ac_status=$?
1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787 (exit $ac_status); }
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }
1799 cat >conftest.$ac_ext <<_ACEOF
1800 /* confdefs.h. */
1801 _ACEOF
1802 cat confdefs.h >>conftest.$ac_ext
1803 cat >>conftest.$ac_ext <<_ACEOF
1804 /* end confdefs.h. */
1807 main ()
1811 return 0;
1813 _ACEOF
1814 ac_clean_files_save=$ac_clean_files
1815 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1816 # Try to create an executable without -o first, disregard a.out.
1817 # It will help us diagnose broken compilers, and finding out an intuition
1818 # of exeext.
1819 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1820 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1821 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1823 (eval $ac_link_default) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # Find the output, starting from the most likely. This scheme is
1828 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1829 # resort.
1831 # Be careful to initialize this variable, since it used to be cached.
1832 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1833 ac_cv_exeext=
1834 # b.out is created by i960 compilers.
1835 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837 test -f "$ac_file" || continue
1838 case $ac_file in
1839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841 conftest.$ac_ext )
1842 # This is the source file.
1844 [ab].out )
1845 # We found the default executable, but exeext='' is most
1846 # certainly right.
1847 break;;
1848 *.* )
1849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850 # FIXME: I believe we export ac_cv_exeext for Libtool,
1851 # but it would be cool to find out if it's true. Does anybody
1852 # maintain Libtool? --akim.
1853 export ac_cv_exeext
1854 break;;
1856 break;;
1857 esac
1858 done
1859 else
1860 echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: C compiler cannot create executables
1866 See \`config.log' for more details." >&2;}
1867 { (exit 77); exit 77; }; }
1870 ac_exeext=$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_file" >&5
1872 echo "${ECHO_T}$ac_file" >&6
1874 # Check the compiler produces executables we can run. If not, either
1875 # the compiler is broken, or we cross compile.
1876 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1877 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1878 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1879 # If not cross compiling, check that we can run a simple program.
1880 if test "$cross_compiling" != yes; then
1881 if { ac_try='./$ac_file'
1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883 (eval $ac_try) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; }; then
1887 cross_compiling=no
1888 else
1889 if test "$cross_compiling" = maybe; then
1890 cross_compiling=yes
1891 else
1892 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1893 If you meant to cross compile, use \`--host'.
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot run C compiled programs.
1896 If you meant to cross compile, use \`--host'.
1897 See \`config.log' for more details." >&2;}
1898 { (exit 1); exit 1; }; }
1902 echo "$as_me:$LINENO: result: yes" >&5
1903 echo "${ECHO_T}yes" >&6
1905 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1906 ac_clean_files=$ac_clean_files_save
1907 # Check the compiler produces executables we can run. If not, either
1908 # the compiler is broken, or we cross compile.
1909 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1910 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1911 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1912 echo "${ECHO_T}$cross_compiling" >&6
1914 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1915 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1917 (eval $ac_link) 2>&5
1918 ac_status=$?
1919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1920 (exit $ac_status); }; then
1921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1922 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1923 # work properly (i.e., refer to `conftest.exe'), while it won't with
1924 # `rm'.
1925 for ac_file in conftest.exe conftest conftest.*; do
1926 test -f "$ac_file" || continue
1927 case $ac_file in
1928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1930 export ac_cv_exeext
1931 break;;
1932 * ) break;;
1933 esac
1934 done
1935 else
1936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1943 rm -f conftest$ac_cv_exeext
1944 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1945 echo "${ECHO_T}$ac_cv_exeext" >&6
1947 rm -f conftest.$ac_ext
1948 EXEEXT=$ac_cv_exeext
1949 ac_exeext=$EXEEXT
1950 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1952 if test "${ac_cv_objext+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955 cat >conftest.$ac_ext <<_ACEOF
1956 /* confdefs.h. */
1957 _ACEOF
1958 cat confdefs.h >>conftest.$ac_ext
1959 cat >>conftest.$ac_ext <<_ACEOF
1960 /* end confdefs.h. */
1963 main ()
1967 return 0;
1969 _ACEOF
1970 rm -f conftest.o conftest.obj
1971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972 (eval $ac_compile) 2>&5
1973 ac_status=$?
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1977 case $ac_file in
1978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1980 break;;
1981 esac
1982 done
1983 else
1984 echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1987 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1994 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1997 echo "${ECHO_T}$ac_cv_objext" >&6
1998 OBJEXT=$ac_cv_objext
1999 ac_objext=$OBJEXT
2000 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2001 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2002 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 else
2005 cat >conftest.$ac_ext <<_ACEOF
2006 /* confdefs.h. */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2013 main ()
2015 #ifndef __GNUC__
2016 choke me
2017 #endif
2020 return 0;
2022 _ACEOF
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_compiler_gnu=yes
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_compiler_gnu=no
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2058 GCC=`test $ac_compiler_gnu = yes && echo yes`
2059 ac_test_CFLAGS=${CFLAGS+set}
2060 ac_save_CFLAGS=$CFLAGS
2061 CFLAGS="-g"
2062 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2064 if test "${ac_cv_prog_cc_g+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 cat >conftest.$ac_ext <<_ACEOF
2068 /* confdefs.h. */
2069 _ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2075 main ()
2079 return 0;
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2085 ac_status=$?
2086 grep -v '^ *+' conftest.er1 >conftest.err
2087 rm -f conftest.er1
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100 (eval $ac_try) 2>&5
2101 ac_status=$?
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2104 ac_cv_prog_cc_g=yes
2105 else
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2109 ac_cv_prog_cc_g=no
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2115 if test "$ac_test_CFLAGS" = set; then
2116 CFLAGS=$ac_save_CFLAGS
2117 elif test $ac_cv_prog_cc_g = yes; then
2118 if test "$GCC" = yes; then
2119 CFLAGS="-g -O2"
2120 else
2121 CFLAGS="-g"
2123 else
2124 if test "$GCC" = yes; then
2125 CFLAGS="-O2"
2126 else
2127 CFLAGS=
2130 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2131 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135 ac_cv_prog_cc_stdc=no
2136 ac_save_CC=$CC
2137 cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h. */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2143 #include <stdarg.h>
2144 #include <stdio.h>
2145 #include <sys/types.h>
2146 #include <sys/stat.h>
2147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2148 struct buf { int x; };
2149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2150 static char *e (p, i)
2151 char **p;
2152 int i;
2154 return p[i];
2156 static char *f (char * (*g) (char **, int), char **p, ...)
2158 char *s;
2159 va_list v;
2160 va_start (v,p);
2161 s = g (p, va_arg (v,int));
2162 va_end (v);
2163 return s;
2166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2167 function prototypes and stuff, but not '\xHH' hex character constants.
2168 These don't provoke an error unfortunately, instead are silently treated
2169 as 'x'. The following induces an error, until -std1 is added to get
2170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2171 array size at least. It's necessary to write '\x00'==0 to get something
2172 that's true only with -std1. */
2173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2175 int test (int i, double x);
2176 struct s1 {int (*f) (int a);};
2177 struct s2 {int (*f) (double a);};
2178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2179 int argc;
2180 char **argv;
2182 main ()
2184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186 return 0;
2188 _ACEOF
2189 # Don't try gcc -ansi; that turns off useful extensions and
2190 # breaks some systems' header files.
2191 # AIX -qlanglvl=ansi
2192 # Ultrix and OSF/1 -std1
2193 # HP-UX 10.20 and later -Ae
2194 # HP-UX older versions -Aa -D_HPUX_SOURCE
2195 # SVR4 -Xc -D__EXTENSIONS__
2196 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198 CC="$ac_save_CC $ac_arg"
2199 rm -f conftest.$ac_objext
2200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2201 (eval $ac_compile) 2>conftest.er1
2202 ac_status=$?
2203 grep -v '^ *+' conftest.er1 >conftest.err
2204 rm -f conftest.er1
2205 cat conftest.err >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); } &&
2208 { ac_try='test -z "$ac_c_werror_flag"
2209 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg
2222 break
2223 else
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext
2229 done
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2231 CC=$ac_save_CC
2235 case "x$ac_cv_prog_cc_stdc" in
2236 x|xno)
2237 echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;;
2243 esac
2245 # Some people use a C++ compiler to compile C. Since we use `exit',
2246 # in C++ we need to declare it. In case someone uses the same compiler
2247 # for both compiling C and C++ we need to have the C++ compiler decide
2248 # the declaration of exit, since it's the most demanding environment.
2249 cat >conftest.$ac_ext <<_ACEOF
2250 #ifndef __cplusplus
2251 choke me
2252 #endif
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266 (eval $ac_try) 2>&5
2267 ac_status=$?
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 for ac_declaration in \
2277 '' \
2278 'extern "C" void std::exit (int) throw (); using std::exit;' \
2279 'extern "C" void std::exit (int); using std::exit;' \
2280 'extern "C" void exit (int) throw ();' \
2281 'extern "C" void exit (int);' \
2282 'void exit (int);'
2284 cat >conftest.$ac_ext <<_ACEOF
2285 /* confdefs.h. */
2286 _ACEOF
2287 cat confdefs.h >>conftest.$ac_ext
2288 cat >>conftest.$ac_ext <<_ACEOF
2289 /* end confdefs.h. */
2290 $ac_declaration
2291 #include <stdlib.h>
2293 main ()
2295 exit (42);
2297 return 0;
2299 _ACEOF
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>conftest.er1
2303 ac_status=$?
2304 grep -v '^ *+' conftest.er1 >conftest.err
2305 rm -f conftest.er1
2306 cat conftest.err >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); } &&
2309 { ac_try='test -z "$ac_c_werror_flag"
2310 || test ! -s conftest.err'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; } &&
2316 { ac_try='test -s conftest.$ac_objext'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 continue
2329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h. */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2336 $ac_declaration
2338 main ()
2340 exit (42);
2342 return 0;
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2348 ac_status=$?
2349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -z "$ac_c_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 break
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2374 done
2375 rm -f conftest*
2376 if test -n "$ac_declaration"; then
2377 echo '#ifdef __cplusplus' >>confdefs.h
2378 echo $ac_declaration >>confdefs.h
2379 echo '#endif' >>confdefs.h
2382 else
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395 ac_ext=c
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2401 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2402 # On Suns, sometimes $CPP names a directory.
2403 if test -n "$CPP" && test -d "$CPP"; then
2404 CPP=
2406 if test -z "$CPP"; then
2407 if test "${ac_cv_prog_CPP+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 else
2410 # Double quotes because CPP needs to be expanded
2411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2413 ac_preproc_ok=false
2414 for ac_c_preproc_warn_flag in '' yes
2416 # Use a header file that comes with gcc, so configuring glibc
2417 # with a fresh cross-compiler works.
2418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2419 # <limits.h> exists even on freestanding compilers.
2420 # On the NeXT, cc -E runs the code through the compiler's parser,
2421 # not just through cpp. "Syntax error" is here to catch this case.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #ifdef __STDC__
2429 # include <limits.h>
2430 #else
2431 # include <assert.h>
2432 #endif
2433 Syntax error
2434 _ACEOF
2435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 ac_status=$?
2438 grep -v '^ *+' conftest.er1 >conftest.err
2439 rm -f conftest.er1
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } >/dev/null; then
2443 if test -s conftest.err; then
2444 ac_cpp_err=$ac_c_preproc_warn_flag
2445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2446 else
2447 ac_cpp_err=
2449 else
2450 ac_cpp_err=yes
2452 if test -z "$ac_cpp_err"; then
2454 else
2455 echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2458 # Broken: fails on valid input.
2459 continue
2461 rm -f conftest.err conftest.$ac_ext
2463 # OK, works on sane cases. Now check whether non-existent headers
2464 # can be detected and how.
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h. */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h. */
2471 #include <ac_nonexistent.h>
2472 _ACEOF
2473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2475 ac_status=$?
2476 grep -v '^ *+' conftest.er1 >conftest.err
2477 rm -f conftest.er1
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } >/dev/null; then
2481 if test -s conftest.err; then
2482 ac_cpp_err=$ac_c_preproc_warn_flag
2483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2484 else
2485 ac_cpp_err=
2487 else
2488 ac_cpp_err=yes
2490 if test -z "$ac_cpp_err"; then
2491 # Broken: success on invalid input.
2492 continue
2493 else
2494 echo "$as_me: failed program was:" >&5
2495 sed 's/^/| /' conftest.$ac_ext >&5
2497 # Passes both tests.
2498 ac_preproc_ok=:
2499 break
2501 rm -f conftest.err conftest.$ac_ext
2503 done
2504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2505 rm -f conftest.err conftest.$ac_ext
2506 if $ac_preproc_ok; then
2507 break
2510 done
2511 ac_cv_prog_CPP=$CPP
2514 CPP=$ac_cv_prog_CPP
2515 else
2516 ac_cv_prog_CPP=$CPP
2518 echo "$as_me:$LINENO: result: $CPP" >&5
2519 echo "${ECHO_T}$CPP" >&6
2520 ac_preproc_ok=false
2521 for ac_c_preproc_warn_flag in '' yes
2523 # Use a header file that comes with gcc, so configuring glibc
2524 # with a fresh cross-compiler works.
2525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2526 # <limits.h> exists even on freestanding compilers.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2535 #ifdef __STDC__
2536 # include <limits.h>
2537 #else
2538 # include <assert.h>
2539 #endif
2540 Syntax error
2541 _ACEOF
2542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 ac_status=$?
2545 grep -v '^ *+' conftest.er1 >conftest.err
2546 rm -f conftest.er1
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } >/dev/null; then
2550 if test -s conftest.err; then
2551 ac_cpp_err=$ac_c_preproc_warn_flag
2552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2553 else
2554 ac_cpp_err=
2556 else
2557 ac_cpp_err=yes
2559 if test -z "$ac_cpp_err"; then
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Broken: fails on valid input.
2566 continue
2568 rm -f conftest.err conftest.$ac_ext
2570 # OK, works on sane cases. Now check whether non-existent headers
2571 # can be detected and how.
2572 cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h. */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2578 #include <ac_nonexistent.h>
2579 _ACEOF
2580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2582 ac_status=$?
2583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } >/dev/null; then
2588 if test -s conftest.err; then
2589 ac_cpp_err=$ac_c_preproc_warn_flag
2590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2591 else
2592 ac_cpp_err=
2594 else
2595 ac_cpp_err=yes
2597 if test -z "$ac_cpp_err"; then
2598 # Broken: success on invalid input.
2599 continue
2600 else
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 # Passes both tests.
2605 ac_preproc_ok=:
2606 break
2608 rm -f conftest.err conftest.$ac_ext
2610 done
2611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2612 rm -f conftest.err conftest.$ac_ext
2613 if $ac_preproc_ok; then
2615 else
2616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2623 ac_ext=c
2624 ac_cpp='$CPP $CPPFLAGS'
2625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630 # Check for a compatible awk
2631 for ac_prog in gawk nawk
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy $ac_prog; ac_word=$2
2635 echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_AWK+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640 if test -n "$AWK"; then
2641 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_AWK="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2659 AWK=$ac_cv_prog_AWK
2660 if test -n "$AWK"; then
2661 echo "$as_me:$LINENO: result: $AWK" >&5
2662 echo "${ECHO_T}$AWK" >&6
2663 else
2664 echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2668 test -n "$AWK" && break
2669 done
2671 if test "$AWK" = ""; then
2672 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2673 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2674 { (exit 1); exit 1; }; }
2676 # Extract the first word of "mmake", so it can be a program name with args.
2677 set dummy mmake; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_MMAKE+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if test -n "$MMAKE"; then
2684 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_MMAKE="mmake "
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2702 MMAKE=$ac_cv_prog_MMAKE
2703 if test -n "$MMAKE"; then
2704 echo "$as_me:$LINENO: result: $MMAKE" >&5
2705 echo "${ECHO_T}$MMAKE" >&6
2706 else
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2712 # Perform some default variable assignments. Note all of these will be
2713 # Regenerated from the script, so there is no need to cache them.
2715 aros_host_cc="$CC"
2716 if test "$GCC" = "yes"; then
2717 aros_gcc_ld=`$CC -print-prog-name=ld`
2718 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2719 set dummy `basename $aros_gcc_ld`; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 else
2725 case $aros_host_ld in
2726 [\\/]* | ?:[\\/]*)
2727 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in `dirname $aros_gcc_ld`
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2741 done
2742 done
2745 esac
2747 aros_host_ld=$ac_cv_path_aros_host_ld
2749 if test -n "$aros_host_ld"; then
2750 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2751 echo "${ECHO_T}$aros_host_ld" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2758 if test "$aros_host_ld" = ""; then
2759 # Extract the first word of "ld", so it can be a program name with args.
2760 set dummy ld; ac_word=$2
2761 echo "$as_me:$LINENO: checking for $ac_word" >&5
2762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766 case $aros_host_ld in
2767 [\\/]* | ?:[\\/]*)
2768 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2782 done
2783 done
2786 esac
2788 aros_host_ld=$ac_cv_path_aros_host_ld
2790 if test -n "$aros_host_ld"; then
2791 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2792 echo "${ECHO_T}$aros_host_ld" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6
2799 if test "$aros_host_ld" = ""; then
2800 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2801 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2802 { (exit 1); exit 1; }; }
2804 aros_host_make="make"
2805 aros_host_cflags=$CFLAGS
2806 aros_host_ldflags=$LDFLAGS
2807 aros_host_debug="-g -O0"
2808 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2809 aros_host_mkargs="--no-print-directory"
2810 aros_host_incl="/usr/include"
2811 aros_host_exe_suffix="$EXEEXT"
2812 aros_host_lib_suffix=""
2814 for ac_prog in aclocal aclocal19
2816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2817 set dummy $ac_prog; ac_word=$2
2818 echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2820 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823 if test -n "$aros_host_aclocal"; then
2824 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2833 ac_cv_prog_aros_host_aclocal="$ac_prog"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 break 2
2837 done
2838 done
2842 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
2843 if test -n "$aros_host_aclocal"; then
2844 echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
2845 echo "${ECHO_T}$aros_host_aclocal" >&6
2846 else
2847 echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2851 test -n "$aros_host_aclocal" && break
2852 done
2854 for ac_prog in autoconf autoconf259 autoconf253
2856 # Extract the first word of "$ac_prog", so it can be a program name with args.
2857 set dummy $ac_prog; ac_word=$2
2858 echo "$as_me:$LINENO: checking for $ac_word" >&5
2859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2860 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 if test -n "$aros_host_autoconf"; then
2864 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_aros_host_autoconf="$ac_prog"
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2877 done
2878 done
2882 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
2883 if test -n "$aros_host_autoconf"; then
2884 echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
2885 echo "${ECHO_T}$aros_host_autoconf" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2891 test -n "$aros_host_autoconf" && break
2892 done
2894 for ac_prog in autoheader autoheader259 autoheader253
2896 # Extract the first word of "$ac_prog", so it can be a program name with args.
2897 set dummy $ac_prog; ac_word=$2
2898 echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test -n "$aros_host_autoheader"; then
2904 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_aros_host_autoheader="$ac_prog"
2914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2922 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
2923 if test -n "$aros_host_autoheader"; then
2924 echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
2925 echo "${ECHO_T}$aros_host_autoheader" >&6
2926 else
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 test -n "$aros_host_autoheader" && break
2932 done
2934 for ac_prog in automake automake19
2936 # Extract the first word of "$ac_prog", so it can be a program name with args.
2937 set dummy $ac_prog; ac_word=$2
2938 echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2940 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$aros_host_automake"; then
2944 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_aros_host_automake="$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2962 aros_host_automake=$ac_cv_prog_aros_host_automake
2963 if test -n "$aros_host_automake"; then
2964 echo "$as_me:$LINENO: result: $aros_host_automake" >&5
2965 echo "${ECHO_T}$aros_host_automake" >&6
2966 else
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$aros_host_automake" && break
2972 done
2975 case "$aros_host_cc" in
2976 *gcc*)
2977 aros_host_cc_pipe="-pipe"
2979 icc)
2980 aros_host_cc_pipe=""
2983 aros_host_cc_pipe=""
2985 esac
2987 aros_target_cc_includes=""
2989 # This is the main host configuration section. It is where the host
2990 # can change the values of any variables it needs to change. We do
2991 # not look at anything that compiles to the target yet, we'll get
2992 # to that later.
2994 case "$host_os" in
2995 linux*)
2996 aros_host_arch="linux"
2997 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2998 case "$host_cpu" in
2999 *i?86*)
3000 aros_host_cpu="i386"
3002 *x86_64*)
3003 aros_host_cpu="x86_64"
3005 *m68k*)
3006 aros_host_cpu="m68k"
3008 *powerpc*)
3009 aros_host_cpu="ppc"
3012 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3013 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3014 aros_host_cpu="$host_cpu"
3016 esac
3019 freebsd*)
3020 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3021 aros_host_make="gmake"
3022 aros_host_arch="freebsd"
3023 aros_host_cpu="i386"
3025 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3028 case $host_os in
3029 freebsd[234]*)
3030 aros_object_format="elf_i386"
3034 aros_object_format="elf_i386_fbsd"
3036 esac
3040 darwin*)
3041 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3042 aros_host_arch="darwin"
3043 case "$host_cpu" in
3044 *i?86*)
3045 aros_host_cpu="i386"
3047 *powerpc*)
3048 aros_host_cpu="ppc"
3051 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3052 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3053 aros_host_cpu="$host_cpu"
3055 esac
3057 aros_host_ldflags="$aros_host_ldflags -liconv"
3061 netbsd*)
3062 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3063 aros_host_make="gmake"
3064 aros_host_arch="netbsd"
3065 case "$host_cpu" in
3066 *i?86*)
3067 aros_host_cpu="i386"
3069 *m68k*)
3070 aros_host_cpu="m68k"
3073 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3074 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3075 aros_host_cpu="$host_cpu"
3077 esac
3078 aros_host_lib_suffix=".0.0"
3081 openbsd*)
3082 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3083 aros_host_make="gmake"
3084 aros_host_arch="openbsd"
3085 case "$host_cpu" in
3086 *i?86*)
3087 aros_host_cpu="i386"
3090 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3091 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3092 aros_host_cpu="$host_cpu"
3094 esac
3097 solaris*)
3098 aros_host_arch="solaris"
3099 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3100 case "$host_cpu" in
3101 *sparc*)
3102 aros_host_cpu="sparc"
3105 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3106 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3107 aros_host_cpu="$host_cpu"
3109 esac
3112 morphos*)
3113 aros_host_arch="morphos"
3114 aros_host_cpu="ppc"
3117 amiga*)
3118 aros_host_arch="amiga"
3119 SORT="/gg/bin/sort"
3120 TEST="/gg/bin/test"
3121 UNIQ="/gg/bin/uniq"
3122 FOR="for"
3123 TOUCH="/gg/bin/touch"
3124 case "$host_cpu" in
3125 *m68k*)
3126 aros_host_cpu="m68k"
3128 *powerpc*)
3129 aros_host_cpu="ppc"
3132 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3133 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3134 aros_host_cpu="$host_cpu"
3136 esac
3139 cygwin*)
3140 aros_host_arch="cygwin"
3141 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3142 case "$host_cpu" in
3143 *i?86*)
3144 aros_host_cpu="i386"
3147 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3148 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3149 aros_host_cpu="$host_cpu"
3151 esac
3154 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
3155 echo "$as_me: error: Unsupported host architecture $host" >&2;}
3156 { (exit 1); exit 1; }; }
3158 esac
3160 # Extract the first word of "ar", so it can be a program name with args.
3161 set dummy ar; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$aros_host_ar"; then
3168 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_aros_host_ar="ar cr"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3186 aros_host_ar=$ac_cv_prog_aros_host_ar
3187 if test -n "$aros_host_ar"; then
3188 echo "$as_me:$LINENO: result: $aros_host_ar" >&5
3189 echo "${ECHO_T}$aros_host_ar" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3195 if test "$aros_host_ar" = ""; then
3196 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3197 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3198 { (exit 1); exit 1; }; }
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$aros_host_ranlib"; then
3208 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_aros_host_ranlib="ranlib "
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3226 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
3227 if test -n "$aros_host_ranlib"; then
3228 echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
3229 echo "${ECHO_T}$aros_host_ranlib" >&6
3230 else
3231 echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 if test "$aros_host_ranlib" = ""; then
3236 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
3237 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Extract the first word of "strip", so it can be a program name with args.
3241 set dummy strip; ac_word=$2
3242 echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 if test -n "$aros_host_strip"; then
3248 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_aros_host_strip="strip "
3258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3261 done
3262 done
3266 aros_host_strip=$ac_cv_prog_aros_host_strip
3267 if test -n "$aros_host_strip"; then
3268 echo "$as_me:$LINENO: result: $aros_host_strip" >&5
3269 echo "${ECHO_T}$aros_host_strip" >&6
3270 else
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3275 if test "$aros_host_strip" = ""; then
3276 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3277 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3278 { (exit 1); exit 1; }; }
3281 # Extract the first word of "rm", so it can be a program name with args.
3282 set dummy rm; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_prog_RM+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if test -n "$RM"; then
3289 ac_cv_prog_RM="$RM" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_RM="rm -rf"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3307 RM=$ac_cv_prog_RM
3308 if test -n "$RM"; then
3309 echo "$as_me:$LINENO: result: $RM" >&5
3310 echo "${ECHO_T}$RM" >&6
3311 else
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3316 if test "$RM" = ""; then
3317 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3318 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3319 { (exit 1); exit 1; }; }
3321 # Extract the first word of "cp", so it can be a program name with args.
3322 set dummy cp; ac_word=$2
3323 echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325 if test "${ac_cv_prog_CP+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 if test -n "$CP"; then
3329 ac_cv_prog_CP="$CP" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_CP="cp "
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3347 CP=$ac_cv_prog_CP
3348 if test -n "$CP"; then
3349 echo "$as_me:$LINENO: result: $CP" >&5
3350 echo "${ECHO_T}$CP" >&6
3351 else
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 if test "$CP" = ""; then
3357 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3358 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3359 { (exit 1); exit 1; }; }
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_prog_MV+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 if test -n "$MV"; then
3369 ac_cv_prog_MV="$MV" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_MV="mv "
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3387 MV=$ac_cv_prog_MV
3388 if test -n "$MV"; then
3389 echo "$as_me:$LINENO: result: $MV" >&5
3390 echo "${ECHO_T}$MV" >&6
3391 else
3392 echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3396 if test "$MV" = ""; then
3397 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3398 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3399 { (exit 1); exit 1; }; }
3401 # Extract the first word of "echo", so it can be a program name with args.
3402 set dummy echo; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_prog_ECHO+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 if test -n "$ECHO"; then
3409 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ECHO="echo "
3419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3422 done
3423 done
3427 ECHO=$ac_cv_prog_ECHO
3428 if test -n "$ECHO"; then
3429 echo "$as_me:$LINENO: result: $ECHO" >&5
3430 echo "${ECHO_T}$ECHO" >&6
3431 else
3432 echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6
3436 if test "$ECHO" = ""; then
3437 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3438 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3439 { (exit 1); exit 1; }; }
3441 # Extract the first word of "mkdir", so it can be a program name with args.
3442 set dummy mkdir; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_prog_MKDIR+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448 if test -n "$MKDIR"; then
3449 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458 ac_cv_prog_MKDIR="mkdir -p"
3459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3462 done
3463 done
3467 MKDIR=$ac_cv_prog_MKDIR
3468 if test -n "$MKDIR"; then
3469 echo "$as_me:$LINENO: result: $MKDIR" >&5
3470 echo "${ECHO_T}$MKDIR" >&6
3471 else
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3476 if test "$MKDIR" = ""; then
3477 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3478 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3479 { (exit 1); exit 1; }; }
3481 # Extract the first word of "touch", so it can be a program name with args.
3482 set dummy touch; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_prog_TOUCH+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test -n "$TOUCH"; then
3489 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_TOUCH="touch "
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3502 done
3503 done
3507 TOUCH=$ac_cv_prog_TOUCH
3508 if test -n "$TOUCH"; then
3509 echo "$as_me:$LINENO: result: $TOUCH" >&5
3510 echo "${ECHO_T}$TOUCH" >&6
3511 else
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3516 if test "$TOUCH" = ""; then
3517 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3518 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3519 { (exit 1); exit 1; }; }
3521 # Extract the first word of "sort", so it can be a program name with args.
3522 set dummy sort; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_prog_SORT+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 if test -n "$SORT"; then
3529 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_SORT="sort "
3539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2
3542 done
3543 done
3547 SORT=$ac_cv_prog_SORT
3548 if test -n "$SORT"; then
3549 echo "$as_me:$LINENO: result: $SORT" >&5
3550 echo "${ECHO_T}$SORT" >&6
3551 else
3552 echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6
3556 if test "$SORT" = ""; then
3557 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3558 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3559 { (exit 1); exit 1; }; }
3561 # Extract the first word of "uniq", so it can be a program name with args.
3562 set dummy uniq; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_prog_UNIQ+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 if test -n "$UNIQ"; then
3569 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_UNIQ="uniq "
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3582 done
3583 done
3587 UNIQ=$ac_cv_prog_UNIQ
3588 if test -n "$UNIQ"; then
3589 echo "$as_me:$LINENO: result: $UNIQ" >&5
3590 echo "${ECHO_T}$UNIQ" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3596 if test "$UNIQ" = ""; then
3597 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3598 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3599 { (exit 1); exit 1; }; }
3601 # Extract the first word of "true", so it can be a program name with args.
3602 set dummy true; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_NOP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$NOP"; then
3609 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_NOP="true "
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3627 NOP=$ac_cv_prog_NOP
3628 if test -n "$NOP"; then
3629 echo "$as_me:$LINENO: result: $NOP" >&5
3630 echo "${ECHO_T}$NOP" >&6
3631 else
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3636 if test "$NOP" = ""; then
3637 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3638 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3639 { (exit 1); exit 1; }; }
3641 # Extract the first word of "cat", so it can be a program name with args.
3642 set dummy cat; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_prog_CAT+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test -n "$CAT"; then
3649 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3650 else
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CAT="cat "
3659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3662 done
3663 done
3667 CAT=$ac_cv_prog_CAT
3668 if test -n "$CAT"; then
3669 echo "$as_me:$LINENO: result: $CAT" >&5
3670 echo "${ECHO_T}$CAT" >&6
3671 else
3672 echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3676 if test "$CAT" = ""; then
3677 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3678 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3679 { (exit 1); exit 1; }; }
3681 # Extract the first word of "bison", so it can be a program name with args.
3682 set dummy bison; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_BISON+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 if test -n "$BISON"; then
3689 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_BISON="bison "
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3702 done
3703 done
3707 BISON=$ac_cv_prog_BISON
3708 if test -n "$BISON"; then
3709 echo "$as_me:$LINENO: result: $BISON" >&5
3710 echo "${ECHO_T}$BISON" >&6
3711 else
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3716 if test "$BISON" = ""; then
3717 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3718 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3719 { (exit 1); exit 1; }; }
3721 # Extract the first word of "flex", so it can be a program name with args.
3722 set dummy flex; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_FLEX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 if test -n "$FLEX"; then
3729 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_FLEX="flex "
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3747 FLEX=$ac_cv_prog_FLEX
3748 if test -n "$FLEX"; then
3749 echo "$as_me:$LINENO: result: $FLEX" >&5
3750 echo "${ECHO_T}$FLEX" >&6
3751 else
3752 echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3756 if test "$FLEX" = ""; then
3757 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
3758 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
3759 { (exit 1); exit 1; }; }
3761 # Extract the first word of "pngtopnm", so it can be a program name with args.
3762 set dummy pngtopnm; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$PNGTOPNM"; then
3769 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_PNGTOPNM="pngtopnm "
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3787 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3788 if test -n "$PNGTOPNM"; then
3789 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3790 echo "${ECHO_T}$PNGTOPNM" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 if test "$PNGTOPNM" = ""; then
3797 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3798 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3799 { (exit 1); exit 1; }; }
3801 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3802 set dummy ppmtoilbm; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 if test -n "$PPMTOILBM"; then
3809 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_PPMTOILBM="ppmtoilbm "
3819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3822 done
3823 done
3827 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3828 if test -n "$PPMTOILBM"; then
3829 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3830 echo "${ECHO_T}$PPMTOILBM" >&6
3831 else
3832 echo "$as_me:$LINENO: result: no" >&5
3833 echo "${ECHO_T}no" >&6
3836 if test "$PPMTOILBM" = ""; then
3837 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3838 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3839 { (exit 1); exit 1; }; }
3841 # Extract the first word of "sed", so it can be a program name with args.
3842 set dummy sed; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_SED+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -n "$SED"; then
3849 ac_cv_prog_SED="$SED" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_SED="sed "
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3867 SED=$ac_cv_prog_SED
3868 if test -n "$SED"; then
3869 echo "$as_me:$LINENO: result: $SED" >&5
3870 echo "${ECHO_T}$SED" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 if test "$SED" = ""; then
3877 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3878 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3879 { (exit 1); exit 1; }; }
3881 # Extract the first word of "chmod", so it can be a program name with args.
3882 set dummy chmod; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_CHMOD+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$CHMOD"; then
3889 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CHMOD="chmod "
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3907 CHMOD=$ac_cv_prog_CHMOD
3908 if test -n "$CHMOD"; then
3909 echo "$as_me:$LINENO: result: $CHMOD" >&5
3910 echo "${ECHO_T}$CHMOD" >&6
3911 else
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3916 if test "$CHMOD" = ""; then
3917 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3918 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3919 { (exit 1); exit 1; }; }
3926 if test -n "$PYTHON"; then
3927 # If the user set $PYTHON, use it and don't search something else.
3928 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3929 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3930 prog="import sys, string
3931 # split strings by '.' and convert to numeric. Append some zeros
3932 # because we need at least 4 digits for the hex conversion.
3933 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3934 minverhex = 0
3935 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3936 sys.exit(sys.hexversion < minverhex)"
3937 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3938 ($PYTHON -c "$prog") >&5 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943 echo "${ECHO_T}yes" >&6
3944 else
3945 { { echo "$as_me:$LINENO: error: too old" >&5
3946 echo "$as_me: error: too old" >&2;}
3947 { (exit 1); exit 1; }; }
3950 else
3951 # Otherwise, try each interpreter until we find one that satisfies
3952 # VERSION.
3953 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3954 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3955 if test "${am_cv_pathless_PYTHON+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3959 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3960 test "$am_cv_pathless_PYTHON" = none && break
3961 prog="import sys, string
3962 # split strings by '.' and convert to numeric. Append some zeros
3963 # because we need at least 4 digits for the hex conversion.
3964 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3965 minverhex = 0
3966 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3967 sys.exit(sys.hexversion < minverhex)"
3968 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3969 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; then
3973 break
3976 done
3978 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3979 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3980 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3981 if test "$am_cv_pathless_PYTHON" = none; then
3982 PYTHON=:
3983 else
3984 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3985 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3986 echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988 if test "${ac_cv_path_PYTHON+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991 case $PYTHON in
3992 [\\/]* | ?:[\\/]*)
3993 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 break 2
4007 done
4008 done
4011 esac
4013 PYTHON=$ac_cv_path_PYTHON
4015 if test -n "$PYTHON"; then
4016 echo "$as_me:$LINENO: result: $PYTHON" >&5
4017 echo "${ECHO_T}$PYTHON" >&6
4018 else
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4024 am_display_PYTHON=$am_cv_pathless_PYTHON
4028 if test "$PYTHON" = :; then
4029 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4030 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4031 { (exit 1); exit 1; }; }
4032 else
4035 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4036 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
4037 if test "${am_cv_python_version+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4042 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4043 echo "${ECHO_T}$am_cv_python_version" >&6
4044 PYTHON_VERSION=$am_cv_python_version
4048 PYTHON_PREFIX='${prefix}'
4050 PYTHON_EXEC_PREFIX='${exec_prefix}'
4054 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4055 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
4056 if test "${am_cv_python_platform+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4061 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4062 echo "${ECHO_T}$am_cv_python_platform" >&6
4063 PYTHON_PLATFORM=$am_cv_python_platform
4068 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4069 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
4070 if test "${am_cv_python_pythondir+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4074 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4076 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4077 echo "${ECHO_T}$am_cv_python_pythondir" >&6
4078 pythondir=$am_cv_python_pythondir
4082 pkgpythondir=\${pythondir}/$PACKAGE
4085 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4086 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4087 if test "${am_cv_python_pyexecdir+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4091 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4093 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4094 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4095 pyexecdir=$am_cv_python_pyexecdir
4099 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4107 FOR=for
4109 IF=if
4111 TEST=test
4113 CMP=cmp
4117 # Check for some includes for the X11 HIDD and the kernel
4120 echo "$as_me:$LINENO: checking for egrep" >&5
4121 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4122 if test "${ac_cv_prog_egrep+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4126 then ac_cv_prog_egrep='grep -E'
4127 else ac_cv_prog_egrep='egrep'
4130 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4131 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4132 EGREP=$ac_cv_prog_egrep
4135 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4136 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4137 if test "${ac_cv_header_stdc+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 #include <stdlib.h>
4147 #include <stdarg.h>
4148 #include <string.h>
4149 #include <float.h>
4152 main ()
4156 return 0;
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag"
4169 || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_header_stdc=yes
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_cv_header_stdc=no
4188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 if test $ac_cv_header_stdc = yes; then
4191 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <string.h>
4200 _ACEOF
4201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4202 $EGREP "memchr" >/dev/null 2>&1; then
4204 else
4205 ac_cv_header_stdc=no
4207 rm -f conftest*
4211 if test $ac_cv_header_stdc = yes; then
4212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <stdlib.h>
4221 _ACEOF
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "free" >/dev/null 2>&1; then
4225 else
4226 ac_cv_header_stdc=no
4228 rm -f conftest*
4232 if test $ac_cv_header_stdc = yes; then
4233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4234 if test "$cross_compiling" = yes; then
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 #include <ctype.h>
4244 #if ((' ' & 0x0FF) == 0x020)
4245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4247 #else
4248 # define ISLOWER(c) \
4249 (('a' <= (c) && (c) <= 'i') \
4250 || ('j' <= (c) && (c) <= 'r') \
4251 || ('s' <= (c) && (c) <= 'z'))
4252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4253 #endif
4255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4257 main ()
4259 int i;
4260 for (i = 0; i < 256; i++)
4261 if (XOR (islower (i), ISLOWER (i))
4262 || toupper (i) != TOUPPER (i))
4263 exit(2);
4264 exit (0);
4266 _ACEOF
4267 rm -f conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; }; then
4279 else
4280 echo "$as_me: program exited with status $ac_status" >&5
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ( exit $ac_status )
4285 ac_cv_header_stdc=no
4287 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4292 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4293 if test $ac_cv_header_stdc = yes; then
4295 cat >>confdefs.h <<\_ACEOF
4296 #define STDC_HEADERS 1
4297 _ACEOF
4301 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4311 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4312 inttypes.h stdint.h unistd.h
4314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315 echo "$as_me:$LINENO: checking for $ac_header" >&5
4316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 cat >conftest.$ac_ext <<_ACEOF
4321 /* confdefs.h. */
4322 _ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4326 $ac_includes_default
4328 #include <$ac_header>
4329 _ACEOF
4330 rm -f conftest.$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_c_werror_flag"
4340 || test ! -s conftest.err'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 (eval $ac_try) 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest.$ac_objext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 eval "$as_ac_Header=yes"
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 eval "$as_ac_Header=no"
4359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4364 cat >>confdefs.h <<_ACEOF
4365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 _ACEOF
4370 done
4382 for ac_header in sys/ipc.h sys/shm.h \
4383 sys/mmap.h sys/mman.h sysexits.h \
4384 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389 echo "$as_me:$LINENO: checking for $ac_header" >&5
4390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4396 else
4397 # Is the header compilable?
4398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 $ac_includes_default
4407 #include <$ac_header>
4408 _ACEOF
4409 rm -f conftest.$ac_objext
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } &&
4418 { ac_try='test -z "$ac_c_werror_flag"
4419 || test ! -s conftest.err'
4420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 (eval $ac_try) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 ac_header_compiler=yes
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_header_compiler=no
4438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6
4442 # Is the header present?
4443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <$ac_header>
4452 _ACEOF
4453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } >/dev/null; then
4461 if test -s conftest.err; then
4462 ac_cpp_err=$ac_c_preproc_warn_flag
4463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4464 else
4465 ac_cpp_err=
4467 else
4468 ac_cpp_err=yes
4470 if test -z "$ac_cpp_err"; then
4471 ac_header_preproc=yes
4472 else
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 ac_header_preproc=no
4478 rm -f conftest.err conftest.$ac_ext
4479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4480 echo "${ECHO_T}$ac_header_preproc" >&6
4482 # So? What about this header?
4483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 yes:no: )
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4489 ac_header_preproc=yes
4491 no:yes:* )
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4505 cat <<\_ASBOX
4506 ## ------------------------------------------ ##
4507 ## Report this to the AC_PACKAGE_NAME lists. ##
4508 ## ------------------------------------------ ##
4509 _ASBOX
4511 sed "s/^/$as_me: WARNING: /" >&2
4513 esac
4514 echo "$as_me:$LINENO: checking for $ac_header" >&5
4515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 eval "$as_ac_Header=\$ac_header_preproc"
4521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4526 cat >>confdefs.h <<_ACEOF
4527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4528 _ACEOF
4532 done
4536 for ac_header in sys/mount.h
4538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 echo "$as_me:$LINENO: checking for $ac_header" >&5
4540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h. */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4550 #include <sys/param.h>
4552 #include <$ac_header>
4553 _ACEOF
4554 rm -f conftest.$ac_objext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -z "$ac_c_werror_flag"
4564 || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 eval "$as_ac_Header=yes"
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 eval "$as_ac_Header=no"
4583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4588 cat >>confdefs.h <<_ACEOF
4589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4594 done
4602 ac_header_dirent=no
4603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4605 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h. */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 #include <sys/types.h>
4617 #include <$ac_hdr>
4620 main ()
4622 if ((DIR *) 0)
4623 return 0;
4625 return 0;
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>conftest.er1
4631 ac_status=$?
4632 grep -v '^ *+' conftest.er1 >conftest.err
4633 rm -f conftest.er1
4634 cat conftest.err >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } &&
4637 { ac_try='test -z "$ac_c_werror_flag"
4638 || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 (eval $ac_try) 2>&5
4647 ac_status=$?
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_Header=yes"
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 eval "$as_ac_Header=no"
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4662 cat >>confdefs.h <<_ACEOF
4663 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4664 _ACEOF
4666 ac_header_dirent=$ac_hdr; break
4669 done
4670 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4671 if test $ac_header_dirent = dirent.h; then
4672 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4673 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4674 if test "${ac_cv_search_opendir+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 ac_func_search_save_LIBS=$LIBS
4678 ac_cv_search_opendir=no
4679 cat >conftest.$ac_ext <<_ACEOF
4680 /* confdefs.h. */
4681 _ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 #ifdef __cplusplus
4688 extern "C"
4689 #endif
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4692 char opendir ();
4694 main ()
4696 opendir ();
4698 return 0;
4700 _ACEOF
4701 rm -f conftest.$ac_objext conftest$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 (eval $ac_try) 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_search_opendir="none required"
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 if test "$ac_cv_search_opendir" = no; then
4732 for ac_lib in dir; do
4733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4734 cat >conftest.$ac_ext <<_ACEOF
4735 /* confdefs.h. */
4736 _ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 #ifdef __cplusplus
4743 extern "C"
4744 #endif
4745 /* We use char because int might match the return type of a gcc2
4746 builtin and then its argument prototype would still apply. */
4747 char opendir ();
4749 main ()
4751 opendir ();
4753 return 0;
4755 _ACEOF
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4758 (eval $ac_link) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_search_opendir="-l$ac_lib"
4779 break
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext \
4786 conftest$ac_exeext conftest.$ac_ext
4787 done
4789 LIBS=$ac_func_search_save_LIBS
4791 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4792 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4793 if test "$ac_cv_search_opendir" != no; then
4794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4798 else
4799 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4800 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4801 if test "${ac_cv_search_opendir+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 ac_func_search_save_LIBS=$LIBS
4805 ac_cv_search_opendir=no
4806 cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h. */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4813 /* Override any gcc2 internal prototype to avoid an error. */
4814 #ifdef __cplusplus
4815 extern "C"
4816 #endif
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4819 char opendir ();
4821 main ()
4823 opendir ();
4825 return 0;
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830 (eval $ac_link) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest$ac_exeext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_search_opendir="none required"
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4856 rm -f conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858 if test "$ac_cv_search_opendir" = no; then
4859 for ac_lib in x; do
4860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 #ifdef __cplusplus
4870 extern "C"
4871 #endif
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char opendir ();
4876 main ()
4878 opendir ();
4880 return 0;
4882 _ACEOF
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4895 (eval $ac_try) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest$ac_exeext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_search_opendir="-l$ac_lib"
4906 break
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4912 rm -f conftest.err conftest.$ac_objext \
4913 conftest$ac_exeext conftest.$ac_ext
4914 done
4916 LIBS=$ac_func_search_save_LIBS
4918 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4919 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4920 if test "$ac_cv_search_opendir" != no; then
4921 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4927 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4928 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4929 if test "${ac_cv_header_stat_broken+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h. */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 #include <sys/types.h>
4939 #include <sys/stat.h>
4941 #if defined(S_ISBLK) && defined(S_IFDIR)
4942 # if S_ISBLK (S_IFDIR)
4943 You lose.
4944 # endif
4945 #endif
4947 #if defined(S_ISBLK) && defined(S_IFCHR)
4948 # if S_ISBLK (S_IFCHR)
4949 You lose.
4950 # endif
4951 #endif
4953 #if defined(S_ISLNK) && defined(S_IFREG)
4954 # if S_ISLNK (S_IFREG)
4955 You lose.
4956 # endif
4957 #endif
4959 #if defined(S_ISSOCK) && defined(S_IFREG)
4960 # if S_ISSOCK (S_IFREG)
4961 You lose.
4962 # endif
4963 #endif
4965 _ACEOF
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "You lose" >/dev/null 2>&1; then
4968 ac_cv_header_stat_broken=yes
4969 else
4970 ac_cv_header_stat_broken=no
4972 rm -f conftest*
4975 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4976 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4977 if test $ac_cv_header_stat_broken = yes; then
4979 cat >>confdefs.h <<\_ACEOF
4980 #define STAT_MACROS_BROKEN 1
4981 _ACEOF
4985 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4986 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4987 if test "${ac_cv_header_stdc+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <stdlib.h>
4997 #include <stdarg.h>
4998 #include <string.h>
4999 #include <float.h>
5002 main ()
5006 return 0;
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_header_stdc=yes
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_cv_header_stdc=no
5038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5040 if test $ac_cv_header_stdc = yes; then
5041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 #include <string.h>
5050 _ACEOF
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "memchr" >/dev/null 2>&1; then
5054 else
5055 ac_cv_header_stdc=no
5057 rm -f conftest*
5061 if test $ac_cv_header_stdc = yes; then
5062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5063 cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h. */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <stdlib.h>
5071 _ACEOF
5072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5073 $EGREP "free" >/dev/null 2>&1; then
5075 else
5076 ac_cv_header_stdc=no
5078 rm -f conftest*
5082 if test $ac_cv_header_stdc = yes; then
5083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5084 if test "$cross_compiling" = yes; then
5086 else
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <ctype.h>
5094 #if ((' ' & 0x0FF) == 0x020)
5095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5097 #else
5098 # define ISLOWER(c) \
5099 (('a' <= (c) && (c) <= 'i') \
5100 || ('j' <= (c) && (c) <= 'r') \
5101 || ('s' <= (c) && (c) <= 'z'))
5102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5103 #endif
5105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5107 main ()
5109 int i;
5110 for (i = 0; i < 256; i++)
5111 if (XOR (islower (i), ISLOWER (i))
5112 || toupper (i) != TOUPPER (i))
5113 exit(2);
5114 exit (0);
5116 _ACEOF
5117 rm -f conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5129 else
5130 echo "$as_me: program exited with status $ac_status" >&5
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ( exit $ac_status )
5135 ac_cv_header_stdc=no
5137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5143 if test $ac_cv_header_stdc = yes; then
5145 cat >>confdefs.h <<\_ACEOF
5146 #define STDC_HEADERS 1
5147 _ACEOF
5151 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <sys/types.h>
5163 #include <sys/wait.h>
5164 #ifndef WEXITSTATUS
5165 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5166 #endif
5167 #ifndef WIFEXITED
5168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5169 #endif
5172 main ()
5174 int s;
5175 wait (&s);
5176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5178 return 0;
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5183 (eval $ac_compile) 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -z "$ac_c_werror_flag"
5191 || test ! -s conftest.err'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; } &&
5197 { ac_try='test -s conftest.$ac_objext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199 (eval $ac_try) 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_header_sys_wait_h=yes
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5208 ac_cv_header_sys_wait_h=no
5210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5213 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5214 if test $ac_cv_header_sys_wait_h = yes; then
5216 cat >>confdefs.h <<\_ACEOF
5217 #define HAVE_SYS_WAIT_H 1
5218 _ACEOF
5222 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5223 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5224 if test "${ac_cv_header_time+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227 cat >conftest.$ac_ext <<_ACEOF
5228 /* confdefs.h. */
5229 _ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <sys/types.h>
5234 #include <sys/time.h>
5235 #include <time.h>
5238 main ()
5240 if ((struct tm *) 0)
5241 return 0;
5243 return 0;
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag"
5256 || test ! -s conftest.err'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 (eval $ac_try) 2>&5
5265 ac_status=$?
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_cv_header_time=yes
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_cv_header_time=no
5275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5278 echo "${ECHO_T}$ac_cv_header_time" >&6
5279 if test $ac_cv_header_time = yes; then
5281 cat >>confdefs.h <<\_ACEOF
5282 #define TIME_WITH_SYS_TIME 1
5283 _ACEOF
5288 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5289 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5290 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5301 main ()
5303 static struct stat ac_aggr;
5304 if (ac_aggr.st_blksize)
5305 return 0;
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_member_struct_stat_st_blksize=yes
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 $ac_includes_default
5345 main ()
5347 static struct stat ac_aggr;
5348 if (sizeof ac_aggr.st_blksize)
5349 return 0;
5351 return 0;
5353 _ACEOF
5354 rm -f conftest.$ac_objext
5355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5356 (eval $ac_compile) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 ac_cv_member_struct_stat_st_blksize=yes
5377 else
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_cv_member_struct_stat_st_blksize=no
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5388 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5389 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5393 _ACEOF
5396 cat >>confdefs.h <<\_ACEOF
5397 #define HAVE_ST_BLKSIZE 1
5398 _ACEOF
5403 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5404 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5405 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408 cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h. */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5416 main ()
5418 static struct stat ac_aggr;
5419 if (ac_aggr.st_blocks)
5420 return 0;
5422 return 0;
5424 _ACEOF
5425 rm -f conftest.$ac_objext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_member_struct_stat_st_blocks=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 cat >conftest.$ac_ext <<_ACEOF
5453 /* confdefs.h. */
5454 _ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5460 main ()
5462 static struct stat ac_aggr;
5463 if (sizeof ac_aggr.st_blocks)
5464 return 0;
5466 return 0;
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_member_struct_stat_st_blocks=yes
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 ac_cv_member_struct_stat_st_blocks=no
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5503 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5504 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5506 cat >>confdefs.h <<_ACEOF
5507 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5508 _ACEOF
5511 cat >>confdefs.h <<\_ACEOF
5512 #define HAVE_ST_BLOCKS 1
5513 _ACEOF
5515 else
5516 case $LIBOBJS in
5517 "fileblocks.$ac_objext" | \
5518 *" fileblocks.$ac_objext" | \
5519 "fileblocks.$ac_objext "* | \
5520 *" fileblocks.$ac_objext "* ) ;;
5521 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5522 esac
5528 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5529 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5530 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h. */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 $ac_includes_default
5541 main ()
5543 static struct stat ac_aggr;
5544 if (ac_aggr.st_rdev)
5545 return 0;
5547 return 0;
5549 _ACEOF
5550 rm -f conftest.$ac_objext
5551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>conftest.er1
5553 ac_status=$?
5554 grep -v '^ *+' conftest.er1 >conftest.err
5555 rm -f conftest.er1
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } &&
5559 { ac_try='test -z "$ac_c_werror_flag"
5560 || test ! -s conftest.err'
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 (eval $ac_try) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; } &&
5566 { ac_try='test -s conftest.$ac_objext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 ac_cv_member_struct_stat_st_rdev=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5585 main ()
5587 static struct stat ac_aggr;
5588 if (sizeof ac_aggr.st_rdev)
5589 return 0;
5591 return 0;
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_member_struct_stat_st_rdev=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_cv_member_struct_stat_st_rdev=no
5623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5628 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5629 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5631 cat >>confdefs.h <<_ACEOF
5632 #define HAVE_STRUCT_STAT_ST_RDEV 1
5633 _ACEOF
5636 cat >>confdefs.h <<\_ACEOF
5637 #define HAVE_ST_RDEV 1
5638 _ACEOF
5643 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5644 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5645 if test "${ac_cv_struct_tm+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 #include <time.h>
5658 main ()
5660 struct tm *tp; tp->tm_sec;
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_struct_tm=time.h
5688 else
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_struct_tm=sys/time.h
5694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5697 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5698 if test $ac_cv_struct_tm = sys/time.h; then
5700 cat >>confdefs.h <<\_ACEOF
5701 #define TM_IN_SYS_TIME 1
5702 _ACEOF
5706 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5707 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5708 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/types.h>
5718 #include <$ac_cv_struct_tm>
5722 main ()
5724 static struct tm ac_aggr;
5725 if (ac_aggr.tm_zone)
5726 return 0;
5728 return 0;
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 ac_cv_member_struct_tm_tm_zone=yes
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h. */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 #include <$ac_cv_struct_tm>
5769 main ()
5771 static struct tm ac_aggr;
5772 if (sizeof ac_aggr.tm_zone)
5773 return 0;
5775 return 0;
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780 (eval $ac_compile) 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -z "$ac_c_werror_flag"
5788 || test ! -s conftest.err'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; } &&
5794 { ac_try='test -s conftest.$ac_objext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 (eval $ac_try) 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_member_struct_tm_tm_zone=yes
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5805 ac_cv_member_struct_tm_tm_zone=no
5807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5812 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5813 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5815 cat >>confdefs.h <<_ACEOF
5816 #define HAVE_STRUCT_TM_TM_ZONE 1
5817 _ACEOF
5822 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5824 cat >>confdefs.h <<\_ACEOF
5825 #define HAVE_TM_ZONE 1
5826 _ACEOF
5828 else
5829 echo "$as_me:$LINENO: checking for tzname" >&5
5830 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5831 if test "${ac_cv_var_tzname+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h. */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h. */
5840 #include <time.h>
5841 #ifndef tzname /* For SGI. */
5842 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5843 #endif
5846 main ()
5848 atoi(*tzname);
5850 return 0;
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855 (eval $ac_link) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 ac_cv_var_tzname=yes
5876 else
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5880 ac_cv_var_tzname=no
5882 rm -f conftest.err conftest.$ac_objext \
5883 conftest$ac_exeext conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5886 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5887 if test $ac_cv_var_tzname = yes; then
5889 cat >>confdefs.h <<\_ACEOF
5890 #define HAVE_TZNAME 1
5891 _ACEOF
5896 echo "$as_me:$LINENO: checking for off_t" >&5
5897 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5898 if test "${ac_cv_type_off_t+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 $ac_includes_default
5909 main ()
5911 if ((off_t *) 0)
5912 return 0;
5913 if (sizeof (off_t))
5914 return 0;
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_type_off_t=yes
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5946 ac_cv_type_off_t=no
5948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5951 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5952 if test $ac_cv_type_off_t = yes; then
5954 else
5956 cat >>confdefs.h <<_ACEOF
5957 #define off_t long
5958 _ACEOF
5962 echo "$as_me:$LINENO: checking for pid_t" >&5
5963 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5964 if test "${ac_cv_type_pid_t+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5975 main ()
5977 if ((pid_t *) 0)
5978 return 0;
5979 if (sizeof (pid_t))
5980 return 0;
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_type_pid_t=yes
6008 else
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_type_pid_t=no
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6017 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6018 if test $ac_cv_type_pid_t = yes; then
6020 else
6022 cat >>confdefs.h <<_ACEOF
6023 #define pid_t int
6024 _ACEOF
6028 echo "$as_me:$LINENO: checking for size_t" >&5
6029 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6030 if test "${ac_cv_type_size_t+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 $ac_includes_default
6041 main ()
6043 if ((size_t *) 0)
6044 return 0;
6045 if (sizeof (size_t))
6046 return 0;
6048 return 0;
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } &&
6060 { ac_try='test -z "$ac_c_werror_flag"
6061 || test ! -s conftest.err'
6062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 (eval $ac_try) 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; } &&
6067 { ac_try='test -s conftest.$ac_objext'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_type_size_t=yes
6074 else
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_type_size_t=no
6080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6083 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6084 if test $ac_cv_type_size_t = yes; then
6086 else
6088 cat >>confdefs.h <<_ACEOF
6089 #define size_t unsigned
6090 _ACEOF
6094 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6095 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6096 if test "${ac_cv_type_uid_t+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "uid_t" >/dev/null 2>&1; then
6110 ac_cv_type_uid_t=yes
6111 else
6112 ac_cv_type_uid_t=no
6114 rm -f conftest*
6117 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6118 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6119 if test $ac_cv_type_uid_t = no; then
6121 cat >>confdefs.h <<\_ACEOF
6122 #define uid_t int
6123 _ACEOF
6126 cat >>confdefs.h <<\_ACEOF
6127 #define gid_t int
6128 _ACEOF
6133 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6134 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6135 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6146 main ()
6148 static struct tm ac_aggr;
6149 if (ac_aggr.tm_gmtoff)
6150 return 0;
6152 return 0;
6154 _ACEOF
6155 rm -f conftest.$ac_objext
6156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_member_struct_tm_tm_gmtoff=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6190 main ()
6192 static struct tm ac_aggr;
6193 if (sizeof ac_aggr.tm_gmtoff)
6194 return 0;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6201 (eval $ac_compile) 2>conftest.er1
6202 ac_status=$?
6203 grep -v '^ *+' conftest.er1 >conftest.err
6204 rm -f conftest.er1
6205 cat conftest.err >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } &&
6208 { ac_try='test -z "$ac_c_werror_flag"
6209 || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 (eval $ac_try) 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 (eval $ac_try) 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_cv_member_struct_tm_tm_gmtoff=yes
6222 else
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_cv_member_struct_tm_tm_gmtoff=no
6228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6232 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6233 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6234 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6238 _ACEOF
6244 # Look for some functions
6259 for ac_func in getpagesize kqueue statfs statvfs \
6260 clone kse_create rfork_thread thr_create sa_register \
6261 getcontext makecontext setcontext sigaltstack swapcontext
6263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6264 echo "$as_me:$LINENO: checking for $ac_func" >&5
6265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6266 if eval "test \"\${$as_ac_var+set}\" = set"; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6277 #define $ac_func innocuous_$ac_func
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func (); below.
6281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282 <limits.h> exists even on freestanding compilers. */
6284 #ifdef __STDC__
6285 # include <limits.h>
6286 #else
6287 # include <assert.h>
6288 #endif
6290 #undef $ac_func
6292 /* Override any gcc2 internal prototype to avoid an error. */
6293 #ifdef __cplusplus
6294 extern "C"
6296 #endif
6297 /* We use char because int might match the return type of a gcc2
6298 builtin and then its argument prototype would still apply. */
6299 char $ac_func ();
6300 /* The GNU C library defines this for functions which it implements
6301 to always fail with ENOSYS. Some functions are actually named
6302 something starting with __ and the normal name is an alias. */
6303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304 choke me
6305 #else
6306 char (*f) () = $ac_func;
6307 #endif
6308 #ifdef __cplusplus
6310 #endif
6313 main ()
6315 return f != $ac_func;
6317 return 0;
6319 _ACEOF
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>conftest.er1
6323 ac_status=$?
6324 grep -v '^ *+' conftest.er1 >conftest.err
6325 rm -f conftest.er1
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 (eval $ac_try) 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 eval "$as_ac_var=yes"
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 eval "$as_ac_var=no"
6349 rm -f conftest.err conftest.$ac_objext \
6350 conftest$ac_exeext conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6354 if test `eval echo '${'$as_ac_var'}'` = yes; then
6355 cat >>confdefs.h <<_ACEOF
6356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6357 _ACEOF
6360 done
6365 for ac_header in stdlib.h unistd.h
6367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376 else
6377 # Is the header compilable?
6378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 #include <$ac_header>
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 (eval $ac_try) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 (eval $ac_try) 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_header_compiler=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 ac_header_compiler=no
6418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6420 echo "${ECHO_T}$ac_header_compiler" >&6
6422 # Is the header present?
6423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6426 /* confdefs.h. */
6427 _ACEOF
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <$ac_header>
6432 _ACEOF
6433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null; then
6441 if test -s conftest.err; then
6442 ac_cpp_err=$ac_c_preproc_warn_flag
6443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6444 else
6445 ac_cpp_err=
6447 else
6448 ac_cpp_err=yes
6450 if test -z "$ac_cpp_err"; then
6451 ac_header_preproc=yes
6452 else
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.$ac_ext >&5
6456 ac_header_preproc=no
6458 rm -f conftest.err conftest.$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6460 echo "${ECHO_T}$ac_header_preproc" >&6
6462 # So? What about this header?
6463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6464 yes:no: )
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6469 ac_header_preproc=yes
6471 no:yes:* )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6485 cat <<\_ASBOX
6486 ## ------------------------------------------ ##
6487 ## Report this to the AC_PACKAGE_NAME lists. ##
6488 ## ------------------------------------------ ##
6489 _ASBOX
6491 sed "s/^/$as_me: WARNING: /" >&2
6493 esac
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 eval "$as_ac_Header=\$ac_header_preproc"
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6512 done
6515 for ac_func in getpagesize
6517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6518 echo "$as_me:$LINENO: checking for $ac_func" >&5
6519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_var+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6531 #define $ac_func innocuous_$ac_func
6533 /* System header to define __stub macros and hopefully few prototypes,
6534 which can conflict with char $ac_func (); below.
6535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6536 <limits.h> exists even on freestanding compilers. */
6538 #ifdef __STDC__
6539 # include <limits.h>
6540 #else
6541 # include <assert.h>
6542 #endif
6544 #undef $ac_func
6546 /* Override any gcc2 internal prototype to avoid an error. */
6547 #ifdef __cplusplus
6548 extern "C"
6550 #endif
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6553 char $ac_func ();
6554 /* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */
6557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6558 choke me
6559 #else
6560 char (*f) () = $ac_func;
6561 #endif
6562 #ifdef __cplusplus
6564 #endif
6567 main ()
6569 return f != $ac_func;
6571 return 0;
6573 _ACEOF
6574 rm -f conftest.$ac_objext conftest$ac_exeext
6575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 eval "$as_ac_var=yes"
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 eval "$as_ac_var=no"
6603 rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6608 if test `eval echo '${'$as_ac_var'}'` = yes; then
6609 cat >>confdefs.h <<_ACEOF
6610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6611 _ACEOF
6614 done
6616 echo "$as_me:$LINENO: checking for working mmap" >&5
6617 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6618 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 if test "$cross_compiling" = yes; then
6622 ac_cv_func_mmap_fixed_mapped=no
6623 else
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 $ac_includes_default
6631 /* malloc might have been renamed as rpl_malloc. */
6632 #undef malloc
6634 /* Thanks to Mike Haertel and Jim Avera for this test.
6635 Here is a matrix of mmap possibilities:
6636 mmap private not fixed
6637 mmap private fixed at somewhere currently unmapped
6638 mmap private fixed at somewhere already mapped
6639 mmap shared not fixed
6640 mmap shared fixed at somewhere currently unmapped
6641 mmap shared fixed at somewhere already mapped
6642 For private mappings, we should verify that changes cannot be read()
6643 back from the file, nor mmap's back from the file at a different
6644 address. (There have been systems where private was not correctly
6645 implemented like the infamous i386 svr4.0, and systems where the
6646 VM page cache was not coherent with the file system buffer cache
6647 like early versions of FreeBSD and possibly contemporary NetBSD.)
6648 For shared mappings, we should conversely verify that changes get
6649 propagated back to all the places they're supposed to be.
6651 Grep wants private fixed already mapped.
6652 The main things grep needs to know about mmap are:
6653 * does it exist and is it safe to write into the mmap'd area
6654 * how to use it (BSD variants) */
6656 #include <fcntl.h>
6657 #include <sys/mman.h>
6659 #if !STDC_HEADERS && !HAVE_STDLIB_H
6660 char *malloc ();
6661 #endif
6663 /* This mess was copied from the GNU getpagesize.h. */
6664 #if !HAVE_GETPAGESIZE
6665 /* Assume that all systems that can run configure have sys/param.h. */
6666 # if !HAVE_SYS_PARAM_H
6667 # define HAVE_SYS_PARAM_H 1
6668 # endif
6670 # ifdef _SC_PAGESIZE
6671 # define getpagesize() sysconf(_SC_PAGESIZE)
6672 # else /* no _SC_PAGESIZE */
6673 # if HAVE_SYS_PARAM_H
6674 # include <sys/param.h>
6675 # ifdef EXEC_PAGESIZE
6676 # define getpagesize() EXEC_PAGESIZE
6677 # else /* no EXEC_PAGESIZE */
6678 # ifdef NBPG
6679 # define getpagesize() NBPG * CLSIZE
6680 # ifndef CLSIZE
6681 # define CLSIZE 1
6682 # endif /* no CLSIZE */
6683 # else /* no NBPG */
6684 # ifdef NBPC
6685 # define getpagesize() NBPC
6686 # else /* no NBPC */
6687 # ifdef PAGESIZE
6688 # define getpagesize() PAGESIZE
6689 # endif /* PAGESIZE */
6690 # endif /* no NBPC */
6691 # endif /* no NBPG */
6692 # endif /* no EXEC_PAGESIZE */
6693 # else /* no HAVE_SYS_PARAM_H */
6694 # define getpagesize() 8192 /* punt totally */
6695 # endif /* no HAVE_SYS_PARAM_H */
6696 # endif /* no _SC_PAGESIZE */
6698 #endif /* no HAVE_GETPAGESIZE */
6701 main ()
6703 char *data, *data2, *data3;
6704 int i, pagesize;
6705 int fd;
6707 pagesize = getpagesize ();
6709 /* First, make a file with some known garbage in it. */
6710 data = (char *) malloc (pagesize);
6711 if (!data)
6712 exit (1);
6713 for (i = 0; i < pagesize; ++i)
6714 *(data + i) = rand ();
6715 umask (0);
6716 fd = creat ("conftest.mmap", 0600);
6717 if (fd < 0)
6718 exit (1);
6719 if (write (fd, data, pagesize) != pagesize)
6720 exit (1);
6721 close (fd);
6723 /* Next, try to mmap the file at a fixed address which already has
6724 something else allocated at it. If we can, also make sure that
6725 we see the same garbage. */
6726 fd = open ("conftest.mmap", O_RDWR);
6727 if (fd < 0)
6728 exit (1);
6729 data2 = (char *) malloc (2 * pagesize);
6730 if (!data2)
6731 exit (1);
6732 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6733 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6734 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6735 exit (1);
6736 for (i = 0; i < pagesize; ++i)
6737 if (*(data + i) != *(data2 + i))
6738 exit (1);
6740 /* Finally, make sure that changes to the mapped area do not
6741 percolate back to the file as seen by read(). (This is a bug on
6742 some variants of i386 svr4.0.) */
6743 for (i = 0; i < pagesize; ++i)
6744 *(data2 + i) = *(data2 + i) + 1;
6745 data3 = (char *) malloc (pagesize);
6746 if (!data3)
6747 exit (1);
6748 if (read (fd, data3, pagesize) != pagesize)
6749 exit (1);
6750 for (i = 0; i < pagesize; ++i)
6751 if (*(data + i) != *(data3 + i))
6752 exit (1);
6753 close (fd);
6754 exit (0);
6756 _ACEOF
6757 rm -f conftest$ac_exeext
6758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_func_mmap_fixed_mapped=yes
6769 else
6770 echo "$as_me: program exited with status $ac_status" >&5
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ( exit $ac_status )
6775 ac_cv_func_mmap_fixed_mapped=no
6777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6781 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6782 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_MMAP 1
6786 _ACEOF
6789 rm -f conftest.mmap
6792 # Find X
6793 echo "$as_me:$LINENO: checking for X" >&5
6794 echo $ECHO_N "checking for X... $ECHO_C" >&6
6797 # Check whether --with-x or --without-x was given.
6798 if test "${with_x+set}" = set; then
6799 withval="$with_x"
6802 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6803 if test "x$with_x" = xno; then
6804 # The user explicitly disabled X.
6805 have_x=disabled
6806 else
6807 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6808 # Both variables are already set.
6809 have_x=yes
6810 else
6811 if test "${ac_cv_have_x+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 # One or both of the vars are not set, and there is no cached value.
6815 ac_x_includes=no ac_x_libraries=no
6816 rm -fr conftest.dir
6817 if mkdir conftest.dir; then
6818 cd conftest.dir
6819 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6820 cat >Imakefile <<'_ACEOF'
6821 acfindx:
6822 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6823 _ACEOF
6824 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6826 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6827 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6828 for ac_extension in a so sl; do
6829 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6830 test -f $ac_im_libdir/libX11.$ac_extension; then
6831 ac_im_usrlibdir=$ac_im_libdir; break
6833 done
6834 # Screen out bogus values from the imake configuration. They are
6835 # bogus both because they are the default anyway, and because
6836 # using them would break gcc on systems where it needs fixed includes.
6837 case $ac_im_incroot in
6838 /usr/include) ;;
6839 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6840 esac
6841 case $ac_im_usrlibdir in
6842 /usr/lib | /lib) ;;
6843 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6844 esac
6846 cd ..
6847 rm -fr conftest.dir
6850 # Standard set of common directories for X headers.
6851 # Check X11 before X11Rn because it is often a symlink to the current release.
6852 ac_x_header_dirs='
6853 /usr/X11/include
6854 /usr/X11R6/include
6855 /usr/X11R5/include
6856 /usr/X11R4/include
6858 /usr/include/X11
6859 /usr/include/X11R6
6860 /usr/include/X11R5
6861 /usr/include/X11R4
6863 /usr/local/X11/include
6864 /usr/local/X11R6/include
6865 /usr/local/X11R5/include
6866 /usr/local/X11R4/include
6868 /usr/local/include/X11
6869 /usr/local/include/X11R6
6870 /usr/local/include/X11R5
6871 /usr/local/include/X11R4
6873 /usr/X386/include
6874 /usr/x386/include
6875 /usr/XFree86/include/X11
6877 /usr/include
6878 /usr/local/include
6879 /usr/unsupported/include
6880 /usr/athena/include
6881 /usr/local/x11r5/include
6882 /usr/lpp/Xamples/include
6884 /usr/openwin/include
6885 /usr/openwin/share/include'
6887 if test "$ac_x_includes" = no; then
6888 # Guess where to find include files, by looking for Intrinsic.h.
6889 # First, try using that file with no special directory specified.
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 #include <X11/Intrinsic.h>
6897 _ACEOF
6898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } >/dev/null; then
6906 if test -s conftest.err; then
6907 ac_cpp_err=$ac_c_preproc_warn_flag
6908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6909 else
6910 ac_cpp_err=
6912 else
6913 ac_cpp_err=yes
6915 if test -z "$ac_cpp_err"; then
6916 # We can compile using X headers with no special include directory.
6917 ac_x_includes=
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 for ac_dir in $ac_x_header_dirs; do
6923 if test -r "$ac_dir/X11/Intrinsic.h"; then
6924 ac_x_includes=$ac_dir
6925 break
6927 done
6929 rm -f conftest.err conftest.$ac_ext
6930 fi # $ac_x_includes = no
6932 if test "$ac_x_libraries" = no; then
6933 # Check for the libraries.
6934 # See if we find them without any special options.
6935 # Don't add to $LIBS permanently.
6936 ac_save_LIBS=$LIBS
6937 LIBS="-lXt $LIBS"
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 #include <X11/Intrinsic.h>
6946 main ()
6948 XtMalloc (0)
6950 return 0;
6952 _ACEOF
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 LIBS=$ac_save_LIBS
6976 # We can link X programs with no special library path.
6977 ac_x_libraries=
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 LIBS=$ac_save_LIBS
6983 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6985 # Don't even attempt the hair of trying to link an X program!
6986 for ac_extension in a so sl; do
6987 if test -r $ac_dir/libXt.$ac_extension; then
6988 ac_x_libraries=$ac_dir
6989 break 2
6991 done
6992 done
6994 rm -f conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
6996 fi # $ac_x_libraries = no
6998 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6999 # Didn't find X anywhere. Cache the known absence of X.
7000 ac_cv_have_x="have_x=no"
7001 else
7002 # Record where we found X for the cache.
7003 ac_cv_have_x="have_x=yes \
7004 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7009 eval "$ac_cv_have_x"
7010 fi # $with_x != no
7012 if test "$have_x" != yes; then
7013 echo "$as_me:$LINENO: result: $have_x" >&5
7014 echo "${ECHO_T}$have_x" >&6
7015 no_x=yes
7016 else
7017 # If each of the values was on the command line, it overrides each guess.
7018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7020 # Update the cache value to reflect the command line values.
7021 ac_cv_have_x="have_x=yes \
7022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7023 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7024 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7030 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7031 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7032 aros_config_ldflags=""
7034 aros_shared_default=yes
7036 aros_shared_cflags="-fPIC"
7037 aros_shared_aflags=""
7038 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7039 aros_kernel_ldflags="-Wl,-rpath,./lib"
7041 aros_target_ar_flags="cr"
7042 aros_target_nm_flags="-C -ul"
7043 aros_target_strip_flags="--strip-unneeded -R.comment"
7045 aros_compiler_libs=
7047 aros_target_genmap="-Wl,-Map -Xlinker"
7049 # Native flavour stuff
7050 aros_bochs_hack="0"
7051 aros_serial_debug="0"
7053 # Palm native flavour stuff
7054 aros_palm_debug_hack="0"
7056 # Unix flavour stuff
7057 aros_nesting_supervisor="0"
7059 # Collect-aros stuff: "-ius" to ignore undefined symbols
7060 ignore_undefined_symbols=""
7062 # X11 Xshm
7063 DO_XSHM_SUPPORT="1"
7064 DO_VIDMODE_SUPPORT="1"
7066 #-----------------------------------------------------------------------------
7068 echo "$as_me:$LINENO: checking for type of build" >&5
7069 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7070 # Check whether --enable-build_type or --disable-build_type was given.
7071 if test "${enable_build_type+set}" = set; then
7072 enableval="$enable_build_type"
7073 build_type=$enableval
7074 else
7075 build_type="personal"
7078 if test "$build_type" = "nightly"; then
7079 build_type_string="NIGHTLY"
7080 elif test "$build_type" = "snapshot"; then
7081 build_type_string="SNAPSHOT"
7082 elif test "$build_type" = "milestone"; then
7083 build_type_string="MILESTONE"
7084 elif test "$build_type" = "release"; then
7085 build_type_string="RELEASE"
7086 else
7087 build_type_string="PERSONAL"
7088 build_type="personal"
7091 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7093 echo "$as_me:$LINENO: result: $build_type" >&5
7094 echo "${ECHO_T}$build_type" >&6
7096 #-----------------------------------------------------------------------------
7097 all_debug_types="messages stack mungwall modules symbols"
7099 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7100 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7101 # Check whether --enable-debug or --disable-debug was given.
7102 if test "${enable_debug+set}" = set; then
7103 enableval="$enable_debug"
7104 debug="$enableval"
7105 else
7106 debug=""
7109 if test "$debug" = "" -o "$debug" = "no"; then
7110 debug="none"
7111 elif test "$debug" = "yes"; then
7112 debug="all"
7115 if test "$debug" = "all" ; then
7116 debug=$all_debug_types
7117 for d in $all_debug_types; do
7118 export aros_${d}_debug="1"
7119 done
7120 else
7121 for d in $all_debug_types; do
7122 export aros_${d}_debug="0"
7123 done
7126 if test "$debug" != "none"; then
7127 debug=`echo $debug | sed s/,/\ /g`
7128 for d in $debug; do
7129 found="0"
7130 for d2 in $all_debug_types; do
7131 if test "$d2" = "$d"; then
7132 found="1"
7133 break
7135 done
7136 if test "$found" = "0"; then
7137 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7138 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7139 { (exit 1); exit 1; }; }
7141 export aros_${d}_debug="1"
7142 done
7143 aros_debug="yes"
7145 echo "$as_me:$LINENO: result: $debug" >&5
7146 echo "${ECHO_T}$debug" >&6
7148 if test "$aros_messages_debug" = "1"; then
7149 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7150 else
7151 aros_messages_debug=""
7153 if test "$aros_symbols_debug" = "1"; then
7154 aros_symbols_debug="-g"
7155 else
7156 aros_symbols_debug=""
7159 # These are the flags to pass when compiling debugged programs
7160 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7161 aros_debug_aflags=""
7162 aros_debug_ldflags="$aros_symbols_debug"
7164 #-----------------------------------------------------------------------------
7165 # Checking for distcc and ccache.
7167 # Always apply the transforms in this particular order. Basically you should
7168 # always run 'ccache distcc compiler' in that order for the best performance.
7170 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7171 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7172 # Check whether --enable-distcc or --disable-distcc was given.
7173 if test "${enable_distcc+set}" = set; then
7174 enableval="$enable_distcc"
7175 distcc="$enableval"
7176 else
7177 distcc="no"
7179 if test "$distcc" != "" -a "$distcc" != "no"; then
7180 # AC_CHECK_PROG will print out the result in this case
7181 # Extract the first word of "distcc", so it can be a program name with args.
7182 set dummy distcc; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_path_DISTCC+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $DISTCC in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7207 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7209 esac
7211 DISTCC=$ac_cv_path_DISTCC
7213 if test -n "$DISTCC"; then
7214 echo "$as_me:$LINENO: result: $DISTCC" >&5
7215 echo "${ECHO_T}$DISTCC" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6
7226 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7227 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7228 # Check whether --enable-ccache or --disable-ccache was given.
7229 if test "${enable_ccache+set}" = set; then
7230 enableval="$enable_ccache"
7231 ccache="$enableval"
7232 else
7233 ccache="no"
7235 if test "$ccache" != "" -a "$ccache" != "no"; then
7236 # AC_CHECK_PROG will print out the result in this case
7237 # Extract the first word of "ccache", so it can be a program name with args.
7238 set dummy ccache; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_CCACHE+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 if test -n "$CCACHE"; then
7245 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_CCACHE="ccache"
7255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7258 done
7259 done
7263 CCACHE=$ac_cv_prog_CCACHE
7264 if test -n "$CCACHE"; then
7265 echo "$as_me:$LINENO: result: $CCACHE" >&5
7266 echo "${ECHO_T}$CCACHE" >&6
7267 else
7268 echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7272 else
7273 echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6
7277 #-----------------------------------------------------------------------------
7278 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7279 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7281 # Check whether --with-optimization or --without-optimization was given.
7282 if test "${with_optimization+set}" = set; then
7283 withval="$with_optimization"
7284 optimization="$withval"
7285 else
7286 optimization="unknown"
7288 if test "$optimization" = "unknown"; then
7289 if test "$debug" != "none"; then
7290 optimization="-O0"
7291 else
7292 optimization="-O2"
7295 aros_config_cflags="$aros_config_cflags $optimization"
7296 echo "$as_me:$LINENO: result: $optimization" >&5
7297 echo "${ECHO_T}$optimization" >&6
7299 #-----------------------------------------------------------------------------
7300 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7301 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7302 # Check whether --enable-target_variant or --disable-target_variant was given.
7303 if test "${enable_target_variant+set}" = set; then
7304 enableval="$enable_target_variant"
7305 target_variant=$enableval
7306 else
7307 target_variant="none"
7309 if test "$target_variant" = "none"; then
7310 aros_target_variant=""
7311 aros_target_suffix=""
7312 else
7313 aros_target_variant="$target_variant"
7314 aros_target_suffix="-$target_variant"
7316 echo "$as_me:$LINENO: result: $enableval" >&5
7317 echo "${ECHO_T}$enableval" >&6
7319 #-----------------------------------------------------------------------------
7320 # This is the target configuration switch.
7321 case "$target_os" in
7322 linux*)
7323 aros_target_arch="linux"
7324 case "$target_cpu" in
7325 *m68k*)
7326 aros_target_cpu="m68k"
7327 aros_object_format="m68kelf"
7328 aros_flavour="emulcompat"
7329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7330 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7331 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7332 gcc_target_cpu="mc68000"
7334 *i?86*)
7335 aros_target_cpu="i386"
7336 aros_object_format="elf_i386"
7337 aros_flavour="emulation"
7338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7339 aros_default_wbdepth=8
7340 gcc_target_cpu="i386"
7342 *x86_64*)
7343 aros_target_cpu="x86_64"
7344 aros_object_format="elf_x86_64"
7345 aros_flavour="emulation"
7346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7347 aros_default_wbdepth=8
7348 gcc_target_cpu="x86_64"
7350 *powerpc*)
7351 aros_target_cpu="ppc"
7352 aros_object_format="elf32ppc"
7353 aros_flavour="emulation"
7354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7355 aros_default_wbdepth=8
7356 aros_compiler_libs="-lgcc"
7357 gcc_target_cpu="ppc"
7360 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7361 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7362 { (exit 1); exit 1; }; }
7364 esac
7368 aros_target_arch="pc"
7369 aros_shared_default="no"
7370 case "$target_cpu" in
7371 *i?86*)
7372 aros_target_cpu="i386"
7375 if test "$aros_object_format" = "" ; then
7376 aros_object_format="elf_i386"
7378 aros_flavour="standalone"
7379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7380 aros_kernel_ldflags=""
7381 aros_default_wbwidth=640
7382 aros_default_wbheight=480
7383 gcc_target_cpu="i386"
7386 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7387 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7388 { (exit 1); exit 1; }; }
7390 esac
7393 prep)
7394 aros_target_arch="prep"
7395 aros_shared_default="no"
7396 aros_target_cpu="ppc"
7397 aros_object_format="elf32ppc"
7398 aros_flavour="ppcnative"
7399 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7400 aros_kernel_ldflags=""
7401 aros_default_wbwidth=640
7402 aros_default_wbheight=480
7403 gcc_target_cpu="ppc"
7404 case "$target_cpu" in
7405 *cross*)
7406 aros_target_cc="ppc-linux-gcc -pipe"
7407 aros_target_ld="ppc-linux-ld"
7408 aros_target_as="ppc-linux-as"
7409 aros_target_ar="ppc-linux-ar"
7410 aros_target_ranlib="ppc-linux-ranlib"
7411 aros_target_nm="ppc-linux-nm"
7412 aros_target_strip="ppc-linux-strip"
7413 aros_target_objcopy="ppc-linux-objcopy"
7414 aros_target_objdump="ppc-linux-objdump"
7415 aros_shared_ld="ppc-linux-ld"
7416 aros_kernel_ld="ppc-linux-ld"
7420 esac
7423 freebsd*)
7424 aros_target_arch="freebsd"
7425 aros_target_cpu="i386"
7426 aros_flavour="emulation"
7427 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7428 gcc_target_cpu="i386"
7430 aros_target_strip_flags="-x"
7433 darwin*)
7434 aros_target_arch="darwin"
7435 aros_target_cpu="i386"
7436 aros_flavour="emulation"
7437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7438 gcc_target_cpu="i386"
7440 aros_target_strip_flags="-x"
7443 netbsd*)
7444 aros_target_arch="netbsd"
7445 case "$target_cpu" in
7446 *m68k*)
7447 aros_target_cpu="m68k"
7448 aros_object_format="m68kelf"
7449 aros_flavour="emulcompat"
7450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7451 gcc_target_cpu="mc68000"
7453 *i?86*)
7454 aros_target_cpu="i386"
7455 aros_object_format="elf_i386"
7456 aros_flavour="emulation"
7457 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7458 aros_default_wbdepth=8
7459 gcc_target_cpu="i386"
7462 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7463 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7464 { (exit 1); exit 1; }; }
7466 esac
7467 aros_target_genmap="-Wl,-M -Xlinker >"
7468 aros_flavour="emulation"
7469 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7472 openbsd*)
7473 aros_target_arch="openbsd"
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 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7484 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7485 { (exit 1); exit 1; }; }
7487 esac
7488 aros_target_genmap="-Wl,-M -Xlinker >"
7489 aros_target_nm_flags="-u"
7490 aros_flavour="emulation"
7493 solaris*)
7494 aros_target_arch="solaris"
7495 case "$target_cpu" in
7496 *sparc*)
7497 aros_target_cpu="sparc"
7498 aros_object_format="elf_sparc"
7499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7500 gcc_target_cpu="sparc"
7503 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7504 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7505 { (exit 1); exit 1; }; }
7507 esac
7508 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7509 aros_flavour="emulation"
7512 morphos*)
7513 aros_target_arch="morphos"
7514 aros_shared_default="no"
7515 aros_target_cpu="ppc"
7516 aros_object_format="elf_ppc"
7517 aros_flavour="nativecompat"
7518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7519 gcc_target_cpu="ppc"
7522 amiga*)
7523 aros_target_arch="amiga"
7524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7525 aros_shared_default="no"
7527 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7529 case "$target_cpu" in
7530 *m68k*)
7531 aros_target_cpu="m68k"
7532 aros_object_format="m68kelf"
7533 aros_flavour="nativecompat"
7534 gcc_target_cpu="mc68000"
7536 *ppc*)
7537 aros_cpu="ppc"
7538 aros_flavour="native"
7539 gcc_target_cpu="ppc"
7542 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7543 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7544 { (exit 1); exit 1; }; }
7546 esac
7549 cygwin*)
7550 aros_target_arch="cygwin"
7551 aros_shared_default="no"
7552 case "$target_cpu" in
7553 *i?86*)
7554 aros_target_cpu="i386"
7555 aros_object_format="elf_i386"
7556 aros_flavour="emulation"
7557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7558 aros_shared_cflags=""
7559 aros_default_wbdepth=8
7560 gcc_target_cpu="i386"
7563 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7564 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7565 { (exit 1); exit 1; }; }
7567 esac
7569 pp*)
7570 aros_target_arch="pp"
7571 aros_shared_default="no"
7572 case "$target_cpu" in
7573 *m68k*)
7574 aros_target_cpu="m68k"
7575 aros_object_format="m68kelf"
7576 aros_flavour="palmnative"
7577 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7578 aros_kernel_ldflags=""
7579 aros_default_wbwidth=160
7580 aros_default_wbheight=160
7581 aros_default_wbdepth=1
7582 aros_target_cc="m68k-elf-gcc -pipe"
7583 aros_target_ld="$(which m68k-elf-ld)"
7584 aros_target_as="m68k-elf-gcc -pipe"
7585 aros_shared_ld="m68k-elf-gcc"
7586 aros_kernel_ld="m68k-elf-gcc"
7587 aros_target_ar="m68k-elf-ar"
7588 aros_target_ar_flags="cru"
7589 aros_target_ranlib="m68k-elf-ranlib"
7590 aros_target_nm="m68k-elf-nm"
7591 aros_target_objcopy="m68k-elf-objcopy"
7592 aros_target_objdump="m68k-elf-objdump"
7593 aros_compiler_libs="-lgcc1"
7594 aros_shared_default=no
7595 aros_shared_cflags="-fpic"
7596 aros_shared_aflags=""
7597 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7598 aros_kernel_ldflags="-Wl,-rpath,./lib"
7599 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7600 aros_debug_aflags=""
7601 aros_debug_ldflags="$aros_symbols_debug"
7602 aros_mungwall_debug="0"
7603 aros_modules_debug="0"
7604 gcc_target_cpu="mc68000"
7605 ignore_undefined_symbols="-ius"
7608 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7609 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7610 { (exit 1); exit 1; }; }
7612 esac
7615 mac*)
7616 aros_target_arch="mac"
7617 aros_shared_default="no"
7618 case "$target_cpu" in
7619 *m68k*)
7620 aros_target_cpu="m68k"
7621 aros_object_format="m68kelf"
7622 aros_flavour="mac68knative"
7623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7624 aros_default_wbwidth=512
7625 aros_default_wbheight=384
7626 aros_default_wbdepth=8
7627 aros_target_cc="m68k-elf-gcc -pipe"
7628 aros_target_ld="$(which m68k-elf-ld)"
7629 aros_target_as="m68k-elf-gcc -pipe"
7630 aros_shared_ld="m68k-elf-gcc"
7631 aros_kernel_ld="m68k-elf-gcc"
7632 aros_target_ar="m68k-elf-ar"
7633 aros_target_ar_flags="cru"
7634 aros_target_ranlib="m68k-elf-ranlib"
7635 aros_target_nm="m68k-elf-nm"
7636 aros_target_objcopy="m68k-elf-objcopy"
7637 aros_target_objdump="m68k-elf-objdump"
7638 aros_compiler_libs="-lgcc1"
7639 aros_shared_default=no
7640 aros_shared_cflags="-fpic"
7641 aros_shared_aflags=""
7642 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7643 aros_kernel_ldflags="-Wl,-rpath,./lib"
7644 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7645 aros_debug_aflags=""
7646 aros_debug_ldflags="$aros_symbols_debug"
7647 aros_mungwall_debug="0"
7648 aros_modules_debug="0"
7649 gcc_target_cpu="mc68000"
7650 ignore_undefined_symbols="-ius"
7653 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
7654 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
7655 { (exit 1); exit 1; }; }
7657 esac
7661 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7662 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7663 { (exit 1); exit 1; }; }
7665 esac
7668 # Find out if we are cross-compiling (ie. if we can't use the host compiler
7669 # for target code)
7670 cross_compiling=no
7671 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7672 cross_compiling=yes
7674 if test "$aros_host_arch" == "darwin" ; then
7675 cross_compiling=yes
7678 # Set prefix for target compiler etc. if we're cross-compiling
7679 # (should possibly be earlier but needs to be after AC_PROG_CC)
7680 if test "$cross_compiling" = "yes" ; then
7681 target_tool_prefix=${target_cpu}-elf-
7682 CC=${target_tool_prefix}gcc
7685 # Find all the tools we need to compile. This could be cross-compiling
7686 # though! If that is the case we use the GNU form of the target and
7687 # simply add this to the front of the binary name. This is rather simple,
7688 # but it should work under most circumstances.
7690 # The default tools are to use the same as the host, but only if the
7691 # host and target CPU are the same. With GCC this is normally enough.
7694 aros_cc_pre=""
7695 aros_shared_ld="$aros_host_ld"
7697 aros_target_mkdep="$aros_host_mkdep"
7698 aros_target_incl_def="$aros_host_incl"
7700 # Extract the first word of "$CC", so it can be a program name with args.
7701 set dummy $CC; ac_word=$2
7702 echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7704 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 case $aros_kernel_cc in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7727 esac
7729 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
7731 if test -n "$aros_kernel_cc"; then
7732 echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
7733 echo "${ECHO_T}$aros_kernel_cc" >&6
7734 else
7735 echo "$as_me:$LINENO: result: no" >&5
7736 echo "${ECHO_T}no" >&6
7740 # The default tools executables to be linked to.
7742 if test "$cross_compiling" = "yes" ; then
7743 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7744 set dummy ${target_tool_prefix}as; ac_word=$2
7745 echo "$as_me:$LINENO: checking for $ac_word" >&5
7746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7747 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 case $aros_target_as_ln in
7751 [\\/]* | ?:[\\/]*)
7752 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7766 done
7767 done
7770 esac
7772 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7774 if test -n "$aros_target_as_ln"; then
7775 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7776 echo "${ECHO_T}$aros_target_as_ln" >&6
7777 else
7778 echo "$as_me:$LINENO: result: no" >&5
7779 echo "${ECHO_T}no" >&6
7782 else
7783 if test "$GCC" = "yes"; then
7784 aros_gcc_as=`$CC -print-prog-name=as`
7785 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7786 set dummy `basename $aros_gcc_as`; ac_word=$2
7787 echo "$as_me:$LINENO: checking for $ac_word" >&5
7788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792 case $aros_target_as_ln in
7793 [\\/]* | ?:[\\/]*)
7794 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in `dirname $aros_gcc_as`
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7808 done
7809 done
7812 esac
7814 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7816 if test -n "$aros_target_as_ln"; then
7817 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7818 echo "${ECHO_T}$aros_target_as_ln" >&6
7819 else
7820 echo "$as_me:$LINENO: result: no" >&5
7821 echo "${ECHO_T}no" >&6
7825 if test "$aros_target_as_ln" = ""; then
7826 # Extract the first word of "as", so it can be a program name with args.
7827 set dummy as; ac_word=$2
7828 echo "$as_me:$LINENO: checking for $ac_word" >&5
7829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7830 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 case $aros_target_as_ln in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7853 esac
7855 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7857 if test -n "$aros_target_as_ln"; then
7858 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7859 echo "${ECHO_T}$aros_target_as_ln" >&6
7860 else
7861 echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6
7868 if test "$aros_target_as_ln" = ""; then
7869 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
7870 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
7871 { (exit 1); exit 1; }; }
7874 if test "$cross_compiling" = "yes" ; then
7875 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7876 set dummy ${target_tool_prefix}ld; ac_word=$2
7877 echo "$as_me:$LINENO: checking for $ac_word" >&5
7878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7879 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 case $aros_kernel_ld in
7883 [\\/]* | ?:[\\/]*)
7884 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7894 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7902 esac
7904 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7906 if test -n "$aros_kernel_ld"; then
7907 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7908 echo "${ECHO_T}$aros_kernel_ld" >&6
7909 else
7910 echo "$as_me:$LINENO: result: no" >&5
7911 echo "${ECHO_T}no" >&6
7914 else
7915 if test "$GCC" = "yes"; then
7916 aros_gcc_ld=`$CC -print-prog-name=ld`
7917 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7918 set dummy `basename $aros_gcc_ld`; ac_word=$2
7919 echo "$as_me:$LINENO: checking for $ac_word" >&5
7920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7921 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 case $aros_kernel_ld in
7925 [\\/]* | ?:[\\/]*)
7926 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in `dirname $aros_gcc_ld`
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7944 esac
7946 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7948 if test -n "$aros_kernel_ld"; then
7949 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7950 echo "${ECHO_T}$aros_kernel_ld" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953 echo "${ECHO_T}no" >&6
7957 if test "$aros_kernel_ld" = ""; then
7958 # Extract the first word of "ld", so it can be a program name with args.
7959 set dummy ld; ac_word=$2
7960 echo "$as_me:$LINENO: checking for $ac_word" >&5
7961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7962 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965 case $aros_kernel_ld in
7966 [\\/]* | ?:[\\/]*)
7967 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7985 esac
7987 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7989 if test -n "$aros_kernel_ld"; then
7990 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7991 echo "${ECHO_T}$aros_kernel_ld" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994 echo "${ECHO_T}no" >&6
8000 if test "$aros_kernel_ld" = ""; then
8001 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8002 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8003 { (exit 1); exit 1; }; }
8006 if test "$cross_compiling" = "yes" ; then
8007 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8008 set dummy ${target_tool_prefix}ar; ac_word=$2
8009 echo "$as_me:$LINENO: checking for $ac_word" >&5
8010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8011 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 case $aros_target_ar_ln in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
8025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8030 done
8031 done
8034 esac
8036 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8038 if test -n "$aros_target_ar_ln"; then
8039 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8040 echo "${ECHO_T}$aros_target_ar_ln" >&6
8041 else
8042 echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6
8046 else
8047 if test "$GCC" = "yes"; then
8048 aros_gcc_ar=`$CC -print-prog-name=ar`
8049 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8050 set dummy `basename $aros_gcc_ar`; ac_word=$2
8051 echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 case $aros_target_ar_ln in
8057 [\\/]* | ?:[\\/]*)
8058 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in `dirname $aros_gcc_ar`
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8076 esac
8078 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8080 if test -n "$aros_target_ar_ln"; then
8081 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8082 echo "${ECHO_T}$aros_target_ar_ln" >&6
8083 else
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8089 if test "$aros_target_ar_ln" = ""; then
8090 # Extract the first word of "ar", so it can be a program name with args.
8091 set dummy ar; ac_word=$2
8092 echo "$as_me:$LINENO: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097 case $aros_target_ar_ln in
8098 [\\/]* | ?:[\\/]*)
8099 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8113 done
8114 done
8117 esac
8119 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8121 if test -n "$aros_target_ar_ln"; then
8122 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8123 echo "${ECHO_T}$aros_target_ar_ln" >&6
8124 else
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8132 if test "$aros_target_ar_ln" = ""; then
8133 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
8134 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
8135 { (exit 1); exit 1; }; }
8138 if test "$cross_compiling" = "yes" ; then
8139 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8140 set dummy ${target_tool_prefix}nm; ac_word=$2
8141 echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8143 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 case $aros_target_nm_ln in
8147 [\\/]* | ?:[\\/]*)
8148 ac_cv_path_aros_target_nm_ln="$aros_target_nm_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8158 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8162 done
8163 done
8166 esac
8168 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8170 if test -n "$aros_target_nm_ln"; then
8171 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8172 echo "${ECHO_T}$aros_target_nm_ln" >&6
8173 else
8174 echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6
8178 else
8179 if test "$GCC" = "yes"; then
8180 aros_gcc_nm=`$CC -print-prog-name=nm`
8181 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8182 set dummy `basename $aros_gcc_nm`; ac_word=$2
8183 echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8185 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 case $aros_target_nm_ln in
8189 [\\/]* | ?:[\\/]*)
8190 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in `dirname $aros_gcc_nm`
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 break 2
8204 done
8205 done
8208 esac
8210 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8212 if test -n "$aros_target_nm_ln"; then
8213 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8214 echo "${ECHO_T}$aros_target_nm_ln" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8221 if test "$aros_target_nm_ln" = ""; then
8222 # Extract the first word of "nm", so it can be a program name with args.
8223 set dummy nm; ac_word=$2
8224 echo "$as_me:$LINENO: checking for $ac_word" >&5
8225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8226 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 case $aros_target_nm_ln in
8230 [\\/]* | ?:[\\/]*)
8231 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8249 esac
8251 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8253 if test -n "$aros_target_nm_ln"; then
8254 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8255 echo "${ECHO_T}$aros_target_nm_ln" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258 echo "${ECHO_T}no" >&6
8264 if test "$aros_target_nm_ln" = ""; then
8265 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
8266 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
8267 { (exit 1); exit 1; }; }
8270 if test "$cross_compiling" = "yes" ; then
8271 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8272 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8273 echo "$as_me:$LINENO: checking for $ac_word" >&5
8274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8275 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 else
8278 case $aros_target_objcopy_ln in
8279 [\\/]* | ?:[\\/]*)
8280 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 for as_dir in $PATH
8286 IFS=$as_save_IFS
8287 test -z "$as_dir" && as_dir=.
8288 for ac_exec_ext in '' $ac_executable_extensions; do
8289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 break 2
8294 done
8295 done
8298 esac
8300 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8302 if test -n "$aros_target_objcopy_ln"; then
8303 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8304 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8305 else
8306 echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6
8310 else
8311 if test "$GCC" = "yes"; then
8312 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8313 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8314 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8315 echo "$as_me:$LINENO: checking for $ac_word" >&5
8316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8317 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 case $aros_target_objcopy_ln in
8321 [\\/]* | ?:[\\/]*)
8322 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in `dirname $aros_gcc_objcopy`
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8340 esac
8342 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8344 if test -n "$aros_target_objcopy_ln"; then
8345 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8346 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8347 else
8348 echo "$as_me:$LINENO: result: no" >&5
8349 echo "${ECHO_T}no" >&6
8353 if test "$aros_target_objcopy_ln" = ""; then
8354 # Extract the first word of "objcopy", so it can be a program name with args.
8355 set dummy objcopy; ac_word=$2
8356 echo "$as_me:$LINENO: checking for $ac_word" >&5
8357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8358 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 case $aros_target_objcopy_ln in
8362 [\\/]* | ?:[\\/]*)
8363 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8381 esac
8383 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8385 if test -n "$aros_target_objcopy_ln"; then
8386 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8387 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8388 else
8389 echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6
8396 if test "$aros_target_objcopy_ln" = ""; then
8397 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
8398 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
8399 { (exit 1); exit 1; }; }
8402 if test "$cross_compiling" = "yes" ; then
8403 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8404 set dummy ${target_tool_prefix}objdump; ac_word=$2
8405 echo "$as_me:$LINENO: checking for $ac_word" >&5
8406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8407 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410 case $aros_target_objdump_ln in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8430 esac
8432 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8434 if test -n "$aros_target_objdump_ln"; then
8435 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8436 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8437 else
8438 echo "$as_me:$LINENO: result: no" >&5
8439 echo "${ECHO_T}no" >&6
8442 else
8443 if test "$GCC" = "yes"; then
8444 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8445 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8446 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8447 echo "$as_me:$LINENO: checking for $ac_word" >&5
8448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8449 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452 case $aros_target_objdump_ln in
8453 [\\/]* | ?:[\\/]*)
8454 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in `dirname $aros_gcc_objdump`
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8464 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8472 esac
8474 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8476 if test -n "$aros_target_objdump_ln"; then
8477 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8478 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8485 if test "$aros_target_objdump_ln" = ""; then
8486 # Extract the first word of "objdump", so it can be a program name with args.
8487 set dummy objdump; ac_word=$2
8488 echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8490 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 case $aros_target_objdump_ln in
8494 [\\/]* | ?:[\\/]*)
8495 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8509 done
8510 done
8513 esac
8515 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8517 if test -n "$aros_target_objdump_ln"; then
8518 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8519 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8528 if test "$aros_target_objdump_ln" = ""; then
8529 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
8530 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
8531 { (exit 1); exit 1; }; }
8534 if test "$cross_compiling" = "yes" ; then
8535 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8536 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8537 echo "$as_me:$LINENO: checking for $ac_word" >&5
8538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8539 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 case $aros_target_ranlib_ln in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8554 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8562 esac
8564 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8566 if test -n "$aros_target_ranlib_ln"; then
8567 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8568 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8569 else
8570 echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6
8574 else
8575 if test "$GCC" = "yes"; then
8576 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8577 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8578 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8579 echo "$as_me:$LINENO: checking for $ac_word" >&5
8580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 case $aros_target_ranlib_ln in
8585 [\\/]* | ?:[\\/]*)
8586 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in `dirname $aros_gcc_ranlib`
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8600 done
8601 done
8604 esac
8606 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8608 if test -n "$aros_target_ranlib_ln"; then
8609 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8610 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8617 if test "$aros_target_ranlib_ln" = ""; then
8618 # Extract the first word of "ranlib", so it can be a program name with args.
8619 set dummy ranlib; ac_word=$2
8620 echo "$as_me:$LINENO: checking for $ac_word" >&5
8621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8622 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 case $aros_target_ranlib_ln in
8626 [\\/]* | ?:[\\/]*)
8627 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8641 done
8642 done
8645 esac
8647 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8649 if test -n "$aros_target_ranlib_ln"; then
8650 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8651 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8652 else
8653 echo "$as_me:$LINENO: result: no" >&5
8654 echo "${ECHO_T}no" >&6
8660 if test "$aros_target_ranlib_ln" = ""; then
8661 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
8662 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
8663 { (exit 1); exit 1; }; }
8666 if test "$cross_compiling" = "yes" ; then
8667 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8668 set dummy ${target_tool_prefix}strip; ac_word=$2
8669 echo "$as_me:$LINENO: checking for $ac_word" >&5
8670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8671 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8672 echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674 case $aros_target_strip_ln in
8675 [\\/]* | ?:[\\/]*)
8676 ac_cv_path_aros_target_strip_ln="$aros_target_strip_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688 break 2
8690 done
8691 done
8694 esac
8696 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8698 if test -n "$aros_target_strip_ln"; then
8699 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8700 echo "${ECHO_T}$aros_target_strip_ln" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6
8706 else
8707 if test "$GCC" = "yes"; then
8708 aros_gcc_strip=`$CC -print-prog-name=strip`
8709 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8710 set dummy `basename $aros_gcc_strip`; ac_word=$2
8711 echo "$as_me:$LINENO: checking for $ac_word" >&5
8712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8713 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716 case $aros_target_strip_ln in
8717 [\\/]* | ?:[\\/]*)
8718 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 for as_dir in `dirname $aros_gcc_strip`
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 break 2
8732 done
8733 done
8736 esac
8738 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8740 if test -n "$aros_target_strip_ln"; then
8741 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8742 echo "${ECHO_T}$aros_target_strip_ln" >&6
8743 else
8744 echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6
8749 if test "$aros_target_strip_ln" = ""; then
8750 # Extract the first word of "strip", so it can be a program name with args.
8751 set dummy strip; ac_word=$2
8752 echo "$as_me:$LINENO: checking for $ac_word" >&5
8753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8754 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757 case $aros_target_strip_ln in
8758 [\\/]* | ?:[\\/]*)
8759 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763 for as_dir in $PATH
8765 IFS=$as_save_IFS
8766 test -z "$as_dir" && as_dir=.
8767 for ac_exec_ext in '' $ac_executable_extensions; do
8768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8771 break 2
8773 done
8774 done
8777 esac
8779 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8781 if test -n "$aros_target_strip_ln"; then
8782 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8783 echo "${ECHO_T}$aros_target_strip_ln" >&6
8784 else
8785 echo "$as_me:$LINENO: result: no" >&5
8786 echo "${ECHO_T}no" >&6
8792 if test "$aros_target_strip_ln" = ""; then
8793 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
8794 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
8795 { (exit 1); exit 1; }; }
8798 if test "$GCC" = "yes"; then
8799 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
8802 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8803 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8804 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8805 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8806 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8807 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8808 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8810 # aros_cc_pre is a variable that is added to the front of the compiler name
8811 # in the generated aros-gcc shell script. We need this to enable the cache
8812 # to work across cleaned builds. Also, support DISTCC using the correct
8813 # environment variable.
8816 if test "x${DISTCC}" != "x" ; then
8817 if test "x${CCACHE}" != "x" ; then
8818 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
8819 else
8820 aros_cc_pre="${DISTCC} "
8822 else
8823 if test "x${CCACHE}" != "x" ; then
8824 aros_cc_pre="${CCACHE} "
8828 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8830 aros_target_nostdinc_cflags=-nostdinc
8832 aros_target_nostartup_ldflags=-nostartfiles
8834 aros_target_nix_ldflags=-nix
8836 aros_target_detach_ldflags=-detach
8838 aros_target_nostdlib_ldflags=-nostdlib
8841 # Target tools
8842 aros_target_cc="${prefix}-gcc"
8843 aros_target_as="${prefix}-as"
8844 aros_target_ld="${prefix}-ld"
8845 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
8846 aros_target_objcopy=${prefix}-objcopy
8847 aros_target_objdump=${prefix}-objdump
8848 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
8849 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
8850 aros_kernel_nm="${prefix}-nm"
8851 aros_target_strip=${prefix}-strip
8853 #-----------------------------------------------------------------------------
8854 # See if we can compile SHM support
8855 HAVE_XSHM_SUPPORT=0
8856 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8857 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8858 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8859 if test -z "$x_includes" ; then
8860 CFLAGS=""
8861 else
8862 CFLAGS="-I $x_includes"
8864 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8872 #include <sys/types.h>
8873 #include <X11/Xlib.h>
8874 #include <X11/Xutil.h>
8875 #include <X11/keysym.h>
8876 #include <X11/cursorfont.h>
8877 #include <sys/ipc.h>
8878 #include <sys/shm.h>
8879 #include <X11/extensions/XShm.h>
8881 main ()
8884 static XShmSegmentInfo shminfo;
8885 static Display *display;
8886 XShmAttach(display, &shminfo);
8887 XSync(display,0);
8888 shmctl(shminfo.shmid, IPC_RMID, 0);
8891 return 0;
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 HAVE_XSHM_SUPPORT=1
8917 echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 HAVE_XSHM_SUPPORT=0
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8927 rm -f conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8931 #-----------------------------------------------------------------------------
8932 # See if we can compile VIDMODE support
8933 HAVE_VIDMODE_SUPPORT=0
8934 if [ "x$no_x" != "xyes" ]; then
8935 LIBS=""
8936 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8937 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8938 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h. */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8956 char XF86VidModeQueryExtension ();
8958 main ()
8960 XF86VidModeQueryExtension ();
8962 return 0;
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8968 ac_status=$?
8969 grep -v '^ *+' conftest.er1 >conftest.err
8970 rm -f conftest.er1
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8994 rm -f conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LIBS=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8999 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
9000 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9001 HAVE_VIDMODE_SUPPORT=1
9002 else
9003 HAVE_VIDMODE_SUPPORT=0
9009 # Find the system include path. We can suggest that an alternative is
9010 # used if we don't get it correct. The default is to use /usr/include.
9011 # Which is set in the aros_target_incl_def variable.
9013 # Check whether --enable-includes or --disable-includes was given.
9014 if test "${enable_includes+set}" = set; then
9015 enableval="$enable_includes"
9016 aros_target_incl=$enable_includes
9017 else
9018 aros_target_incl=$aros_target_incl_def
9021 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9022 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
9023 if test "$aros_target_cc_includes" = "" ; then
9024 #try to guess where the directory is
9025 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9026 if ! test -d $aros_target_cc_includes; then
9027 #the directory doesn't exist, we need to do some more work
9028 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9030 #these are the headers we're looling for
9031 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9032 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9033 zutil.h"
9035 dirs=
9036 for h in $headers; do
9037 #which other headers each of the above headers needs?
9038 deps=$(echo "#include <$h>" | \
9039 $aros_host_cc -E -M - 2>/dev/null | \
9040 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9042 #copy all the needed headers to a directory beneath gendir
9043 for d in $deps; do
9044 h=$(basename $d)
9045 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9046 sed -n "s,^.*/include\(/.*\),\1,p")
9047 ! test -d $dir && mkdir -p $dir
9048 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9049 done
9050 done
9053 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9054 echo "${ECHO_T}$aros_target_cc_includes" >&6
9056 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9057 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
9059 # Check whether --with-resolution or --without-resolution was given.
9060 if test "${with_resolution+set}" = set; then
9061 withval="$with_resolution"
9062 resolution=$withval
9063 else
9064 resolution=none
9066 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9067 if test "$resolution" = "yes" ; then
9068 resolution="none"
9070 if test "$resolution" = "no" ; then
9071 resolution="none"
9073 if test "$resolution" != "none" ; then
9074 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9075 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9076 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9078 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9079 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
9080 aros_cv_default_wbwidth=$aros_default_wbwidth
9081 aros_cv_default_wbheight=$aros_default_wbheight
9082 aros_cv_default_wbdepth=$aros_default_wbdepth
9084 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9085 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
9086 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
9087 if test "${enable_bochs_hack+set}" = set; then
9088 enableval="$enable_bochs_hack"
9089 bochs_hack="yes"
9090 else
9091 bochs_hack="no"
9093 if test "$bochs_hack" = "yes" ; then
9094 aros_bochs_hack="1"
9096 echo "$as_me:$LINENO: result: $bochs_hack" >&5
9097 echo "${ECHO_T}$bochs_hack" >&6
9099 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9100 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
9102 # Check whether --with-serial-debug or --without-serial-debug was given.
9103 if test "${with_serial_debug+set}" = set; then
9104 withval="$with_serial_debug"
9105 serial_debug=$withval
9106 else
9107 serial_debug=none
9109 if test "$serial_debug" = "yes" ; then
9110 serial_debug="2"
9112 if test "$serial_debug" = "no" ; then
9113 serial_debug="none"
9115 if test "$serial_debug" != "none" ; then
9116 aros_serial_debug=$serial_debug
9117 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9118 echo "${ECHO_T}on port $serial_debug" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121 echo "${ECHO_T}no" >&6
9124 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9125 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
9126 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
9127 if test "${enable_palm_debug_hack+set}" = set; then
9128 enableval="$enable_palm_debug_hack"
9129 palm_debug_hack="yes"
9130 else
9131 palm_debug_hack="no"
9133 if test "$palm_debug_hack" = "yes" ; then
9134 aros_palm_debug_hack="1"
9136 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9137 echo "${ECHO_T}$palm_debug_hack" >&6
9140 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9141 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
9142 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
9143 if test "${enable_nesting_supervisor+set}" = set; then
9144 enableval="$enable_nesting_supervisor"
9145 nesting_supervisor="yes"
9146 else
9147 nesting_supervisor="no"
9149 if test "$nesting_supervisor" = "yes" ; then
9150 aros_nesting_supervisor="1"
9152 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9153 echo "${ECHO_T}$nesting_supervisor" >&6
9157 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9158 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
9159 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
9160 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
9161 if test "${enable_xshm_extension+set}" = set; then
9162 enableval="$enable_xshm_extension"
9163 xshm_extension="$enableval"
9164 else
9165 xshm_extension="yes"
9167 if test "$xshm_extension" = "no" ; then
9168 DO_XSHM_SUPPORT="0"
9170 echo "$as_me:$LINENO: result: $xshm_extension" >&5
9171 echo "${ECHO_T}$xshm_extension" >&6
9172 else
9173 DO_XSHM_SUPPORT="0"
9176 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
9177 echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
9178 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6
9179 # Check whether --enable-vidmodeextension or --disable-vidmodeextension was given.
9180 if test "${enable_vidmodeextension+set}" = set; then
9181 enableval="$enable_vidmodeextension"
9182 vidmode_extension="$enableval"
9183 else
9184 vidmode_extension="yes"
9186 if test "$vidmode_extension" = "no" ; then
9187 DO_VIDMODE_SUPPORT="0"
9189 echo "$as_me:$LINENO: result: $vidmode_extension" >&5
9190 echo "${ECHO_T}$vidmode_extension" >&6
9191 else
9192 DO_VIDMODE_SUPPORT="0"
9196 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
9197 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
9198 # Check whether --enable-dbus or --disable-dbus was given.
9199 if test "${enable_dbus+set}" = set; then
9200 enableval="$enable_dbus"
9201 dbus="yes"
9202 else
9203 dbus="no"
9205 if test "$dbus" = "yes" ; then
9206 ENABLE_DBUS=1
9207 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
9208 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
9209 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
9210 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
9211 else
9212 ENABLE_DBUS=0
9214 echo "$as_me:$LINENO: result: $dbus" >&5
9215 echo "${ECHO_T}$dbus" >&6
9219 # Generic
9226 # Host related
9249 # Target Related
9288 # Graphics Related
9301 # Native version related
9305 # Palm native version related
9308 # Unix/Hosted version related
9311 # DBUS related
9318 # Debug related
9324 # Collect-aros stuff: "-ius" to ignore undefined symbols
9327 # C compiler related
9330 case "$aros_flavour" in
9331 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
9332 aros_flavour="emulation" ;;
9333 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
9334 aros_flavour="emulation" ;;
9335 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
9336 aros_flavour="standalone";;
9337 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
9338 aros_flavour="native" ;;
9339 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9340 aros_flavour="native" ;;
9341 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
9342 aros_flavour="linklib" ;;
9343 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9344 aros_flavour="palmnative" ;;
9345 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
9346 aros_flavour="mac68knative" ;;
9347 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
9348 aros_flavour="ppcnative" ;;
9349 esac
9351 if test -z "$aros_gui_basedir" ; then
9352 aros_gui_libdir="$x_libraries"
9353 if test -z "$x_libraries" ; then
9354 aros_gui_ldflags=""
9355 else
9356 aros_gui_ldflags="-L $x_libraries"
9358 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
9359 aros_gui_libflags="-lX11 -lXext"
9360 else
9361 aros_gui_libflags="-lX11"
9363 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
9364 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
9367 aros_gui_incdir="$x_includes"
9368 if test -z "$x_includes" ; then
9369 aros_gui_ccflags=""
9370 else
9371 aros_gui_ccflags="-I $x_includes"
9373 else
9374 if test -n "$aros_gui_basedir" ; then
9375 aros_gui_libdir="${aros_gui_basedir}/lib"
9376 aros_gui_incdir="${aros_gui_basedir}/include"
9379 if test -n "$aros_gui_libdir" ; then
9380 aros_gui_ldflags="-L ${aros_gui_libdir}"
9383 if test -n "$aros_gui_incdir" ; then
9384 aros_gui_ccflags="-I ${aros_gui_incdir}"
9385 else
9386 aros_gui_incdir="${aros_sysincludes}"
9387 aros_gui_ccflags=""
9391 if test ! -d ${aros_inc_dir} ; then
9392 ${MKDIR} ${aros_inc_dir}
9394 if test ! -d ${aros_geninc_dir} ; then
9395 ${MKDIR} ${aros_geninc_dir}
9397 if test ! -d ${aros_hostcfg_dir} ; then
9398 ${MKDIR} ${aros_hostcfg_dir}
9400 if test ! -d ${aros_targetcfg_dir} ; then
9401 ${MKDIR} ${aros_targetcfg_dir}
9403 if test ! -d ${aros_tools_dir} ; then
9404 ${MKDIR} ${aros_tools_dir}
9406 if test ! -d ${aros_scripts_dir} ; then
9407 ${MKDIR} ${aros_scripts_dir}
9410 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
9413 ac_config_commands="$ac_config_commands compiler_executable"
9415 ac_config_commands="$ac_config_commands genshared_executable"
9417 ac_config_commands="$ac_config_commands genmf_executable"
9419 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
9422 ac_config_files="$ac_config_files Makefile rom/mmakefile ${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/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
9425 cat >confcache <<\_ACEOF
9426 # This file is a shell script that caches the results of configure
9427 # tests run on this system so they can be shared between configure
9428 # scripts and configure runs, see configure's option --config-cache.
9429 # It is not useful on other systems. If it contains results you don't
9430 # want to keep, you may remove or edit it.
9432 # config.status only pays attention to the cache file if you give it
9433 # the --recheck option to rerun configure.
9435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9437 # following values.
9439 _ACEOF
9441 # The following way of writing the cache mishandles newlines in values,
9442 # but we know of no workaround that is simple, portable, and efficient.
9443 # So, don't put newlines in cache variables' values.
9444 # Ultrix sh set writes to stderr and can't be redirected directly,
9445 # and sets the high bit in the cache file unless we assign to the vars.
9447 (set) 2>&1 |
9448 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9449 *ac_space=\ *)
9450 # `set' does not quote correctly, so add quotes (double-quote
9451 # substitution turns \\\\ into \\, and sed turns \\ into \).
9452 sed -n \
9453 "s/'/'\\\\''/g;
9454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9457 # `set' quotes correctly as required by POSIX, so do not add quotes.
9458 sed -n \
9459 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9461 esac;
9463 sed '
9464 t clear
9465 : clear
9466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9467 t end
9468 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9469 : end' >>confcache
9470 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9471 if test -w $cache_file; then
9472 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9473 cat confcache >$cache_file
9474 else
9475 echo "not updating unwritable cache $cache_file"
9478 rm -f confcache
9480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9481 # Let make expand exec_prefix.
9482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9486 # trailing colons and then remove the whole line if VPATH becomes empty
9487 # (actually we leave an empty line to preserve line numbers).
9488 if test "x$srcdir" = x.; then
9489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9490 s/:*\$(srcdir):*/:/;
9491 s/:*\${srcdir}:*/:/;
9492 s/:*@srcdir@:*/:/;
9493 s/^\([^=]*=[ ]*\):*/\1/;
9494 s/:*$//;
9495 s/^[^=]*=[ ]*$//;
9499 DEFS=-DHAVE_CONFIG_H
9501 ac_libobjs=
9502 ac_ltlibobjs=
9503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9504 # 1. Remove the extension, and $U if already installed.
9505 ac_i=`echo "$ac_i" |
9506 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9507 # 2. Add them.
9508 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9509 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9510 done
9511 LIBOBJS=$ac_libobjs
9513 LTLIBOBJS=$ac_ltlibobjs
9517 : ${CONFIG_STATUS=./config.status}
9518 ac_clean_files_save=$ac_clean_files
9519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9520 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9521 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9522 cat >$CONFIG_STATUS <<_ACEOF
9523 #! $SHELL
9524 # Generated by $as_me.
9525 # Run this file to recreate the current configuration.
9526 # Compiler output produced by configure, useful for debugging
9527 # configure, is in config.log if it exists.
9529 debug=false
9530 ac_cs_recheck=false
9531 ac_cs_silent=false
9532 SHELL=\${CONFIG_SHELL-$SHELL}
9533 _ACEOF
9535 cat >>$CONFIG_STATUS <<\_ACEOF
9536 ## --------------------- ##
9537 ## M4sh Initialization. ##
9538 ## --------------------- ##
9540 # Be Bourne compatible
9541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9542 emulate sh
9543 NULLCMD=:
9544 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9545 # is contrary to our usage. Disable this feature.
9546 alias -g '${1+"$@"}'='"$@"'
9547 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9548 set -o posix
9550 DUALCASE=1; export DUALCASE # for MKS sh
9552 # Support unset when possible.
9553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9554 as_unset=unset
9555 else
9556 as_unset=false
9560 # Work around bugs in pre-3.0 UWIN ksh.
9561 $as_unset ENV MAIL MAILPATH
9562 PS1='$ '
9563 PS2='> '
9564 PS4='+ '
9566 # NLS nuisances.
9567 for as_var in \
9568 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9569 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9570 LC_TELEPHONE LC_TIME
9572 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9573 eval $as_var=C; export $as_var
9574 else
9575 $as_unset $as_var
9577 done
9579 # Required to use basename.
9580 if expr a : '\(a\)' >/dev/null 2>&1; then
9581 as_expr=expr
9582 else
9583 as_expr=false
9586 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9587 as_basename=basename
9588 else
9589 as_basename=false
9593 # Name of the executable.
9594 as_me=`$as_basename "$0" ||
9595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9596 X"$0" : 'X\(//\)$' \| \
9597 X"$0" : 'X\(/\)$' \| \
9598 . : '\(.\)' 2>/dev/null ||
9599 echo X/"$0" |
9600 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9601 /^X\/\(\/\/\)$/{ s//\1/; q; }
9602 /^X\/\(\/\).*/{ s//\1/; q; }
9603 s/.*/./; q'`
9606 # PATH needs CR, and LINENO needs CR and PATH.
9607 # Avoid depending upon Character Ranges.
9608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9611 as_cr_digits='0123456789'
9612 as_cr_alnum=$as_cr_Letters$as_cr_digits
9614 # The user is always right.
9615 if test "${PATH_SEPARATOR+set}" != set; then
9616 echo "#! /bin/sh" >conf$$.sh
9617 echo "exit 0" >>conf$$.sh
9618 chmod +x conf$$.sh
9619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9620 PATH_SEPARATOR=';'
9621 else
9622 PATH_SEPARATOR=:
9624 rm -f conf$$.sh
9628 as_lineno_1=$LINENO
9629 as_lineno_2=$LINENO
9630 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9631 test "x$as_lineno_1" != "x$as_lineno_2" &&
9632 test "x$as_lineno_3" = "x$as_lineno_2" || {
9633 # Find who we are. Look in the path if we contain no path at all
9634 # relative or not.
9635 case $0 in
9636 *[\\/]* ) as_myself=$0 ;;
9637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9643 done
9646 esac
9647 # We did not find ourselves, most probably we were run as `sh COMMAND'
9648 # in which case we are not to be found in the path.
9649 if test "x$as_myself" = x; then
9650 as_myself=$0
9652 if test ! -f "$as_myself"; then
9653 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9654 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9655 { (exit 1); exit 1; }; }
9657 case $CONFIG_SHELL in
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for as_base in sh bash ksh sh5; do
9665 case $as_dir in
9667 if ("$as_dir/$as_base" -c '
9668 as_lineno_1=$LINENO
9669 as_lineno_2=$LINENO
9670 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9671 test "x$as_lineno_1" != "x$as_lineno_2" &&
9672 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9673 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9674 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9675 CONFIG_SHELL=$as_dir/$as_base
9676 export CONFIG_SHELL
9677 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9678 fi;;
9679 esac
9680 done
9681 done
9683 esac
9685 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9686 # uniformly replaced by the line number. The first 'sed' inserts a
9687 # line-number line before each line; the second 'sed' does the real
9688 # work. The second script uses 'N' to pair each line-number line
9689 # with the numbered line, and appends trailing '-' during
9690 # substitution so that $LINENO is not a special case at line end.
9691 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9692 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9693 sed '=' <$as_myself |
9694 sed '
9696 s,$,-,
9697 : loop
9698 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9699 t loop
9700 s,-$,,
9701 s,^['$as_cr_digits']*\n,,
9702 ' >$as_me.lineno &&
9703 chmod +x $as_me.lineno ||
9704 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9705 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9706 { (exit 1); exit 1; }; }
9708 # Don't try to exec as it changes $[0], causing all sort of problems
9709 # (the dirname of $[0] is not the place where we might find the
9710 # original and so on. Autoconf is especially sensible to this).
9711 . ./$as_me.lineno
9712 # Exit status is that of the last command.
9713 exit
9717 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9718 *c*,-n*) ECHO_N= ECHO_C='
9719 ' ECHO_T=' ' ;;
9720 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9721 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9722 esac
9724 if expr a : '\(a\)' >/dev/null 2>&1; then
9725 as_expr=expr
9726 else
9727 as_expr=false
9730 rm -f conf$$ conf$$.exe conf$$.file
9731 echo >conf$$.file
9732 if ln -s conf$$.file conf$$ 2>/dev/null; then
9733 # We could just check for DJGPP; but this test a) works b) is more generic
9734 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9735 if test -f conf$$.exe; then
9736 # Don't use ln at all; we don't have any links
9737 as_ln_s='cp -p'
9738 else
9739 as_ln_s='ln -s'
9741 elif ln conf$$.file conf$$ 2>/dev/null; then
9742 as_ln_s=ln
9743 else
9744 as_ln_s='cp -p'
9746 rm -f conf$$ conf$$.exe conf$$.file
9748 if mkdir -p . 2>/dev/null; then
9749 as_mkdir_p=:
9750 else
9751 test -d ./-p && rmdir ./-p
9752 as_mkdir_p=false
9755 as_executable_p="test -f"
9757 # Sed expression to map a string onto a valid CPP name.
9758 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9760 # Sed expression to map a string onto a valid variable name.
9761 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9764 # IFS
9765 # We need space, tab and new line, in precisely that order.
9766 as_nl='
9768 IFS=" $as_nl"
9770 # CDPATH.
9771 $as_unset CDPATH
9773 exec 6>&1
9775 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9776 # report actual input values of CONFIG_FILES etc. instead of their
9777 # values after options handling. Logging --version etc. is OK.
9778 exec 5>>config.log
9780 echo
9781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9782 ## Running $as_me. ##
9783 _ASBOX
9784 } >&5
9785 cat >&5 <<_CSEOF
9787 This file was extended by $as_me, which was
9788 generated by GNU Autoconf 2.59. Invocation command line was
9790 CONFIG_FILES = $CONFIG_FILES
9791 CONFIG_HEADERS = $CONFIG_HEADERS
9792 CONFIG_LINKS = $CONFIG_LINKS
9793 CONFIG_COMMANDS = $CONFIG_COMMANDS
9794 $ $0 $@
9796 _CSEOF
9797 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9798 echo >&5
9799 _ACEOF
9801 # Files that config.status was made for.
9802 if test -n "$ac_config_files"; then
9803 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9806 if test -n "$ac_config_headers"; then
9807 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9810 if test -n "$ac_config_links"; then
9811 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9814 if test -n "$ac_config_commands"; then
9815 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9818 cat >>$CONFIG_STATUS <<\_ACEOF
9820 ac_cs_usage="\
9821 \`$as_me' instantiates files from templates according to the
9822 current configuration.
9824 Usage: $0 [OPTIONS] [FILE]...
9826 -h, --help print this help, then exit
9827 -V, --version print version number, then exit
9828 -q, --quiet do not print progress messages
9829 -d, --debug don't remove temporary files
9830 --recheck update $as_me by reconfiguring in the same conditions
9831 --file=FILE[:TEMPLATE]
9832 instantiate the configuration file FILE
9833 --header=FILE[:TEMPLATE]
9834 instantiate the configuration header FILE
9836 Configuration files:
9837 $config_files
9839 Configuration headers:
9840 $config_headers
9842 Configuration commands:
9843 $config_commands
9845 Report bugs to <bug-autoconf@gnu.org>."
9846 _ACEOF
9848 cat >>$CONFIG_STATUS <<_ACEOF
9849 ac_cs_version="\\
9850 config.status
9851 configured by $0, generated by GNU Autoconf 2.59,
9852 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9854 Copyright (C) 2003 Free Software Foundation, Inc.
9855 This config.status script is free software; the Free Software Foundation
9856 gives unlimited permission to copy, distribute and modify it."
9857 srcdir=$srcdir
9858 _ACEOF
9860 cat >>$CONFIG_STATUS <<\_ACEOF
9861 # If no file are specified by the user, then we need to provide default
9862 # value. By we need to know if files were specified by the user.
9863 ac_need_defaults=:
9864 while test $# != 0
9866 case $1 in
9867 --*=*)
9868 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9869 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9870 ac_shift=:
9873 ac_option=$1
9874 ac_optarg=$2
9875 ac_shift=shift
9877 *) # This is not an option, so the user has probably given explicit
9878 # arguments.
9879 ac_option=$1
9880 ac_need_defaults=false;;
9881 esac
9883 case $ac_option in
9884 # Handling of the options.
9885 _ACEOF
9886 cat >>$CONFIG_STATUS <<\_ACEOF
9887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9888 ac_cs_recheck=: ;;
9889 --version | --vers* | -V )
9890 echo "$ac_cs_version"; exit 0 ;;
9891 --he | --h)
9892 # Conflict between --help and --header
9893 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9894 Try \`$0 --help' for more information." >&5
9895 echo "$as_me: error: ambiguous option: $1
9896 Try \`$0 --help' for more information." >&2;}
9897 { (exit 1); exit 1; }; };;
9898 --help | --hel | -h )
9899 echo "$ac_cs_usage"; exit 0 ;;
9900 --debug | --d* | -d )
9901 debug=: ;;
9902 --file | --fil | --fi | --f )
9903 $ac_shift
9904 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9905 ac_need_defaults=false;;
9906 --header | --heade | --head | --hea )
9907 $ac_shift
9908 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9909 ac_need_defaults=false;;
9910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9912 ac_cs_silent=: ;;
9914 # This is an error.
9915 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9916 Try \`$0 --help' for more information." >&5
9917 echo "$as_me: error: unrecognized option: $1
9918 Try \`$0 --help' for more information." >&2;}
9919 { (exit 1); exit 1; }; } ;;
9921 *) ac_config_targets="$ac_config_targets $1" ;;
9923 esac
9924 shift
9925 done
9927 ac_configure_extra_args=
9929 if $ac_cs_silent; then
9930 exec 6>/dev/null
9931 ac_configure_extra_args="$ac_configure_extra_args --silent"
9934 _ACEOF
9935 cat >>$CONFIG_STATUS <<_ACEOF
9936 if \$ac_cs_recheck; then
9937 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9938 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9941 _ACEOF
9943 cat >>$CONFIG_STATUS <<_ACEOF
9945 # INIT-COMMANDS section.
9949 aros_tools_dir=${aros_tools_dir}
9950 aros_target_cpu=${aros_target_cpu}
9951 aros_target_arch=${aros_target_arch}
9952 aros_target_suffix=${aros_target_suffix}
9953 aros_target_nm_ln=${aros_target_nm_ln}
9954 aros_target_as_ln=${aros_target_as_ln}
9955 aros_target_ar_ln=${aros_target_ar_ln}
9956 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9957 aros_target_objdump_ln=${aros_target_objdump_ln}
9958 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9959 aros_target_strip_ln=${aros_target_strip_ln}
9962 aros_scripts_dir=${aros_scripts_dir}
9964 aros_tools_dir=${aros_tools_dir}
9967 _ACEOF
9971 cat >>$CONFIG_STATUS <<\_ACEOF
9972 for ac_config_target in $ac_config_targets
9974 case "$ac_config_target" in
9975 # Handling of arguments.
9976 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9977 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9978 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9979 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9980 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9981 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9982 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9983 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9984 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9985 "${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" ;;
9986 "${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" ;;
9987 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9988 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9989 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9990 "tools/collect-aros/env.h" ) CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
9991 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9992 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9993 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9994 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9995 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9996 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9997 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9998 { (exit 1); exit 1; }; };;
9999 esac
10000 done
10002 # If the user did not use the arguments to specify the items to instantiate,
10003 # then the envvar interface is used. Set only those that are not.
10004 # We use the long form for the default assignment because of an extremely
10005 # bizarre bug on SunOS 4.1.3.
10006 if $ac_need_defaults; then
10007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10012 # Have a temporary directory for convenience. Make it in the build tree
10013 # simply because there is no reason to put it here, and in addition,
10014 # creating and moving files from /tmp can sometimes cause problems.
10015 # Create a temporary directory, and hook for its removal unless debugging.
10016 $debug ||
10018 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10019 trap '{ (exit 1); exit 1; }' 1 2 13 15
10022 # Create a (secure) tmp directory for tmp files.
10025 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10026 test -n "$tmp" && test -d "$tmp"
10027 } ||
10029 tmp=./confstat$$-$RANDOM
10030 (umask 077 && mkdir $tmp)
10031 } ||
10033 echo "$me: cannot create a temporary directory in ." >&2
10034 { (exit 1); exit 1; }
10037 _ACEOF
10039 cat >>$CONFIG_STATUS <<_ACEOF
10042 # CONFIG_FILES section.
10045 # No need to generate the scripts if there are no CONFIG_FILES.
10046 # This happens for instance when ./config.status config.h
10047 if test -n "\$CONFIG_FILES"; then
10048 # Protect against being on the right side of a sed subst in config.status.
10049 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10050 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10051 s,@SHELL@,$SHELL,;t t
10052 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10053 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10054 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10055 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10056 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10057 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10058 s,@exec_prefix@,$exec_prefix,;t t
10059 s,@prefix@,$prefix,;t t
10060 s,@program_transform_name@,$program_transform_name,;t t
10061 s,@bindir@,$bindir,;t t
10062 s,@sbindir@,$sbindir,;t t
10063 s,@libexecdir@,$libexecdir,;t t
10064 s,@datadir@,$datadir,;t t
10065 s,@sysconfdir@,$sysconfdir,;t t
10066 s,@sharedstatedir@,$sharedstatedir,;t t
10067 s,@localstatedir@,$localstatedir,;t t
10068 s,@libdir@,$libdir,;t t
10069 s,@includedir@,$includedir,;t t
10070 s,@oldincludedir@,$oldincludedir,;t t
10071 s,@infodir@,$infodir,;t t
10072 s,@mandir@,$mandir,;t t
10073 s,@build_alias@,$build_alias,;t t
10074 s,@host_alias@,$host_alias,;t t
10075 s,@target_alias@,$target_alias,;t t
10076 s,@DEFS@,$DEFS,;t t
10077 s,@ECHO_C@,$ECHO_C,;t t
10078 s,@ECHO_N@,$ECHO_N,;t t
10079 s,@ECHO_T@,$ECHO_T,;t t
10080 s,@LIBS@,$LIBS,;t t
10081 s,@build@,$build,;t t
10082 s,@build_cpu@,$build_cpu,;t t
10083 s,@build_vendor@,$build_vendor,;t t
10084 s,@build_os@,$build_os,;t t
10085 s,@host@,$host,;t t
10086 s,@host_cpu@,$host_cpu,;t t
10087 s,@host_vendor@,$host_vendor,;t t
10088 s,@host_os@,$host_os,;t t
10089 s,@CC@,$CC,;t t
10090 s,@CFLAGS@,$CFLAGS,;t t
10091 s,@LDFLAGS@,$LDFLAGS,;t t
10092 s,@CPPFLAGS@,$CPPFLAGS,;t t
10093 s,@ac_ct_CC@,$ac_ct_CC,;t t
10094 s,@EXEEXT@,$EXEEXT,;t t
10095 s,@OBJEXT@,$OBJEXT,;t t
10096 s,@CPP@,$CPP,;t t
10097 s,@AWK@,$AWK,;t t
10098 s,@MMAKE@,$MMAKE,;t t
10099 s,@aros_host_ld@,$aros_host_ld,;t t
10100 s,@aros_host_aclocal@,$aros_host_aclocal,;t t
10101 s,@aros_host_autoconf@,$aros_host_autoconf,;t t
10102 s,@aros_host_autoheader@,$aros_host_autoheader,;t t
10103 s,@aros_host_automake@,$aros_host_automake,;t t
10104 s,@aros_host_ar@,$aros_host_ar,;t t
10105 s,@aros_host_ranlib@,$aros_host_ranlib,;t t
10106 s,@aros_host_strip@,$aros_host_strip,;t t
10107 s,@RM@,$RM,;t t
10108 s,@CP@,$CP,;t t
10109 s,@MV@,$MV,;t t
10110 s,@ECHO@,$ECHO,;t t
10111 s,@MKDIR@,$MKDIR,;t t
10112 s,@TOUCH@,$TOUCH,;t t
10113 s,@SORT@,$SORT,;t t
10114 s,@UNIQ@,$UNIQ,;t t
10115 s,@NOP@,$NOP,;t t
10116 s,@CAT@,$CAT,;t t
10117 s,@BISON@,$BISON,;t t
10118 s,@FLEX@,$FLEX,;t t
10119 s,@PNGTOPNM@,$PNGTOPNM,;t t
10120 s,@PPMTOILBM@,$PPMTOILBM,;t t
10121 s,@SED@,$SED,;t t
10122 s,@CHMOD@,$CHMOD,;t t
10123 s,@PYTHON@,$PYTHON,;t t
10124 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
10125 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
10126 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
10127 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
10128 s,@pythondir@,$pythondir,;t t
10129 s,@pkgpythondir@,$pkgpythondir,;t t
10130 s,@pyexecdir@,$pyexecdir,;t t
10131 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
10132 s,@FOR@,$FOR,;t t
10133 s,@IF@,$IF,;t t
10134 s,@TEST@,$TEST,;t t
10135 s,@CMP@,$CMP,;t t
10136 s,@EGREP@,$EGREP,;t t
10137 s,@LIBOBJS@,$LIBOBJS,;t t
10138 s,@DISTCC@,$DISTCC,;t t
10139 s,@CCACHE@,$CCACHE,;t t
10140 s,@aros_kernel_cc@,$aros_kernel_cc,;t t
10141 s,@aros_target_as_ln@,$aros_target_as_ln,;t t
10142 s,@aros_kernel_ld@,$aros_kernel_ld,;t t
10143 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
10144 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
10145 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
10146 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
10147 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
10148 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
10149 s,@aros_target_nostdinc_cflags@,$aros_target_nostdinc_cflags,;t t
10150 s,@aros_target_nostartup_ldflags@,$aros_target_nostartup_ldflags,;t t
10151 s,@aros_target_nix_ldflags@,$aros_target_nix_ldflags,;t t
10152 s,@aros_target_detach_ldflags@,$aros_target_detach_ldflags,;t t
10153 s,@aros_target_nostdlib_ldflags@,$aros_target_nostdlib_ldflags,;t t
10154 s,@aros_arch@,$aros_arch,;t t
10155 s,@aros_cpu@,$aros_cpu,;t t
10156 s,@aros_flavour@,$aros_flavour,;t t
10157 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
10158 s,@TOPDIR@,$TOPDIR,;t t
10159 s,@aros_cc_pre@,$aros_cc_pre,;t t
10160 s,@aros_host_arch@,$aros_host_arch,;t t
10161 s,@aros_host_cpu@,$aros_host_cpu,;t t
10162 s,@aros_host_cc@,$aros_host_cc,;t t
10163 s,@aros_host_make@,$aros_host_make,;t t
10164 s,@aros_host_cflags@,$aros_host_cflags,;t t
10165 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
10166 s,@aros_host_debug@,$aros_host_debug,;t t
10167 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
10168 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
10169 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
10170 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
10171 s,@aros_tools_dir@,$aros_tools_dir,;t t
10172 s,@aros_target_arch@,$aros_target_arch,;t t
10173 s,@aros_target_cpu@,$aros_target_cpu,;t t
10174 s,@aros_target_variant@,$aros_target_variant,;t t
10175 s,@aros_target_suffix@,$aros_target_suffix,;t t
10176 s,@aros_target_incl@,$aros_target_incl,;t t
10177 s,@aros_target_ar@,$aros_target_ar,;t t
10178 s,@aros_target_ranlib@,$aros_target_ranlib,;t t
10179 s,@aros_kernel_nm@,$aros_kernel_nm,;t t
10180 s,@aros_target_cc@,$aros_target_cc,;t t
10181 s,@aros_target_as@,$aros_target_as,;t t
10182 s,@aros_target_ld@,$aros_target_ld,;t t
10183 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
10184 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
10185 s,@aros_target_objdump@,$aros_target_objdump,;t t
10186 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
10187 s,@aros_target_strip@,$aros_target_strip,;t t
10188 s,@aros_target_nm@,$aros_target_nm,;t t
10189 s,@aros_shared_default@,$aros_shared_default,;t t
10190 s,@aros_shared_ld@,$aros_shared_ld,;t t
10191 s,@aros_object_format@,$aros_object_format,;t t
10192 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
10193 s,@aros_config_cflags@,$aros_config_cflags,;t t
10194 s,@aros_config_aflags@,$aros_config_aflags,;t t
10195 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
10196 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
10197 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
10198 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
10199 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
10200 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
10201 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
10202 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
10203 s,@aros_target_genmap@,$aros_target_genmap,;t t
10204 s,@aros_target_strip_flags@,$aros_target_strip_flags,;t t
10205 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
10206 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
10207 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
10208 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
10209 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
10210 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
10211 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
10212 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
10213 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
10214 s,@DO_VIDMODE_SUPPORT@,$DO_VIDMODE_SUPPORT,;t t
10215 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
10216 s,@aros_serial_debug@,$aros_serial_debug,;t t
10217 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
10218 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
10219 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
10220 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
10221 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
10222 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
10223 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
10224 s,@aros_debug@,$aros_debug,;t t
10225 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
10226 s,@aros_stack_debug@,$aros_stack_debug,;t t
10227 s,@aros_modules_debug@,$aros_modules_debug,;t t
10228 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
10229 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
10230 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10231 CEOF
10233 _ACEOF
10235 cat >>$CONFIG_STATUS <<\_ACEOF
10236 # Split the substitutions into bite-sized pieces for seds with
10237 # small command number limits, like on Digital OSF/1 and HP-UX.
10238 ac_max_sed_lines=48
10239 ac_sed_frag=1 # Number of current file.
10240 ac_beg=1 # First line for current file.
10241 ac_end=$ac_max_sed_lines # Line after last line for current file.
10242 ac_more_lines=:
10243 ac_sed_cmds=
10244 while $ac_more_lines; do
10245 if test $ac_beg -gt 1; then
10246 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10247 else
10248 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10250 if test ! -s $tmp/subs.frag; then
10251 ac_more_lines=false
10252 else
10253 # The purpose of the label and of the branching condition is to
10254 # speed up the sed processing (if there are no `@' at all, there
10255 # is no need to browse any of the substitutions).
10256 # These are the two extra sed commands mentioned above.
10257 (echo ':t
10258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10259 if test -z "$ac_sed_cmds"; then
10260 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10261 else
10262 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10264 ac_sed_frag=`expr $ac_sed_frag + 1`
10265 ac_beg=$ac_end
10266 ac_end=`expr $ac_end + $ac_max_sed_lines`
10268 done
10269 if test -z "$ac_sed_cmds"; then
10270 ac_sed_cmds=cat
10272 fi # test -n "$CONFIG_FILES"
10274 _ACEOF
10275 cat >>$CONFIG_STATUS <<\_ACEOF
10276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10278 case $ac_file in
10279 - | *:- | *:-:* ) # input from stdin
10280 cat >$tmp/stdin
10281 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10283 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10285 * ) ac_file_in=$ac_file.in ;;
10286 esac
10288 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10289 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10291 X"$ac_file" : 'X\(//\)[^/]' \| \
10292 X"$ac_file" : 'X\(//\)$' \| \
10293 X"$ac_file" : 'X\(/\)' \| \
10294 . : '\(.\)' 2>/dev/null ||
10295 echo X"$ac_file" |
10296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10298 /^X\(\/\/\)$/{ s//\1/; q; }
10299 /^X\(\/\).*/{ s//\1/; q; }
10300 s/.*/./; q'`
10301 { if $as_mkdir_p; then
10302 mkdir -p "$ac_dir"
10303 else
10304 as_dir="$ac_dir"
10305 as_dirs=
10306 while test ! -d "$as_dir"; do
10307 as_dirs="$as_dir $as_dirs"
10308 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10310 X"$as_dir" : 'X\(//\)[^/]' \| \
10311 X"$as_dir" : 'X\(//\)$' \| \
10312 X"$as_dir" : 'X\(/\)' \| \
10313 . : '\(.\)' 2>/dev/null ||
10314 echo X"$as_dir" |
10315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10317 /^X\(\/\/\)$/{ s//\1/; q; }
10318 /^X\(\/\).*/{ s//\1/; q; }
10319 s/.*/./; q'`
10320 done
10321 test ! -n "$as_dirs" || mkdir $as_dirs
10322 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10324 { (exit 1); exit 1; }; }; }
10326 ac_builddir=.
10328 if test "$ac_dir" != .; then
10329 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10330 # A "../" for each directory in $ac_dir_suffix.
10331 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10332 else
10333 ac_dir_suffix= ac_top_builddir=
10336 case $srcdir in
10337 .) # No --srcdir option. We are building in place.
10338 ac_srcdir=.
10339 if test -z "$ac_top_builddir"; then
10340 ac_top_srcdir=.
10341 else
10342 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10343 fi ;;
10344 [\\/]* | ?:[\\/]* ) # Absolute path.
10345 ac_srcdir=$srcdir$ac_dir_suffix;
10346 ac_top_srcdir=$srcdir ;;
10347 *) # Relative path.
10348 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10349 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10350 esac
10352 # Do not use `cd foo && pwd` to compute absolute paths, because
10353 # the directories may not exist.
10354 case `pwd` in
10355 .) ac_abs_builddir="$ac_dir";;
10357 case "$ac_dir" in
10358 .) ac_abs_builddir=`pwd`;;
10359 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10360 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10361 esac;;
10362 esac
10363 case $ac_abs_builddir in
10364 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10366 case ${ac_top_builddir}. in
10367 .) ac_abs_top_builddir=$ac_abs_builddir;;
10368 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10369 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10370 esac;;
10371 esac
10372 case $ac_abs_builddir in
10373 .) ac_abs_srcdir=$ac_srcdir;;
10375 case $ac_srcdir in
10376 .) ac_abs_srcdir=$ac_abs_builddir;;
10377 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10378 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10379 esac;;
10380 esac
10381 case $ac_abs_builddir in
10382 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10384 case $ac_top_srcdir in
10385 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10386 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10387 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10388 esac;;
10389 esac
10393 if test x"$ac_file" != x-; then
10394 { echo "$as_me:$LINENO: creating $ac_file" >&5
10395 echo "$as_me: creating $ac_file" >&6;}
10396 rm -f "$ac_file"
10398 # Let's still pretend it is `configure' which instantiates (i.e., don't
10399 # use $as_me), people would be surprised to read:
10400 # /* config.h. Generated by config.status. */
10401 if test x"$ac_file" = x-; then
10402 configure_input=
10403 else
10404 configure_input="$ac_file. "
10406 configure_input=$configure_input"Generated from `echo $ac_file_in |
10407 sed 's,.*/,,'` by configure."
10409 # First look for the input files in the build tree, otherwise in the
10410 # src tree.
10411 ac_file_inputs=`IFS=:
10412 for f in $ac_file_in; do
10413 case $f in
10414 -) echo $tmp/stdin ;;
10415 [\\/$]*)
10416 # Absolute (can't be DOS-style, as IFS=:)
10417 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10418 echo "$as_me: error: cannot find input file: $f" >&2;}
10419 { (exit 1); exit 1; }; }
10420 echo "$f";;
10421 *) # Relative
10422 if test -f "$f"; then
10423 # Build tree
10424 echo "$f"
10425 elif test -f "$srcdir/$f"; then
10426 # Source tree
10427 echo "$srcdir/$f"
10428 else
10429 # /dev/null tree
10430 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10431 echo "$as_me: error: cannot find input file: $f" >&2;}
10432 { (exit 1); exit 1; }; }
10433 fi;;
10434 esac
10435 done` || { (exit 1); exit 1; }
10436 _ACEOF
10437 cat >>$CONFIG_STATUS <<_ACEOF
10438 sed "$ac_vpsub
10439 $extrasub
10440 _ACEOF
10441 cat >>$CONFIG_STATUS <<\_ACEOF
10443 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10444 s,@configure_input@,$configure_input,;t t
10445 s,@srcdir@,$ac_srcdir,;t t
10446 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10447 s,@top_srcdir@,$ac_top_srcdir,;t t
10448 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10449 s,@builddir@,$ac_builddir,;t t
10450 s,@abs_builddir@,$ac_abs_builddir,;t t
10451 s,@top_builddir@,$ac_top_builddir,;t t
10452 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10453 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10454 rm -f $tmp/stdin
10455 if test x"$ac_file" != x-; then
10456 mv $tmp/out $ac_file
10457 else
10458 cat $tmp/out
10459 rm -f $tmp/out
10462 done
10463 _ACEOF
10464 cat >>$CONFIG_STATUS <<\_ACEOF
10467 # CONFIG_HEADER section.
10470 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10471 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10473 # ac_d sets the value in "#define NAME VALUE" lines.
10474 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10475 ac_dB='[ ].*$,\1#\2'
10476 ac_dC=' '
10477 ac_dD=',;t'
10478 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10479 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10480 ac_uB='$,\1#\2define\3'
10481 ac_uC=' '
10482 ac_uD=',;t'
10484 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10486 case $ac_file in
10487 - | *:- | *:-:* ) # input from stdin
10488 cat >$tmp/stdin
10489 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10490 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10491 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10493 * ) ac_file_in=$ac_file.in ;;
10494 esac
10496 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10497 echo "$as_me: creating $ac_file" >&6;}
10499 # First look for the input files in the build tree, otherwise in the
10500 # src tree.
10501 ac_file_inputs=`IFS=:
10502 for f in $ac_file_in; do
10503 case $f in
10504 -) echo $tmp/stdin ;;
10505 [\\/$]*)
10506 # Absolute (can't be DOS-style, as IFS=:)
10507 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10508 echo "$as_me: error: cannot find input file: $f" >&2;}
10509 { (exit 1); exit 1; }; }
10510 # Do quote $f, to prevent DOS paths from being IFS'd.
10511 echo "$f";;
10512 *) # Relative
10513 if test -f "$f"; then
10514 # Build tree
10515 echo "$f"
10516 elif test -f "$srcdir/$f"; then
10517 # Source tree
10518 echo "$srcdir/$f"
10519 else
10520 # /dev/null tree
10521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10522 echo "$as_me: error: cannot find input file: $f" >&2;}
10523 { (exit 1); exit 1; }; }
10524 fi;;
10525 esac
10526 done` || { (exit 1); exit 1; }
10527 # Remove the trailing spaces.
10528 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10530 _ACEOF
10532 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10533 # `conftest.undefs', that substitutes the proper values into
10534 # config.h.in to produce config.h. The first handles `#define'
10535 # templates, and the second `#undef' templates.
10536 # And first: Protect against being on the right side of a sed subst in
10537 # config.status. Protect against being in an unquoted here document
10538 # in config.status.
10539 rm -f conftest.defines conftest.undefs
10540 # Using a here document instead of a string reduces the quoting nightmare.
10541 # Putting comments in sed scripts is not portable.
10543 # `end' is used to avoid that the second main sed command (meant for
10544 # 0-ary CPP macros) applies to n-ary macro definitions.
10545 # See the Autoconf documentation for `clear'.
10546 cat >confdef2sed.sed <<\_ACEOF
10547 s/[\\&,]/\\&/g
10548 s,[\\$`],\\&,g
10549 t clear
10550 : clear
10551 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10552 t end
10553 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10554 : end
10555 _ACEOF
10556 # If some macros were called several times there might be several times
10557 # the same #defines, which is useless. Nevertheless, we may not want to
10558 # sort them, since we want the *last* AC-DEFINE to be honored.
10559 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10560 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10561 rm -f confdef2sed.sed
10563 # This sed command replaces #undef with comments. This is necessary, for
10564 # example, in the case of _POSIX_SOURCE, which is predefined and required
10565 # on some systems where configure will not decide to define it.
10566 cat >>conftest.undefs <<\_ACEOF
10567 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10568 _ACEOF
10570 # Break up conftest.defines because some shells have a limit on the size
10571 # of here documents, and old seds have small limits too (100 cmds).
10572 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10573 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10574 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10575 echo ' :' >>$CONFIG_STATUS
10576 rm -f conftest.tail
10577 while grep . conftest.defines >/dev/null
10579 # Write a limited-size here document to $tmp/defines.sed.
10580 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10581 # Speed up: don't consider the non `#define' lines.
10582 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10583 # Work around the forget-to-reset-the-flag bug.
10584 echo 't clr' >>$CONFIG_STATUS
10585 echo ': clr' >>$CONFIG_STATUS
10586 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10587 echo 'CEOF
10588 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10589 rm -f $tmp/in
10590 mv $tmp/out $tmp/in
10591 ' >>$CONFIG_STATUS
10592 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10593 rm -f conftest.defines
10594 mv conftest.tail conftest.defines
10595 done
10596 rm -f conftest.defines
10597 echo ' fi # grep' >>$CONFIG_STATUS
10598 echo >>$CONFIG_STATUS
10600 # Break up conftest.undefs because some shells have a limit on the size
10601 # of here documents, and old seds have small limits too (100 cmds).
10602 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10603 rm -f conftest.tail
10604 while grep . conftest.undefs >/dev/null
10606 # Write a limited-size here document to $tmp/undefs.sed.
10607 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10608 # Speed up: don't consider the non `#undef'
10609 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10610 # Work around the forget-to-reset-the-flag bug.
10611 echo 't clr' >>$CONFIG_STATUS
10612 echo ': clr' >>$CONFIG_STATUS
10613 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10614 echo 'CEOF
10615 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10616 rm -f $tmp/in
10617 mv $tmp/out $tmp/in
10618 ' >>$CONFIG_STATUS
10619 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10620 rm -f conftest.undefs
10621 mv conftest.tail conftest.undefs
10622 done
10623 rm -f conftest.undefs
10625 cat >>$CONFIG_STATUS <<\_ACEOF
10626 # Let's still pretend it is `configure' which instantiates (i.e., don't
10627 # use $as_me), people would be surprised to read:
10628 # /* config.h. Generated by config.status. */
10629 if test x"$ac_file" = x-; then
10630 echo "/* Generated by configure. */" >$tmp/config.h
10631 else
10632 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10634 cat $tmp/in >>$tmp/config.h
10635 rm -f $tmp/in
10636 if test x"$ac_file" != x-; then
10637 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10638 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10639 echo "$as_me: $ac_file is unchanged" >&6;}
10640 else
10641 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10643 X"$ac_file" : 'X\(//\)[^/]' \| \
10644 X"$ac_file" : 'X\(//\)$' \| \
10645 X"$ac_file" : 'X\(/\)' \| \
10646 . : '\(.\)' 2>/dev/null ||
10647 echo X"$ac_file" |
10648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10650 /^X\(\/\/\)$/{ s//\1/; q; }
10651 /^X\(\/\).*/{ s//\1/; q; }
10652 s/.*/./; q'`
10653 { if $as_mkdir_p; then
10654 mkdir -p "$ac_dir"
10655 else
10656 as_dir="$ac_dir"
10657 as_dirs=
10658 while test ! -d "$as_dir"; do
10659 as_dirs="$as_dir $as_dirs"
10660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10662 X"$as_dir" : 'X\(//\)[^/]' \| \
10663 X"$as_dir" : 'X\(//\)$' \| \
10664 X"$as_dir" : 'X\(/\)' \| \
10665 . : '\(.\)' 2>/dev/null ||
10666 echo X"$as_dir" |
10667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10669 /^X\(\/\/\)$/{ s//\1/; q; }
10670 /^X\(\/\).*/{ s//\1/; q; }
10671 s/.*/./; q'`
10672 done
10673 test ! -n "$as_dirs" || mkdir $as_dirs
10674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10676 { (exit 1); exit 1; }; }; }
10678 rm -f $ac_file
10679 mv $tmp/config.h $ac_file
10681 else
10682 cat $tmp/config.h
10683 rm -f $tmp/config.h
10685 done
10686 _ACEOF
10687 cat >>$CONFIG_STATUS <<\_ACEOF
10690 # CONFIG_COMMANDS section.
10692 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10693 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10694 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10695 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10696 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10697 X"$ac_dest" : 'X\(//\)[^/]' \| \
10698 X"$ac_dest" : 'X\(//\)$' \| \
10699 X"$ac_dest" : 'X\(/\)' \| \
10700 . : '\(.\)' 2>/dev/null ||
10701 echo X"$ac_dest" |
10702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10704 /^X\(\/\/\)$/{ s//\1/; q; }
10705 /^X\(\/\).*/{ s//\1/; q; }
10706 s/.*/./; q'`
10707 { if $as_mkdir_p; then
10708 mkdir -p "$ac_dir"
10709 else
10710 as_dir="$ac_dir"
10711 as_dirs=
10712 while test ! -d "$as_dir"; do
10713 as_dirs="$as_dir $as_dirs"
10714 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10716 X"$as_dir" : 'X\(//\)[^/]' \| \
10717 X"$as_dir" : 'X\(//\)$' \| \
10718 X"$as_dir" : 'X\(/\)' \| \
10719 . : '\(.\)' 2>/dev/null ||
10720 echo X"$as_dir" |
10721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10723 /^X\(\/\/\)$/{ s//\1/; q; }
10724 /^X\(\/\).*/{ s//\1/; q; }
10725 s/.*/./; q'`
10726 done
10727 test ! -n "$as_dirs" || mkdir $as_dirs
10728 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10729 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10730 { (exit 1); exit 1; }; }; }
10732 ac_builddir=.
10734 if test "$ac_dir" != .; then
10735 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10736 # A "../" for each directory in $ac_dir_suffix.
10737 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10738 else
10739 ac_dir_suffix= ac_top_builddir=
10742 case $srcdir in
10743 .) # No --srcdir option. We are building in place.
10744 ac_srcdir=.
10745 if test -z "$ac_top_builddir"; then
10746 ac_top_srcdir=.
10747 else
10748 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10749 fi ;;
10750 [\\/]* | ?:[\\/]* ) # Absolute path.
10751 ac_srcdir=$srcdir$ac_dir_suffix;
10752 ac_top_srcdir=$srcdir ;;
10753 *) # Relative path.
10754 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10755 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10756 esac
10758 # Do not use `cd foo && pwd` to compute absolute paths, because
10759 # the directories may not exist.
10760 case `pwd` in
10761 .) ac_abs_builddir="$ac_dir";;
10763 case "$ac_dir" in
10764 .) ac_abs_builddir=`pwd`;;
10765 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10766 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10767 esac;;
10768 esac
10769 case $ac_abs_builddir in
10770 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10772 case ${ac_top_builddir}. in
10773 .) ac_abs_top_builddir=$ac_abs_builddir;;
10774 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10775 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10776 esac;;
10777 esac
10778 case $ac_abs_builddir in
10779 .) ac_abs_srcdir=$ac_srcdir;;
10781 case $ac_srcdir in
10782 .) ac_abs_srcdir=$ac_abs_builddir;;
10783 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10784 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10785 esac;;
10786 esac
10787 case $ac_abs_builddir in
10788 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10790 case $ac_top_srcdir in
10791 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10792 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10793 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10794 esac;;
10795 esac
10798 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10799 echo "$as_me: executing $ac_dest commands" >&6;}
10800 case $ac_dest in
10801 compiler_executable )
10802 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
10803 mkdir -p $prefix
10804 prefix="${prefix}/${aros_target_cpu}-aros"
10805 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
10807 echo ${prefix}
10808 echo ${prefix2}
10809 chmod a+x ${prefix2}-gcc ${prefix2}-ld
10811 ln -sf ${prefix2}-gcc ${prefix}-gcc
10812 ln -sf ${prefix2}-ld ${prefix}-ld
10814 ln -sf $aros_target_as_ln ${prefix}-as
10815 ln -sf $aros_target_nm_ln ${prefix}-nm
10816 ln -sf $aros_target_ar_ln ${prefix}-ar
10817 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
10818 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
10819 ln -sf $aros_target_objdump_ln ${prefix}-objdump
10820 ln -sf $aros_target_strip_ln ${prefix}-strip
10822 ln -sf $aros_target_as_ln ${prefix2}-as
10823 ln -sf $aros_target_nm_ln ${prefix2}-nm
10824 ln -sf $aros_target_ar_ln ${prefix2}-ar
10825 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
10826 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
10827 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
10828 ln -sf $aros_target_strip_ln ${prefix2}-strip
10830 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
10831 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
10832 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
10834 esac
10835 done
10836 _ACEOF
10838 cat >>$CONFIG_STATUS <<\_ACEOF
10840 { (exit 0); exit 0; }
10841 _ACEOF
10842 chmod +x $CONFIG_STATUS
10843 ac_clean_files=$ac_clean_files_save
10846 # configure is writing to config.log, and then calls config.status.
10847 # config.status does its own redirection, appending to config.log.
10848 # Unfortunately, on DOS this fails, as config.log is still kept open
10849 # by configure, so config.status won't be able to write to it; its
10850 # output is simply discarded. So we exec the FD to /dev/null,
10851 # effectively closing config.log, so it can be properly (re)opened and
10852 # appended to by config.status. When coming back to configure, we
10853 # need to make the FD available again.
10854 if test "$no_create" != yes; then
10855 ac_cs_success=:
10856 ac_config_status_args=
10857 test "$silent" = yes &&
10858 ac_config_status_args="$ac_config_status_args --quiet"
10859 exec 5>/dev/null
10860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10861 exec 5>>config.log
10862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10863 # would make configure fail if this is the last instruction.
10864 $ac_cs_success || { (exit 1); exit 1; }
10869 #XXX compatability...
10870 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
10872 if test -n "$aros_shared_cflags" ; then
10873 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10874 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg