* Enabling generating the includes for BOOPSI gadgets again (needed for for
[AROS.git] / configure
blobcb5d7e20148e670e09579cfdb142592444ffa725
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 HOST_AR HOST_RANLIB RM CP MV ECHO MKDIR TOUCH SORT UNIQ NOP CAT BISON PNGTOPNM PPMTOILBM STRIP SED CHMOD PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir FOR IF TEST EGREP LIBOBJS aros_target_ar_ln aros_target_nm_ln aros_target_objcopy_ln aros_target_objdump_ln aros_target_ranlib_ln aros_target_strip_ln DISTCC CCACHE SHARED_LD KERNEL_LD TARGET_CC TARGET_AS TARGET_LD NOSTDINC_CFLAGS NOSTARTUP_LDFLAGS NIX_LDFLAGS DETACH_LDFLAGS NOSTDLIB_LDFLAGS aros_cc_pre AR RANLIB NM NM_PLAIN OBJDUMP OBJCOPY aros_arch aros_cpu aros_flavour aros_flavour_uc TOPDIR 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_cc aros_target_cc_includes aros_target_cc_path aros_target_objdump aros_target_objcopy aros_target_strip aros_target_as aros_target_nm aros_shared_default aros_object_format aros_compiler_libs aros_config_cflags aros_config_aflags aros_target_ld 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_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 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 (default=no)
870 --enable-palm-debug-hack Enable palm debug output hack in palm native (default=no)
871 --enable-nesting-supervisor Enable nesting supervisor support in unix (default=no)
872 --enable-xshm-extension Enable X11 MIT-SHM extension default=yes
873 --enable-dbus Enable DBUS support via dbus.library (default=no)
875 Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-x use the X Window System
879 --with-optimization=FLAGS
880 Use optimization flags FLAGS (default=-O2).
881 --with-resolution=XRESxYRESxDEPTH Default resolution of the initial WorkbenchScreen
882 --with-serial-debug Enable serial debug output in native (default=no)
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
891 CPP C preprocessor
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
896 _ACEOF
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
901 ac_popdir=`pwd`
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
904 ac_builddir=.
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 else
911 ac_dir_suffix= ac_top_builddir=
914 case $srcdir in
915 .) # No --srcdir option. We are building in place.
916 ac_srcdir=.
917 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=.
919 else
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 fi ;;
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
925 *) # Relative path.
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
928 esac
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
932 case `pwd` in
933 .) ac_abs_builddir="$ac_dir";;
935 case "$ac_dir" in
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
939 esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948 esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
953 case $ac_srcdir in
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957 esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966 esac;;
967 esac
969 cd $ac_dir
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
972 echo
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
975 echo
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
979 echo
980 $ac_configure --help
981 else
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984 cd $ac_popdir
985 done
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990 cat <<\_ACEOF
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996 exit 0
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1006 $ $0 $@
1008 _ACEOF
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 _ASUNAME
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1037 IFS=$as_save_IFS
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1040 done
1042 } >&5
1044 cat >&5 <<_ACEOF
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1051 _ACEOF
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1066 for ac_arg
1068 case $ac_arg in
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 continue ;;
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 esac
1076 case $ac_pass in
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1082 else
1083 case $ac_arg in
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 esac
1092 -* ) ac_must_keep_next=true ;;
1093 esac
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1097 ac_sep=" "
1099 esac
1100 done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1113 echo
1115 cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120 echo
1121 # The following way of writing the cache mishandles newlines in values,
1123 (set) 2>&1 |
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 *ac_space=\ *)
1126 sed -n \
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 sed -n \
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 esac;
1136 echo
1138 cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143 echo
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1148 done | sort
1149 echo
1151 if test -n "$ac_subst_files"; then
1152 cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1166 if test -s confdefs.h; then
1167 cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172 echo
1173 sed "/^$/d" confdefs.h | sort
1174 echo
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1179 } >&5
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 exit $exit_status
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 else
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1235 . "$ac_site_file"
1237 done
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245 case $cache_file in
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1248 esac
1250 else
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253 >$cache_file
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1266 set,)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,set)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,);;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1284 fi;;
1285 esac
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1288 case $ac_new_val in
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1292 esac
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296 esac
1298 done
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 ac_aux_dir=
1333 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1334 if test -f $ac_dir/install-sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 break
1338 elif test -f $ac_dir/install.sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 break
1342 elif test -f $ac_dir/shtool; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1345 break
1347 done
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Check what host we are running on.
1359 # If a target is not suggested, we use this one.
1360 # Make sure we can run config.sub.
1361 $ac_config_sub sun4 >/dev/null 2>&1 ||
1362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1363 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: checking build system type" >&5
1367 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368 if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 ac_cv_build_alias=$build_alias
1372 test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374 test -z "$ac_cv_build_alias" &&
1375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1381 { (exit 1); exit 1; }; }
1384 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1385 echo "${ECHO_T}$ac_cv_build" >&6
1386 build=$ac_cv_build
1387 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1388 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1389 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1392 echo "$as_me:$LINENO: checking host system type" >&5
1393 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394 if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 else
1397 ac_cv_host_alias=$host_alias
1398 test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1407 echo "${ECHO_T}$ac_cv_host" >&6
1408 host=$ac_cv_host
1409 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415 # The AROS target is slightly different to the normal GNU style
1416 # format. We don't have the middle part, and we reverse the order
1417 # of the $(CPU) and $(OS) bits.
1419 # Don't strip the version of the target yet, it might be
1420 # useful on some systems.
1422 echo "$as_me:$LINENO: checking for AROS style target" >&5
1423 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1425 if test "$target" = "NONE" ; then
1426 target=$host_os-$host_cpu
1427 cross_compile=no
1428 else
1429 if test "$target" = "" ; then
1430 target=$host_os-$host_cpu
1431 cross_compile=no
1432 else
1433 cross_compile=yes
1436 echo "$as_me:$LINENO: result: $target" >&5
1437 echo "${ECHO_T}$target" >&6
1439 #don't know where else to put this...
1440 TOPDIR=$PWD
1442 # Parse the target field into something useful.
1444 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1445 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1448 aros_default_wbwidth=800
1449 aros_default_wbheight=600
1450 aros_default_wbdepth=4
1453 # The first step is to find the host binaries.
1454 # Check for a compiler.
1455 ac_ext=c
1456 ac_cpp='$CPP $CPPFLAGS'
1457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1460 if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1462 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1463 echo "$as_me:$LINENO: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 else
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1470 else
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 for ac_exec_ext in '' $ac_executable_extensions; do
1477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1478 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1480 break 2
1482 done
1483 done
1487 CC=$ac_cv_prog_CC
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1491 else
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1497 if test -z "$ac_cv_prog_CC"; then
1498 ac_ct_CC=$CC
1499 # Extract the first word of "gcc", so it can be a program name with args.
1500 set dummy gcc; ac_word=$2
1501 echo "$as_me:$LINENO: checking for $ac_word" >&5
1502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506 if test -n "$ac_ct_CC"; then
1507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1508 else
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_ac_ct_CC="gcc"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1520 done
1521 done
1525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526 if test -n "$ac_ct_CC"; then
1527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528 echo "${ECHO_T}$ac_ct_CC" >&6
1529 else
1530 echo "$as_me:$LINENO: result: no" >&5
1531 echo "${ECHO_T}no" >&6
1534 CC=$ac_ct_CC
1535 else
1536 CC="$ac_cv_prog_CC"
1539 if test -z "$CC"; then
1540 if test -n "$ac_tool_prefix"; then
1541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1542 set dummy ${ac_tool_prefix}cc; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_CC+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$CC"; then
1549 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_CC="${ac_tool_prefix}cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1562 done
1563 done
1567 CC=$ac_cv_prog_CC
1568 if test -n "$CC"; then
1569 echo "$as_me:$LINENO: result: $CC" >&5
1570 echo "${ECHO_T}$CC" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1577 if test -z "$ac_cv_prog_CC"; then
1578 ac_ct_CC=$CC
1579 # Extract the first word of "cc", so it can be a program name with args.
1580 set dummy cc; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586 if test -n "$ac_ct_CC"; then
1587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_ac_ct_CC="cc"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 break 2
1600 done
1601 done
1605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1606 if test -n "$ac_ct_CC"; then
1607 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1608 echo "${ECHO_T}$ac_ct_CC" >&6
1609 else
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1614 CC=$ac_ct_CC
1615 else
1616 CC="$ac_cv_prog_CC"
1620 if test -z "$CC"; then
1621 # Extract the first word of "cc", so it can be a program name with args.
1622 set dummy cc; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_CC+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628 if test -n "$CC"; then
1629 ac_cv_prog_CC="$CC" # Let the user override the test.
1630 else
1631 ac_prog_rejected=no
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1640 ac_prog_rejected=yes
1641 continue
1643 ac_cv_prog_CC="cc"
1644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645 break 2
1647 done
1648 done
1650 if test $ac_prog_rejected = yes; then
1651 # We found a bogon in the path, so make sure we never use it.
1652 set dummy $ac_cv_prog_CC
1653 shift
1654 if test $# != 0; then
1655 # We chose a different compiler from the bogus one.
1656 # However, it has the same basename, so the bogon will be chosen
1657 # first if we set CC to just the basename; use the full file name.
1658 shift
1659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1664 CC=$ac_cv_prog_CC
1665 if test -n "$CC"; then
1666 echo "$as_me:$LINENO: result: $CC" >&5
1667 echo "${ECHO_T}$CC" >&6
1668 else
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1674 if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1676 for ac_prog in cl
1678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687 else
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1699 done
1700 done
1704 CC=$ac_cv_prog_CC
1705 if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707 echo "${ECHO_T}$CC" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 test -n "$CC" && break
1714 done
1716 if test -z "$CC"; then
1717 ac_ct_CC=$CC
1718 for ac_prog in cl
1720 # Extract the first word of "$ac_prog", so it can be a program name with args.
1721 set dummy $ac_prog; ac_word=$2
1722 echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_ac_ct_CC="$ac_prog"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1747 if test -n "$ac_ct_CC"; then
1748 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1749 echo "${ECHO_T}$ac_ct_CC" >&6
1750 else
1751 echo "$as_me:$LINENO: result: no" >&5
1752 echo "${ECHO_T}no" >&6
1755 test -n "$ac_ct_CC" && break
1756 done
1758 CC=$ac_ct_CC
1764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1765 See \`config.log' for more details." >&5
1766 echo "$as_me: error: no acceptable C compiler found in \$PATH
1767 See \`config.log' for more details." >&2;}
1768 { (exit 1); exit 1; }; }
1770 # Provide some information about the compiler.
1771 echo "$as_me:$LINENO:" \
1772 "checking for C compiler version" >&5
1773 ac_compiler=`set X $ac_compile; echo $2`
1774 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1775 (eval $ac_compiler --version </dev/null >&5) 2>&5
1776 ac_status=$?
1777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778 (exit $ac_status); }
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1780 (eval $ac_compiler -v </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1785 (eval $ac_compiler -V </dev/null >&5) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1790 cat >conftest.$ac_ext <<_ACEOF
1791 /* confdefs.h. */
1792 _ACEOF
1793 cat confdefs.h >>conftest.$ac_ext
1794 cat >>conftest.$ac_ext <<_ACEOF
1795 /* end confdefs.h. */
1798 main ()
1802 return 0;
1804 _ACEOF
1805 ac_clean_files_save=$ac_clean_files
1806 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1807 # Try to create an executable without -o first, disregard a.out.
1808 # It will help us diagnose broken compilers, and finding out an intuition
1809 # of exeext.
1810 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1811 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1812 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1813 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1814 (eval $ac_link_default) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 # Find the output, starting from the most likely. This scheme is
1819 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1820 # resort.
1822 # Be careful to initialize this variable, since it used to be cached.
1823 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1824 ac_cv_exeext=
1825 # b.out is created by i960 compilers.
1826 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1828 test -f "$ac_file" || continue
1829 case $ac_file in
1830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1832 conftest.$ac_ext )
1833 # This is the source file.
1835 [ab].out )
1836 # We found the default executable, but exeext='' is most
1837 # certainly right.
1838 break;;
1839 *.* )
1840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 # FIXME: I believe we export ac_cv_exeext for Libtool,
1842 # but it would be cool to find out if it's true. Does anybody
1843 # maintain Libtool? --akim.
1844 export ac_cv_exeext
1845 break;;
1847 break;;
1848 esac
1849 done
1850 else
1851 echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1855 See \`config.log' for more details." >&5
1856 echo "$as_me: error: C compiler cannot create executables
1857 See \`config.log' for more details." >&2;}
1858 { (exit 77); exit 77; }; }
1861 ac_exeext=$ac_cv_exeext
1862 echo "$as_me:$LINENO: result: $ac_file" >&5
1863 echo "${ECHO_T}$ac_file" >&6
1865 # Check the compiler produces executables we can run. If not, either
1866 # the compiler is broken, or we cross compile.
1867 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1868 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1869 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1870 # If not cross compiling, check that we can run a simple program.
1871 if test "$cross_compiling" != yes; then
1872 if { ac_try='./$ac_file'
1873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1874 (eval $ac_try) 2>&5
1875 ac_status=$?
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); }; }; then
1878 cross_compiling=no
1879 else
1880 if test "$cross_compiling" = maybe; then
1881 cross_compiling=yes
1882 else
1883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1884 If you meant to cross compile, use \`--host'.
1885 See \`config.log' for more details." >&5
1886 echo "$as_me: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1893 echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6
1896 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1897 ac_clean_files=$ac_clean_files_save
1898 # Check the compiler produces executables we can run. If not, either
1899 # the compiler is broken, or we cross compile.
1900 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1901 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1902 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1903 echo "${ECHO_T}$cross_compiling" >&6
1905 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1906 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1908 (eval $ac_link) 2>&5
1909 ac_status=$?
1910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1911 (exit $ac_status); }; then
1912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1914 # work properly (i.e., refer to `conftest.exe'), while it won't with
1915 # `rm'.
1916 for ac_file in conftest.exe conftest conftest.*; do
1917 test -f "$ac_file" || continue
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1921 export ac_cv_exeext
1922 break;;
1923 * ) break;;
1924 esac
1925 done
1926 else
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }
1934 rm -f conftest$ac_cv_exeext
1935 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1936 echo "${ECHO_T}$ac_cv_exeext" >&6
1938 rm -f conftest.$ac_ext
1939 EXEEXT=$ac_cv_exeext
1940 ac_exeext=$EXEEXT
1941 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1943 if test "${ac_cv_objext+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1954 main ()
1958 return 0;
1960 _ACEOF
1961 rm -f conftest.o conftest.obj
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1968 case $ac_file in
1969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1971 break;;
1972 esac
1973 done
1974 else
1975 echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1978 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1979 See \`config.log' for more details." >&5
1980 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1981 See \`config.log' for more details." >&2;}
1982 { (exit 1); exit 1; }; }
1985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1987 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1988 echo "${ECHO_T}$ac_cv_objext" >&6
1989 OBJEXT=$ac_cv_objext
1990 ac_objext=$OBJEXT
1991 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1992 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1993 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996 cat >conftest.$ac_ext <<_ACEOF
1997 /* confdefs.h. */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h. */
2004 main ()
2006 #ifndef __GNUC__
2007 choke me
2008 #endif
2011 return 0;
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016 (eval $ac_compile) 2>conftest.er1
2017 ac_status=$?
2018 grep -v '^ *+' conftest.er1 >conftest.err
2019 rm -f conftest.er1
2020 cat conftest.err >&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); } &&
2023 { ac_try='test -z "$ac_c_werror_flag"
2024 || test ! -s conftest.err'
2025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2026 (eval $ac_try) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; } &&
2030 { ac_try='test -s conftest.$ac_objext'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; }; then
2036 ac_compiler_gnu=yes
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_compiler_gnu=no
2043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2048 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2049 GCC=`test $ac_compiler_gnu = yes && echo yes`
2050 ac_test_CFLAGS=${CFLAGS+set}
2051 ac_save_CFLAGS=$CFLAGS
2052 CFLAGS="-g"
2053 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2054 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2055 if test "${ac_cv_prog_cc_g+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058 cat >conftest.$ac_ext <<_ACEOF
2059 /* confdefs.h. */
2060 _ACEOF
2061 cat confdefs.h >>conftest.$ac_ext
2062 cat >>conftest.$ac_ext <<_ACEOF
2063 /* end confdefs.h. */
2066 main ()
2070 return 0;
2072 _ACEOF
2073 rm -f conftest.$ac_objext
2074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075 (eval $ac_compile) 2>conftest.er1
2076 ac_status=$?
2077 grep -v '^ *+' conftest.er1 >conftest.err
2078 rm -f conftest.er1
2079 cat conftest.err >&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); } &&
2082 { ac_try='test -z "$ac_c_werror_flag"
2083 || test ! -s conftest.err'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 ac_cv_prog_cc_g=yes
2096 else
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2100 ac_cv_prog_cc_g=no
2102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2106 if test "$ac_test_CFLAGS" = set; then
2107 CFLAGS=$ac_save_CFLAGS
2108 elif test $ac_cv_prog_cc_g = yes; then
2109 if test "$GCC" = yes; then
2110 CFLAGS="-g -O2"
2111 else
2112 CFLAGS="-g"
2114 else
2115 if test "$GCC" = yes; then
2116 CFLAGS="-O2"
2117 else
2118 CFLAGS=
2121 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2122 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_cv_prog_cc_stdc=no
2127 ac_save_CC=$CC
2128 cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h. */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2134 #include <stdarg.h>
2135 #include <stdio.h>
2136 #include <sys/types.h>
2137 #include <sys/stat.h>
2138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2139 struct buf { int x; };
2140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2141 static char *e (p, i)
2142 char **p;
2143 int i;
2145 return p[i];
2147 static char *f (char * (*g) (char **, int), char **p, ...)
2149 char *s;
2150 va_list v;
2151 va_start (v,p);
2152 s = g (p, va_arg (v,int));
2153 va_end (v);
2154 return s;
2157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2158 function prototypes and stuff, but not '\xHH' hex character constants.
2159 These don't provoke an error unfortunately, instead are silently treated
2160 as 'x'. The following induces an error, until -std1 is added to get
2161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2162 array size at least. It's necessary to write '\x00'==0 to get something
2163 that's true only with -std1. */
2164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166 int test (int i, double x);
2167 struct s1 {int (*f) (int a);};
2168 struct s2 {int (*f) (double a);};
2169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2170 int argc;
2171 char **argv;
2173 main ()
2175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 return 0;
2179 _ACEOF
2180 # Don't try gcc -ansi; that turns off useful extensions and
2181 # breaks some systems' header files.
2182 # AIX -qlanglvl=ansi
2183 # Ultrix and OSF/1 -std1
2184 # HP-UX 10.20 and later -Ae
2185 # HP-UX older versions -Aa -D_HPUX_SOURCE
2186 # SVR4 -Xc -D__EXTENSIONS__
2187 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189 CC="$ac_save_CC $ac_arg"
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 ac_cv_prog_cc_stdc=$ac_arg
2213 break
2214 else
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2219 rm -f conftest.err conftest.$ac_objext
2220 done
2221 rm -f conftest.$ac_ext conftest.$ac_objext
2222 CC=$ac_save_CC
2226 case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229 echo "${ECHO_T}none needed" >&6 ;;
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234 esac
2236 # Some people use a C++ compiler to compile C. Since we use `exit',
2237 # in C++ we need to declare it. In case someone uses the same compiler
2238 # for both compiling C and C++ we need to have the C++ compiler decide
2239 # the declaration of exit, since it's the most demanding environment.
2240 cat >conftest.$ac_ext <<_ACEOF
2241 #ifndef __cplusplus
2242 choke me
2243 #endif
2244 _ACEOF
2245 rm -f conftest.$ac_objext
2246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -z "$ac_c_werror_flag"
2255 || test ! -s conftest.err'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257 (eval $ac_try) 2>&5
2258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; } &&
2261 { ac_try='test -s conftest.$ac_objext'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; }; then
2267 for ac_declaration in \
2268 '' \
2269 'extern "C" void std::exit (int) throw (); using std::exit;' \
2270 'extern "C" void std::exit (int); using std::exit;' \
2271 'extern "C" void exit (int) throw ();' \
2272 'extern "C" void exit (int);' \
2273 'void exit (int);'
2275 cat >conftest.$ac_ext <<_ACEOF
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2281 $ac_declaration
2282 #include <stdlib.h>
2284 main ()
2286 exit (42);
2288 return 0;
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 (eval $ac_compile) 2>conftest.er1
2294 ac_status=$?
2295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -z "$ac_c_werror_flag"
2301 || test ! -s conftest.err'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 (eval $ac_try) 2>&5
2310 ac_status=$?
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 continue
2320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327 $ac_declaration
2329 main ()
2331 exit (42);
2333 return 0;
2335 _ACEOF
2336 rm -f conftest.$ac_objext
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
2339 ac_status=$?
2340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 break
2359 else
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 done
2366 rm -f conftest*
2367 if test -n "$ac_declaration"; then
2368 echo '#ifdef __cplusplus' >>confdefs.h
2369 echo $ac_declaration >>confdefs.h
2370 echo '#endif' >>confdefs.h
2373 else
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2393 # On Suns, sometimes $CPP names a directory.
2394 if test -n "$CPP" && test -d "$CPP"; then
2395 CPP=
2397 if test -z "$CPP"; then
2398 if test "${ac_cv_prog_CPP+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401 # Double quotes because CPP needs to be expanded
2402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2404 ac_preproc_ok=false
2405 for ac_c_preproc_warn_flag in '' yes
2407 # Use a header file that comes with gcc, so configuring glibc
2408 # with a fresh cross-compiler works.
2409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2410 # <limits.h> exists even on freestanding compilers.
2411 # On the NeXT, cc -E runs the code through the compiler's parser,
2412 # not just through cpp. "Syntax error" is here to catch this case.
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2419 #ifdef __STDC__
2420 # include <limits.h>
2421 #else
2422 # include <assert.h>
2423 #endif
2424 Syntax error
2425 _ACEOF
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev/null; then
2434 if test -s conftest.err; then
2435 ac_cpp_err=$ac_c_preproc_warn_flag
2436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2437 else
2438 ac_cpp_err=
2440 else
2441 ac_cpp_err=yes
2443 if test -z "$ac_cpp_err"; then
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 # Broken: fails on valid input.
2450 continue
2452 rm -f conftest.err conftest.$ac_ext
2454 # OK, works on sane cases. Now check whether non-existent headers
2455 # can be detected and how.
2456 cat >conftest.$ac_ext <<_ACEOF
2457 /* confdefs.h. */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h. */
2462 #include <ac_nonexistent.h>
2463 _ACEOF
2464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } >/dev/null; then
2472 if test -s conftest.err; then
2473 ac_cpp_err=$ac_c_preproc_warn_flag
2474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 else
2476 ac_cpp_err=
2478 else
2479 ac_cpp_err=yes
2481 if test -z "$ac_cpp_err"; then
2482 # Broken: success on invalid input.
2483 continue
2484 else
2485 echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2488 # Passes both tests.
2489 ac_preproc_ok=:
2490 break
2492 rm -f conftest.err conftest.$ac_ext
2494 done
2495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2496 rm -f conftest.err conftest.$ac_ext
2497 if $ac_preproc_ok; then
2498 break
2501 done
2502 ac_cv_prog_CPP=$CPP
2505 CPP=$ac_cv_prog_CPP
2506 else
2507 ac_cv_prog_CPP=$CPP
2509 echo "$as_me:$LINENO: result: $CPP" >&5
2510 echo "${ECHO_T}$CPP" >&6
2511 ac_preproc_ok=false
2512 for ac_c_preproc_warn_flag in '' yes
2514 # Use a header file that comes with gcc, so configuring glibc
2515 # with a fresh cross-compiler works.
2516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2517 # <limits.h> exists even on freestanding compilers.
2518 # On the NeXT, cc -E runs the code through the compiler's parser,
2519 # not just through cpp. "Syntax error" is here to catch this case.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2526 #ifdef __STDC__
2527 # include <limits.h>
2528 #else
2529 # include <assert.h>
2530 #endif
2531 Syntax error
2532 _ACEOF
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2535 ac_status=$?
2536 grep -v '^ *+' conftest.er1 >conftest.err
2537 rm -f conftest.er1
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } >/dev/null; then
2541 if test -s conftest.err; then
2542 ac_cpp_err=$ac_c_preproc_warn_flag
2543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2544 else
2545 ac_cpp_err=
2547 else
2548 ac_cpp_err=yes
2550 if test -z "$ac_cpp_err"; then
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 # Broken: fails on valid input.
2557 continue
2559 rm -f conftest.err conftest.$ac_ext
2561 # OK, works on sane cases. Now check whether non-existent headers
2562 # can be detected and how.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h. */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 #include <ac_nonexistent.h>
2570 _ACEOF
2571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } >/dev/null; then
2579 if test -s conftest.err; then
2580 ac_cpp_err=$ac_c_preproc_warn_flag
2581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 else
2583 ac_cpp_err=
2585 else
2586 ac_cpp_err=yes
2588 if test -z "$ac_cpp_err"; then
2589 # Broken: success on invalid input.
2590 continue
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 # Passes both tests.
2596 ac_preproc_ok=:
2597 break
2599 rm -f conftest.err conftest.$ac_ext
2601 done
2602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2603 rm -f conftest.err conftest.$ac_ext
2604 if $ac_preproc_ok; then
2606 else
2607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 # We don't yet support cross-compiling, but we may later on.
2623 case $host_os in
2624 *cygwin* ) CYGWIN=yes;;
2625 * ) CYGWIN=no;;
2626 esac
2631 # Check for gawk and mmake.
2632 for ac_prog in gawk nawk
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_AWK+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641 if test -n "$AWK"; then
2642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_AWK="$ac_prog"
2652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2660 AWK=$ac_cv_prog_AWK
2661 if test -n "$AWK"; then
2662 echo "$as_me:$LINENO: result: $AWK" >&5
2663 echo "${ECHO_T}$AWK" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2669 test -n "$AWK" && break
2670 done
2673 if test "$AWK" = ""; then
2674 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2675 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2676 { (exit 1); exit 1; }; }
2678 # Extract the first word of "mmake", so it can be a program name with args.
2679 set dummy mmake; ac_word=$2
2680 echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682 if test "${ac_cv_prog_MMAKE+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685 if test -n "$MMAKE"; then
2686 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_MMAKE="mmake"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2704 MMAKE=$ac_cv_prog_MMAKE
2705 if test -n "$MMAKE"; then
2706 echo "$as_me:$LINENO: result: $MMAKE" >&5
2707 echo "${ECHO_T}$MMAKE" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6
2716 # Perform some default variable assignments. Note all of these will be
2717 # Regenerated from the script, so there is no need to cache them.
2719 aros_host_cc="$CC"
2720 if test "$GCC" = "yes"; then
2721 aros_gcc_ld=`$CC -print-prog-name=ld`
2722 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2723 set dummy `basename $aros_gcc_ld`; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 case $aros_host_ld in
2730 [\\/]* | ?:[\\/]*)
2731 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in `dirname $aros_gcc_ld`
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2749 esac
2751 aros_host_ld=$ac_cv_path_aros_host_ld
2753 if test -n "$aros_host_ld"; then
2754 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2755 echo "${ECHO_T}$aros_host_ld" >&6
2756 else
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2762 if test "$aros_host_ld" = ""; then
2763 # Extract the first word of "ld", so it can be a program name with args.
2764 set dummy ld; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 case $aros_host_ld in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2790 esac
2792 aros_host_ld=$ac_cv_path_aros_host_ld
2794 if test -n "$aros_host_ld"; then
2795 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2796 echo "${ECHO_T}$aros_host_ld" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test "$aros_host_ld" = ""; then
2804 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2805 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2806 { (exit 1); exit 1; }; }
2808 aros_host_make="make"
2809 aros_host_cflags=$CFLAGS
2810 aros_host_ldflags=$LDFLAGS
2811 aros_host_debug="-g -O0"
2812 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2813 aros_host_mkargs="--no-print-directory"
2814 aros_host_incl="/usr/include"
2815 aros_host_exe_suffix="$EXEEXT"
2816 aros_host_lib_suffix=""
2818 case "$CC" in
2819 *gcc*)
2820 aros_host_cc_pipe="-pipe"
2822 icc)
2823 aros_host_cc_pipe=""
2826 aros_host_cc_pipe=""
2828 esac
2830 aros_target_cc_includes=""
2832 # This is the main host configuration section. It is where the host
2833 # can change the values of any variables it needs to change. We do
2834 # not look at anything that compiles to the target yet, we'll get
2835 # to that later.
2837 case "$host_os" in
2838 linux*)
2839 aros_host_arch="linux"
2840 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2841 case "$host_cpu" in
2842 *i?86*)
2843 aros_host_cpu="i386"
2845 *x86_64*)
2846 aros_host_cpu="x86_64"
2848 *m68k*)
2849 aros_host_cpu="m68k"
2851 *powerpc*)
2852 aros_host_cpu="ppc"
2855 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2856 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2857 aros_host_cpu="$host_cpu"
2859 esac
2862 freebsd*)
2863 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2864 aros_host_make="gmake"
2865 aros_host_arch="freebsd"
2866 aros_host_cpu="i386"
2869 case $host_os in
2870 freebsd[56]*)
2871 aros_object_format="elf_i386_fbsd"
2875 aros_object_format="elf_i386"
2876 esac
2880 netbsd*)
2881 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2882 aros_host_make="gmake"
2883 aros_host_arch="netbsd"
2884 case "$host_cpu" in
2885 *i?86*)
2886 aros_host_cpu="i386"
2888 *m68k*)
2889 aros_host_cpu="m68k"
2892 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2893 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2894 aros_host_cpu="$host_cpu"
2896 esac
2897 aros_host_lib_suffix=".0.0"
2900 openbsd*)
2901 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2902 aros_host_make="gmake"
2903 aros_host_arch="openbsd"
2904 case "$host_cpu" in
2905 *i?86*)
2906 aros_host_cpu="i386"
2909 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2910 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2911 aros_host_cpu="$host_cpu"
2913 esac
2916 solaris*)
2917 aros_host_arch="solaris"
2918 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2919 case "$host_cpu" in
2920 *sparc*)
2921 aros_host_cpu="sparc"
2924 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2925 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2926 aros_host_cpu="$host_cpu"
2928 esac
2931 morphos*)
2932 aros_host_cc="$aros_host_cc"
2933 aros_host_arch="morphos"
2934 aros_host_cpu="ppc"
2937 amiga*)
2938 aros_host_arch="amiga"
2939 SORT="/gg/bin/sort"
2940 TEST="/gg/bin/test"
2941 UNIQ="/gg/bin/uniq"
2942 FOR="for"
2943 TOUCH="/gg/bin/touch"
2944 case "$host_cpu" in
2945 *m68k*)
2946 aros_host_cpu="m68k"
2948 *powerpc*)
2949 aros_host_cpu="ppc"
2952 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2953 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2954 aros_host_cpu="$host_cpu"
2956 esac
2959 cygwin*)
2960 aros_host_arch="cygwin"
2961 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
2962 case "$host_cpu" in
2963 *i?86*)
2964 aros_host_cpu="i386"
2967 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
2968 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
2969 aros_host_cpu="$host_cpu"
2971 esac
2974 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
2975 echo "$as_me: error: Unsupported host architecture $host" >&2;}
2976 { (exit 1); exit 1; }; }
2978 esac
2980 # Extract the first word of "ar", so it can be a program name with args.
2981 set dummy ar; ac_word=$2
2982 echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2984 if test "${ac_cv_prog_HOST_AR+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 if test -n "$HOST_AR"; then
2988 ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_HOST_AR="ar"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3006 HOST_AR=$ac_cv_prog_HOST_AR
3007 if test -n "$HOST_AR"; then
3008 echo "$as_me:$LINENO: result: $HOST_AR" >&5
3009 echo "${ECHO_T}$HOST_AR" >&6
3010 else
3011 echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6
3015 HOST_AR="$HOST_AR cr"
3017 if test "$HOST_AR" = ""; then
3018 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3019 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3020 { (exit 1); exit 1; }; }
3022 # Extract the first word of "ranlib", so it can be a program name with args.
3023 set dummy ranlib; ac_word=$2
3024 echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_prog_HOST_RANLIB+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 if test -n "$HOST_RANLIB"; then
3030 ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_HOST_RANLIB="ranlib"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3048 HOST_RANLIB=$ac_cv_prog_HOST_RANLIB
3049 if test -n "$HOST_RANLIB"; then
3050 echo "$as_me:$LINENO: result: $HOST_RANLIB" >&5
3051 echo "${ECHO_T}$HOST_RANLIB" >&6
3052 else
3053 echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3060 # Extract the first word of "rm", so it can be a program name with args.
3061 set dummy rm; ac_word=$2
3062 echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_RM+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$RM"; then
3068 ac_cv_prog_RM="$RM" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_RM="rm"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3086 RM=$ac_cv_prog_RM
3087 if test -n "$RM"; then
3088 echo "$as_me:$LINENO: result: $RM" >&5
3089 echo "${ECHO_T}$RM" >&6
3090 else
3091 echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6
3095 RM="$RM -rf"
3097 if test "$RM" = ""; then
3098 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3099 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3100 { (exit 1); exit 1; }; }
3102 # Extract the first word of "cp", so it can be a program name with args.
3103 set dummy cp; ac_word=$2
3104 echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3106 if test "${ac_cv_prog_CP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 if test -n "$CP"; then
3110 ac_cv_prog_CP="$CP" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CP="cp"
3120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3128 CP=$ac_cv_prog_CP
3129 if test -n "$CP"; then
3130 echo "$as_me:$LINENO: result: $CP" >&5
3131 echo "${ECHO_T}$CP" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3139 if test "$CP" = ""; then
3140 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3141 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3142 { (exit 1); exit 1; }; }
3144 # Extract the first word of "mv", so it can be a program name with args.
3145 set dummy mv; ac_word=$2
3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3148 if test "${ac_cv_prog_MV+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 if test -n "$MV"; then
3152 ac_cv_prog_MV="$MV" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_MV="mv"
3162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3170 MV=$ac_cv_prog_MV
3171 if test -n "$MV"; then
3172 echo "$as_me:$LINENO: result: $MV" >&5
3173 echo "${ECHO_T}$MV" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3181 if test "$MV" = ""; then
3182 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3183 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3184 { (exit 1); exit 1; }; }
3186 # Extract the first word of "echo", so it can be a program name with args.
3187 set dummy echo; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_ECHO+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193 if test -n "$ECHO"; then
3194 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ECHO="echo"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3212 ECHO=$ac_cv_prog_ECHO
3213 if test -n "$ECHO"; then
3214 echo "$as_me:$LINENO: result: $ECHO" >&5
3215 echo "${ECHO_T}$ECHO" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3223 if test "$ECHO" = ""; then
3224 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3225 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3226 { (exit 1); exit 1; }; }
3228 # Extract the first word of "mkdir", so it can be a program name with args.
3229 set dummy mkdir; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_prog_MKDIR+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 if test -n "$MKDIR"; then
3236 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_MKDIR="mkdir"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3254 MKDIR=$ac_cv_prog_MKDIR
3255 if test -n "$MKDIR"; then
3256 echo "$as_me:$LINENO: result: $MKDIR" >&5
3257 echo "${ECHO_T}$MKDIR" >&6
3258 else
3259 echo "$as_me:$LINENO: result: no" >&5
3260 echo "${ECHO_T}no" >&6
3263 MKDIR="$MKDIR -p"
3265 if test "$MKDIR" = ""; then
3266 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3267 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3268 { (exit 1); exit 1; }; }
3270 # Extract the first word of "touch", so it can be a program name with args.
3271 set dummy touch; ac_word=$2
3272 echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274 if test "${ac_cv_prog_TOUCH+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277 if test -n "$TOUCH"; then
3278 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_TOUCH="touch"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3291 done
3292 done
3296 TOUCH=$ac_cv_prog_TOUCH
3297 if test -n "$TOUCH"; then
3298 echo "$as_me:$LINENO: result: $TOUCH" >&5
3299 echo "${ECHO_T}$TOUCH" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3307 if test "$TOUCH" = ""; then
3308 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3309 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3310 { (exit 1); exit 1; }; }
3312 # Extract the first word of "sort", so it can be a program name with args.
3313 set dummy sort; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_SORT+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 if test -n "$SORT"; then
3320 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_SORT="sort"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3338 SORT=$ac_cv_prog_SORT
3339 if test -n "$SORT"; then
3340 echo "$as_me:$LINENO: result: $SORT" >&5
3341 echo "${ECHO_T}$SORT" >&6
3342 else
3343 echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6
3349 if test "$SORT" = ""; then
3350 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3351 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3352 { (exit 1); exit 1; }; }
3354 # Extract the first word of "uniq", so it can be a program name with args.
3355 set dummy uniq; ac_word=$2
3356 echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358 if test "${ac_cv_prog_UNIQ+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 if test -n "$UNIQ"; then
3362 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_UNIQ="uniq"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3375 done
3376 done
3380 UNIQ=$ac_cv_prog_UNIQ
3381 if test -n "$UNIQ"; then
3382 echo "$as_me:$LINENO: result: $UNIQ" >&5
3383 echo "${ECHO_T}$UNIQ" >&6
3384 else
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3391 if test "$UNIQ" = ""; then
3392 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3393 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3394 { (exit 1); exit 1; }; }
3396 # Extract the first word of "true", so it can be a program name with args.
3397 set dummy true; ac_word=$2
3398 echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3400 if test "${ac_cv_prog_NOP+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403 if test -n "$NOP"; then
3404 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_NOP="true"
3414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3422 NOP=$ac_cv_prog_NOP
3423 if test -n "$NOP"; then
3424 echo "$as_me:$LINENO: result: $NOP" >&5
3425 echo "${ECHO_T}$NOP" >&6
3426 else
3427 echo "$as_me:$LINENO: result: no" >&5
3428 echo "${ECHO_T}no" >&6
3433 if test "$NOP" = ""; then
3434 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3435 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3436 { (exit 1); exit 1; }; }
3438 # Extract the first word of "cat", so it can be a program name with args.
3439 set dummy cat; ac_word=$2
3440 echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442 if test "${ac_cv_prog_CAT+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 if test -n "$CAT"; then
3446 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_CAT="cat"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3459 done
3460 done
3464 CAT=$ac_cv_prog_CAT
3465 if test -n "$CAT"; then
3466 echo "$as_me:$LINENO: result: $CAT" >&5
3467 echo "${ECHO_T}$CAT" >&6
3468 else
3469 echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3475 if test "$CAT" = ""; then
3476 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3477 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3478 { (exit 1); exit 1; }; }
3480 # Extract the first word of "bison", so it can be a program name with args.
3481 set dummy bison; ac_word=$2
3482 echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_prog_BISON+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 if test -n "$BISON"; then
3488 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_BISON="bison"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3506 BISON=$ac_cv_prog_BISON
3507 if test -n "$BISON"; then
3508 echo "$as_me:$LINENO: result: $BISON" >&5
3509 echo "${ECHO_T}$BISON" >&6
3510 else
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3517 if test "$BISON" = ""; then
3518 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3519 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3520 { (exit 1); exit 1; }; }
3522 # Extract the first word of "pngtopnm", so it can be a program name with args.
3523 set dummy pngtopnm; ac_word=$2
3524 echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$PNGTOPNM"; then
3530 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_PNGTOPNM="pngtopnm"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3548 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3549 if test -n "$PNGTOPNM"; then
3550 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3551 echo "${ECHO_T}$PNGTOPNM" >&6
3552 else
3553 echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3559 if test "$PNGTOPNM" = ""; then
3560 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3561 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3562 { (exit 1); exit 1; }; }
3564 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3565 set dummy ppmtoilbm; ac_word=$2
3566 echo "$as_me:$LINENO: checking for $ac_word" >&5
3567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3568 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 if test -n "$PPMTOILBM"; then
3572 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_PPMTOILBM="ppmtoilbm"
3582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3590 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3591 if test -n "$PPMTOILBM"; then
3592 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3593 echo "${ECHO_T}$PPMTOILBM" >&6
3594 else
3595 echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6
3601 if test "$PPMTOILBM" = ""; then
3602 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3603 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3604 { (exit 1); exit 1; }; }
3606 # Extract the first word of "strip", so it can be a program name with args.
3607 set dummy strip; ac_word=$2
3608 echo "$as_me:$LINENO: checking for $ac_word" >&5
3609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3610 if test "${ac_cv_prog_STRIP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 if test -n "$STRIP"; then
3614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_STRIP="strip"
3624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3627 done
3628 done
3632 STRIP=$ac_cv_prog_STRIP
3633 if test -n "$STRIP"; then
3634 echo "$as_me:$LINENO: result: $STRIP" >&5
3635 echo "${ECHO_T}$STRIP" >&6
3636 else
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3643 if test "$STRIP" = ""; then
3644 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3645 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3646 { (exit 1); exit 1; }; }
3648 # Extract the first word of "sed", so it can be a program name with args.
3649 set dummy sed; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_SED+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$SED"; then
3656 ac_cv_prog_SED="$SED" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_SED="sed"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3674 SED=$ac_cv_prog_SED
3675 if test -n "$SED"; then
3676 echo "$as_me:$LINENO: result: $SED" >&5
3677 echo "${ECHO_T}$SED" >&6
3678 else
3679 echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3685 if test "$SED" = ""; then
3686 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3687 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3688 { (exit 1); exit 1; }; }
3690 # Extract the first word of "chmod", so it can be a program name with args.
3691 set dummy chmod; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_CHMOD+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697 if test -n "$CHMOD"; then
3698 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CHMOD="chmod"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3716 CHMOD=$ac_cv_prog_CHMOD
3717 if test -n "$CHMOD"; then
3718 echo "$as_me:$LINENO: result: $CHMOD" >&5
3719 echo "${ECHO_T}$CHMOD" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3727 if test "$CHMOD" = ""; then
3728 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3729 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3730 { (exit 1); exit 1; }; }
3737 if test -n "$PYTHON"; then
3738 # If the user set $PYTHON, use it and don't search something else.
3739 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3740 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3741 prog="import sys, string
3742 # split strings by '.' and convert to numeric. Append some zeros
3743 # because we need at least 4 digits for the hex conversion.
3744 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3745 minverhex = 0
3746 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3747 sys.exit(sys.hexversion < minverhex)"
3748 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3749 ($PYTHON -c "$prog") >&5 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; then
3753 echo "$as_me:$LINENO: result: yes" >&5
3754 echo "${ECHO_T}yes" >&6
3755 else
3756 { { echo "$as_me:$LINENO: error: too old" >&5
3757 echo "$as_me: error: too old" >&2;}
3758 { (exit 1); exit 1; }; }
3761 else
3762 # Otherwise, try each interpreter until we find one that satisfies
3763 # VERSION.
3764 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3765 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3766 if test "${am_cv_pathless_PYTHON+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3770 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3771 test "$am_cv_pathless_PYTHON" = none && break
3772 prog="import sys, string
3773 # split strings by '.' and convert to numeric. Append some zeros
3774 # because we need at least 4 digits for the hex conversion.
3775 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3776 minverhex = 0
3777 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3778 sys.exit(sys.hexversion < minverhex)"
3779 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3780 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; then
3784 break
3787 done
3789 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3790 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3791 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3792 if test "$am_cv_pathless_PYTHON" = none; then
3793 PYTHON=:
3794 else
3795 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3796 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3797 echo "$as_me:$LINENO: checking for $ac_word" >&5
3798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799 if test "${ac_cv_path_PYTHON+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802 case $PYTHON in
3803 [\\/]* | ?:[\\/]*)
3804 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3818 done
3819 done
3822 esac
3824 PYTHON=$ac_cv_path_PYTHON
3826 if test -n "$PYTHON"; then
3827 echo "$as_me:$LINENO: result: $PYTHON" >&5
3828 echo "${ECHO_T}$PYTHON" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3835 am_display_PYTHON=$am_cv_pathless_PYTHON
3839 if test "$PYTHON" = :; then
3840 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
3841 echo "$as_me: error: no suitable Python interpreter found" >&2;}
3842 { (exit 1); exit 1; }; }
3843 else
3846 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
3847 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
3848 if test "${am_cv_python_version+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
3853 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
3854 echo "${ECHO_T}$am_cv_python_version" >&6
3855 PYTHON_VERSION=$am_cv_python_version
3859 PYTHON_PREFIX='${prefix}'
3861 PYTHON_EXEC_PREFIX='${exec_prefix}'
3865 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
3866 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
3867 if test "${am_cv_python_platform+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
3872 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
3873 echo "${ECHO_T}$am_cv_python_platform" >&6
3874 PYTHON_PLATFORM=$am_cv_python_platform
3879 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
3880 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
3881 if test "${am_cv_python_pythondir+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
3885 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
3887 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
3888 echo "${ECHO_T}$am_cv_python_pythondir" >&6
3889 pythondir=$am_cv_python_pythondir
3893 pkgpythondir=\${pythondir}/$PACKAGE
3896 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
3897 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
3898 if test "${am_cv_python_pyexecdir+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
3902 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
3904 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
3905 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
3906 pyexecdir=$am_cv_python_pyexecdir
3910 pkgpyexecdir=\${pyexecdir}/$PACKAGE
3918 FOR=for
3919 IF=if
3920 TEST=test
3926 # Check for some includes for the X11 HIDD and the kernel
3929 echo "$as_me:$LINENO: checking for egrep" >&5
3930 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3931 if test "${ac_cv_prog_egrep+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3935 then ac_cv_prog_egrep='grep -E'
3936 else ac_cv_prog_egrep='egrep'
3939 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3940 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3941 EGREP=$ac_cv_prog_egrep
3944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3946 if test "${ac_cv_header_stdc+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <stdlib.h>
3956 #include <stdarg.h>
3957 #include <string.h>
3958 #include <float.h>
3961 main ()
3965 return 0;
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970 (eval $ac_compile) 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_c_werror_flag"
3978 || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_header_stdc=yes
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_header_stdc=no
3997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999 if test $ac_cv_header_stdc = yes; then
4000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4001 cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 #include <string.h>
4009 _ACEOF
4010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011 $EGREP "memchr" >/dev/null 2>&1; then
4013 else
4014 ac_cv_header_stdc=no
4016 rm -f conftest*
4020 if test $ac_cv_header_stdc = yes; then
4021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h. */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 #include <stdlib.h>
4030 _ACEOF
4031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "free" >/dev/null 2>&1; then
4034 else
4035 ac_cv_header_stdc=no
4037 rm -f conftest*
4041 if test $ac_cv_header_stdc = yes; then
4042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4043 if test "$cross_compiling" = yes; then
4045 else
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <ctype.h>
4053 #if ((' ' & 0x0FF) == 0x020)
4054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056 #else
4057 # define ISLOWER(c) \
4058 (('a' <= (c) && (c) <= 'i') \
4059 || ('j' <= (c) && (c) <= 'r') \
4060 || ('s' <= (c) && (c) <= 'z'))
4061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4062 #endif
4064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4066 main ()
4068 int i;
4069 for (i = 0; i < 256; i++)
4070 if (XOR (islower (i), ISLOWER (i))
4071 || toupper (i) != TOUPPER (i))
4072 exit(2);
4073 exit (0);
4075 _ACEOF
4076 rm -f conftest$ac_exeext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078 (eval $ac_link) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4088 else
4089 echo "$as_me: program exited with status $ac_status" >&5
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4093 ( exit $ac_status )
4094 ac_cv_header_stdc=no
4096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4100 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4101 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4102 if test $ac_cv_header_stdc = yes; then
4104 cat >>confdefs.h <<\_ACEOF
4105 #define STDC_HEADERS 1
4106 _ACEOF
4110 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4121 inttypes.h stdint.h unistd.h
4123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4124 echo "$as_me:$LINENO: checking for $ac_header" >&5
4125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 $ac_includes_default
4137 #include <$ac_header>
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag"
4149 || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 eval "$as_ac_Header=yes"
4162 else
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 eval "$as_ac_Header=no"
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4173 cat >>confdefs.h <<_ACEOF
4174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4175 _ACEOF
4179 done
4191 for ac_header in sys/ipc.h sys/shm.h \
4192 sys/mmap.h sys/mman.h sysexits.h \
4193 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4198 echo "$as_me:$LINENO: checking for $ac_header" >&5
4199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4205 else
4206 # Is the header compilable?
4207 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 $ac_includes_default
4216 #include <$ac_header>
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_header_compiler=yes
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_header_compiler=no
4247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4249 echo "${ECHO_T}$ac_header_compiler" >&6
4251 # Is the header present?
4252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <$ac_header>
4261 _ACEOF
4262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } >/dev/null; then
4270 if test -s conftest.err; then
4271 ac_cpp_err=$ac_c_preproc_warn_flag
4272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4273 else
4274 ac_cpp_err=
4276 else
4277 ac_cpp_err=yes
4279 if test -z "$ac_cpp_err"; then
4280 ac_header_preproc=yes
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 ac_header_preproc=no
4287 rm -f conftest.err conftest.$ac_ext
4288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4289 echo "${ECHO_T}$ac_header_preproc" >&6
4291 # So? What about this header?
4292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4293 yes:no: )
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4298 ac_header_preproc=yes
4300 no:yes:* )
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4314 cat <<\_ASBOX
4315 ## ------------------------------------------ ##
4316 ## Report this to the AC_PACKAGE_NAME lists. ##
4317 ## ------------------------------------------ ##
4318 _ASBOX
4320 sed "s/^/$as_me: WARNING: /" >&2
4322 esac
4323 echo "$as_me:$LINENO: checking for $ac_header" >&5
4324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 eval "$as_ac_Header=\$ac_header_preproc"
4330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 _ACEOF
4341 done
4345 for ac_header in sys/mount.h
4347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348 echo "$as_me:$LINENO: checking for $ac_header" >&5
4349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 cat >conftest.$ac_ext <<_ACEOF
4354 /* confdefs.h. */
4355 _ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <sys/param.h>
4361 #include <$ac_header>
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest.$ac_objext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 eval "$as_ac_Header=yes"
4386 else
4387 echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4390 eval "$as_ac_Header=no"
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4399 _ACEOF
4403 done
4411 ac_header_dirent=no
4412 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4413 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4414 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4415 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <sys/types.h>
4426 #include <$ac_hdr>
4429 main ()
4431 if ((DIR *) 0)
4432 return 0;
4434 return 0;
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>conftest.er1
4440 ac_status=$?
4441 grep -v '^ *+' conftest.er1 >conftest.err
4442 rm -f conftest.er1
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -z "$ac_c_werror_flag"
4447 || test ! -s conftest.err'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 (eval $ac_try) 2>&5
4450 ac_status=$?
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 eval "$as_ac_Header=yes"
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 eval "$as_ac_Header=no"
4466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4473 _ACEOF
4475 ac_header_dirent=$ac_hdr; break
4478 done
4479 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4480 if test $ac_header_dirent = dirent.h; then
4481 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4482 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4483 if test "${ac_cv_search_opendir+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 ac_func_search_save_LIBS=$LIBS
4487 ac_cv_search_opendir=no
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 #ifdef __cplusplus
4497 extern "C"
4498 #endif
4499 /* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4501 char opendir ();
4503 main ()
4505 opendir ();
4507 return 0;
4509 _ACEOF
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4512 (eval $ac_link) 2>conftest.er1
4513 ac_status=$?
4514 grep -v '^ *+' conftest.er1 >conftest.err
4515 rm -f conftest.er1
4516 cat conftest.err >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -z "$ac_c_werror_flag"
4520 || test ! -s conftest.err'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; } &&
4526 { ac_try='test -s conftest$ac_exeext'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_cv_search_opendir="none required"
4533 else
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4538 rm -f conftest.err conftest.$ac_objext \
4539 conftest$ac_exeext conftest.$ac_ext
4540 if test "$ac_cv_search_opendir" = no; then
4541 for ac_lib in dir; do
4542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4543 cat >conftest.$ac_ext <<_ACEOF
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4550 /* Override any gcc2 internal prototype to avoid an error. */
4551 #ifdef __cplusplus
4552 extern "C"
4553 #endif
4554 /* We use char because int might match the return type of a gcc2
4555 builtin and then its argument prototype would still apply. */
4556 char opendir ();
4558 main ()
4560 opendir ();
4562 return 0;
4564 _ACEOF
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_c_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 ac_cv_search_opendir="-l$ac_lib"
4588 break
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4594 rm -f conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596 done
4598 LIBS=$ac_func_search_save_LIBS
4600 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4601 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4602 if test "$ac_cv_search_opendir" != no; then
4603 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4607 else
4608 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4609 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4610 if test "${ac_cv_search_opendir+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 else
4613 ac_func_search_save_LIBS=$LIBS
4614 ac_cv_search_opendir=no
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4622 /* Override any gcc2 internal prototype to avoid an error. */
4623 #ifdef __cplusplus
4624 extern "C"
4625 #endif
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4628 char opendir ();
4630 main ()
4632 opendir ();
4634 return 0;
4636 _ACEOF
4637 rm -f conftest.$ac_objext conftest$ac_exeext
4638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4639 (eval $ac_link) 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } &&
4646 { ac_try='test -z "$ac_c_werror_flag"
4647 || test ! -s conftest.err'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 (eval $ac_try) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; } &&
4653 { ac_try='test -s conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 (eval $ac_try) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_search_opendir="none required"
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f conftest.err conftest.$ac_objext \
4666 conftest$ac_exeext conftest.$ac_ext
4667 if test "$ac_cv_search_opendir" = no; then
4668 for ac_lib in x; do
4669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 #ifdef __cplusplus
4679 extern "C"
4680 #endif
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4683 char opendir ();
4685 main ()
4687 opendir ();
4689 return 0;
4691 _ACEOF
4692 rm -f conftest.$ac_objext conftest$ac_exeext
4693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4694 (eval $ac_link) 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } &&
4701 { ac_try='test -z "$ac_c_werror_flag"
4702 || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_cv_search_opendir="-l$ac_lib"
4715 break
4716 else
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4723 done
4725 LIBS=$ac_func_search_save_LIBS
4727 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4728 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4729 if test "$ac_cv_search_opendir" != no; then
4730 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4736 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4737 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4738 if test "${ac_cv_header_stat_broken+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h. */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4750 #if defined(S_ISBLK) && defined(S_IFDIR)
4751 # if S_ISBLK (S_IFDIR)
4752 You lose.
4753 # endif
4754 #endif
4756 #if defined(S_ISBLK) && defined(S_IFCHR)
4757 # if S_ISBLK (S_IFCHR)
4758 You lose.
4759 # endif
4760 #endif
4762 #if defined(S_ISLNK) && defined(S_IFREG)
4763 # if S_ISLNK (S_IFREG)
4764 You lose.
4765 # endif
4766 #endif
4768 #if defined(S_ISSOCK) && defined(S_IFREG)
4769 # if S_ISSOCK (S_IFREG)
4770 You lose.
4771 # endif
4772 #endif
4774 _ACEOF
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "You lose" >/dev/null 2>&1; then
4777 ac_cv_header_stat_broken=yes
4778 else
4779 ac_cv_header_stat_broken=no
4781 rm -f conftest*
4784 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4785 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4786 if test $ac_cv_header_stat_broken = yes; then
4788 cat >>confdefs.h <<\_ACEOF
4789 #define STAT_MACROS_BROKEN 1
4790 _ACEOF
4794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4796 if test "${ac_cv_header_stdc+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h. */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4805 #include <stdlib.h>
4806 #include <stdarg.h>
4807 #include <string.h>
4808 #include <float.h>
4811 main ()
4815 return 0;
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -z "$ac_c_werror_flag"
4828 || test ! -s conftest.err'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; } &&
4834 { ac_try='test -s conftest.$ac_objext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4840 ac_cv_header_stdc=yes
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4845 ac_cv_header_stdc=no
4847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 if test $ac_cv_header_stdc = yes; then
4850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4851 cat >conftest.$ac_ext <<_ACEOF
4852 /* confdefs.h. */
4853 _ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <string.h>
4859 _ACEOF
4860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4861 $EGREP "memchr" >/dev/null 2>&1; then
4863 else
4864 ac_cv_header_stdc=no
4866 rm -f conftest*
4870 if test $ac_cv_header_stdc = yes; then
4871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 #include <stdlib.h>
4880 _ACEOF
4881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4882 $EGREP "free" >/dev/null 2>&1; then
4884 else
4885 ac_cv_header_stdc=no
4887 rm -f conftest*
4891 if test $ac_cv_header_stdc = yes; then
4892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4893 if test "$cross_compiling" = yes; then
4895 else
4896 cat >conftest.$ac_ext <<_ACEOF
4897 /* confdefs.h. */
4898 _ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4902 #include <ctype.h>
4903 #if ((' ' & 0x0FF) == 0x020)
4904 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4905 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4906 #else
4907 # define ISLOWER(c) \
4908 (('a' <= (c) && (c) <= 'i') \
4909 || ('j' <= (c) && (c) <= 'r') \
4910 || ('s' <= (c) && (c) <= 'z'))
4911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4912 #endif
4914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4916 main ()
4918 int i;
4919 for (i = 0; i < 256; i++)
4920 if (XOR (islower (i), ISLOWER (i))
4921 || toupper (i) != TOUPPER (i))
4922 exit(2);
4923 exit (0);
4925 _ACEOF
4926 rm -f conftest$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4933 (eval $ac_try) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4938 else
4939 echo "$as_me: program exited with status $ac_status" >&5
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 ( exit $ac_status )
4944 ac_cv_header_stdc=no
4946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4950 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4951 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4952 if test $ac_cv_header_stdc = yes; then
4954 cat >>confdefs.h <<\_ACEOF
4955 #define STDC_HEADERS 1
4956 _ACEOF
4960 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4961 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4962 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <sys/types.h>
4972 #include <sys/wait.h>
4973 #ifndef WEXITSTATUS
4974 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4975 #endif
4976 #ifndef WIFEXITED
4977 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4978 #endif
4981 main ()
4983 int s;
4984 wait (&s);
4985 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4987 return 0;
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992 (eval $ac_compile) 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest.$ac_objext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 (eval $ac_try) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_header_sys_wait_h=yes
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_cv_header_sys_wait_h=no
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5022 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5023 if test $ac_cv_header_sys_wait_h = yes; then
5025 cat >>confdefs.h <<\_ACEOF
5026 #define HAVE_SYS_WAIT_H 1
5027 _ACEOF
5031 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5032 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5033 if test "${ac_cv_header_time+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <sys/types.h>
5043 #include <sys/time.h>
5044 #include <time.h>
5047 main ()
5049 if ((struct tm *) 0)
5050 return 0;
5052 return 0;
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag"
5065 || test ! -s conftest.err'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest.$ac_objext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_header_time=yes
5078 else
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5082 ac_cv_header_time=no
5084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5086 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5087 echo "${ECHO_T}$ac_cv_header_time" >&6
5088 if test $ac_cv_header_time = yes; then
5090 cat >>confdefs.h <<\_ACEOF
5091 #define TIME_WITH_SYS_TIME 1
5092 _ACEOF
5097 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5098 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5099 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5110 main ()
5112 static struct stat ac_aggr;
5113 if (ac_aggr.st_blksize)
5114 return 0;
5116 return 0;
5118 _ACEOF
5119 rm -f conftest.$ac_objext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -z "$ac_c_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_member_struct_stat_st_blksize=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h. */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5152 $ac_includes_default
5154 main ()
5156 static struct stat ac_aggr;
5157 if (sizeof ac_aggr.st_blksize)
5158 return 0;
5160 return 0;
5162 _ACEOF
5163 rm -f conftest.$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -z "$ac_c_werror_flag"
5173 || test ! -s conftest.err'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; } &&
5179 { ac_try='test -s conftest.$ac_objext'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 ac_cv_member_struct_stat_st_blksize=yes
5186 else
5187 echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5190 ac_cv_member_struct_stat_st_blksize=no
5192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5196 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5197 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5198 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5200 cat >>confdefs.h <<_ACEOF
5201 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5202 _ACEOF
5205 cat >>confdefs.h <<\_ACEOF
5206 #define HAVE_ST_BLKSIZE 1
5207 _ACEOF
5212 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5213 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5214 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h. */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5223 $ac_includes_default
5225 main ()
5227 static struct stat ac_aggr;
5228 if (ac_aggr.st_blocks)
5229 return 0;
5231 return 0;
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_member_struct_stat_st_blocks=yes
5257 else
5258 echo "$as_me: failed program was:" >&5
5259 sed 's/^/| /' conftest.$ac_ext >&5
5261 cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h. */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 $ac_includes_default
5269 main ()
5271 static struct stat ac_aggr;
5272 if (sizeof ac_aggr.st_blocks)
5273 return 0;
5275 return 0;
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try='test -z "$ac_c_werror_flag"
5288 || test ! -s conftest.err'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5290 (eval $ac_try) 2>&5
5291 ac_status=$?
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; } &&
5294 { ac_try='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_member_struct_stat_st_blocks=yes
5301 else
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 ac_cv_member_struct_stat_st_blocks=no
5307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5312 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5313 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5317 _ACEOF
5320 cat >>confdefs.h <<\_ACEOF
5321 #define HAVE_ST_BLOCKS 1
5322 _ACEOF
5324 else
5325 case $LIBOBJS in
5326 "fileblocks.$ac_objext" | \
5327 *" fileblocks.$ac_objext" | \
5328 "fileblocks.$ac_objext "* | \
5329 *" fileblocks.$ac_objext "* ) ;;
5330 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5331 esac
5337 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5338 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5339 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 $ac_includes_default
5350 main ()
5352 static struct stat ac_aggr;
5353 if (ac_aggr.st_rdev)
5354 return 0;
5356 return 0;
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_member_struct_stat_st_rdev=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5394 main ()
5396 static struct stat ac_aggr;
5397 if (sizeof ac_aggr.st_rdev)
5398 return 0;
5400 return 0;
5402 _ACEOF
5403 rm -f conftest.$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest.$ac_objext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 (eval $ac_try) 2>&5
5422 ac_status=$?
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_cv_member_struct_stat_st_rdev=yes
5426 else
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 ac_cv_member_struct_stat_st_rdev=no
5432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5437 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5438 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_STRUCT_STAT_ST_RDEV 1
5442 _ACEOF
5445 cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_ST_RDEV 1
5447 _ACEOF
5452 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5453 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5454 if test "${ac_cv_struct_tm+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <sys/types.h>
5464 #include <time.h>
5467 main ()
5469 struct tm *tp; tp->tm_sec;
5471 return 0;
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_struct_tm=time.h
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_struct_tm=sys/time.h
5503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5506 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5507 if test $ac_cv_struct_tm = sys/time.h; then
5509 cat >>confdefs.h <<\_ACEOF
5510 #define TM_IN_SYS_TIME 1
5511 _ACEOF
5515 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5516 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5517 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 #include <sys/types.h>
5527 #include <$ac_cv_struct_tm>
5531 main ()
5533 static struct tm ac_aggr;
5534 if (ac_aggr.tm_zone)
5535 return 0;
5537 return 0;
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag"
5550 || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_member_struct_tm_tm_zone=yes
5563 else
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573 #include <sys/types.h>
5574 #include <$ac_cv_struct_tm>
5578 main ()
5580 static struct tm ac_aggr;
5581 if (sizeof ac_aggr.tm_zone)
5582 return 0;
5584 return 0;
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>conftest.er1
5590 ac_status=$?
5591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -z "$ac_c_werror_flag"
5597 || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599 (eval $ac_try) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_member_struct_tm_tm_zone=yes
5610 else
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 ac_cv_member_struct_tm_tm_zone=no
5616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5621 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5622 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_STRUCT_TM_TM_ZONE 1
5626 _ACEOF
5631 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5633 cat >>confdefs.h <<\_ACEOF
5634 #define HAVE_TM_ZONE 1
5635 _ACEOF
5637 else
5638 echo "$as_me:$LINENO: checking for tzname" >&5
5639 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5640 if test "${ac_cv_var_tzname+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 #include <time.h>
5650 #ifndef tzname /* For SGI. */
5651 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5652 #endif
5655 main ()
5657 atoi(*tzname);
5659 return 0;
5661 _ACEOF
5662 rm -f conftest.$ac_objext conftest$ac_exeext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5664 (eval $ac_link) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag"
5672 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_var_tzname=yes
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_cv_var_tzname=no
5691 rm -f conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5695 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5696 if test $ac_cv_var_tzname = yes; then
5698 cat >>confdefs.h <<\_ACEOF
5699 #define HAVE_TZNAME 1
5700 _ACEOF
5705 echo "$as_me:$LINENO: checking for off_t" >&5
5706 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5707 if test "${ac_cv_type_off_t+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5718 main ()
5720 if ((off_t *) 0)
5721 return 0;
5722 if (sizeof (off_t))
5723 return 0;
5725 return 0;
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest.$ac_objext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_type_off_t=yes
5751 else
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ac_cv_type_off_t=no
5757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5759 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5761 if test $ac_cv_type_off_t = yes; then
5763 else
5765 cat >>confdefs.h <<_ACEOF
5766 #define off_t long
5767 _ACEOF
5771 echo "$as_me:$LINENO: checking for pid_t" >&5
5772 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5773 if test "${ac_cv_type_pid_t+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5784 main ()
5786 if ((pid_t *) 0)
5787 return 0;
5788 if (sizeof (pid_t))
5789 return 0;
5791 return 0;
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag"
5804 || test ! -s conftest.err'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 (eval $ac_try) 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; } &&
5810 { ac_try='test -s conftest.$ac_objext'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; }; then
5816 ac_cv_type_pid_t=yes
5817 else
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 ac_cv_type_pid_t=no
5823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5826 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5827 if test $ac_cv_type_pid_t = yes; then
5829 else
5831 cat >>confdefs.h <<_ACEOF
5832 #define pid_t int
5833 _ACEOF
5837 echo "$as_me:$LINENO: checking for size_t" >&5
5838 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5839 if test "${ac_cv_type_size_t+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 $ac_includes_default
5850 main ()
5852 if ((size_t *) 0)
5853 return 0;
5854 if (sizeof (size_t))
5855 return 0;
5857 return 0;
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_cv_type_size_t=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5887 ac_cv_type_size_t=no
5889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5891 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5892 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5893 if test $ac_cv_type_size_t = yes; then
5895 else
5897 cat >>confdefs.h <<_ACEOF
5898 #define size_t unsigned
5899 _ACEOF
5903 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5904 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5905 if test "${ac_cv_type_uid_t+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h. */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5916 _ACEOF
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "uid_t" >/dev/null 2>&1; then
5919 ac_cv_type_uid_t=yes
5920 else
5921 ac_cv_type_uid_t=no
5923 rm -f conftest*
5926 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5927 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5928 if test $ac_cv_type_uid_t = no; then
5930 cat >>confdefs.h <<\_ACEOF
5931 #define uid_t int
5932 _ACEOF
5935 cat >>confdefs.h <<\_ACEOF
5936 #define gid_t int
5937 _ACEOF
5942 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5943 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5944 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5955 main ()
5957 static struct tm ac_aggr;
5958 if (ac_aggr.tm_gmtoff)
5959 return 0;
5961 return 0;
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
5986 ac_cv_member_struct_tm_tm_gmtoff=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5999 main ()
6001 static struct tm ac_aggr;
6002 if (sizeof ac_aggr.tm_gmtoff)
6003 return 0;
6005 return 0;
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010 (eval $ac_compile) 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -z "$ac_c_werror_flag"
6018 || test ! -s conftest.err'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026 (eval $ac_try) 2>&5
6027 ac_status=$?
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); }; }; then
6030 ac_cv_member_struct_tm_tm_gmtoff=yes
6031 else
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_cv_member_struct_tm_tm_gmtoff=no
6037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6042 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6043 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6045 cat >>confdefs.h <<_ACEOF
6046 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6047 _ACEOF
6053 # Look for some functions
6068 for ac_func in getpagesize kqueue statfs statvfs \
6069 clone kse_create rfork_thread thr_create sa_register \
6070 getcontext makecontext setcontext sigaltstack swapcontext
6072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6073 echo "$as_me:$LINENO: checking for $ac_func" >&5
6074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6075 if eval "test \"\${$as_ac_var+set}\" = set"; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6086 #define $ac_func innocuous_$ac_func
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func (); below.
6090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6091 <limits.h> exists even on freestanding compilers. */
6093 #ifdef __STDC__
6094 # include <limits.h>
6095 #else
6096 # include <assert.h>
6097 #endif
6099 #undef $ac_func
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 #ifdef __cplusplus
6103 extern "C"
6105 #endif
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6108 char $ac_func ();
6109 /* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6113 choke me
6114 #else
6115 char (*f) () = $ac_func;
6116 #endif
6117 #ifdef __cplusplus
6119 #endif
6122 main ()
6124 return f != $ac_func;
6126 return 0;
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 (eval $ac_try) 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 eval "$as_ac_var=yes"
6152 else
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 eval "$as_ac_var=no"
6158 rm -f conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6163 if test `eval echo '${'$as_ac_var'}'` = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6166 _ACEOF
6169 done
6174 for ac_header in stdlib.h unistd.h
6176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178 echo "$as_me:$LINENO: checking for $ac_header" >&5
6179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185 else
6186 # Is the header compilable?
6187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 $ac_includes_default
6196 #include <$ac_header>
6197 _ACEOF
6198 rm -f conftest.$ac_objext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6200 (eval $ac_compile) 2>conftest.er1
6201 ac_status=$?
6202 grep -v '^ *+' conftest.er1 >conftest.err
6203 rm -f conftest.er1
6204 cat conftest.err >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); } &&
6207 { ac_try='test -z "$ac_c_werror_flag"
6208 || test ! -s conftest.err'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; } &&
6214 { ac_try='test -s conftest.$ac_objext'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 ac_header_compiler=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_header_compiler=no
6227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6229 echo "${ECHO_T}$ac_header_compiler" >&6
6231 # Is the header present?
6232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <$ac_header>
6241 _ACEOF
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null; then
6250 if test -s conftest.err; then
6251 ac_cpp_err=$ac_c_preproc_warn_flag
6252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6253 else
6254 ac_cpp_err=
6256 else
6257 ac_cpp_err=yes
6259 if test -z "$ac_cpp_err"; then
6260 ac_header_preproc=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_preproc=no
6267 rm -f conftest.err conftest.$ac_ext
6268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6269 echo "${ECHO_T}$ac_header_preproc" >&6
6271 # So? What about this header?
6272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6273 yes:no: )
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6278 ac_header_preproc=yes
6280 no:yes:* )
6281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6294 cat <<\_ASBOX
6295 ## ------------------------------------------ ##
6296 ## Report this to the AC_PACKAGE_NAME lists. ##
6297 ## ------------------------------------------ ##
6298 _ASBOX
6300 sed "s/^/$as_me: WARNING: /" >&2
6302 esac
6303 echo "$as_me:$LINENO: checking for $ac_header" >&5
6304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 eval "$as_ac_Header=\$ac_header_preproc"
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6321 done
6324 for ac_func in getpagesize
6326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6327 echo "$as_me:$LINENO: checking for $ac_func" >&5
6328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6329 if eval "test \"\${$as_ac_var+set}\" = set"; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6340 #define $ac_func innocuous_$ac_func
6342 /* System header to define __stub macros and hopefully few prototypes,
6343 which can conflict with char $ac_func (); below.
6344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6345 <limits.h> exists even on freestanding compilers. */
6347 #ifdef __STDC__
6348 # include <limits.h>
6349 #else
6350 # include <assert.h>
6351 #endif
6353 #undef $ac_func
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 #ifdef __cplusplus
6357 extern "C"
6359 #endif
6360 /* We use char because int might match the return type of a gcc2
6361 builtin and then its argument prototype would still apply. */
6362 char $ac_func ();
6363 /* The GNU C library defines this for functions which it implements
6364 to always fail with ENOSYS. Some functions are actually named
6365 something starting with __ and the normal name is an alias. */
6366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6367 choke me
6368 #else
6369 char (*f) () = $ac_func;
6370 #endif
6371 #ifdef __cplusplus
6373 #endif
6376 main ()
6378 return f != $ac_func;
6380 return 0;
6382 _ACEOF
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6385 (eval $ac_link) 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag"
6393 || test ! -s conftest.err'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; } &&
6399 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6405 eval "$as_ac_var=yes"
6406 else
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6410 eval "$as_ac_var=no"
6412 rm -f conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext conftest.$ac_ext
6415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6417 if test `eval echo '${'$as_ac_var'}'` = yes; then
6418 cat >>confdefs.h <<_ACEOF
6419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6420 _ACEOF
6423 done
6425 echo "$as_me:$LINENO: checking for working mmap" >&5
6426 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6427 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429 else
6430 if test "$cross_compiling" = yes; then
6431 ac_cv_func_mmap_fixed_mapped=no
6432 else
6433 cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h. */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 $ac_includes_default
6440 /* malloc might have been renamed as rpl_malloc. */
6441 #undef malloc
6443 /* Thanks to Mike Haertel and Jim Avera for this test.
6444 Here is a matrix of mmap possibilities:
6445 mmap private not fixed
6446 mmap private fixed at somewhere currently unmapped
6447 mmap private fixed at somewhere already mapped
6448 mmap shared not fixed
6449 mmap shared fixed at somewhere currently unmapped
6450 mmap shared fixed at somewhere already mapped
6451 For private mappings, we should verify that changes cannot be read()
6452 back from the file, nor mmap's back from the file at a different
6453 address. (There have been systems where private was not correctly
6454 implemented like the infamous i386 svr4.0, and systems where the
6455 VM page cache was not coherent with the file system buffer cache
6456 like early versions of FreeBSD and possibly contemporary NetBSD.)
6457 For shared mappings, we should conversely verify that changes get
6458 propagated back to all the places they're supposed to be.
6460 Grep wants private fixed already mapped.
6461 The main things grep needs to know about mmap are:
6462 * does it exist and is it safe to write into the mmap'd area
6463 * how to use it (BSD variants) */
6465 #include <fcntl.h>
6466 #include <sys/mman.h>
6468 #if !STDC_HEADERS && !HAVE_STDLIB_H
6469 char *malloc ();
6470 #endif
6472 /* This mess was copied from the GNU getpagesize.h. */
6473 #if !HAVE_GETPAGESIZE
6474 /* Assume that all systems that can run configure have sys/param.h. */
6475 # if !HAVE_SYS_PARAM_H
6476 # define HAVE_SYS_PARAM_H 1
6477 # endif
6479 # ifdef _SC_PAGESIZE
6480 # define getpagesize() sysconf(_SC_PAGESIZE)
6481 # else /* no _SC_PAGESIZE */
6482 # if HAVE_SYS_PARAM_H
6483 # include <sys/param.h>
6484 # ifdef EXEC_PAGESIZE
6485 # define getpagesize() EXEC_PAGESIZE
6486 # else /* no EXEC_PAGESIZE */
6487 # ifdef NBPG
6488 # define getpagesize() NBPG * CLSIZE
6489 # ifndef CLSIZE
6490 # define CLSIZE 1
6491 # endif /* no CLSIZE */
6492 # else /* no NBPG */
6493 # ifdef NBPC
6494 # define getpagesize() NBPC
6495 # else /* no NBPC */
6496 # ifdef PAGESIZE
6497 # define getpagesize() PAGESIZE
6498 # endif /* PAGESIZE */
6499 # endif /* no NBPC */
6500 # endif /* no NBPG */
6501 # endif /* no EXEC_PAGESIZE */
6502 # else /* no HAVE_SYS_PARAM_H */
6503 # define getpagesize() 8192 /* punt totally */
6504 # endif /* no HAVE_SYS_PARAM_H */
6505 # endif /* no _SC_PAGESIZE */
6507 #endif /* no HAVE_GETPAGESIZE */
6510 main ()
6512 char *data, *data2, *data3;
6513 int i, pagesize;
6514 int fd;
6516 pagesize = getpagesize ();
6518 /* First, make a file with some known garbage in it. */
6519 data = (char *) malloc (pagesize);
6520 if (!data)
6521 exit (1);
6522 for (i = 0; i < pagesize; ++i)
6523 *(data + i) = rand ();
6524 umask (0);
6525 fd = creat ("conftest.mmap", 0600);
6526 if (fd < 0)
6527 exit (1);
6528 if (write (fd, data, pagesize) != pagesize)
6529 exit (1);
6530 close (fd);
6532 /* Next, try to mmap the file at a fixed address which already has
6533 something else allocated at it. If we can, also make sure that
6534 we see the same garbage. */
6535 fd = open ("conftest.mmap", O_RDWR);
6536 if (fd < 0)
6537 exit (1);
6538 data2 = (char *) malloc (2 * pagesize);
6539 if (!data2)
6540 exit (1);
6541 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6542 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6543 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6544 exit (1);
6545 for (i = 0; i < pagesize; ++i)
6546 if (*(data + i) != *(data2 + i))
6547 exit (1);
6549 /* Finally, make sure that changes to the mapped area do not
6550 percolate back to the file as seen by read(). (This is a bug on
6551 some variants of i386 svr4.0.) */
6552 for (i = 0; i < pagesize; ++i)
6553 *(data2 + i) = *(data2 + i) + 1;
6554 data3 = (char *) malloc (pagesize);
6555 if (!data3)
6556 exit (1);
6557 if (read (fd, data3, pagesize) != pagesize)
6558 exit (1);
6559 for (i = 0; i < pagesize; ++i)
6560 if (*(data + i) != *(data3 + i))
6561 exit (1);
6562 close (fd);
6563 exit (0);
6565 _ACEOF
6566 rm -f conftest$ac_exeext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568 (eval $ac_link) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_cv_func_mmap_fixed_mapped=yes
6578 else
6579 echo "$as_me: program exited with status $ac_status" >&5
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ( exit $ac_status )
6584 ac_cv_func_mmap_fixed_mapped=no
6586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6590 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6591 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_MMAP 1
6595 _ACEOF
6598 rm -f conftest.mmap
6601 # Find X
6602 echo "$as_me:$LINENO: checking for X" >&5
6603 echo $ECHO_N "checking for X... $ECHO_C" >&6
6606 # Check whether --with-x or --without-x was given.
6607 if test "${with_x+set}" = set; then
6608 withval="$with_x"
6611 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6612 if test "x$with_x" = xno; then
6613 # The user explicitly disabled X.
6614 have_x=disabled
6615 else
6616 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6617 # Both variables are already set.
6618 have_x=yes
6619 else
6620 if test "${ac_cv_have_x+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 # One or both of the vars are not set, and there is no cached value.
6624 ac_x_includes=no ac_x_libraries=no
6625 rm -fr conftest.dir
6626 if mkdir conftest.dir; then
6627 cd conftest.dir
6628 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6629 cat >Imakefile <<'_ACEOF'
6630 acfindx:
6631 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6632 _ACEOF
6633 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6635 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6636 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6637 for ac_extension in a so sl; do
6638 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6639 test -f $ac_im_libdir/libX11.$ac_extension; then
6640 ac_im_usrlibdir=$ac_im_libdir; break
6642 done
6643 # Screen out bogus values from the imake configuration. They are
6644 # bogus both because they are the default anyway, and because
6645 # using them would break gcc on systems where it needs fixed includes.
6646 case $ac_im_incroot in
6647 /usr/include) ;;
6648 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6649 esac
6650 case $ac_im_usrlibdir in
6651 /usr/lib | /lib) ;;
6652 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6653 esac
6655 cd ..
6656 rm -fr conftest.dir
6659 # Standard set of common directories for X headers.
6660 # Check X11 before X11Rn because it is often a symlink to the current release.
6661 ac_x_header_dirs='
6662 /usr/X11/include
6663 /usr/X11R6/include
6664 /usr/X11R5/include
6665 /usr/X11R4/include
6667 /usr/include/X11
6668 /usr/include/X11R6
6669 /usr/include/X11R5
6670 /usr/include/X11R4
6672 /usr/local/X11/include
6673 /usr/local/X11R6/include
6674 /usr/local/X11R5/include
6675 /usr/local/X11R4/include
6677 /usr/local/include/X11
6678 /usr/local/include/X11R6
6679 /usr/local/include/X11R5
6680 /usr/local/include/X11R4
6682 /usr/X386/include
6683 /usr/x386/include
6684 /usr/XFree86/include/X11
6686 /usr/include
6687 /usr/local/include
6688 /usr/unsupported/include
6689 /usr/athena/include
6690 /usr/local/x11r5/include
6691 /usr/lpp/Xamples/include
6693 /usr/openwin/include
6694 /usr/openwin/share/include'
6696 if test "$ac_x_includes" = no; then
6697 # Guess where to find include files, by looking for Intrinsic.h.
6698 # First, try using that file with no special directory specified.
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <X11/Intrinsic.h>
6706 _ACEOF
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_c_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6718 else
6719 ac_cpp_err=
6721 else
6722 ac_cpp_err=yes
6724 if test -z "$ac_cpp_err"; then
6725 # We can compile using X headers with no special include directory.
6726 ac_x_includes=
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 for ac_dir in $ac_x_header_dirs; do
6732 if test -r "$ac_dir/X11/Intrinsic.h"; then
6733 ac_x_includes=$ac_dir
6734 break
6736 done
6738 rm -f conftest.err conftest.$ac_ext
6739 fi # $ac_x_includes = no
6741 if test "$ac_x_libraries" = no; then
6742 # Check for the libraries.
6743 # See if we find them without any special options.
6744 # Don't add to $LIBS permanently.
6745 ac_save_LIBS=$LIBS
6746 LIBS="-lXt $LIBS"
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <X11/Intrinsic.h>
6755 main ()
6757 XtMalloc (0)
6759 return 0;
6761 _ACEOF
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } &&
6771 { ac_try='test -z "$ac_c_werror_flag"
6772 || test ! -s conftest.err'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; } &&
6778 { ac_try='test -s conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
6784 LIBS=$ac_save_LIBS
6785 # We can link X programs with no special library path.
6786 ac_x_libraries=
6787 else
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 LIBS=$ac_save_LIBS
6792 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6794 # Don't even attempt the hair of trying to link an X program!
6795 for ac_extension in a so sl; do
6796 if test -r $ac_dir/libXt.$ac_extension; then
6797 ac_x_libraries=$ac_dir
6798 break 2
6800 done
6801 done
6803 rm -f conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
6805 fi # $ac_x_libraries = no
6807 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6808 # Didn't find X anywhere. Cache the known absence of X.
6809 ac_cv_have_x="have_x=no"
6810 else
6811 # Record where we found X for the cache.
6812 ac_cv_have_x="have_x=yes \
6813 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6818 eval "$ac_cv_have_x"
6819 fi # $with_x != no
6821 if test "$have_x" != yes; then
6822 echo "$as_me:$LINENO: result: $have_x" >&5
6823 echo "${ECHO_T}$have_x" >&6
6824 no_x=yes
6825 else
6826 # If each of the values was on the command line, it overrides each guess.
6827 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6828 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6829 # Update the cache value to reflect the command line values.
6830 ac_cv_have_x="have_x=yes \
6831 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6832 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6833 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6839 # Find all the tools we need to compile. This could be cross-compiling
6840 # though! If that is the case we use the GNU form of the target and
6841 # simply add this to the front of the binary name. This is rather simple,
6842 # but it should work under most circumstances.
6844 # The default tools are to use the same as the host, but only if the
6845 # host and target CPU are the same. With GCC this is normally enough.
6848 aros_cc_pre=""
6849 aros_target_cc="$aros_host_cc"
6850 aros_target_as="$aros_host_cc"
6851 aros_shared_ld="$aros_host_ld"
6852 aros_kernel_ld="$aros_host_ld"
6853 aros_target_ld="$aros_host_ld"
6855 aros_target_mkdep="$aros_host_mkdep"
6856 aros_target_incl_def="$aros_host_incl"
6858 # The default tools executables to be linked at.
6859 if test "$GCC" = "yes"; then
6860 aros_gcc_ar=`$CC -print-prog-name=ar`
6861 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
6862 set dummy `basename $aros_gcc_ar`; ac_word=$2
6863 echo "$as_me:$LINENO: checking for $ac_word" >&5
6864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6865 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868 case $aros_target_ar_ln in
6869 [\\/]* | ?:[\\/]*)
6870 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in `dirname $aros_gcc_ar`
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6884 done
6885 done
6888 esac
6890 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
6892 if test -n "$aros_target_ar_ln"; then
6893 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6894 echo "${ECHO_T}$aros_target_ar_ln" >&6
6895 else
6896 echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6
6901 if test "$aros_target_ar_ln" = ""; then
6902 # Extract the first word of "ar", so it can be a program name with args.
6903 set dummy ar; ac_word=$2
6904 echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6906 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 case $aros_target_ar_ln in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
6922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6925 done
6926 done
6929 esac
6931 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
6933 if test -n "$aros_target_ar_ln"; then
6934 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
6935 echo "${ECHO_T}$aros_target_ar_ln" >&6
6936 else
6937 echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6942 if test "$aros_target_ar_ln" = ""; then
6943 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
6944 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
6945 { (exit 1); exit 1; }; }
6947 if test "$GCC" = "yes"; then
6948 aros_gcc_nm=`$CC -print-prog-name=nm`
6949 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
6950 set dummy `basename $aros_gcc_nm`; ac_word=$2
6951 echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6953 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 case $aros_target_nm_ln in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in `dirname $aros_gcc_nm`
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6972 done
6973 done
6976 esac
6978 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
6980 if test -n "$aros_target_nm_ln"; then
6981 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
6982 echo "${ECHO_T}$aros_target_nm_ln" >&6
6983 else
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6989 if test "$aros_target_nm_ln" = ""; then
6990 # Extract the first word of "nm", so it can be a program name with args.
6991 set dummy nm; ac_word=$2
6992 echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6994 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 case $aros_target_nm_ln in
6998 [\\/]* | ?:[\\/]*)
6999 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7013 done
7014 done
7017 esac
7019 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
7021 if test -n "$aros_target_nm_ln"; then
7022 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
7023 echo "${ECHO_T}$aros_target_nm_ln" >&6
7024 else
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7030 if test "$aros_target_nm_ln" = ""; then
7031 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
7032 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
7033 { (exit 1); exit 1; }; }
7035 if test "$GCC" = "yes"; then
7036 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
7037 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
7038 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
7039 echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7041 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 case $aros_target_objcopy_ln in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in `dirname $aros_gcc_objcopy`
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7060 done
7061 done
7064 esac
7066 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7068 if test -n "$aros_target_objcopy_ln"; then
7069 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7070 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7071 else
7072 echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6
7077 if test "$aros_target_objcopy_ln" = ""; then
7078 # Extract the first word of "objcopy", so it can be a program name with args.
7079 set dummy objcopy; ac_word=$2
7080 echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7082 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085 case $aros_target_objcopy_ln in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7105 esac
7107 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7109 if test -n "$aros_target_objcopy_ln"; then
7110 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7111 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7112 else
7113 echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6
7118 if test "$aros_target_objcopy_ln" = ""; then
7119 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
7120 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
7121 { (exit 1); exit 1; }; }
7123 if test "$GCC" = "yes"; then
7124 aros_gcc_objdump=`$CC -print-prog-name=objdump`
7125 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
7126 set dummy `basename $aros_gcc_objdump`; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 case $aros_target_objdump_ln in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in `dirname $aros_gcc_objdump`
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7152 esac
7154 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7156 if test -n "$aros_target_objdump_ln"; then
7157 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7158 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7159 else
7160 echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7165 if test "$aros_target_objdump_ln" = ""; then
7166 # Extract the first word of "objdump", so it can be a program name with args.
7167 set dummy objdump; ac_word=$2
7168 echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173 case $aros_target_objdump_ln in
7174 [\\/]* | ?:[\\/]*)
7175 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7193 esac
7195 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7197 if test -n "$aros_target_objdump_ln"; then
7198 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7199 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7200 else
7201 echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7206 if test "$aros_target_objdump_ln" = ""; then
7207 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
7208 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
7209 { (exit 1); exit 1; }; }
7211 if test "$GCC" = "yes"; then
7212 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
7213 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
7214 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
7215 echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7217 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 case $aros_target_ranlib_ln in
7221 [\\/]* | ?:[\\/]*)
7222 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in `dirname $aros_gcc_ranlib`
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7236 done
7237 done
7240 esac
7242 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7244 if test -n "$aros_target_ranlib_ln"; then
7245 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7246 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7247 else
7248 echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6
7253 if test "$aros_target_ranlib_ln" = ""; then
7254 # Extract the first word of "ranlib", so it can be a program name with args.
7255 set dummy ranlib; ac_word=$2
7256 echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7258 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 case $aros_target_ranlib_ln in
7262 [\\/]* | ?:[\\/]*)
7263 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275 break 2
7277 done
7278 done
7281 esac
7283 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7285 if test -n "$aros_target_ranlib_ln"; then
7286 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7287 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7288 else
7289 echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6
7294 if test "$aros_target_ranlib_ln" = ""; then
7295 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
7296 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
7297 { (exit 1); exit 1; }; }
7299 if test "$GCC" = "yes"; then
7300 aros_gcc_strip=`$CC -print-prog-name=strip`
7301 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
7302 set dummy `basename $aros_gcc_strip`; ac_word=$2
7303 echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7305 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 case $aros_target_strip_ln in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in `dirname $aros_gcc_strip`
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7328 esac
7330 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7332 if test -n "$aros_target_strip_ln"; then
7333 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7334 echo "${ECHO_T}$aros_target_strip_ln" >&6
7335 else
7336 echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7341 if test "$aros_target_strip_ln" = ""; then
7342 # Extract the first word of "strip", so it can be a program name with args.
7343 set dummy strip; ac_word=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 case $aros_target_strip_ln in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7369 esac
7371 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7373 if test -n "$aros_target_strip_ln"; then
7374 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7375 echo "${ECHO_T}$aros_target_strip_ln" >&6
7376 else
7377 echo "$as_me:$LINENO: result: no" >&5
7378 echo "${ECHO_T}no" >&6
7382 if test "$aros_target_strip_ln" = ""; then
7383 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
7384 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
7385 { (exit 1); exit 1; }; }
7388 if test "$GCC" = "yes"; then
7389 aros_target_cc_path=`$CC -print-search-dirs | grep "programs: =" | cut -c 12-`
7392 # It is necessary to clear the include and link paths for target
7393 # commands. This should help clear up problems when cross compiling.
7394 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7395 aros_config_aflags="-Wall -x assembler-with-cpp"
7396 aros_config_ldflags=""
7398 aros_shared_default=yes
7400 aros_shared_cflags="-fPIC"
7401 aros_shared_aflags=""
7402 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7403 aros_kernel_ldflags="-Wl,-rpath,./lib"
7405 aros_compiler_libs=
7407 aros_target_genmap="-Wl,-Map -Xlinker"
7409 # Native flavour stuff
7410 aros_bochs_hack="0"
7411 aros_serial_debug="0"
7413 # Palm native flavour stuff
7414 aros_palm_debug_hack="0"
7416 # Unix flavour stuff
7417 aros_nesting_supervisor="0"
7419 # Collect-aros stuff: "-ius" to ignore undefined symbols
7420 ignore_undefined_symbols=""
7422 # X11 Xshm
7423 DO_XSHM_SUPPORT="1"
7426 #-----------------------------------------------------------------------------
7428 echo "$as_me:$LINENO: checking for type of build" >&5
7429 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7430 # Check whether --enable-build_type or --disable-build_type was given.
7431 if test "${enable_build_type+set}" = set; then
7432 enableval="$enable_build_type"
7433 build_type=$enableval
7434 else
7435 build_type="personal"
7438 if test "$build_type" = "nightly"; then
7439 build_type_string="NIGHTLY"
7440 elif test "$build_type" = "snapshot"; then
7441 build_type_string="SNAPSHOT"
7442 elif test "$build_type" = "milestone"; then
7443 build_type_string="MILESTONE"
7444 elif test "$build_type" = "release"; then
7445 build_type_string="RELEASE"
7446 else
7447 build_type_string="PERSONAL"
7448 build_type="personal"
7451 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7453 echo "$as_me:$LINENO: result: $build_type" >&5
7454 echo "${ECHO_T}$build_type" >&6
7456 #-----------------------------------------------------------------------------
7457 all_debug_types="messages stack mungwall modules symbols"
7459 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7460 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7461 # Check whether --enable-debug or --disable-debug was given.
7462 if test "${enable_debug+set}" = set; then
7463 enableval="$enable_debug"
7464 debug="$enableval"
7465 else
7466 debug=""
7469 if test "$debug" = "" -o "$debug" = "no"; then
7470 debug="none"
7471 elif test "$debug" = "yes"; then
7472 debug="all"
7475 if test "$debug" = "all" ; then
7476 debug=$all_debug_types
7477 for d in $all_debug_types; do
7478 export aros_${d}_debug="1"
7479 done
7480 else
7481 for d in $all_debug_types; do
7482 export aros_${d}_debug="0"
7483 done
7486 if test "$debug" != "none"; then
7487 debug=`echo $debug | sed s/,/\ /g`
7488 for d in $debug; do
7489 found="0"
7490 for d2 in $all_debug_types; do
7491 if test "$d2" = "$d"; then
7492 found="1"
7493 break
7495 done
7496 if test "$found" = "0"; then
7497 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7498 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7499 { (exit 1); exit 1; }; }
7501 export aros_${d}_debug="1"
7502 done
7503 aros_debug="yes"
7505 echo "$as_me:$LINENO: result: $debug" >&5
7506 echo "${ECHO_T}$debug" >&6
7508 if test "$aros_messages_debug" = "1"; then
7509 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7510 else
7511 aros_messages_debug=""
7513 if test "$aros_symbols_debug" = "1"; then
7514 aros_symbols_debug="-g"
7515 else
7516 aros_symbols_debug=""
7519 # These are the flags to pass when compiling debugged programs
7520 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7521 aros_debug_aflags=""
7522 aros_debug_ldflags="$aros_symbols_debug"
7524 #-----------------------------------------------------------------------------
7525 # Checking for distcc and ccache.
7527 # Always apply the transforms in this particular order. Basically you should
7528 # always run 'ccache distcc compiler' in that order for the best performance.
7530 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7531 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7532 # Check whether --enable-distcc or --disable-distcc was given.
7533 if test "${enable_distcc+set}" = set; then
7534 enableval="$enable_distcc"
7535 distcc="$enableval"
7536 else
7537 distcc="no"
7539 if test "$distcc" != "" -a "$distcc" != "no"; then
7540 # AC_CHECK_PROG will print out the result in this case
7541 # Extract the first word of "distcc", so it can be a program name with args.
7542 set dummy distcc; ac_word=$2
7543 echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545 if test "${ac_cv_path_DISTCC+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 case $DISTCC in
7549 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in no
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 break 2
7564 done
7565 done
7567 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7569 esac
7571 DISTCC=$ac_cv_path_DISTCC
7573 if test -n "$DISTCC"; then
7574 echo "$as_me:$LINENO: result: $DISTCC" >&5
7575 echo "${ECHO_T}$DISTCC" >&6
7576 else
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7581 else
7582 echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7586 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7587 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7588 # Check whether --enable-ccache or --disable-ccache was given.
7589 if test "${enable_ccache+set}" = set; then
7590 enableval="$enable_ccache"
7591 ccache="$enableval"
7592 else
7593 ccache="no"
7595 if test "$ccache" != "" -a "$ccache" != "no"; then
7596 # AC_CHECK_PROG will print out the result in this case
7597 # Extract the first word of "ccache", so it can be a program name with args.
7598 set dummy ccache; ac_word=$2
7599 echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7601 if test "${ac_cv_prog_CCACHE+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604 if test -n "$CCACHE"; then
7605 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_CCACHE="ccache"
7615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7618 done
7619 done
7621 test -z "$ac_cv_prog_CCACHE" && ac_cv_prog_CCACHE="no"
7624 CCACHE=$ac_cv_prog_CCACHE
7625 if test -n "$CCACHE"; then
7626 echo "$as_me:$LINENO: result: $CCACHE" >&5
7627 echo "${ECHO_T}$CCACHE" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630 echo "${ECHO_T}no" >&6
7633 else
7634 echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6
7638 #-----------------------------------------------------------------------------
7639 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7640 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7642 # Check whether --with-optimization or --without-optimization was given.
7643 if test "${with_optimization+set}" = set; then
7644 withval="$with_optimization"
7645 optimization="$withval"
7646 else
7647 optimization="unknown"
7649 if test "$optimization" = "unknown"; then
7650 if test "$debug" != "none"; then
7651 optimization="-O0"
7652 else
7653 optimization="-O2"
7656 aros_config_cflags="$aros_config_cflags $optimization"
7657 echo "$as_me:$LINENO: result: $optimization" >&5
7658 echo "${ECHO_T}$optimization" >&6
7660 #-----------------------------------------------------------------------------
7661 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7662 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7663 # Check whether --enable-target_variant or --disable-target_variant was given.
7664 if test "${enable_target_variant+set}" = set; then
7665 enableval="$enable_target_variant"
7666 target_variant=$enableval
7667 else
7668 target_variant="none"
7670 if test "$target_variant" = "none"; then
7671 aros_target_variant=""
7672 aros_target_suffix=""
7673 else
7674 aros_target_variant="$target_variant"
7675 aros_target_suffix="-$target_variant"
7677 echo "$as_me:$LINENO: result: $enableval" >&5
7678 echo "${ECHO_T}$enableval" >&6
7680 #-----------------------------------------------------------------------------
7681 # This is the target configuration switch.
7682 case "$target_os" in
7683 linux*)
7684 aros_target_arch="linux"
7685 case "$target_cpu" in
7686 *m68k*)
7687 aros_target_cpu="m68k"
7688 aros_object_format="m68kelf"
7689 aros_flavour="emulcompat"
7690 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7691 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7692 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7693 gcc_target_cpu="mc68000"
7695 *i?86*)
7696 aros_target_cpu="i386"
7697 aros_object_format="elf_i386"
7698 aros_flavour="emulation"
7699 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7700 aros_default_wbdepth=8
7701 gcc_target_cpu="i386"
7703 *x86_64*)
7704 aros_target_cpu="x86_64"
7705 aros_object_format="elf_x86_64"
7706 aros_flavour="emulation"
7707 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7708 aros_default_wbdepth=8
7709 gcc_target_cpu="x86_64"
7711 *powerpc*)
7712 aros_target_cpu="ppc"
7713 aros_object_format="elf32ppc"
7714 aros_flavour="emulation"
7715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7716 aros_default_wbdepth=8
7717 aros_compiler_libs="-lgcc"
7718 gcc_target_cpu="ppc"
7721 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7722 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7723 { (exit 1); exit 1; }; }
7725 esac
7729 aros_target_arch="pc"
7730 aros_shared_default="no"
7731 case "$target_cpu" in
7732 *i?86*)
7733 aros_target_cpu="i386"
7736 if test "$aros_object_format" = "" ; then
7737 aros_object_format="elf_i386"
7739 aros_flavour="standalone"
7740 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7741 aros_kernel_ldflags=""
7742 aros_default_wbwidth=640
7743 aros_default_wbheight=480
7744 gcc_target_cpu="i386"
7747 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7748 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7749 { (exit 1); exit 1; }; }
7751 esac
7754 prep)
7755 aros_target_arch="prep"
7756 aros_shared_default="no"
7757 aros_target_cpu="ppc"
7758 aros_object_format="elf32ppc"
7759 aros_flavour="ppcnative"
7760 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7761 aros_kernel_ldflags=""
7762 aros_default_wbwidth=640
7763 aros_default_wbheight=480
7764 gcc_target_cpu="ppc"
7765 case "$target_cpu" in
7766 *cross*)
7767 aros_target_cc="ppc-linux-gcc -pipe"
7768 aros_target_ld="ppc-linux-ld"
7769 aros_target_as="ppc-linux-as"
7770 aros_target_ar="ppc-linux-ar"
7771 aros_target_ranlib="ppc-linux-ranlib"
7772 aros_target_nm="ppc-linux-nm"
7773 aros_target_strip="ppc-linux-strip"
7774 aros_target_objcopy="ppc-linux-objcopy"
7775 aros_target_objdump="ppc-linux-objdump"
7776 aros_shared_ld="ppc-linux-ld"
7777 aros_kernel_ld="ppc-linux-ld"
7781 esac
7784 freebsd*)
7785 aros_target_arch="freebsd"
7786 aros_target_cpu="i386"
7787 aros_flavour="emulation"
7788 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7789 gcc_target_cpu="i386"
7791 strip_args="-x"
7794 netbsd*)
7795 aros_target_arch="netbsd"
7796 case "$target_cpu" in
7797 *m68k*)
7798 aros_target_cpu="m68k"
7799 aros_object_format="m68kelf"
7800 aros_flavour="emulcompat"
7801 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7802 gcc_target_cpu="mc68000"
7804 *i?86*)
7805 aros_target_cpu="i386"
7806 aros_object_format="elf_i386"
7807 aros_flavour="emulation"
7808 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7809 aros_default_wbdepth=8
7810 gcc_target_cpu="i386"
7813 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7814 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7815 { (exit 1); exit 1; }; }
7817 esac
7818 aros_target_genmap="-Wl,-M -Xlinker >"
7819 aros_flavour="emulation"
7820 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7823 openbsd*)
7824 aros_target_arch="openbsd"
7825 case "$target_cpu" in
7826 *i?86*)
7827 aros_target_cpu="i386"
7828 aros_object_format="elf_i386"
7829 aros_flavour="emulation"
7830 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7831 gcc_target_cpu="i386"
7834 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7835 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7836 { (exit 1); exit 1; }; }
7838 esac
7839 aros_target_genmap="-Wl,-M -Xlinker >"
7840 aros_target_nm_flags="-u"
7841 aros_flavour="emulation"
7844 solaris*)
7845 aros_target_arch="solaris"
7846 case "$target_cpu" in
7847 *sparc*)
7848 aros_target_cpu="sparc"
7849 aros_object_format="elf_sparc"
7850 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7851 gcc_target_cpu="sparc"
7854 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7855 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7856 { (exit 1); exit 1; }; }
7858 esac
7859 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7860 aros_flavour="emulation"
7863 morphos*)
7864 aros_target_arch="morphos"
7865 aros_shared_default="no"
7866 aros_target_cpu="ppc"
7867 aros_object_format="elf_ppc"
7868 aros_flavour="nativecompat"
7869 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7870 gcc_target_cpu="ppc"
7873 amiga*)
7874 aros_target_arch="amiga"
7875 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7876 aros_shared_default="no"
7878 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7880 case "$target_cpu" in
7881 *m68k*)
7882 aros_target_cpu="m68k"
7883 aros_object_format="m68kelf"
7884 aros_flavour="nativecompat"
7885 gcc_target_cpu="mc68000"
7887 *ppc*)
7888 aros_cpu="ppc"
7889 aros_flavour="native"
7890 gcc_target_cpu="ppc"
7893 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7894 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7895 { (exit 1); exit 1; }; }
7897 esac
7900 cygwin*)
7901 aros_target_arch="cygwin"
7902 aros_shared_default="no"
7903 case "$target_cpu" in
7904 *i?86*)
7905 aros_target_cpu="i386"
7906 aros_object_format="elf_i386"
7907 aros_flavour="emulation"
7908 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7909 aros_shared_cflags=""
7910 aros_default_wbdepth=8
7911 gcc_target_cpu="i386"
7914 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7915 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7916 { (exit 1); exit 1; }; }
7918 esac
7920 pp*)
7921 aros_target_arch="pp"
7922 aros_shared_default="no"
7923 case "$target_cpu" in
7924 *m68k*)
7925 aros_target_cpu="m68k"
7926 aros_object_format="m68kelf"
7927 aros_flavour="palmnative"
7928 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7929 aros_kernel_ldflags=""
7930 aros_default_wbwidth=160
7931 aros_default_wbheight=160
7932 aros_default_wbdepth=1
7933 aros_target_cc="m68k-elf-gcc -pipe"
7934 aros_target_ld="$(which m68k-elf-ld)"
7935 aros_target_as="m68k-elf-gcc -pipe"
7936 aros_shared_ld="m68k-elf-gcc"
7937 aros_kernel_ld="m68k-elf-gcc"
7938 aros_target_ar="m68k-elf-ar"
7939 aros_target_ar_flags="cru"
7940 aros_target_ranlib="m68k-elf-ranlib"
7941 aros_target_nm="m68k-elf-nm"
7942 aros_target_objcopy="m68k-elf-objcopy"
7943 aros_target_objdump="m68k-elf-objdump"
7944 aros_compiler_libs="-lgcc1"
7945 aros_shared_default=no
7946 aros_shared_cflags="-fpic"
7947 aros_shared_aflags=""
7948 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7949 aros_kernel_ldflags="-Wl,-rpath,./lib"
7950 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7951 aros_debug_aflags=""
7952 aros_debug_ldflags="$aros_symbols_debug"
7953 aros_mungwall_debug="0"
7954 aros_modules_debug="0"
7955 gcc_target_cpu="mc68000"
7956 ignore_undefined_symbols="-ius"
7959 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7960 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7961 { (exit 1); exit 1; }; }
7963 esac
7967 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7968 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7969 { (exit 1); exit 1; }; }
7971 esac
7973 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
7974 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
7975 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
7976 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
7977 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
7978 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
7979 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
7981 # aros_cc_pre is a variable that is added to the front of the compiler name
7982 # in the generated aros-gcc shell script. We need this to enable the cache
7983 # to work across cleaned builds. Also, support DISTCC using the correct
7984 # environment variable.
7987 if test "x${DISTCC}" != "x" ; then
7988 if test "x${CCACHE}" != "x" ; then
7989 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
7990 else
7991 aros_cc_pre="${DISTCC} "
7993 else
7994 if test "x${CCACHE}" != "x" ; then
7995 aros_cc_pre="${CCACHE} "
7999 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8001 TARGET_CC="${prefix}-gcc"
8002 TARGET_AS="$TARGET_CC"
8003 TARGET_LD="${prefix}-ld"
8004 aros_target_ld="${prefix}-ld"
8006 NOSTDINC_CFLAGS=-nostdinc
8008 NOSTARTUP_LDFLAGS=-nostartfiles
8009 NIX_LDFLAGS=-nix
8010 DETACH_LDFLAGS=-detach
8011 NOSTDLIB_LDFLAGS=-nostdlib
8013 if test "$cross_compile" = "yes" ; then
8014 # Extract the first word of "$aros_shared_ld", so it can be a program name with args.
8015 set dummy $aros_shared_ld; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_path_SHARED_LD+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 case $SHARED_LD in
8022 [\\/]* | ?:[\\/]*)
8023 ac_cv_path_SHARED_LD="$SHARED_LD" # Let the user override the test with a path.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_path_SHARED_LD="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8037 done
8038 done
8040 test -z "$ac_cv_path_SHARED_LD" && ac_cv_path_SHARED_LD="$aros_shared_ld"
8042 esac
8044 SHARED_LD=$ac_cv_path_SHARED_LD
8046 if test -n "$SHARED_LD"; then
8047 echo "$as_me:$LINENO: result: $SHARED_LD" >&5
8048 echo "${ECHO_T}$SHARED_LD" >&6
8049 else
8050 echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6
8054 else
8055 SHARED_LD="$aros_shared_ld"
8059 if test "$cross_compile" = "yes" ; then
8060 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8061 set dummy $aros_kernel_ld; ac_word=$2
8062 echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064 if test "${ac_cv_path_KERNEL_LD+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067 case $KERNEL_LD in
8068 [\\/]* | ?:[\\/]*)
8069 ac_cv_path_KERNEL_LD="$KERNEL_LD" # Let the user override the test with a path.
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_path_KERNEL_LD="$as_dir/$ac_word$ac_exec_ext"
8080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8086 test -z "$ac_cv_path_KERNEL_LD" && ac_cv_path_KERNEL_LD="$aros_kernel_ld"
8088 esac
8090 KERNEL_LD=$ac_cv_path_KERNEL_LD
8092 if test -n "$KERNEL_LD"; then
8093 echo "$as_me:$LINENO: result: $KERNEL_LD" >&5
8094 echo "${ECHO_T}$KERNEL_LD" >&6
8095 else
8096 echo "$as_me:$LINENO: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8100 else
8101 KERNEL_LD="$aros_kernel_ld"
8106 # The default tools
8107 aros_target_ar=${prefix}-ar
8108 aros_target_ar_flags="cr"
8109 aros_target_nm=${prefix}-nm
8110 aros_target_nm_flags="-C -ul"
8111 aros_target_objcopy=${prefix}-objcopy
8112 aros_target_objdump=${prefix}-objdump
8113 aros_target_ranlib=${prefix}-ranlib
8114 aros_target_strip="${prefix}-strip --strip-unneeded -R.comment"
8116 prefix="\$(TOOLDIR)/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8117 AR="${prefix}-ar $aros_target_ar_flags"
8118 RANLIB="${prefix}-ranlib $aros_target_ranlib_flags"
8119 NM="${prefix}-nm $aros_target_nm_flags"
8120 NM_PLAIN="${prefix}-nm"
8121 STRIP="${prefix}-strip $aros_target_strip_flags"
8122 OBJDUMP="${prefix}-objdump"
8123 OBJCOPY="${prefix}-objcopy"
8142 #-----------------------------------------------------------------------------
8143 # See if we can compile SHM support
8144 HAVE_XSHM_SUPPORT=0
8145 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8146 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8147 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8148 if test -z "$x_includes" ; then
8149 CFLAGS=""
8150 else
8151 CFLAGS="-I $x_includes"
8153 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8161 #include <sys/types.h>
8162 #include <X11/Xlib.h>
8163 #include <X11/Xutil.h>
8164 #include <X11/keysym.h>
8165 #include <X11/cursorfont.h>
8166 #include <sys/ipc.h>
8167 #include <sys/shm.h>
8168 #include <X11/extensions/XShm.h>
8170 main ()
8173 static XShmSegmentInfo shminfo;
8174 static Display *display;
8175 XShmAttach(display, &shminfo);
8176 XSync(display,0);
8177 shmctl(shminfo.shmid, IPC_RMID, 0);
8180 return 0;
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -z "$ac_c_werror_flag"
8193 || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 HAVE_XSHM_SUPPORT=1
8206 echo "$as_me:$LINENO: result: yes" >&5
8207 echo "${ECHO_T}yes" >&6
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8212 HAVE_XSHM_SUPPORT=0
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8216 rm -f conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8221 # Find the system include path. We can suggest that an alternative is
8222 # used if we don't get it correct. The default is to use /usr/include.
8223 # Which is set in the aros_target_incl_def variable.
8225 # Check whether --enable-includes or --disable-includes was given.
8226 if test "${enable_includes+set}" = set; then
8227 enableval="$enable_includes"
8228 aros_target_incl=$enable_includes
8229 else
8230 aros_target_incl=$aros_target_incl_def
8233 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
8234 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
8235 if test "$aros_target_cc_includes" = "" ; then
8236 #try to guess where the directory is
8237 aros_target_cc_includes=`dirname \`${aros_target_cc} -print-libgcc-file-name\``/include
8238 if ! test -d $aros_target_cc_includes; then
8239 #the directory doesn't exist, we need to do some more work
8240 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
8242 #these are the headers we're looling for
8243 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
8244 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
8245 zutil.h"
8247 dirs=
8248 for h in $headers; do
8249 #which other headers each of the above headers needs?
8250 deps=$(echo "#include <$h>" | \
8251 $aros_host_cc -E -M - 2>/dev/null | \
8252 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
8254 #copy all the needed headers to a directory beneath gendir
8255 for d in $deps; do
8256 h=$(basename $d)
8257 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
8258 sed -n "s,^.*/include\(/.*\),\1,p")
8259 ! test -d $dir && mkdir -p $dir
8260 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
8261 done
8262 done
8265 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
8266 echo "${ECHO_T}$aros_target_cc_includes" >&6
8268 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
8269 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
8271 # Check whether --with-resolution or --without-resolution was given.
8272 if test "${with_resolution+set}" = set; then
8273 withval="$with_resolution"
8274 resolution=$withval
8275 else
8276 resolution=none
8278 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
8279 if test "$resolution" = "yes" ; then
8280 resolution="none"
8282 if test "$resolution" = "no" ; then
8283 resolution="none"
8285 if test "$resolution" != "none" ; then
8286 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
8287 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
8288 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
8290 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
8291 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
8292 aros_cv_default_wbwidth=$aros_default_wbwidth
8293 aros_cv_default_wbheight=$aros_default_wbheight
8294 aros_cv_default_wbdepth=$aros_default_wbdepth
8296 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
8297 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
8298 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
8299 if test "${enable_bochs_hack+set}" = set; then
8300 enableval="$enable_bochs_hack"
8301 bochs_hack="yes"
8302 else
8303 bochs_hack="no"
8305 if test "$bochs_hack" = "yes" ; then
8306 aros_bochs_hack="1"
8308 echo "$as_me:$LINENO: result: $bochs_hack" >&5
8309 echo "${ECHO_T}$bochs_hack" >&6
8311 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
8312 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
8314 # Check whether --with-serial-debug or --without-serial-debug was given.
8315 if test "${with_serial_debug+set}" = set; then
8316 withval="$with_serial_debug"
8317 serial_debug=$withval
8318 else
8319 serial_debug=none
8321 if test "$serial_debug" = "yes" ; then
8322 serial_debug="2"
8324 if test "$serial_debug" = "no" ; then
8325 serial_debug="none"
8327 if test "$serial_debug" != "none" ; then
8328 aros_serial_debug=$serial_debug
8329 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
8330 echo "${ECHO_T}on port $serial_debug" >&6
8331 else
8332 echo "$as_me:$LINENO: result: no" >&5
8333 echo "${ECHO_T}no" >&6
8336 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
8337 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
8338 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
8339 if test "${enable_palm_debug_hack+set}" = set; then
8340 enableval="$enable_palm_debug_hack"
8341 palm_debug_hack="yes"
8342 else
8343 palm_debug_hack="no"
8345 if test "$palm_debug_hack" = "yes" ; then
8346 aros_palm_debug_hack="1"
8348 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
8349 echo "${ECHO_T}$palm_debug_hack" >&6
8352 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
8353 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
8354 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
8355 if test "${enable_nesting_supervisor+set}" = set; then
8356 enableval="$enable_nesting_supervisor"
8357 nesting_supervisor="yes"
8358 else
8359 nesting_supervisor="no"
8361 if test "$nesting_supervisor" = "yes" ; then
8362 aros_nesting_supervisor="1"
8364 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
8365 echo "${ECHO_T}$nesting_supervisor" >&6
8369 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8370 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
8371 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
8372 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
8373 if test "${enable_xshm_extension+set}" = set; then
8374 enableval="$enable_xshm_extension"
8375 xshm_extension="$enableval"
8376 else
8377 xshm_extension="yes"
8379 if test "$xshm_extension" = "no" ; then
8380 DO_XSHM_SUPPORT="0"
8382 echo "$as_me:$LINENO: result: $xshm_extension" >&5
8383 echo "${ECHO_T}$xshm_extension" >&6
8384 else
8385 DO_XSHM_SUPPORT="0"
8390 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
8391 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
8392 # Check whether --enable-dbus or --disable-dbus was given.
8393 if test "${enable_dbus+set}" = set; then
8394 enableval="$enable_dbus"
8395 dbus="yes"
8396 else
8397 dbus="no"
8399 if test "$dbus" = "yes" ; then
8400 ENABLE_DBUS=1
8401 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
8402 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
8403 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
8404 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
8405 else
8406 ENABLE_DBUS=0
8408 echo "$as_me:$LINENO: result: $dbus" >&5
8409 echo "${ECHO_T}$dbus" >&6
8413 # Generic
8420 # Host related
8435 # Target Related
8467 # Graphics Related
8479 # Native version related
8483 # Palm native version related
8486 # Unix/Hosted version related
8489 # DBUS related
8496 # Debug related
8502 # Collect-aros stuff: "-ius" to ignore undefined symbols
8505 # C compiler related
8508 case "$aros_flavour" in
8509 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
8510 aros_flavour="emulation" ;;
8511 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
8512 aros_flavour="emulation" ;;
8513 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
8514 aros_flavour="standalone";;
8515 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
8516 aros_flavour="native" ;;
8517 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8518 aros_flavour="native" ;;
8519 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
8520 aros_flavour="linklib" ;;
8521 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
8522 aros_flavour="palmnative" ;;
8523 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8524 aros_flavour="ppcnative" ;;
8525 esac
8527 if test -z "$aros_gui_basedir" ; then
8528 aros_gui_libdir="$x_libraries"
8529 if test -z "$x_libraries" ; then
8530 aros_gui_ldflags=""
8531 else
8532 aros_gui_ldflags="-L $x_libraries"
8534 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8535 aros_gui_libflags="-lX11 -lXext"
8536 else
8537 aros_gui_libflags="-lX11"
8539 aros_gui_incdir="$x_includes"
8540 if test -z "$x_includes" ; then
8541 aros_gui_ccflags=""
8542 else
8543 aros_gui_ccflags="-I $x_includes"
8545 else
8546 if test -n "$aros_gui_basedir" ; then
8547 aros_gui_libdir="${aros_gui_basedir}/lib"
8548 aros_gui_incdir="${aros_gui_basedir}/include"
8551 if test -n "$aros_gui_libdir" ; then
8552 aros_gui_ldflags="-L ${aros_gui_libdir}"
8555 if test -n "$aros_gui_incdir" ; then
8556 aros_gui_ccflags="-I ${aros_gui_incdir}"
8557 else
8558 aros_gui_incdir="${aros_sysincludes}"
8559 aros_gui_ccflags=""
8563 if test ! -d ${aros_inc_dir} ; then
8564 ${MKDIR} ${aros_inc_dir}
8566 if test ! -d ${aros_geninc_dir} ; then
8567 ${MKDIR} ${aros_geninc_dir}
8569 if test ! -d ${aros_hostcfg_dir} ; then
8570 ${MKDIR} ${aros_hostcfg_dir}
8572 if test ! -d ${aros_targetcfg_dir} ; then
8573 ${MKDIR} ${aros_targetcfg_dir}
8575 if test ! -d ${aros_tools_dir} ; then
8576 ${MKDIR} ${aros_tools_dir}
8578 if test ! -d ${aros_scripts_dir} ; then
8579 ${MKDIR} ${aros_scripts_dir}
8582 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
8585 ac_config_commands="$ac_config_commands compiler_executable"
8587 ac_config_commands="$ac_config_commands genshared_executable"
8589 ac_config_commands="$ac_config_commands genmf_executable"
8591 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
8594 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"
8597 cat >confcache <<\_ACEOF
8598 # This file is a shell script that caches the results of configure
8599 # tests run on this system so they can be shared between configure
8600 # scripts and configure runs, see configure's option --config-cache.
8601 # It is not useful on other systems. If it contains results you don't
8602 # want to keep, you may remove or edit it.
8604 # config.status only pays attention to the cache file if you give it
8605 # the --recheck option to rerun configure.
8607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8609 # following values.
8611 _ACEOF
8613 # The following way of writing the cache mishandles newlines in values,
8614 # but we know of no workaround that is simple, portable, and efficient.
8615 # So, don't put newlines in cache variables' values.
8616 # Ultrix sh set writes to stderr and can't be redirected directly,
8617 # and sets the high bit in the cache file unless we assign to the vars.
8619 (set) 2>&1 |
8620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8621 *ac_space=\ *)
8622 # `set' does not quote correctly, so add quotes (double-quote
8623 # substitution turns \\\\ into \\, and sed turns \\ into \).
8624 sed -n \
8625 "s/'/'\\\\''/g;
8626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8629 # `set' quotes correctly as required by POSIX, so do not add quotes.
8630 sed -n \
8631 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8633 esac;
8635 sed '
8636 t clear
8637 : clear
8638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8639 t end
8640 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8641 : end' >>confcache
8642 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8643 if test -w $cache_file; then
8644 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8645 cat confcache >$cache_file
8646 else
8647 echo "not updating unwritable cache $cache_file"
8650 rm -f confcache
8652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8653 # Let make expand exec_prefix.
8654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8656 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8657 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8658 # trailing colons and then remove the whole line if VPATH becomes empty
8659 # (actually we leave an empty line to preserve line numbers).
8660 if test "x$srcdir" = x.; then
8661 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8662 s/:*\$(srcdir):*/:/;
8663 s/:*\${srcdir}:*/:/;
8664 s/:*@srcdir@:*/:/;
8665 s/^\([^=]*=[ ]*\):*/\1/;
8666 s/:*$//;
8667 s/^[^=]*=[ ]*$//;
8671 DEFS=-DHAVE_CONFIG_H
8673 ac_libobjs=
8674 ac_ltlibobjs=
8675 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8676 # 1. Remove the extension, and $U if already installed.
8677 ac_i=`echo "$ac_i" |
8678 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8679 # 2. Add them.
8680 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8681 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8682 done
8683 LIBOBJS=$ac_libobjs
8685 LTLIBOBJS=$ac_ltlibobjs
8689 : ${CONFIG_STATUS=./config.status}
8690 ac_clean_files_save=$ac_clean_files
8691 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8692 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8693 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8694 cat >$CONFIG_STATUS <<_ACEOF
8695 #! $SHELL
8696 # Generated by $as_me.
8697 # Run this file to recreate the current configuration.
8698 # Compiler output produced by configure, useful for debugging
8699 # configure, is in config.log if it exists.
8701 debug=false
8702 ac_cs_recheck=false
8703 ac_cs_silent=false
8704 SHELL=\${CONFIG_SHELL-$SHELL}
8705 _ACEOF
8707 cat >>$CONFIG_STATUS <<\_ACEOF
8708 ## --------------------- ##
8709 ## M4sh Initialization. ##
8710 ## --------------------- ##
8712 # Be Bourne compatible
8713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8714 emulate sh
8715 NULLCMD=:
8716 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8717 # is contrary to our usage. Disable this feature.
8718 alias -g '${1+"$@"}'='"$@"'
8719 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8720 set -o posix
8722 DUALCASE=1; export DUALCASE # for MKS sh
8724 # Support unset when possible.
8725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8726 as_unset=unset
8727 else
8728 as_unset=false
8732 # Work around bugs in pre-3.0 UWIN ksh.
8733 $as_unset ENV MAIL MAILPATH
8734 PS1='$ '
8735 PS2='> '
8736 PS4='+ '
8738 # NLS nuisances.
8739 for as_var in \
8740 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8741 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8742 LC_TELEPHONE LC_TIME
8744 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8745 eval $as_var=C; export $as_var
8746 else
8747 $as_unset $as_var
8749 done
8751 # Required to use basename.
8752 if expr a : '\(a\)' >/dev/null 2>&1; then
8753 as_expr=expr
8754 else
8755 as_expr=false
8758 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8759 as_basename=basename
8760 else
8761 as_basename=false
8765 # Name of the executable.
8766 as_me=`$as_basename "$0" ||
8767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8768 X"$0" : 'X\(//\)$' \| \
8769 X"$0" : 'X\(/\)$' \| \
8770 . : '\(.\)' 2>/dev/null ||
8771 echo X/"$0" |
8772 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8773 /^X\/\(\/\/\)$/{ s//\1/; q; }
8774 /^X\/\(\/\).*/{ s//\1/; q; }
8775 s/.*/./; q'`
8778 # PATH needs CR, and LINENO needs CR and PATH.
8779 # Avoid depending upon Character Ranges.
8780 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8781 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8782 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8783 as_cr_digits='0123456789'
8784 as_cr_alnum=$as_cr_Letters$as_cr_digits
8786 # The user is always right.
8787 if test "${PATH_SEPARATOR+set}" != set; then
8788 echo "#! /bin/sh" >conf$$.sh
8789 echo "exit 0" >>conf$$.sh
8790 chmod +x conf$$.sh
8791 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8792 PATH_SEPARATOR=';'
8793 else
8794 PATH_SEPARATOR=:
8796 rm -f conf$$.sh
8800 as_lineno_1=$LINENO
8801 as_lineno_2=$LINENO
8802 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8803 test "x$as_lineno_1" != "x$as_lineno_2" &&
8804 test "x$as_lineno_3" = "x$as_lineno_2" || {
8805 # Find who we are. Look in the path if we contain no path at all
8806 # relative or not.
8807 case $0 in
8808 *[\\/]* ) as_myself=$0 ;;
8809 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8815 done
8818 esac
8819 # We did not find ourselves, most probably we were run as `sh COMMAND'
8820 # in which case we are not to be found in the path.
8821 if test "x$as_myself" = x; then
8822 as_myself=$0
8824 if test ! -f "$as_myself"; then
8825 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8826 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8827 { (exit 1); exit 1; }; }
8829 case $CONFIG_SHELL in
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for as_base in sh bash ksh sh5; do
8837 case $as_dir in
8839 if ("$as_dir/$as_base" -c '
8840 as_lineno_1=$LINENO
8841 as_lineno_2=$LINENO
8842 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8843 test "x$as_lineno_1" != "x$as_lineno_2" &&
8844 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8845 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8846 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8847 CONFIG_SHELL=$as_dir/$as_base
8848 export CONFIG_SHELL
8849 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8850 fi;;
8851 esac
8852 done
8853 done
8855 esac
8857 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8858 # uniformly replaced by the line number. The first 'sed' inserts a
8859 # line-number line before each line; the second 'sed' does the real
8860 # work. The second script uses 'N' to pair each line-number line
8861 # with the numbered line, and appends trailing '-' during
8862 # substitution so that $LINENO is not a special case at line end.
8863 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8864 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8865 sed '=' <$as_myself |
8866 sed '
8868 s,$,-,
8869 : loop
8870 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8871 t loop
8872 s,-$,,
8873 s,^['$as_cr_digits']*\n,,
8874 ' >$as_me.lineno &&
8875 chmod +x $as_me.lineno ||
8876 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8877 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8878 { (exit 1); exit 1; }; }
8880 # Don't try to exec as it changes $[0], causing all sort of problems
8881 # (the dirname of $[0] is not the place where we might find the
8882 # original and so on. Autoconf is especially sensible to this).
8883 . ./$as_me.lineno
8884 # Exit status is that of the last command.
8885 exit
8889 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8890 *c*,-n*) ECHO_N= ECHO_C='
8891 ' ECHO_T=' ' ;;
8892 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8893 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8894 esac
8896 if expr a : '\(a\)' >/dev/null 2>&1; then
8897 as_expr=expr
8898 else
8899 as_expr=false
8902 rm -f conf$$ conf$$.exe conf$$.file
8903 echo >conf$$.file
8904 if ln -s conf$$.file conf$$ 2>/dev/null; then
8905 # We could just check for DJGPP; but this test a) works b) is more generic
8906 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8907 if test -f conf$$.exe; then
8908 # Don't use ln at all; we don't have any links
8909 as_ln_s='cp -p'
8910 else
8911 as_ln_s='ln -s'
8913 elif ln conf$$.file conf$$ 2>/dev/null; then
8914 as_ln_s=ln
8915 else
8916 as_ln_s='cp -p'
8918 rm -f conf$$ conf$$.exe conf$$.file
8920 if mkdir -p . 2>/dev/null; then
8921 as_mkdir_p=:
8922 else
8923 test -d ./-p && rmdir ./-p
8924 as_mkdir_p=false
8927 as_executable_p="test -f"
8929 # Sed expression to map a string onto a valid CPP name.
8930 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8932 # Sed expression to map a string onto a valid variable name.
8933 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8936 # IFS
8937 # We need space, tab and new line, in precisely that order.
8938 as_nl='
8940 IFS=" $as_nl"
8942 # CDPATH.
8943 $as_unset CDPATH
8945 exec 6>&1
8947 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8948 # report actual input values of CONFIG_FILES etc. instead of their
8949 # values after options handling. Logging --version etc. is OK.
8950 exec 5>>config.log
8952 echo
8953 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8954 ## Running $as_me. ##
8955 _ASBOX
8956 } >&5
8957 cat >&5 <<_CSEOF
8959 This file was extended by $as_me, which was
8960 generated by GNU Autoconf 2.59. Invocation command line was
8962 CONFIG_FILES = $CONFIG_FILES
8963 CONFIG_HEADERS = $CONFIG_HEADERS
8964 CONFIG_LINKS = $CONFIG_LINKS
8965 CONFIG_COMMANDS = $CONFIG_COMMANDS
8966 $ $0 $@
8968 _CSEOF
8969 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8970 echo >&5
8971 _ACEOF
8973 # Files that config.status was made for.
8974 if test -n "$ac_config_files"; then
8975 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8978 if test -n "$ac_config_headers"; then
8979 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8982 if test -n "$ac_config_links"; then
8983 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8986 if test -n "$ac_config_commands"; then
8987 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8990 cat >>$CONFIG_STATUS <<\_ACEOF
8992 ac_cs_usage="\
8993 \`$as_me' instantiates files from templates according to the
8994 current configuration.
8996 Usage: $0 [OPTIONS] [FILE]...
8998 -h, --help print this help, then exit
8999 -V, --version print version number, then exit
9000 -q, --quiet do not print progress messages
9001 -d, --debug don't remove temporary files
9002 --recheck update $as_me by reconfiguring in the same conditions
9003 --file=FILE[:TEMPLATE]
9004 instantiate the configuration file FILE
9005 --header=FILE[:TEMPLATE]
9006 instantiate the configuration header FILE
9008 Configuration files:
9009 $config_files
9011 Configuration headers:
9012 $config_headers
9014 Configuration commands:
9015 $config_commands
9017 Report bugs to <bug-autoconf@gnu.org>."
9018 _ACEOF
9020 cat >>$CONFIG_STATUS <<_ACEOF
9021 ac_cs_version="\\
9022 config.status
9023 configured by $0, generated by GNU Autoconf 2.59,
9024 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9026 Copyright (C) 2003 Free Software Foundation, Inc.
9027 This config.status script is free software; the Free Software Foundation
9028 gives unlimited permission to copy, distribute and modify it."
9029 srcdir=$srcdir
9030 _ACEOF
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9033 # If no file are specified by the user, then we need to provide default
9034 # value. By we need to know if files were specified by the user.
9035 ac_need_defaults=:
9036 while test $# != 0
9038 case $1 in
9039 --*=*)
9040 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9041 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9042 ac_shift=:
9045 ac_option=$1
9046 ac_optarg=$2
9047 ac_shift=shift
9049 *) # This is not an option, so the user has probably given explicit
9050 # arguments.
9051 ac_option=$1
9052 ac_need_defaults=false;;
9053 esac
9055 case $ac_option in
9056 # Handling of the options.
9057 _ACEOF
9058 cat >>$CONFIG_STATUS <<\_ACEOF
9059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9060 ac_cs_recheck=: ;;
9061 --version | --vers* | -V )
9062 echo "$ac_cs_version"; exit 0 ;;
9063 --he | --h)
9064 # Conflict between --help and --header
9065 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9066 Try \`$0 --help' for more information." >&5
9067 echo "$as_me: error: ambiguous option: $1
9068 Try \`$0 --help' for more information." >&2;}
9069 { (exit 1); exit 1; }; };;
9070 --help | --hel | -h )
9071 echo "$ac_cs_usage"; exit 0 ;;
9072 --debug | --d* | -d )
9073 debug=: ;;
9074 --file | --fil | --fi | --f )
9075 $ac_shift
9076 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9077 ac_need_defaults=false;;
9078 --header | --heade | --head | --hea )
9079 $ac_shift
9080 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9081 ac_need_defaults=false;;
9082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9083 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9084 ac_cs_silent=: ;;
9086 # This is an error.
9087 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9088 Try \`$0 --help' for more information." >&5
9089 echo "$as_me: error: unrecognized option: $1
9090 Try \`$0 --help' for more information." >&2;}
9091 { (exit 1); exit 1; }; } ;;
9093 *) ac_config_targets="$ac_config_targets $1" ;;
9095 esac
9096 shift
9097 done
9099 ac_configure_extra_args=
9101 if $ac_cs_silent; then
9102 exec 6>/dev/null
9103 ac_configure_extra_args="$ac_configure_extra_args --silent"
9106 _ACEOF
9107 cat >>$CONFIG_STATUS <<_ACEOF
9108 if \$ac_cs_recheck; then
9109 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9110 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9113 _ACEOF
9115 cat >>$CONFIG_STATUS <<_ACEOF
9117 # INIT-COMMANDS section.
9121 aros_tools_dir=${aros_tools_dir}
9122 aros_target_cpu=${aros_target_cpu}
9123 aros_target_arch=${aros_target_arch}
9124 aros_target_suffix=${aros_target_suffix}
9125 aros_target_nm_ln=${aros_target_nm_ln}
9126 aros_target_ar_ln=${aros_target_ar_ln}
9127 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9128 aros_target_objdump_ln=${aros_target_objdump_ln}
9129 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9130 aros_target_strip_ln=${aros_target_strip_ln}
9133 aros_scripts_dir=${aros_scripts_dir}
9135 aros_tools_dir=${aros_tools_dir}
9138 _ACEOF
9142 cat >>$CONFIG_STATUS <<\_ACEOF
9143 for ac_config_target in $ac_config_targets
9145 case "$ac_config_target" in
9146 # Handling of arguments.
9147 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9148 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9149 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9150 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9151 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9152 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9153 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9154 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9155 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9156 "${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" ;;
9157 "${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" ;;
9158 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9159 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9160 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9161 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9162 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9163 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9164 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9165 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9166 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9167 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9168 { (exit 1); exit 1; }; };;
9169 esac
9170 done
9172 # If the user did not use the arguments to specify the items to instantiate,
9173 # then the envvar interface is used. Set only those that are not.
9174 # We use the long form for the default assignment because of an extremely
9175 # bizarre bug on SunOS 4.1.3.
9176 if $ac_need_defaults; then
9177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9179 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9182 # Have a temporary directory for convenience. Make it in the build tree
9183 # simply because there is no reason to put it here, and in addition,
9184 # creating and moving files from /tmp can sometimes cause problems.
9185 # Create a temporary directory, and hook for its removal unless debugging.
9186 $debug ||
9188 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9189 trap '{ (exit 1); exit 1; }' 1 2 13 15
9192 # Create a (secure) tmp directory for tmp files.
9195 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9196 test -n "$tmp" && test -d "$tmp"
9197 } ||
9199 tmp=./confstat$$-$RANDOM
9200 (umask 077 && mkdir $tmp)
9201 } ||
9203 echo "$me: cannot create a temporary directory in ." >&2
9204 { (exit 1); exit 1; }
9207 _ACEOF
9209 cat >>$CONFIG_STATUS <<_ACEOF
9212 # CONFIG_FILES section.
9215 # No need to generate the scripts if there are no CONFIG_FILES.
9216 # This happens for instance when ./config.status config.h
9217 if test -n "\$CONFIG_FILES"; then
9218 # Protect against being on the right side of a sed subst in config.status.
9219 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9220 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9221 s,@SHELL@,$SHELL,;t t
9222 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9223 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9224 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9225 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9226 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9227 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9228 s,@exec_prefix@,$exec_prefix,;t t
9229 s,@prefix@,$prefix,;t t
9230 s,@program_transform_name@,$program_transform_name,;t t
9231 s,@bindir@,$bindir,;t t
9232 s,@sbindir@,$sbindir,;t t
9233 s,@libexecdir@,$libexecdir,;t t
9234 s,@datadir@,$datadir,;t t
9235 s,@sysconfdir@,$sysconfdir,;t t
9236 s,@sharedstatedir@,$sharedstatedir,;t t
9237 s,@localstatedir@,$localstatedir,;t t
9238 s,@libdir@,$libdir,;t t
9239 s,@includedir@,$includedir,;t t
9240 s,@oldincludedir@,$oldincludedir,;t t
9241 s,@infodir@,$infodir,;t t
9242 s,@mandir@,$mandir,;t t
9243 s,@build_alias@,$build_alias,;t t
9244 s,@host_alias@,$host_alias,;t t
9245 s,@target_alias@,$target_alias,;t t
9246 s,@DEFS@,$DEFS,;t t
9247 s,@ECHO_C@,$ECHO_C,;t t
9248 s,@ECHO_N@,$ECHO_N,;t t
9249 s,@ECHO_T@,$ECHO_T,;t t
9250 s,@LIBS@,$LIBS,;t t
9251 s,@build@,$build,;t t
9252 s,@build_cpu@,$build_cpu,;t t
9253 s,@build_vendor@,$build_vendor,;t t
9254 s,@build_os@,$build_os,;t t
9255 s,@host@,$host,;t t
9256 s,@host_cpu@,$host_cpu,;t t
9257 s,@host_vendor@,$host_vendor,;t t
9258 s,@host_os@,$host_os,;t t
9259 s,@CC@,$CC,;t t
9260 s,@CFLAGS@,$CFLAGS,;t t
9261 s,@LDFLAGS@,$LDFLAGS,;t t
9262 s,@CPPFLAGS@,$CPPFLAGS,;t t
9263 s,@ac_ct_CC@,$ac_ct_CC,;t t
9264 s,@EXEEXT@,$EXEEXT,;t t
9265 s,@OBJEXT@,$OBJEXT,;t t
9266 s,@CPP@,$CPP,;t t
9267 s,@AWK@,$AWK,;t t
9268 s,@MMAKE@,$MMAKE,;t t
9269 s,@aros_host_ld@,$aros_host_ld,;t t
9270 s,@HOST_AR@,$HOST_AR,;t t
9271 s,@HOST_RANLIB@,$HOST_RANLIB,;t t
9272 s,@RM@,$RM,;t t
9273 s,@CP@,$CP,;t t
9274 s,@MV@,$MV,;t t
9275 s,@ECHO@,$ECHO,;t t
9276 s,@MKDIR@,$MKDIR,;t t
9277 s,@TOUCH@,$TOUCH,;t t
9278 s,@SORT@,$SORT,;t t
9279 s,@UNIQ@,$UNIQ,;t t
9280 s,@NOP@,$NOP,;t t
9281 s,@CAT@,$CAT,;t t
9282 s,@BISON@,$BISON,;t t
9283 s,@PNGTOPNM@,$PNGTOPNM,;t t
9284 s,@PPMTOILBM@,$PPMTOILBM,;t t
9285 s,@STRIP@,$STRIP,;t t
9286 s,@SED@,$SED,;t t
9287 s,@CHMOD@,$CHMOD,;t t
9288 s,@PYTHON@,$PYTHON,;t t
9289 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
9290 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
9291 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
9292 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
9293 s,@pythondir@,$pythondir,;t t
9294 s,@pkgpythondir@,$pkgpythondir,;t t
9295 s,@pyexecdir@,$pyexecdir,;t t
9296 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
9297 s,@FOR@,$FOR,;t t
9298 s,@IF@,$IF,;t t
9299 s,@TEST@,$TEST,;t t
9300 s,@EGREP@,$EGREP,;t t
9301 s,@LIBOBJS@,$LIBOBJS,;t t
9302 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
9303 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
9304 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
9305 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
9306 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
9307 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
9308 s,@DISTCC@,$DISTCC,;t t
9309 s,@CCACHE@,$CCACHE,;t t
9310 s,@SHARED_LD@,$SHARED_LD,;t t
9311 s,@KERNEL_LD@,$KERNEL_LD,;t t
9312 s,@TARGET_CC@,$TARGET_CC,;t t
9313 s,@TARGET_AS@,$TARGET_AS,;t t
9314 s,@TARGET_LD@,$TARGET_LD,;t t
9315 s,@NOSTDINC_CFLAGS@,$NOSTDINC_CFLAGS,;t t
9316 s,@NOSTARTUP_LDFLAGS@,$NOSTARTUP_LDFLAGS,;t t
9317 s,@NIX_LDFLAGS@,$NIX_LDFLAGS,;t t
9318 s,@DETACH_LDFLAGS@,$DETACH_LDFLAGS,;t t
9319 s,@NOSTDLIB_LDFLAGS@,$NOSTDLIB_LDFLAGS,;t t
9320 s,@aros_cc_pre@,$aros_cc_pre,;t t
9321 s,@AR@,$AR,;t t
9322 s,@RANLIB@,$RANLIB,;t t
9323 s,@NM@,$NM,;t t
9324 s,@NM_PLAIN@,$NM_PLAIN,;t t
9325 s,@OBJDUMP@,$OBJDUMP,;t t
9326 s,@OBJCOPY@,$OBJCOPY,;t t
9327 s,@aros_arch@,$aros_arch,;t t
9328 s,@aros_cpu@,$aros_cpu,;t t
9329 s,@aros_flavour@,$aros_flavour,;t t
9330 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
9331 s,@TOPDIR@,$TOPDIR,;t t
9332 s,@aros_host_arch@,$aros_host_arch,;t t
9333 s,@aros_host_cpu@,$aros_host_cpu,;t t
9334 s,@aros_host_cc@,$aros_host_cc,;t t
9335 s,@aros_host_make@,$aros_host_make,;t t
9336 s,@aros_host_cflags@,$aros_host_cflags,;t t
9337 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
9338 s,@aros_host_debug@,$aros_host_debug,;t t
9339 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
9340 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
9341 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
9342 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
9343 s,@aros_tools_dir@,$aros_tools_dir,;t t
9344 s,@aros_target_arch@,$aros_target_arch,;t t
9345 s,@aros_target_cpu@,$aros_target_cpu,;t t
9346 s,@aros_target_variant@,$aros_target_variant,;t t
9347 s,@aros_target_suffix@,$aros_target_suffix,;t t
9348 s,@aros_target_incl@,$aros_target_incl,;t t
9349 s,@aros_target_cc@,$aros_target_cc,;t t
9350 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
9351 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
9352 s,@aros_target_objdump@,$aros_target_objdump,;t t
9353 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
9354 s,@aros_target_strip@,$aros_target_strip,;t t
9355 s,@aros_target_as@,$aros_target_as,;t t
9356 s,@aros_target_nm@,$aros_target_nm,;t t
9357 s,@aros_shared_default@,$aros_shared_default,;t t
9358 s,@aros_object_format@,$aros_object_format,;t t
9359 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
9360 s,@aros_config_cflags@,$aros_config_cflags,;t t
9361 s,@aros_config_aflags@,$aros_config_aflags,;t t
9362 s,@aros_target_ld@,$aros_target_ld,;t t
9363 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
9364 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
9365 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
9366 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
9367 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
9368 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
9369 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
9370 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
9371 s,@aros_target_genmap@,$aros_target_genmap,;t t
9372 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
9373 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
9374 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
9375 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
9376 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
9377 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
9378 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
9379 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
9380 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
9381 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
9382 s,@aros_serial_debug@,$aros_serial_debug,;t t
9383 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
9384 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
9385 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
9386 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
9387 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
9388 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
9389 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
9390 s,@aros_debug@,$aros_debug,;t t
9391 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
9392 s,@aros_stack_debug@,$aros_stack_debug,;t t
9393 s,@aros_modules_debug@,$aros_modules_debug,;t t
9394 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
9395 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
9396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9397 CEOF
9399 _ACEOF
9401 cat >>$CONFIG_STATUS <<\_ACEOF
9402 # Split the substitutions into bite-sized pieces for seds with
9403 # small command number limits, like on Digital OSF/1 and HP-UX.
9404 ac_max_sed_lines=48
9405 ac_sed_frag=1 # Number of current file.
9406 ac_beg=1 # First line for current file.
9407 ac_end=$ac_max_sed_lines # Line after last line for current file.
9408 ac_more_lines=:
9409 ac_sed_cmds=
9410 while $ac_more_lines; do
9411 if test $ac_beg -gt 1; then
9412 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9413 else
9414 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9416 if test ! -s $tmp/subs.frag; then
9417 ac_more_lines=false
9418 else
9419 # The purpose of the label and of the branching condition is to
9420 # speed up the sed processing (if there are no `@' at all, there
9421 # is no need to browse any of the substitutions).
9422 # These are the two extra sed commands mentioned above.
9423 (echo ':t
9424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9425 if test -z "$ac_sed_cmds"; then
9426 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9427 else
9428 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9430 ac_sed_frag=`expr $ac_sed_frag + 1`
9431 ac_beg=$ac_end
9432 ac_end=`expr $ac_end + $ac_max_sed_lines`
9434 done
9435 if test -z "$ac_sed_cmds"; then
9436 ac_sed_cmds=cat
9438 fi # test -n "$CONFIG_FILES"
9440 _ACEOF
9441 cat >>$CONFIG_STATUS <<\_ACEOF
9442 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9444 case $ac_file in
9445 - | *:- | *:-:* ) # input from stdin
9446 cat >$tmp/stdin
9447 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9449 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9451 * ) ac_file_in=$ac_file.in ;;
9452 esac
9454 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9457 X"$ac_file" : 'X\(//\)[^/]' \| \
9458 X"$ac_file" : 'X\(//\)$' \| \
9459 X"$ac_file" : 'X\(/\)' \| \
9460 . : '\(.\)' 2>/dev/null ||
9461 echo X"$ac_file" |
9462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9464 /^X\(\/\/\)$/{ s//\1/; q; }
9465 /^X\(\/\).*/{ s//\1/; q; }
9466 s/.*/./; q'`
9467 { if $as_mkdir_p; then
9468 mkdir -p "$ac_dir"
9469 else
9470 as_dir="$ac_dir"
9471 as_dirs=
9472 while test ! -d "$as_dir"; do
9473 as_dirs="$as_dir $as_dirs"
9474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9476 X"$as_dir" : 'X\(//\)[^/]' \| \
9477 X"$as_dir" : 'X\(//\)$' \| \
9478 X"$as_dir" : 'X\(/\)' \| \
9479 . : '\(.\)' 2>/dev/null ||
9480 echo X"$as_dir" |
9481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9483 /^X\(\/\/\)$/{ s//\1/; q; }
9484 /^X\(\/\).*/{ s//\1/; q; }
9485 s/.*/./; q'`
9486 done
9487 test ! -n "$as_dirs" || mkdir $as_dirs
9488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9490 { (exit 1); exit 1; }; }; }
9492 ac_builddir=.
9494 if test "$ac_dir" != .; then
9495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9496 # A "../" for each directory in $ac_dir_suffix.
9497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9498 else
9499 ac_dir_suffix= ac_top_builddir=
9502 case $srcdir in
9503 .) # No --srcdir option. We are building in place.
9504 ac_srcdir=.
9505 if test -z "$ac_top_builddir"; then
9506 ac_top_srcdir=.
9507 else
9508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9509 fi ;;
9510 [\\/]* | ?:[\\/]* ) # Absolute path.
9511 ac_srcdir=$srcdir$ac_dir_suffix;
9512 ac_top_srcdir=$srcdir ;;
9513 *) # Relative path.
9514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9516 esac
9518 # Do not use `cd foo && pwd` to compute absolute paths, because
9519 # the directories may not exist.
9520 case `pwd` in
9521 .) ac_abs_builddir="$ac_dir";;
9523 case "$ac_dir" in
9524 .) ac_abs_builddir=`pwd`;;
9525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9527 esac;;
9528 esac
9529 case $ac_abs_builddir in
9530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9532 case ${ac_top_builddir}. in
9533 .) ac_abs_top_builddir=$ac_abs_builddir;;
9534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9536 esac;;
9537 esac
9538 case $ac_abs_builddir in
9539 .) ac_abs_srcdir=$ac_srcdir;;
9541 case $ac_srcdir in
9542 .) ac_abs_srcdir=$ac_abs_builddir;;
9543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9545 esac;;
9546 esac
9547 case $ac_abs_builddir in
9548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9550 case $ac_top_srcdir in
9551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9554 esac;;
9555 esac
9559 if test x"$ac_file" != x-; then
9560 { echo "$as_me:$LINENO: creating $ac_file" >&5
9561 echo "$as_me: creating $ac_file" >&6;}
9562 rm -f "$ac_file"
9564 # Let's still pretend it is `configure' which instantiates (i.e., don't
9565 # use $as_me), people would be surprised to read:
9566 # /* config.h. Generated by config.status. */
9567 if test x"$ac_file" = x-; then
9568 configure_input=
9569 else
9570 configure_input="$ac_file. "
9572 configure_input=$configure_input"Generated from `echo $ac_file_in |
9573 sed 's,.*/,,'` by configure."
9575 # First look for the input files in the build tree, otherwise in the
9576 # src tree.
9577 ac_file_inputs=`IFS=:
9578 for f in $ac_file_in; do
9579 case $f in
9580 -) echo $tmp/stdin ;;
9581 [\\/$]*)
9582 # Absolute (can't be DOS-style, as IFS=:)
9583 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9584 echo "$as_me: error: cannot find input file: $f" >&2;}
9585 { (exit 1); exit 1; }; }
9586 echo "$f";;
9587 *) # Relative
9588 if test -f "$f"; then
9589 # Build tree
9590 echo "$f"
9591 elif test -f "$srcdir/$f"; then
9592 # Source tree
9593 echo "$srcdir/$f"
9594 else
9595 # /dev/null tree
9596 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9597 echo "$as_me: error: cannot find input file: $f" >&2;}
9598 { (exit 1); exit 1; }; }
9599 fi;;
9600 esac
9601 done` || { (exit 1); exit 1; }
9602 _ACEOF
9603 cat >>$CONFIG_STATUS <<_ACEOF
9604 sed "$ac_vpsub
9605 $extrasub
9606 _ACEOF
9607 cat >>$CONFIG_STATUS <<\_ACEOF
9609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9610 s,@configure_input@,$configure_input,;t t
9611 s,@srcdir@,$ac_srcdir,;t t
9612 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9613 s,@top_srcdir@,$ac_top_srcdir,;t t
9614 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9615 s,@builddir@,$ac_builddir,;t t
9616 s,@abs_builddir@,$ac_abs_builddir,;t t
9617 s,@top_builddir@,$ac_top_builddir,;t t
9618 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9619 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9620 rm -f $tmp/stdin
9621 if test x"$ac_file" != x-; then
9622 mv $tmp/out $ac_file
9623 else
9624 cat $tmp/out
9625 rm -f $tmp/out
9628 done
9629 _ACEOF
9630 cat >>$CONFIG_STATUS <<\_ACEOF
9633 # CONFIG_HEADER section.
9636 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9637 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9639 # ac_d sets the value in "#define NAME VALUE" lines.
9640 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9641 ac_dB='[ ].*$,\1#\2'
9642 ac_dC=' '
9643 ac_dD=',;t'
9644 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9645 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9646 ac_uB='$,\1#\2define\3'
9647 ac_uC=' '
9648 ac_uD=',;t'
9650 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9651 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9652 case $ac_file in
9653 - | *:- | *:-:* ) # input from stdin
9654 cat >$tmp/stdin
9655 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9657 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9659 * ) ac_file_in=$ac_file.in ;;
9660 esac
9662 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9663 echo "$as_me: creating $ac_file" >&6;}
9665 # First look for the input files in the build tree, otherwise in the
9666 # src tree.
9667 ac_file_inputs=`IFS=:
9668 for f in $ac_file_in; do
9669 case $f in
9670 -) echo $tmp/stdin ;;
9671 [\\/$]*)
9672 # Absolute (can't be DOS-style, as IFS=:)
9673 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9674 echo "$as_me: error: cannot find input file: $f" >&2;}
9675 { (exit 1); exit 1; }; }
9676 # Do quote $f, to prevent DOS paths from being IFS'd.
9677 echo "$f";;
9678 *) # Relative
9679 if test -f "$f"; then
9680 # Build tree
9681 echo "$f"
9682 elif test -f "$srcdir/$f"; then
9683 # Source tree
9684 echo "$srcdir/$f"
9685 else
9686 # /dev/null tree
9687 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9688 echo "$as_me: error: cannot find input file: $f" >&2;}
9689 { (exit 1); exit 1; }; }
9690 fi;;
9691 esac
9692 done` || { (exit 1); exit 1; }
9693 # Remove the trailing spaces.
9694 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9696 _ACEOF
9698 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9699 # `conftest.undefs', that substitutes the proper values into
9700 # config.h.in to produce config.h. The first handles `#define'
9701 # templates, and the second `#undef' templates.
9702 # And first: Protect against being on the right side of a sed subst in
9703 # config.status. Protect against being in an unquoted here document
9704 # in config.status.
9705 rm -f conftest.defines conftest.undefs
9706 # Using a here document instead of a string reduces the quoting nightmare.
9707 # Putting comments in sed scripts is not portable.
9709 # `end' is used to avoid that the second main sed command (meant for
9710 # 0-ary CPP macros) applies to n-ary macro definitions.
9711 # See the Autoconf documentation for `clear'.
9712 cat >confdef2sed.sed <<\_ACEOF
9713 s/[\\&,]/\\&/g
9714 s,[\\$`],\\&,g
9715 t clear
9716 : clear
9717 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9718 t end
9719 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9720 : end
9721 _ACEOF
9722 # If some macros were called several times there might be several times
9723 # the same #defines, which is useless. Nevertheless, we may not want to
9724 # sort them, since we want the *last* AC-DEFINE to be honored.
9725 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9726 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9727 rm -f confdef2sed.sed
9729 # This sed command replaces #undef with comments. This is necessary, for
9730 # example, in the case of _POSIX_SOURCE, which is predefined and required
9731 # on some systems where configure will not decide to define it.
9732 cat >>conftest.undefs <<\_ACEOF
9733 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9734 _ACEOF
9736 # Break up conftest.defines because some shells have a limit on the size
9737 # of here documents, and old seds have small limits too (100 cmds).
9738 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9739 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9740 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9741 echo ' :' >>$CONFIG_STATUS
9742 rm -f conftest.tail
9743 while grep . conftest.defines >/dev/null
9745 # Write a limited-size here document to $tmp/defines.sed.
9746 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9747 # Speed up: don't consider the non `#define' lines.
9748 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9749 # Work around the forget-to-reset-the-flag bug.
9750 echo 't clr' >>$CONFIG_STATUS
9751 echo ': clr' >>$CONFIG_STATUS
9752 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9753 echo 'CEOF
9754 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9755 rm -f $tmp/in
9756 mv $tmp/out $tmp/in
9757 ' >>$CONFIG_STATUS
9758 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9759 rm -f conftest.defines
9760 mv conftest.tail conftest.defines
9761 done
9762 rm -f conftest.defines
9763 echo ' fi # grep' >>$CONFIG_STATUS
9764 echo >>$CONFIG_STATUS
9766 # Break up conftest.undefs because some shells have a limit on the size
9767 # of here documents, and old seds have small limits too (100 cmds).
9768 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9769 rm -f conftest.tail
9770 while grep . conftest.undefs >/dev/null
9772 # Write a limited-size here document to $tmp/undefs.sed.
9773 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9774 # Speed up: don't consider the non `#undef'
9775 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9776 # Work around the forget-to-reset-the-flag bug.
9777 echo 't clr' >>$CONFIG_STATUS
9778 echo ': clr' >>$CONFIG_STATUS
9779 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9780 echo 'CEOF
9781 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9782 rm -f $tmp/in
9783 mv $tmp/out $tmp/in
9784 ' >>$CONFIG_STATUS
9785 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9786 rm -f conftest.undefs
9787 mv conftest.tail conftest.undefs
9788 done
9789 rm -f conftest.undefs
9791 cat >>$CONFIG_STATUS <<\_ACEOF
9792 # Let's still pretend it is `configure' which instantiates (i.e., don't
9793 # use $as_me), people would be surprised to read:
9794 # /* config.h. Generated by config.status. */
9795 if test x"$ac_file" = x-; then
9796 echo "/* Generated by configure. */" >$tmp/config.h
9797 else
9798 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9800 cat $tmp/in >>$tmp/config.h
9801 rm -f $tmp/in
9802 if test x"$ac_file" != x-; then
9803 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9804 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9805 echo "$as_me: $ac_file is unchanged" >&6;}
9806 else
9807 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9809 X"$ac_file" : 'X\(//\)[^/]' \| \
9810 X"$ac_file" : 'X\(//\)$' \| \
9811 X"$ac_file" : 'X\(/\)' \| \
9812 . : '\(.\)' 2>/dev/null ||
9813 echo X"$ac_file" |
9814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9815 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9816 /^X\(\/\/\)$/{ s//\1/; q; }
9817 /^X\(\/\).*/{ s//\1/; q; }
9818 s/.*/./; q'`
9819 { if $as_mkdir_p; then
9820 mkdir -p "$ac_dir"
9821 else
9822 as_dir="$ac_dir"
9823 as_dirs=
9824 while test ! -d "$as_dir"; do
9825 as_dirs="$as_dir $as_dirs"
9826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9828 X"$as_dir" : 'X\(//\)[^/]' \| \
9829 X"$as_dir" : 'X\(//\)$' \| \
9830 X"$as_dir" : 'X\(/\)' \| \
9831 . : '\(.\)' 2>/dev/null ||
9832 echo X"$as_dir" |
9833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9835 /^X\(\/\/\)$/{ s//\1/; q; }
9836 /^X\(\/\).*/{ s//\1/; q; }
9837 s/.*/./; q'`
9838 done
9839 test ! -n "$as_dirs" || mkdir $as_dirs
9840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9841 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9842 { (exit 1); exit 1; }; }; }
9844 rm -f $ac_file
9845 mv $tmp/config.h $ac_file
9847 else
9848 cat $tmp/config.h
9849 rm -f $tmp/config.h
9851 done
9852 _ACEOF
9853 cat >>$CONFIG_STATUS <<\_ACEOF
9856 # CONFIG_COMMANDS section.
9858 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9859 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9860 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9861 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9863 X"$ac_dest" : 'X\(//\)[^/]' \| \
9864 X"$ac_dest" : 'X\(//\)$' \| \
9865 X"$ac_dest" : 'X\(/\)' \| \
9866 . : '\(.\)' 2>/dev/null ||
9867 echo X"$ac_dest" |
9868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9870 /^X\(\/\/\)$/{ s//\1/; q; }
9871 /^X\(\/\).*/{ s//\1/; q; }
9872 s/.*/./; q'`
9873 { if $as_mkdir_p; then
9874 mkdir -p "$ac_dir"
9875 else
9876 as_dir="$ac_dir"
9877 as_dirs=
9878 while test ! -d "$as_dir"; do
9879 as_dirs="$as_dir $as_dirs"
9880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9882 X"$as_dir" : 'X\(//\)[^/]' \| \
9883 X"$as_dir" : 'X\(//\)$' \| \
9884 X"$as_dir" : 'X\(/\)' \| \
9885 . : '\(.\)' 2>/dev/null ||
9886 echo X"$as_dir" |
9887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9889 /^X\(\/\/\)$/{ s//\1/; q; }
9890 /^X\(\/\).*/{ s//\1/; q; }
9891 s/.*/./; q'`
9892 done
9893 test ! -n "$as_dirs" || mkdir $as_dirs
9894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9896 { (exit 1); exit 1; }; }; }
9898 ac_builddir=.
9900 if test "$ac_dir" != .; then
9901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9902 # A "../" for each directory in $ac_dir_suffix.
9903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9904 else
9905 ac_dir_suffix= ac_top_builddir=
9908 case $srcdir in
9909 .) # No --srcdir option. We are building in place.
9910 ac_srcdir=.
9911 if test -z "$ac_top_builddir"; then
9912 ac_top_srcdir=.
9913 else
9914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9915 fi ;;
9916 [\\/]* | ?:[\\/]* ) # Absolute path.
9917 ac_srcdir=$srcdir$ac_dir_suffix;
9918 ac_top_srcdir=$srcdir ;;
9919 *) # Relative path.
9920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9922 esac
9924 # Do not use `cd foo && pwd` to compute absolute paths, because
9925 # the directories may not exist.
9926 case `pwd` in
9927 .) ac_abs_builddir="$ac_dir";;
9929 case "$ac_dir" in
9930 .) ac_abs_builddir=`pwd`;;
9931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9933 esac;;
9934 esac
9935 case $ac_abs_builddir in
9936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9938 case ${ac_top_builddir}. in
9939 .) ac_abs_top_builddir=$ac_abs_builddir;;
9940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9942 esac;;
9943 esac
9944 case $ac_abs_builddir in
9945 .) ac_abs_srcdir=$ac_srcdir;;
9947 case $ac_srcdir in
9948 .) ac_abs_srcdir=$ac_abs_builddir;;
9949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9951 esac;;
9952 esac
9953 case $ac_abs_builddir in
9954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9956 case $ac_top_srcdir in
9957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9960 esac;;
9961 esac
9964 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9965 echo "$as_me: executing $ac_dest commands" >&6;}
9966 case $ac_dest in
9967 compiler_executable )
9968 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
9969 mkdir -p $prefix
9970 prefix="${prefix}/${aros_target_cpu}-aros"
9971 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
9973 echo ${prefix}
9974 echo ${prefix2}
9975 chmod a+x ${prefix2}-gcc ${prefix2}-ld
9977 ln -sf ${prefix2}-gcc ${prefix}-gcc
9978 ln -sf ${prefix2}-ld ${prefix}-ld
9980 ln -sf $aros_target_nm_ln ${prefix}-nm
9981 ln -sf $aros_target_ar_ln ${prefix}-ar
9982 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
9983 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
9984 ln -sf $aros_target_objdump_ln ${prefix}-objdump
9985 ln -sf $aros_target_strip_ln ${prefix}-strip
9987 ln -sf $aros_target_nm_ln ${prefix2}-nm
9988 ln -sf $aros_target_ar_ln ${prefix2}-ar
9989 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
9990 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
9991 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
9992 ln -sf $aros_target_strip_ln ${prefix2}-strip
9994 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
9995 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
9996 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
9998 esac
9999 done
10000 _ACEOF
10002 cat >>$CONFIG_STATUS <<\_ACEOF
10004 { (exit 0); exit 0; }
10005 _ACEOF
10006 chmod +x $CONFIG_STATUS
10007 ac_clean_files=$ac_clean_files_save
10010 # configure is writing to config.log, and then calls config.status.
10011 # config.status does its own redirection, appending to config.log.
10012 # Unfortunately, on DOS this fails, as config.log is still kept open
10013 # by configure, so config.status won't be able to write to it; its
10014 # output is simply discarded. So we exec the FD to /dev/null,
10015 # effectively closing config.log, so it can be properly (re)opened and
10016 # appended to by config.status. When coming back to configure, we
10017 # need to make the FD available again.
10018 if test "$no_create" != yes; then
10019 ac_cs_success=:
10020 ac_config_status_args=
10021 test "$silent" = yes &&
10022 ac_config_status_args="$ac_config_status_args --quiet"
10023 exec 5>/dev/null
10024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10025 exec 5>>config.log
10026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10027 # would make configure fail if this is the last instruction.
10028 $ac_cs_success || { (exit 1); exit 1; }
10033 #XXX compatability...
10034 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
10036 if test -n "$aros_shared_cflags" ; then
10037 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10038 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg