StrDup of all string attributes.
[cake.git] / configure
blob756c076b5b16ca9f802d1e8ae0461be82c7a354c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="mmakefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MMAKE aros_host_ld aros_host_aclocal aros_host_autoconf aros_host_autoheader aros_host_automake 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 CMP 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 DO_VIDMODE_SUPPORT aros_bochs_hack aros_serial_debug aros_palm_debug_hack aros_nesting_supervisor ENABLE_DBUS DBUS_CFLAGS DBUS_LIBFLAGS KERNEL_DBUS_KOBJ KERNEL_DBUS_INCLUDES aros_debug aros_mungwall_debug aros_stack_debug aros_modules_debug ignore_undefined_symbols gcc_target_cpu LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
844 if test -n "$ac_init_help"; then
846 cat <<\_ACEOF
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-build-type=TYPE
852 Select the build type. Available types are:
853 personal, nightly, snapshot, milestone, release. Do
854 NOT use this option unless you know what you are
855 doing! (default=personal)
856 --enable-debug=list Enable different types of debug. Commas or
857 whitespaces can be used to separate the items in the
858 list. Available types of debug are: all, none,
859 messages, stack, mungwall, modules, symbols. If no
860 list is provided then "all" is assumed.
861 (default=none)
862 --enable-distcc Use distcc as a front end to the compiler
863 (default=no).
864 --enable-ccache Use ccache as a front end to the compiler
865 (default=no).
866 --enable-target-variant=NAME
867 Enable a specific target variant(default=none)
868 --enable-includes=dir Alternative system include directory
869 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
870 (default=no)
871 --enable-palm-debug-hack
872 Enable palm debug output hack in palm native
873 (default=no)
874 --enable-nesting-supervisor
875 Enable nesting supervisor support in unix
876 (default=no)
877 --enable-xshm-extension Enable X11 MIT-SHM extension (default=yes)
878 --enable-vidmode-extension
879 Enable X11 vidmode extension (default=yes)
880 --enable-dbus Enable DBUS support via dbus.library (default=no)
882 Optional Packages:
883 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
884 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
885 --with-x use the X Window System
886 --with-optimization=FLAGS
887 Use optimization flags FLAGS (default=-O2).
888 --with-resolution=XRESxYRESxDEPTH
889 Default resolution of the initial WorkbenchScreen
890 --with-serial-debug Enable serial debug output in native (default=no)
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
899 CPP C preprocessor
901 Use these variables to override the choices made by `configure' or to help
902 it to find libraries and programs with nonstandard names/locations.
904 _ACEOF
907 if test "$ac_init_help" = "recursive"; then
908 # If there are subdirs, report their specific --help.
909 ac_popdir=`pwd`
910 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
911 test -d $ac_dir || continue
912 ac_builddir=.
914 if test "$ac_dir" != .; then
915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
916 # A "../" for each directory in $ac_dir_suffix.
917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
918 else
919 ac_dir_suffix= ac_top_builddir=
922 case $srcdir in
923 .) # No --srcdir option. We are building in place.
924 ac_srcdir=.
925 if test -z "$ac_top_builddir"; then
926 ac_top_srcdir=.
927 else
928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
929 fi ;;
930 [\\/]* | ?:[\\/]* ) # Absolute path.
931 ac_srcdir=$srcdir$ac_dir_suffix;
932 ac_top_srcdir=$srcdir ;;
933 *) # Relative path.
934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
936 esac
938 # Do not use `cd foo && pwd` to compute absolute paths, because
939 # the directories may not exist.
940 case `pwd` in
941 .) ac_abs_builddir="$ac_dir";;
943 case "$ac_dir" in
944 .) ac_abs_builddir=`pwd`;;
945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
947 esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_builddir=${ac_top_builddir}.;;
952 case ${ac_top_builddir}. in
953 .) ac_abs_top_builddir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
956 esac;;
957 esac
958 case $ac_abs_builddir in
959 .) ac_abs_srcdir=$ac_srcdir;;
961 case $ac_srcdir in
962 .) ac_abs_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
965 esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_srcdir=$ac_top_srcdir;;
970 case $ac_top_srcdir in
971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 esac;;
975 esac
977 cd $ac_dir
978 # Check for guested configure; otherwise get Cygnus style configure.
979 if test -f $ac_srcdir/configure.gnu; then
980 echo
981 $SHELL $ac_srcdir/configure.gnu --help=recursive
982 elif test -f $ac_srcdir/configure; then
983 echo
984 $SHELL $ac_srcdir/configure --help=recursive
985 elif test -f $ac_srcdir/configure.ac ||
986 test -f $ac_srcdir/configure.in; then
987 echo
988 $ac_configure --help
989 else
990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 cd $ac_popdir
993 done
996 test -n "$ac_init_help" && exit 0
997 if $ac_init_version; then
998 cat <<\_ACEOF
1000 Copyright (C) 2003 Free Software Foundation, Inc.
1001 This configure script is free software; the Free Software Foundation
1002 gives unlimited permission to copy, distribute and modify it.
1003 _ACEOF
1004 exit 0
1006 exec 5>config.log
1007 cat >&5 <<_ACEOF
1008 This file contains any messages produced by compilers while
1009 running configure, to aid debugging if configure makes a mistake.
1011 It was created by $as_me, which was
1012 generated by GNU Autoconf 2.59. Invocation command line was
1014 $ $0 $@
1016 _ACEOF
1018 cat <<_ASUNAME
1019 ## --------- ##
1020 ## Platform. ##
1021 ## --------- ##
1023 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1024 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1025 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1026 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1027 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1029 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1030 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1032 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1033 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1034 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1035 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1036 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1037 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1038 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1040 _ASUNAME
1042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 for as_dir in $PATH
1045 IFS=$as_save_IFS
1046 test -z "$as_dir" && as_dir=.
1047 echo "PATH: $as_dir"
1048 done
1050 } >&5
1052 cat >&5 <<_ACEOF
1055 ## ----------- ##
1056 ## Core tests. ##
1057 ## ----------- ##
1059 _ACEOF
1062 # Keep a trace of the command line.
1063 # Strip out --no-create and --no-recursion so they do not pile up.
1064 # Strip out --silent because we don't want to record it for future runs.
1065 # Also quote any args containing shell meta-characters.
1066 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_configure_args=
1068 ac_configure_args0=
1069 ac_configure_args1=
1070 ac_sep=
1071 ac_must_keep_next=false
1072 for ac_pass in 1 2
1074 for ac_arg
1076 case $ac_arg in
1077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1080 continue ;;
1081 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1082 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1083 esac
1084 case $ac_pass in
1085 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1087 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1088 if test $ac_must_keep_next = true; then
1089 ac_must_keep_next=false # Got value, back to normal.
1090 else
1091 case $ac_arg in
1092 *=* | --config-cache | -C | -disable-* | --disable-* \
1093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1095 | -with-* | --with-* | -without-* | --without-* | --x)
1096 case "$ac_configure_args0 " in
1097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1098 esac
1100 -* ) ac_must_keep_next=true ;;
1101 esac
1103 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1104 # Get rid of the leading space.
1105 ac_sep=" "
1107 esac
1108 done
1109 done
1110 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1111 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1113 # When interrupted or exit'd, cleanup temporary files, and complete
1114 # config.log. We remove comments because anyway the quotes in there
1115 # would cause problems or look ugly.
1116 # WARNING: Be sure not to use single quotes in there, as some shells,
1117 # such as our DU 5.0 friend, will then `close' the trap.
1118 trap 'exit_status=$?
1119 # Save into config.log some information that might help in debugging.
1121 echo
1123 cat <<\_ASBOX
1124 ## ---------------- ##
1125 ## Cache variables. ##
1126 ## ---------------- ##
1127 _ASBOX
1128 echo
1129 # The following way of writing the cache mishandles newlines in values,
1131 (set) 2>&1 |
1132 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1133 *ac_space=\ *)
1134 sed -n \
1135 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1139 sed -n \
1140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 esac;
1144 echo
1146 cat <<\_ASBOX
1147 ## ----------------- ##
1148 ## Output variables. ##
1149 ## ----------------- ##
1150 _ASBOX
1151 echo
1152 for ac_var in $ac_subst_vars
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1159 if test -n "$ac_subst_files"; then
1160 cat <<\_ASBOX
1161 ## ------------- ##
1162 ## Output files. ##
1163 ## ------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_files
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1174 if test -s confdefs.h; then
1175 cat <<\_ASBOX
1176 ## ----------- ##
1177 ## confdefs.h. ##
1178 ## ----------- ##
1179 _ASBOX
1180 echo
1181 sed "/^$/d" confdefs.h | sort
1182 echo
1184 test "$ac_signal" != 0 &&
1185 echo "$as_me: caught signal $ac_signal"
1186 echo "$as_me: exit $exit_status"
1187 } >&5
1188 rm -f core *.core &&
1189 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1190 exit $exit_status
1192 for ac_signal in 1 2 13 15; do
1193 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 done
1195 ac_signal=0
1197 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1198 rm -rf conftest* confdefs.h
1199 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1200 echo >confdefs.h
1202 # Predefined preprocessor variables.
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 _ACEOF
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 _ACEOF
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 _ACEOF
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 _ACEOF
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 _ACEOF
1229 # Let the site file select an alternate cache file if it wants to.
1230 # Prefer explicitly selected file to automatically selected ones.
1231 if test -z "$CONFIG_SITE"; then
1232 if test "x$prefix" != xNONE; then
1233 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1234 else
1235 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1238 for ac_site_file in $CONFIG_SITE; do
1239 if test -r "$ac_site_file"; then
1240 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1241 echo "$as_me: loading site script $ac_site_file" >&6;}
1242 sed 's/^/| /' "$ac_site_file" >&5
1243 . "$ac_site_file"
1245 done
1247 if test -r "$cache_file"; then
1248 # Some versions of bash will fail to source /dev/null (special
1249 # files actually), so we avoid doing that.
1250 if test -f "$cache_file"; then
1251 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1252 echo "$as_me: loading cache $cache_file" >&6;}
1253 case $cache_file in
1254 [\\/]* | ?:[\\/]* ) . $cache_file;;
1255 *) . ./$cache_file;;
1256 esac
1258 else
1259 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1260 echo "$as_me: creating cache $cache_file" >&6;}
1261 >$cache_file
1264 # Check that the precious variables saved in the cache have kept the same
1265 # value.
1266 ac_cache_corrupted=false
1267 for ac_var in `(set) 2>&1 |
1268 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1269 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1270 eval ac_new_set=\$ac_env_${ac_var}_set
1271 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1272 eval ac_new_val="\$ac_env_${ac_var}_value"
1273 case $ac_old_set,$ac_new_set in
1274 set,)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,set)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,);;
1284 if test "x$ac_old_val" != "x$ac_new_val"; then
1285 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1286 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1287 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1288 echo "$as_me: former value: $ac_old_val" >&2;}
1289 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1290 echo "$as_me: current value: $ac_new_val" >&2;}
1291 ac_cache_corrupted=:
1292 fi;;
1293 esac
1294 # Pass precious variables to config.status.
1295 if test "$ac_new_set" = set; then
1296 case $ac_new_val in
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 *) ac_arg=$ac_var=$ac_new_val ;;
1300 esac
1301 case " $ac_configure_args " in
1302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1303 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 esac
1306 done
1307 if $ac_cache_corrupted; then
1308 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1309 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1310 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1311 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1312 { (exit 1); exit 1; }; }
1315 ac_ext=c
1316 ac_cpp='$CPP $CPPFLAGS'
1317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340 ac_aux_dir=
1341 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
1355 done
1356 if test -z "$ac_aux_dir"; then
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1358 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1359 { (exit 1); exit 1; }; }
1361 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366 # Check what host we are running on.
1367 # If a target is not suggested, we use this one.
1368 # Make sure we can run config.sub.
1369 $ac_config_sub sun4 >/dev/null 2>&1 ||
1370 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1371 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1372 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: checking build system type" >&5
1375 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1376 if test "${ac_cv_build+set}" = set; then
1377 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 else
1379 ac_cv_build_alias=$build_alias
1380 test -z "$ac_cv_build_alias" &&
1381 ac_cv_build_alias=`$ac_config_guess`
1382 test -z "$ac_cv_build_alias" &&
1383 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1384 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1385 { (exit 1); exit 1; }; }
1386 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1387 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1389 { (exit 1); exit 1; }; }
1392 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1393 echo "${ECHO_T}$ac_cv_build" >&6
1394 build=$ac_cv_build
1395 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:$LINENO: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1416 host=$ac_cv_host
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 # The AROS target is slightly different to the normal GNU style
1424 # format. We don't have the middle part, and we reverse the order
1425 # of the $(CPU) and $(OS) bits.
1427 # Don't strip the version of the target yet, it might be
1428 # useful on some systems.
1430 echo "$as_me:$LINENO: checking for AROS style target" >&5
1431 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1433 if test "$target" = "NONE" ; then
1434 target=$host_os-$host_cpu
1435 cross_compile=no
1436 else
1437 if test "$target" = "" ; then
1438 target=$host_os-$host_cpu
1439 cross_compile=no
1440 else
1441 cross_compile=yes
1444 echo "$as_me:$LINENO: result: $target" >&5
1445 echo "${ECHO_T}$target" >&6
1447 #don't know where else to put this...
1448 TOPDIR=$PWD
1450 # Parse the target field into something useful.
1452 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1453 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1456 aros_default_wbwidth=800
1457 aros_default_wbheight=600
1458 aros_default_wbdepth=4
1461 # The first step is to find the host binaries.
1462 # Check for a compiler.
1463 ac_ext=c
1464 ac_cpp='$CPP $CPPFLAGS'
1465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1468 if test -n "$ac_tool_prefix"; then
1469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1470 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1490 done
1491 done
1495 CC=$ac_cv_prog_CC
1496 if test -n "$CC"; then
1497 echo "$as_me:$LINENO: result: $CC" >&5
1498 echo "${ECHO_T}$CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1505 if test -z "$ac_cv_prog_CC"; then
1506 ac_ct_CC=$CC
1507 # Extract the first word of "gcc", so it can be a program name with args.
1508 set dummy gcc; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_CC="gcc"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1528 done
1529 done
1533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534 if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536 echo "${ECHO_T}$ac_ct_CC" >&6
1537 else
1538 echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1542 CC=$ac_ct_CC
1543 else
1544 CC="$ac_cv_prog_CC"
1547 if test -z "$CC"; then
1548 if test -n "$ac_tool_prefix"; then
1549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1550 set dummy ${ac_tool_prefix}cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$CC"; then
1557 ac_cv_prog_CC="$CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_CC="${ac_tool_prefix}cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1570 done
1571 done
1575 CC=$ac_cv_prog_CC
1576 if test -n "$CC"; then
1577 echo "$as_me:$LINENO: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1585 if test -z "$ac_cv_prog_CC"; then
1586 ac_ct_CC=$CC
1587 # Extract the first word of "cc", so it can be a program name with args.
1588 set dummy cc; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594 if test -n "$ac_ct_CC"; then
1595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1596 else
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1600 IFS=$as_save_IFS
1601 test -z "$as_dir" && as_dir=.
1602 for ac_exec_ext in '' $ac_executable_extensions; do
1603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604 ac_cv_prog_ac_ct_CC="cc"
1605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 break 2
1608 done
1609 done
1613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1614 if test -n "$ac_ct_CC"; then
1615 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1616 echo "${ECHO_T}$ac_ct_CC" >&6
1617 else
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1622 CC=$ac_ct_CC
1623 else
1624 CC="$ac_cv_prog_CC"
1628 if test -z "$CC"; then
1629 # Extract the first word of "cc", so it can be a program name with args.
1630 set dummy cc; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_CC+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636 if test -n "$CC"; then
1637 ac_cv_prog_CC="$CC" # Let the user override the test.
1638 else
1639 ac_prog_rejected=no
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 for ac_exec_ext in '' $ac_executable_extensions; do
1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1648 ac_prog_rejected=yes
1649 continue
1651 ac_cv_prog_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1658 if test $ac_prog_rejected = yes; then
1659 # We found a bogon in the path, so make sure we never use it.
1660 set dummy $ac_cv_prog_CC
1661 shift
1662 if test $# != 0; then
1663 # We chose a different compiler from the bogus one.
1664 # However, it has the same basename, so the bogon will be chosen
1665 # first if we set CC to just the basename; use the full file name.
1666 shift
1667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672 CC=$ac_cv_prog_CC
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1682 if test -z "$CC"; then
1683 if test -n "$ac_tool_prefix"; then
1684 for ac_prog in cl
1686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1707 done
1708 done
1712 CC=$ac_cv_prog_CC
1713 if test -n "$CC"; then
1714 echo "$as_me:$LINENO: result: $CC" >&5
1715 echo "${ECHO_T}$CC" >&6
1716 else
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1721 test -n "$CC" && break
1722 done
1724 if test -z "$CC"; then
1725 ac_ct_CC=$CC
1726 for ac_prog in cl
1728 # Extract the first word of "$ac_prog", so it can be a program name with args.
1729 set dummy $ac_prog; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735 if test -n "$ac_ct_CC"; then
1736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1737 else
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745 ac_cv_prog_ac_ct_CC="$ac_prog"
1746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747 break 2
1749 done
1750 done
1754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1755 if test -n "$ac_ct_CC"; then
1756 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1757 echo "${ECHO_T}$ac_ct_CC" >&6
1758 else
1759 echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6
1763 test -n "$ac_ct_CC" && break
1764 done
1766 CC=$ac_ct_CC
1772 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1773 See \`config.log' for more details." >&5
1774 echo "$as_me: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&2;}
1776 { (exit 1); exit 1; }; }
1778 # Provide some information about the compiler.
1779 echo "$as_me:$LINENO:" \
1780 "checking for C compiler version" >&5
1781 ac_compiler=`set X $ac_compile; echo $2`
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1783 (eval $ac_compiler --version </dev/null >&5) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1788 (eval $ac_compiler -v </dev/null >&5) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1793 (eval $ac_compiler -V </dev/null >&5) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1798 cat >conftest.$ac_ext <<_ACEOF
1799 /* confdefs.h. */
1800 _ACEOF
1801 cat confdefs.h >>conftest.$ac_ext
1802 cat >>conftest.$ac_ext <<_ACEOF
1803 /* end confdefs.h. */
1806 main ()
1810 return 0;
1812 _ACEOF
1813 ac_clean_files_save=$ac_clean_files
1814 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1815 # Try to create an executable without -o first, disregard a.out.
1816 # It will help us diagnose broken compilers, and finding out an intuition
1817 # of exeext.
1818 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1819 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1820 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1822 (eval $ac_link_default) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # Find the output, starting from the most likely. This scheme is
1827 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1828 # resort.
1830 # Be careful to initialize this variable, since it used to be cached.
1831 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1832 ac_cv_exeext=
1833 # b.out is created by i960 compilers.
1834 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1836 test -f "$ac_file" || continue
1837 case $ac_file in
1838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1840 conftest.$ac_ext )
1841 # This is the source file.
1843 [ab].out )
1844 # We found the default executable, but exeext='' is most
1845 # certainly right.
1846 break;;
1847 *.* )
1848 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849 # FIXME: I believe we export ac_cv_exeext for Libtool,
1850 # but it would be cool to find out if it's true. Does anybody
1851 # maintain Libtool? --akim.
1852 export ac_cv_exeext
1853 break;;
1855 break;;
1856 esac
1857 done
1858 else
1859 echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&2;}
1866 { (exit 77); exit 77; }; }
1869 ac_exeext=$ac_cv_exeext
1870 echo "$as_me:$LINENO: result: $ac_file" >&5
1871 echo "${ECHO_T}$ac_file" >&6
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1876 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1877 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1878 # If not cross compiling, check that we can run a simple program.
1879 if test "$cross_compiling" != yes; then
1880 if { ac_try='./$ac_file'
1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882 (eval $ac_try) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; }; then
1886 cross_compiling=no
1887 else
1888 if test "$cross_compiling" = maybe; then
1889 cross_compiling=yes
1890 else
1891 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1892 If you meant to cross compile, use \`--host'.
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot run C compiled programs.
1895 If you meant to cross compile, use \`--host'.
1896 See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1901 echo "$as_me:$LINENO: result: yes" >&5
1902 echo "${ECHO_T}yes" >&6
1904 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1905 ac_clean_files=$ac_clean_files_save
1906 # Check the compiler produces executables we can run. If not, either
1907 # the compiler is broken, or we cross compile.
1908 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1909 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1910 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1911 echo "${ECHO_T}$cross_compiling" >&6
1913 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1914 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1916 (eval $ac_link) 2>&5
1917 ac_status=$?
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }; then
1920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1922 # work properly (i.e., refer to `conftest.exe'), while it won't with
1923 # `rm'.
1924 for ac_file in conftest.exe conftest conftest.*; do
1925 test -f "$ac_file" || continue
1926 case $ac_file in
1927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1929 export ac_cv_exeext
1930 break;;
1931 * ) break;;
1932 esac
1933 done
1934 else
1935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1936 See \`config.log' for more details." >&5
1937 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&2;}
1939 { (exit 1); exit 1; }; }
1942 rm -f conftest$ac_cv_exeext
1943 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1944 echo "${ECHO_T}$ac_cv_exeext" >&6
1946 rm -f conftest.$ac_ext
1947 EXEEXT=$ac_cv_exeext
1948 ac_exeext=$EXEEXT
1949 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1950 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1951 if test "${ac_cv_objext+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954 cat >conftest.$ac_ext <<_ACEOF
1955 /* confdefs.h. */
1956 _ACEOF
1957 cat confdefs.h >>conftest.$ac_ext
1958 cat >>conftest.$ac_ext <<_ACEOF
1959 /* end confdefs.h. */
1962 main ()
1966 return 0;
1968 _ACEOF
1969 rm -f conftest.o conftest.obj
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1971 (eval $ac_compile) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1976 case $ac_file in
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1979 break;;
1980 esac
1981 done
1982 else
1983 echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1987 See \`config.log' for more details." >&5
1988 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1989 See \`config.log' for more details." >&2;}
1990 { (exit 1); exit 1; }; }
1993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1995 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1996 echo "${ECHO_T}$ac_cv_objext" >&6
1997 OBJEXT=$ac_cv_objext
1998 ac_objext=$OBJEXT
1999 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2000 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2001 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004 cat >conftest.$ac_ext <<_ACEOF
2005 /* confdefs.h. */
2006 _ACEOF
2007 cat confdefs.h >>conftest.$ac_ext
2008 cat >>conftest.$ac_ext <<_ACEOF
2009 /* end confdefs.h. */
2012 main ()
2014 #ifndef __GNUC__
2015 choke me
2016 #endif
2019 return 0;
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2044 ac_compiler_gnu=yes
2045 else
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_compiler_gnu=no
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2057 GCC=`test $ac_compiler_gnu = yes && echo yes`
2058 ac_test_CFLAGS=${CFLAGS+set}
2059 ac_save_CFLAGS=$CFLAGS
2060 CFLAGS="-g"
2061 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2062 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2063 if test "${ac_cv_prog_cc_g+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066 cat >conftest.$ac_ext <<_ACEOF
2067 /* confdefs.h. */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2074 main ()
2078 return 0;
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>conftest.er1
2084 ac_status=$?
2085 grep -v '^ *+' conftest.er1 >conftest.err
2086 rm -f conftest.er1
2087 cat conftest.err >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -z "$ac_c_werror_flag"
2091 || test ! -s conftest.err'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 (eval $ac_try) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 (eval $ac_try) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2103 ac_cv_prog_cc_g=yes
2104 else
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_cv_prog_cc_g=no
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2118 CFLAGS="-g -O2"
2119 else
2120 CFLAGS="-g"
2122 else
2123 if test "$GCC" = yes; then
2124 CFLAGS="-O2"
2125 else
2126 CFLAGS=
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 ac_cv_prog_cc_stdc=no
2135 ac_save_CC=$CC
2136 cat >conftest.$ac_ext <<_ACEOF
2137 /* confdefs.h. */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2142 #include <stdarg.h>
2143 #include <stdio.h>
2144 #include <sys/types.h>
2145 #include <sys/stat.h>
2146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2147 struct buf { int x; };
2148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2150 char **p;
2151 int i;
2153 return p[i];
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2157 char *s;
2158 va_list v;
2159 va_start (v,p);
2160 s = g (p, va_arg (v,int));
2161 va_end (v);
2162 return s;
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not '\xHH' hex character constants.
2167 These don't provoke an error unfortunately, instead are silently treated
2168 as 'x'. The following induces an error, until -std1 is added to get
2169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2170 array size at least. It's necessary to write '\x00'==0 to get something
2171 that's true only with -std1. */
2172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2178 int argc;
2179 char **argv;
2181 main ()
2183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2185 return 0;
2187 _ACEOF
2188 # Don't try gcc -ansi; that turns off useful extensions and
2189 # breaks some systems' header files.
2190 # AIX -qlanglvl=ansi
2191 # Ultrix and OSF/1 -std1
2192 # HP-UX 10.20 and later -Ae
2193 # HP-UX older versions -Aa -D_HPUX_SOURCE
2194 # SVR4 -Xc -D__EXTENSIONS__
2195 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2197 CC="$ac_save_CC $ac_arg"
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2201 ac_status=$?
2202 grep -v '^ *+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216 (eval $ac_try) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2220 ac_cv_prog_cc_stdc=$ac_arg
2221 break
2222 else
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext
2228 done
2229 rm -f conftest.$ac_ext conftest.$ac_objext
2230 CC=$ac_save_CC
2234 case "x$ac_cv_prog_cc_stdc" in
2235 x|xno)
2236 echo "$as_me:$LINENO: result: none needed" >&5
2237 echo "${ECHO_T}none needed" >&6 ;;
2239 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2240 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2241 CC="$CC $ac_cv_prog_cc_stdc" ;;
2242 esac
2244 # Some people use a C++ compiler to compile C. Since we use `exit',
2245 # in C++ we need to declare it. In case someone uses the same compiler
2246 # for both compiling C and C++ we need to have the C++ compiler decide
2247 # the declaration of exit, since it's the most demanding environment.
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #ifndef __cplusplus
2250 choke me
2251 #endif
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
2276 '' \
2277 'extern "C" void std::exit (int) throw (); using std::exit;' \
2278 'extern "C" void std::exit (int); using std::exit;' \
2279 'extern "C" void exit (int) throw ();' \
2280 'extern "C" void exit (int);' \
2281 'void exit (int);'
2283 cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h. */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2289 $ac_declaration
2290 #include <stdlib.h>
2292 main ()
2294 exit (42);
2296 return 0;
2298 _ACEOF
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2302 ac_status=$?
2303 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag"
2309 || test ! -s conftest.err'
2310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 (eval $ac_try) 2>&5
2312 ac_status=$?
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; } &&
2315 { ac_try='test -s conftest.$ac_objext'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; }; then
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2326 continue
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h. */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2335 $ac_declaration
2337 main ()
2339 exit (42);
2341 return 0;
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2346 (eval $ac_compile) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -z "$ac_c_werror_flag"
2354 || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 (eval $ac_try) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 break
2367 else
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 rm -f conftest*
2375 if test -n "$ac_declaration"; then
2376 echo '#ifdef __cplusplus' >>confdefs.h
2377 echo $ac_declaration >>confdefs.h
2378 echo '#endif' >>confdefs.h
2381 else
2382 echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_ext=c
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 ac_ext=c
2395 ac_cpp='$CPP $CPPFLAGS'
2396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2400 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2401 # On Suns, sometimes $CPP names a directory.
2402 if test -n "$CPP" && test -d "$CPP"; then
2403 CPP=
2405 if test -z "$CPP"; then
2406 if test "${ac_cv_prog_CPP+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 # Double quotes because CPP needs to be expanded
2410 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2412 ac_preproc_ok=false
2413 for ac_c_preproc_warn_flag in '' yes
2415 # Use a header file that comes with gcc, so configuring glibc
2416 # with a fresh cross-compiler works.
2417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2418 # <limits.h> exists even on freestanding compilers.
2419 # On the NeXT, cc -E runs the code through the compiler's parser,
2420 # not just through cpp. "Syntax error" is here to catch this case.
2421 cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h. */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2427 #ifdef __STDC__
2428 # include <limits.h>
2429 #else
2430 # include <assert.h>
2431 #endif
2432 Syntax error
2433 _ACEOF
2434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2436 ac_status=$?
2437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_c_preproc_warn_flag
2444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2445 else
2446 ac_cpp_err=
2448 else
2449 ac_cpp_err=yes
2451 if test -z "$ac_cpp_err"; then
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 # Broken: fails on valid input.
2458 continue
2460 rm -f conftest.err conftest.$ac_ext
2462 # OK, works on sane cases. Now check whether non-existent headers
2463 # can be detected and how.
2464 cat >conftest.$ac_ext <<_ACEOF
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470 #include <ac_nonexistent.h>
2471 _ACEOF
2472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2474 ac_status=$?
2475 grep -v '^ *+' conftest.er1 >conftest.err
2476 rm -f conftest.er1
2477 cat conftest.err >&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } >/dev/null; then
2480 if test -s conftest.err; then
2481 ac_cpp_err=$ac_c_preproc_warn_flag
2482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2483 else
2484 ac_cpp_err=
2486 else
2487 ac_cpp_err=yes
2489 if test -z "$ac_cpp_err"; then
2490 # Broken: success on invalid input.
2491 continue
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2496 # Passes both tests.
2497 ac_preproc_ok=:
2498 break
2500 rm -f conftest.err conftest.$ac_ext
2502 done
2503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2504 rm -f conftest.err conftest.$ac_ext
2505 if $ac_preproc_ok; then
2506 break
2509 done
2510 ac_cv_prog_CPP=$CPP
2513 CPP=$ac_cv_prog_CPP
2514 else
2515 ac_cv_prog_CPP=$CPP
2517 echo "$as_me:$LINENO: result: $CPP" >&5
2518 echo "${ECHO_T}$CPP" >&6
2519 ac_preproc_ok=false
2520 for ac_c_preproc_warn_flag in '' yes
2522 # Use a header file that comes with gcc, so configuring glibc
2523 # with a fresh cross-compiler works.
2524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2525 # <limits.h> exists even on freestanding compilers.
2526 # On the NeXT, cc -E runs the code through the compiler's parser,
2527 # not just through cpp. "Syntax error" is here to catch this case.
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2534 #ifdef __STDC__
2535 # include <limits.h>
2536 #else
2537 # include <assert.h>
2538 #endif
2539 Syntax error
2540 _ACEOF
2541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } >/dev/null; then
2549 if test -s conftest.err; then
2550 ac_cpp_err=$ac_c_preproc_warn_flag
2551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2552 else
2553 ac_cpp_err=
2555 else
2556 ac_cpp_err=yes
2558 if test -z "$ac_cpp_err"; then
2560 else
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 # Broken: fails on valid input.
2565 continue
2567 rm -f conftest.err conftest.$ac_ext
2569 # OK, works on sane cases. Now check whether non-existent headers
2570 # can be detected and how.
2571 cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h. */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2577 #include <ac_nonexistent.h>
2578 _ACEOF
2579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } >/dev/null; then
2587 if test -s conftest.err; then
2588 ac_cpp_err=$ac_c_preproc_warn_flag
2589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2590 else
2591 ac_cpp_err=
2593 else
2594 ac_cpp_err=yes
2596 if test -z "$ac_cpp_err"; then
2597 # Broken: success on invalid input.
2598 continue
2599 else
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 # Passes both tests.
2604 ac_preproc_ok=:
2605 break
2607 rm -f conftest.err conftest.$ac_ext
2609 done
2610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2611 rm -f conftest.err conftest.$ac_ext
2612 if $ac_preproc_ok; then
2614 else
2615 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2618 See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2622 ac_ext=c
2623 ac_cpp='$CPP $CPPFLAGS'
2624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 # We don't yet support cross-compiling, but we may later on.
2631 case $host_os in
2632 *cygwin* ) CYGWIN=yes;;
2633 * ) CYGWIN=no;;
2634 esac
2639 # Check for gawk and mmake.
2640 for ac_prog in gawk nawk
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2646 if test "${ac_cv_prog_AWK+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 if test -n "$AWK"; then
2650 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659 ac_cv_prog_AWK="$ac_prog"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2663 done
2664 done
2668 AWK=$ac_cv_prog_AWK
2669 if test -n "$AWK"; then
2670 echo "$as_me:$LINENO: result: $AWK" >&5
2671 echo "${ECHO_T}$AWK" >&6
2672 else
2673 echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6
2677 test -n "$AWK" && break
2678 done
2681 if test "$AWK" = ""; then
2682 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2683 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2684 { (exit 1); exit 1; }; }
2686 # Extract the first word of "mmake", so it can be a program name with args.
2687 set dummy mmake; ac_word=$2
2688 echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2690 if test "${ac_cv_prog_MMAKE+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -n "$MMAKE"; then
2694 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_MMAKE="mmake"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2712 MMAKE=$ac_cv_prog_MMAKE
2713 if test -n "$MMAKE"; then
2714 echo "$as_me:$LINENO: result: $MMAKE" >&5
2715 echo "${ECHO_T}$MMAKE" >&6
2716 else
2717 echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6
2724 # Perform some default variable assignments. Note all of these will be
2725 # Regenerated from the script, so there is no need to cache them.
2727 aros_host_cc="$CC"
2728 if test "$GCC" = "yes"; then
2729 aros_gcc_ld=`$CC -print-prog-name=ld`
2730 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2731 set dummy `basename $aros_gcc_ld`; ac_word=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 case $aros_host_ld in
2738 [\\/]* | ?:[\\/]*)
2739 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in `dirname $aros_gcc_ld`
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2757 esac
2759 aros_host_ld=$ac_cv_path_aros_host_ld
2761 if test -n "$aros_host_ld"; then
2762 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2763 echo "${ECHO_T}$aros_host_ld" >&6
2764 else
2765 echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2770 if test "$aros_host_ld" = ""; then
2771 # Extract the first word of "ld", so it can be a program name with args.
2772 set dummy ld; ac_word=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 case $aros_host_ld in
2779 [\\/]* | ?:[\\/]*)
2780 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2798 esac
2800 aros_host_ld=$ac_cv_path_aros_host_ld
2802 if test -n "$aros_host_ld"; then
2803 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2804 echo "${ECHO_T}$aros_host_ld" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2811 if test "$aros_host_ld" = ""; then
2812 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2813 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2814 { (exit 1); exit 1; }; }
2816 aros_host_make="make"
2817 aros_host_cflags=$CFLAGS
2818 aros_host_ldflags=$LDFLAGS
2819 aros_host_debug="-g -O0"
2820 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2821 aros_host_mkargs="--no-print-directory"
2822 aros_host_incl="/usr/include"
2823 aros_host_exe_suffix="$EXEEXT"
2824 aros_host_lib_suffix=""
2826 for ac_prog in aclocal aclocal19
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 else
2835 if test -n "$aros_host_aclocal"; then
2836 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_aros_host_aclocal="$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2849 done
2850 done
2854 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
2855 if test -n "$aros_host_aclocal"; then
2856 echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
2857 echo "${ECHO_T}$aros_host_aclocal" >&6
2858 else
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 test -n "$aros_host_aclocal" && break
2864 done
2866 for ac_prog in autoconf autoconf259 autoconf253
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 echo "$as_me:$LINENO: checking for $ac_word" >&5
2871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2872 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 if test -n "$aros_host_autoconf"; then
2876 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_aros_host_autoconf="$ac_prog"
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2889 done
2890 done
2894 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
2895 if test -n "$aros_host_autoconf"; then
2896 echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
2897 echo "${ECHO_T}$aros_host_autoconf" >&6
2898 else
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2903 test -n "$aros_host_autoconf" && break
2904 done
2906 for ac_prog in autoheader autoheader259 autoheader253
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915 if test -n "$aros_host_autoheader"; then
2916 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_aros_host_autoheader="$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2934 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
2935 if test -n "$aros_host_autoheader"; then
2936 echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
2937 echo "${ECHO_T}$aros_host_autoheader" >&6
2938 else
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$aros_host_autoheader" && break
2944 done
2946 for ac_prog in automake automake19
2948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2949 set dummy $ac_prog; ac_word=$2
2950 echo "$as_me:$LINENO: checking for $ac_word" >&5
2951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2952 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955 if test -n "$aros_host_automake"; then
2956 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_aros_host_automake="$ac_prog"
2966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2974 aros_host_automake=$ac_cv_prog_aros_host_automake
2975 if test -n "$aros_host_automake"; then
2976 echo "$as_me:$LINENO: result: $aros_host_automake" >&5
2977 echo "${ECHO_T}$aros_host_automake" >&6
2978 else
2979 echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6
2983 test -n "$aros_host_automake" && break
2984 done
2987 case "$CC" in
2988 *gcc*)
2989 aros_host_cc_pipe="-pipe"
2991 icc)
2992 aros_host_cc_pipe=""
2995 aros_host_cc_pipe=""
2997 esac
2999 aros_target_cc_includes=""
3001 # This is the main host configuration section. It is where the host
3002 # can change the values of any variables it needs to change. We do
3003 # not look at anything that compiles to the target yet, we'll get
3004 # to that later.
3006 case "$host_os" in
3007 linux*)
3008 aros_host_arch="linux"
3009 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3010 case "$host_cpu" in
3011 *i?86*)
3012 aros_host_cpu="i386"
3014 *x86_64*)
3015 aros_host_cpu="x86_64"
3017 *m68k*)
3018 aros_host_cpu="m68k"
3020 *powerpc*)
3021 aros_host_cpu="ppc"
3024 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3025 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3026 aros_host_cpu="$host_cpu"
3028 esac
3031 freebsd*)
3032 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3033 aros_host_make="gmake"
3034 aros_host_arch="freebsd"
3035 aros_host_cpu="i386"
3038 case $host_os in
3039 freebsd[234]*)
3040 aros_object_format="elf_i386"
3044 aros_object_format="elf_i386_fbsd"
3046 esac
3050 netbsd*)
3051 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3052 aros_host_make="gmake"
3053 aros_host_arch="netbsd"
3054 case "$host_cpu" in
3055 *i?86*)
3056 aros_host_cpu="i386"
3058 *m68k*)
3059 aros_host_cpu="m68k"
3062 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3063 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3064 aros_host_cpu="$host_cpu"
3066 esac
3067 aros_host_lib_suffix=".0.0"
3070 openbsd*)
3071 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3072 aros_host_make="gmake"
3073 aros_host_arch="openbsd"
3074 case "$host_cpu" in
3075 *i?86*)
3076 aros_host_cpu="i386"
3079 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3080 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3081 aros_host_cpu="$host_cpu"
3083 esac
3086 solaris*)
3087 aros_host_arch="solaris"
3088 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3089 case "$host_cpu" in
3090 *sparc*)
3091 aros_host_cpu="sparc"
3094 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3095 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3096 aros_host_cpu="$host_cpu"
3098 esac
3101 morphos*)
3102 aros_host_cc="$aros_host_cc"
3103 aros_host_arch="morphos"
3104 aros_host_cpu="ppc"
3107 amiga*)
3108 aros_host_arch="amiga"
3109 SORT="/gg/bin/sort"
3110 TEST="/gg/bin/test"
3111 UNIQ="/gg/bin/uniq"
3112 FOR="for"
3113 TOUCH="/gg/bin/touch"
3114 case "$host_cpu" in
3115 *m68k*)
3116 aros_host_cpu="m68k"
3118 *powerpc*)
3119 aros_host_cpu="ppc"
3122 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3123 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3124 aros_host_cpu="$host_cpu"
3126 esac
3129 cygwin*)
3130 aros_host_arch="cygwin"
3131 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3132 case "$host_cpu" in
3133 *i?86*)
3134 aros_host_cpu="i386"
3137 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3138 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3139 aros_host_cpu="$host_cpu"
3141 esac
3144 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
3145 echo "$as_me: error: Unsupported host architecture $host" >&2;}
3146 { (exit 1); exit 1; }; }
3148 esac
3150 # Extract the first word of "ar", so it can be a program name with args.
3151 set dummy ar; ac_word=$2
3152 echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154 if test "${ac_cv_prog_HOST_AR+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 else
3157 if test -n "$HOST_AR"; then
3158 ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_HOST_AR="ar"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3171 done
3172 done
3176 HOST_AR=$ac_cv_prog_HOST_AR
3177 if test -n "$HOST_AR"; then
3178 echo "$as_me:$LINENO: result: $HOST_AR" >&5
3179 echo "${ECHO_T}$HOST_AR" >&6
3180 else
3181 echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6
3185 HOST_AR="$HOST_AR cr"
3187 if test "$HOST_AR" = ""; then
3188 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3189 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3190 { (exit 1); exit 1; }; }
3192 # Extract the first word of "ranlib", so it can be a program name with args.
3193 set dummy ranlib; ac_word=$2
3194 echo "$as_me:$LINENO: checking for $ac_word" >&5
3195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196 if test "${ac_cv_prog_HOST_RANLIB+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 if test -n "$HOST_RANLIB"; then
3200 ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_HOST_RANLIB="ranlib"
3210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3218 HOST_RANLIB=$ac_cv_prog_HOST_RANLIB
3219 if test -n "$HOST_RANLIB"; then
3220 echo "$as_me:$LINENO: result: $HOST_RANLIB" >&5
3221 echo "${ECHO_T}$HOST_RANLIB" >&6
3222 else
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3230 # Extract the first word of "rm", so it can be a program name with args.
3231 set dummy rm; ac_word=$2
3232 echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_RM+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 if test -n "$RM"; then
3238 ac_cv_prog_RM="$RM" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_prog_RM="rm"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3251 done
3252 done
3256 RM=$ac_cv_prog_RM
3257 if test -n "$RM"; then
3258 echo "$as_me:$LINENO: result: $RM" >&5
3259 echo "${ECHO_T}$RM" >&6
3260 else
3261 echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3265 RM="$RM -rf"
3267 if test "$RM" = ""; then
3268 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3269 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Extract the first word of "cp", so it can be a program name with args.
3273 set dummy cp; ac_word=$2
3274 echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3276 if test "${ac_cv_prog_CP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 else
3279 if test -n "$CP"; then
3280 ac_cv_prog_CP="$CP" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_CP="cp"
3290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3293 done
3294 done
3298 CP=$ac_cv_prog_CP
3299 if test -n "$CP"; then
3300 echo "$as_me:$LINENO: result: $CP" >&5
3301 echo "${ECHO_T}$CP" >&6
3302 else
3303 echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6
3309 if test "$CP" = ""; then
3310 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3311 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3312 { (exit 1); exit 1; }; }
3314 # Extract the first word of "mv", so it can be a program name with args.
3315 set dummy mv; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_MV+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$MV"; then
3322 ac_cv_prog_MV="$MV" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_MV="mv"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3335 done
3336 done
3340 MV=$ac_cv_prog_MV
3341 if test -n "$MV"; then
3342 echo "$as_me:$LINENO: result: $MV" >&5
3343 echo "${ECHO_T}$MV" >&6
3344 else
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3351 if test "$MV" = ""; then
3352 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3353 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3354 { (exit 1); exit 1; }; }
3356 # Extract the first word of "echo", so it can be a program name with args.
3357 set dummy echo; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_ECHO+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$ECHO"; then
3364 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ECHO="echo"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3377 done
3378 done
3382 ECHO=$ac_cv_prog_ECHO
3383 if test -n "$ECHO"; then
3384 echo "$as_me:$LINENO: result: $ECHO" >&5
3385 echo "${ECHO_T}$ECHO" >&6
3386 else
3387 echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3393 if test "$ECHO" = ""; then
3394 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3395 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3396 { (exit 1); exit 1; }; }
3398 # Extract the first word of "mkdir", so it can be a program name with args.
3399 set dummy mkdir; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_prog_MKDIR+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -n "$MKDIR"; then
3406 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_MKDIR="mkdir"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3424 MKDIR=$ac_cv_prog_MKDIR
3425 if test -n "$MKDIR"; then
3426 echo "$as_me:$LINENO: result: $MKDIR" >&5
3427 echo "${ECHO_T}$MKDIR" >&6
3428 else
3429 echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3433 MKDIR="$MKDIR -p"
3435 if test "$MKDIR" = ""; then
3436 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3437 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3438 { (exit 1); exit 1; }; }
3440 # Extract the first word of "touch", so it can be a program name with args.
3441 set dummy touch; ac_word=$2
3442 echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3444 if test "${ac_cv_prog_TOUCH+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 else
3447 if test -n "$TOUCH"; then
3448 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457 ac_cv_prog_TOUCH="touch"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3466 TOUCH=$ac_cv_prog_TOUCH
3467 if test -n "$TOUCH"; then
3468 echo "$as_me:$LINENO: result: $TOUCH" >&5
3469 echo "${ECHO_T}$TOUCH" >&6
3470 else
3471 echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3477 if test "$TOUCH" = ""; then
3478 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3479 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3480 { (exit 1); exit 1; }; }
3482 # Extract the first word of "sort", so it can be a program name with args.
3483 set dummy sort; ac_word=$2
3484 echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3486 if test "${ac_cv_prog_SORT+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489 if test -n "$SORT"; then
3490 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_SORT="sort"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3503 done
3504 done
3508 SORT=$ac_cv_prog_SORT
3509 if test -n "$SORT"; then
3510 echo "$as_me:$LINENO: result: $SORT" >&5
3511 echo "${ECHO_T}$SORT" >&6
3512 else
3513 echo "$as_me:$LINENO: result: no" >&5
3514 echo "${ECHO_T}no" >&6
3519 if test "$SORT" = ""; then
3520 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3521 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3522 { (exit 1); exit 1; }; }
3524 # Extract the first word of "uniq", so it can be a program name with args.
3525 set dummy uniq; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_UNIQ+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 if test -n "$UNIQ"; then
3532 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_UNIQ="uniq"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3550 UNIQ=$ac_cv_prog_UNIQ
3551 if test -n "$UNIQ"; then
3552 echo "$as_me:$LINENO: result: $UNIQ" >&5
3553 echo "${ECHO_T}$UNIQ" >&6
3554 else
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3561 if test "$UNIQ" = ""; then
3562 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3563 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3564 { (exit 1); exit 1; }; }
3566 # Extract the first word of "true", so it can be a program name with args.
3567 set dummy true; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_NOP+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 if test -n "$NOP"; then
3574 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_NOP="true"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3592 NOP=$ac_cv_prog_NOP
3593 if test -n "$NOP"; then
3594 echo "$as_me:$LINENO: result: $NOP" >&5
3595 echo "${ECHO_T}$NOP" >&6
3596 else
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3603 if test "$NOP" = ""; then
3604 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3605 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3606 { (exit 1); exit 1; }; }
3608 # Extract the first word of "cat", so it can be a program name with args.
3609 set dummy cat; ac_word=$2
3610 echo "$as_me:$LINENO: checking for $ac_word" >&5
3611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3612 if test "${ac_cv_prog_CAT+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 if test -n "$CAT"; then
3616 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625 ac_cv_prog_CAT="cat"
3626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3634 CAT=$ac_cv_prog_CAT
3635 if test -n "$CAT"; then
3636 echo "$as_me:$LINENO: result: $CAT" >&5
3637 echo "${ECHO_T}$CAT" >&6
3638 else
3639 echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3645 if test "$CAT" = ""; then
3646 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3647 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3648 { (exit 1); exit 1; }; }
3650 # Extract the first word of "bison", so it can be a program name with args.
3651 set dummy bison; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_BISON+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -n "$BISON"; then
3658 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_BISON="bison"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3676 BISON=$ac_cv_prog_BISON
3677 if test -n "$BISON"; then
3678 echo "$as_me:$LINENO: result: $BISON" >&5
3679 echo "${ECHO_T}$BISON" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3687 if test "$BISON" = ""; then
3688 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3689 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3690 { (exit 1); exit 1; }; }
3692 # Extract the first word of "pngtopnm", so it can be a program name with args.
3693 set dummy pngtopnm; ac_word=$2
3694 echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3696 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if test -n "$PNGTOPNM"; then
3700 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_PNGTOPNM="pngtopnm"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3713 done
3714 done
3718 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3719 if test -n "$PNGTOPNM"; then
3720 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3721 echo "${ECHO_T}$PNGTOPNM" >&6
3722 else
3723 echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3729 if test "$PNGTOPNM" = ""; then
3730 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3731 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3732 { (exit 1); exit 1; }; }
3734 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3735 set dummy ppmtoilbm; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 if test -n "$PPMTOILBM"; then
3742 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 ac_cv_prog_PPMTOILBM="ppmtoilbm"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3760 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3761 if test -n "$PPMTOILBM"; then
3762 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3763 echo "${ECHO_T}$PPMTOILBM" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3771 if test "$PPMTOILBM" = ""; then
3772 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3773 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3774 { (exit 1); exit 1; }; }
3776 # Extract the first word of "strip", so it can be a program name with args.
3777 set dummy strip; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_STRIP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if test -n "$STRIP"; then
3784 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_STRIP="strip"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3802 STRIP=$ac_cv_prog_STRIP
3803 if test -n "$STRIP"; then
3804 echo "$as_me:$LINENO: result: $STRIP" >&5
3805 echo "${ECHO_T}$STRIP" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3813 if test "$STRIP" = ""; then
3814 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3815 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3816 { (exit 1); exit 1; }; }
3818 # Extract the first word of "sed", so it can be a program name with args.
3819 set dummy sed; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_SED+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 if test -n "$SED"; then
3826 ac_cv_prog_SED="$SED" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_SED="sed"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3839 done
3840 done
3844 SED=$ac_cv_prog_SED
3845 if test -n "$SED"; then
3846 echo "$as_me:$LINENO: result: $SED" >&5
3847 echo "${ECHO_T}$SED" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3855 if test "$SED" = ""; then
3856 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3857 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3858 { (exit 1); exit 1; }; }
3860 # Extract the first word of "chmod", so it can be a program name with args.
3861 set dummy chmod; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_CHMOD+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 if test -n "$CHMOD"; then
3868 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_CHMOD="chmod"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3886 CHMOD=$ac_cv_prog_CHMOD
3887 if test -n "$CHMOD"; then
3888 echo "$as_me:$LINENO: result: $CHMOD" >&5
3889 echo "${ECHO_T}$CHMOD" >&6
3890 else
3891 echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3897 if test "$CHMOD" = ""; then
3898 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3899 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3900 { (exit 1); exit 1; }; }
3907 if test -n "$PYTHON"; then
3908 # If the user set $PYTHON, use it and don't search something else.
3909 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3910 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3911 prog="import sys, string
3912 # split strings by '.' and convert to numeric. Append some zeros
3913 # because we need at least 4 digits for the hex conversion.
3914 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3915 minverhex = 0
3916 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3917 sys.exit(sys.hexversion < minverhex)"
3918 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3919 ($PYTHON -c "$prog") >&5 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924 echo "${ECHO_T}yes" >&6
3925 else
3926 { { echo "$as_me:$LINENO: error: too old" >&5
3927 echo "$as_me: error: too old" >&2;}
3928 { (exit 1); exit 1; }; }
3931 else
3932 # Otherwise, try each interpreter until we find one that satisfies
3933 # VERSION.
3934 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3935 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3936 if test "${am_cv_pathless_PYTHON+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3940 for am_cv_pathless_PYTHON in python python2 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3941 test "$am_cv_pathless_PYTHON" = none && break
3942 prog="import sys, string
3943 # split strings by '.' and convert to numeric. Append some zeros
3944 # because we need at least 4 digits for the hex conversion.
3945 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3946 minverhex = 0
3947 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3948 sys.exit(sys.hexversion < minverhex)"
3949 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3950 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; then
3954 break
3957 done
3959 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3960 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3961 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3962 if test "$am_cv_pathless_PYTHON" = none; then
3963 PYTHON=:
3964 else
3965 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3966 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_path_PYTHON+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 case $PYTHON in
3973 [\\/]* | ?:[\\/]*)
3974 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3992 esac
3994 PYTHON=$ac_cv_path_PYTHON
3996 if test -n "$PYTHON"; then
3997 echo "$as_me:$LINENO: result: $PYTHON" >&5
3998 echo "${ECHO_T}$PYTHON" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4005 am_display_PYTHON=$am_cv_pathless_PYTHON
4009 if test "$PYTHON" = :; then
4010 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4011 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4012 { (exit 1); exit 1; }; }
4013 else
4016 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4017 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
4018 if test "${am_cv_python_version+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4023 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4024 echo "${ECHO_T}$am_cv_python_version" >&6
4025 PYTHON_VERSION=$am_cv_python_version
4029 PYTHON_PREFIX='${prefix}'
4031 PYTHON_EXEC_PREFIX='${exec_prefix}'
4035 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4036 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
4037 if test "${am_cv_python_platform+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4042 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4043 echo "${ECHO_T}$am_cv_python_platform" >&6
4044 PYTHON_PLATFORM=$am_cv_python_platform
4049 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4050 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
4051 if test "${am_cv_python_pythondir+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4055 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4057 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4058 echo "${ECHO_T}$am_cv_python_pythondir" >&6
4059 pythondir=$am_cv_python_pythondir
4063 pkgpythondir=\${pythondir}/$PACKAGE
4066 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4067 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4068 if test "${am_cv_python_pyexecdir+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4072 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4074 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4075 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4076 pyexecdir=$am_cv_python_pyexecdir
4080 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4088 FOR=for
4089 IF=if
4090 TEST=test
4091 CMP=cmp
4098 # Check for some includes for the X11 HIDD and the kernel
4101 echo "$as_me:$LINENO: checking for egrep" >&5
4102 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4103 if test "${ac_cv_prog_egrep+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4107 then ac_cv_prog_egrep='grep -E'
4108 else ac_cv_prog_egrep='egrep'
4111 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4112 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4113 EGREP=$ac_cv_prog_egrep
4116 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4118 if test "${ac_cv_header_stdc+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <stdlib.h>
4128 #include <stdarg.h>
4129 #include <string.h>
4130 #include <float.h>
4133 main ()
4137 return 0;
4139 _ACEOF
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_header_stdc=yes
4163 else
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_header_stdc=no
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4171 if test $ac_cv_header_stdc = yes; then
4172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179 #include <string.h>
4181 _ACEOF
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 $EGREP "memchr" >/dev/null 2>&1; then
4185 else
4186 ac_cv_header_stdc=no
4188 rm -f conftest*
4192 if test $ac_cv_header_stdc = yes; then
4193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <stdlib.h>
4202 _ACEOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "free" >/dev/null 2>&1; then
4206 else
4207 ac_cv_header_stdc=no
4209 rm -f conftest*
4213 if test $ac_cv_header_stdc = yes; then
4214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4215 if test "$cross_compiling" = yes; then
4217 else
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h. */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 #include <ctype.h>
4225 #if ((' ' & 0x0FF) == 0x020)
4226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 #else
4229 # define ISLOWER(c) \
4230 (('a' <= (c) && (c) <= 'i') \
4231 || ('j' <= (c) && (c) <= 'r') \
4232 || ('s' <= (c) && (c) <= 'z'))
4233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4234 #endif
4236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4238 main ()
4240 int i;
4241 for (i = 0; i < 256; i++)
4242 if (XOR (islower (i), ISLOWER (i))
4243 || toupper (i) != TOUPPER (i))
4244 exit(2);
4245 exit (0);
4247 _ACEOF
4248 rm -f conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250 (eval $ac_link) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4260 else
4261 echo "$as_me: program exited with status $ac_status" >&5
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 ( exit $ac_status )
4266 ac_cv_header_stdc=no
4268 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4273 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4274 if test $ac_cv_header_stdc = yes; then
4276 cat >>confdefs.h <<\_ACEOF
4277 #define STDC_HEADERS 1
4278 _ACEOF
4282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4292 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4293 inttypes.h stdint.h unistd.h
4295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4296 echo "$as_me:$LINENO: checking for $ac_header" >&5
4297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 $ac_includes_default
4309 #include <$ac_header>
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 eval "$as_ac_Header=yes"
4334 else
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 eval "$as_ac_Header=no"
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345 cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 _ACEOF
4351 done
4363 for ac_header in sys/ipc.h sys/shm.h \
4364 sys/mmap.h sys/mman.h sysexits.h \
4365 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370 echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4377 else
4378 # Is the header compilable?
4379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 $ac_includes_default
4388 #include <$ac_header>
4389 _ACEOF
4390 rm -f conftest.$ac_objext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag"
4400 || test ! -s conftest.err'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 (eval $ac_try) 2>&5
4403 ac_status=$?
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; } &&
4406 { ac_try='test -s conftest.$ac_objext'
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; }; then
4412 ac_header_compiler=yes
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 ac_header_compiler=no
4419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4421 echo "${ECHO_T}$ac_header_compiler" >&6
4423 # Is the header present?
4424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #include <$ac_header>
4433 _ACEOF
4434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null; then
4442 if test -s conftest.err; then
4443 ac_cpp_err=$ac_c_preproc_warn_flag
4444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4445 else
4446 ac_cpp_err=
4448 else
4449 ac_cpp_err=yes
4451 if test -z "$ac_cpp_err"; then
4452 ac_header_preproc=yes
4453 else
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.$ac_ext >&5
4457 ac_header_preproc=no
4459 rm -f conftest.err conftest.$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4461 echo "${ECHO_T}$ac_header_preproc" >&6
4463 # So? What about this header?
4464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4465 yes:no: )
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4470 ac_header_preproc=yes
4472 no:yes:* )
4473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4486 cat <<\_ASBOX
4487 ## ------------------------------------------ ##
4488 ## Report this to the AC_PACKAGE_NAME lists. ##
4489 ## ------------------------------------------ ##
4490 _ASBOX
4492 sed "s/^/$as_me: WARNING: /" >&2
4494 esac
4495 echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 eval "$as_ac_Header=\$ac_header_preproc"
4502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4507 cat >>confdefs.h <<_ACEOF
4508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4509 _ACEOF
4513 done
4517 for ac_header in sys/mount.h
4519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #include <sys/param.h>
4533 #include <$ac_header>
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>conftest.er1
4538 ac_status=$?
4539 grep -v '^ *+' conftest.er1 >conftest.err
4540 rm -f conftest.er1
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag"
4545 || test ! -s conftest.err'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; } &&
4551 { ac_try='test -s conftest.$ac_objext'
4552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 (eval $ac_try) 2>&5
4554 ac_status=$?
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; }; then
4557 eval "$as_ac_Header=yes"
4558 else
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 eval "$as_ac_Header=no"
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 _ACEOF
4575 done
4583 ac_header_dirent=no
4584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4585 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4586 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4587 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 #include <sys/types.h>
4598 #include <$ac_hdr>
4601 main ()
4603 if ((DIR *) 0)
4604 return 0;
4606 return 0;
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } &&
4618 { ac_try='test -z "$ac_c_werror_flag"
4619 || test ! -s conftest.err'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; } &&
4625 { ac_try='test -s conftest.$ac_objext'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 eval "$as_ac_Header=no"
4638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4643 cat >>confdefs.h <<_ACEOF
4644 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4645 _ACEOF
4647 ac_header_dirent=$ac_hdr; break
4650 done
4651 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4652 if test $ac_header_dirent = dirent.h; then
4653 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4654 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4655 if test "${ac_cv_search_opendir+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 ac_func_search_save_LIBS=$LIBS
4659 ac_cv_search_opendir=no
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 #ifdef __cplusplus
4669 extern "C"
4670 #endif
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673 char opendir ();
4675 main ()
4677 opendir ();
4679 return 0;
4681 _ACEOF
4682 rm -f conftest.$ac_objext conftest$ac_exeext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4684 (eval $ac_link) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_c_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest$ac_exeext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 (eval $ac_try) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4704 ac_cv_search_opendir="none required"
4705 else
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712 if test "$ac_cv_search_opendir" = no; then
4713 for ac_lib in dir; do
4714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 #ifdef __cplusplus
4724 extern "C"
4725 #endif
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4728 char opendir ();
4730 main ()
4732 opendir ();
4734 return 0;
4736 _ACEOF
4737 rm -f conftest.$ac_objext conftest$ac_exeext
4738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4739 (eval $ac_link) 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try='test -z "$ac_c_werror_flag"
4747 || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_search_opendir="-l$ac_lib"
4760 break
4761 else
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4766 rm -f conftest.err conftest.$ac_objext \
4767 conftest$ac_exeext conftest.$ac_ext
4768 done
4770 LIBS=$ac_func_search_save_LIBS
4772 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4773 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4774 if test "$ac_cv_search_opendir" != no; then
4775 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4779 else
4780 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4782 if test "${ac_cv_search_opendir+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785 ac_func_search_save_LIBS=$LIBS
4786 ac_cv_search_opendir=no
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 #ifdef __cplusplus
4796 extern "C"
4797 #endif
4798 /* We use char because int might match the return type of a gcc2
4799 builtin and then its argument prototype would still apply. */
4800 char opendir ();
4802 main ()
4804 opendir ();
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811 (eval $ac_link) 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } &&
4818 { ac_try='test -z "$ac_c_werror_flag"
4819 || test ! -s conftest.err'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 (eval $ac_try) 2>&5
4822 ac_status=$?
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; } &&
4825 { ac_try='test -s conftest$ac_exeext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827 (eval $ac_try) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4831 ac_cv_search_opendir="none required"
4832 else
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4837 rm -f conftest.err conftest.$ac_objext \
4838 conftest$ac_exeext conftest.$ac_ext
4839 if test "$ac_cv_search_opendir" = no; then
4840 for ac_lib in x; do
4841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 #ifdef __cplusplus
4851 extern "C"
4852 #endif
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4855 char opendir ();
4857 main ()
4859 opendir ();
4861 return 0;
4863 _ACEOF
4864 rm -f conftest.$ac_objext conftest$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 (eval $ac_try) 2>&5
4883 ac_status=$?
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_search_opendir="-l$ac_lib"
4887 break
4888 else
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4893 rm -f conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895 done
4897 LIBS=$ac_func_search_save_LIBS
4899 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4900 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4901 if test "$ac_cv_search_opendir" != no; then
4902 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4910 if test "${ac_cv_header_stat_broken+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913 cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h. */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 #include <sys/stat.h>
4922 #if defined(S_ISBLK) && defined(S_IFDIR)
4923 # if S_ISBLK (S_IFDIR)
4924 You lose.
4925 # endif
4926 #endif
4928 #if defined(S_ISBLK) && defined(S_IFCHR)
4929 # if S_ISBLK (S_IFCHR)
4930 You lose.
4931 # endif
4932 #endif
4934 #if defined(S_ISLNK) && defined(S_IFREG)
4935 # if S_ISLNK (S_IFREG)
4936 You lose.
4937 # endif
4938 #endif
4940 #if defined(S_ISSOCK) && defined(S_IFREG)
4941 # if S_ISSOCK (S_IFREG)
4942 You lose.
4943 # endif
4944 #endif
4946 _ACEOF
4947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4948 $EGREP "You lose" >/dev/null 2>&1; then
4949 ac_cv_header_stat_broken=yes
4950 else
4951 ac_cv_header_stat_broken=no
4953 rm -f conftest*
4956 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4957 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4958 if test $ac_cv_header_stat_broken = yes; then
4960 cat >>confdefs.h <<\_ACEOF
4961 #define STAT_MACROS_BROKEN 1
4962 _ACEOF
4966 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4967 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4968 if test "${ac_cv_header_stdc+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #include <stdlib.h>
4978 #include <stdarg.h>
4979 #include <string.h>
4980 #include <float.h>
4983 main ()
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_stdc=yes
5013 else
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_cv_header_stdc=no
5019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021 if test $ac_cv_header_stdc = yes; then
5022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <string.h>
5031 _ACEOF
5032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5033 $EGREP "memchr" >/dev/null 2>&1; then
5035 else
5036 ac_cv_header_stdc=no
5038 rm -f conftest*
5042 if test $ac_cv_header_stdc = yes; then
5043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <stdlib.h>
5052 _ACEOF
5053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5054 $EGREP "free" >/dev/null 2>&1; then
5056 else
5057 ac_cv_header_stdc=no
5059 rm -f conftest*
5063 if test $ac_cv_header_stdc = yes; then
5064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5065 if test "$cross_compiling" = yes; then
5067 else
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <ctype.h>
5075 #if ((' ' & 0x0FF) == 0x020)
5076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5078 #else
5079 # define ISLOWER(c) \
5080 (('a' <= (c) && (c) <= 'i') \
5081 || ('j' <= (c) && (c) <= 'r') \
5082 || ('s' <= (c) && (c) <= 'z'))
5083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5084 #endif
5086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5088 main ()
5090 int i;
5091 for (i = 0; i < 256; i++)
5092 if (XOR (islower (i), ISLOWER (i))
5093 || toupper (i) != TOUPPER (i))
5094 exit(2);
5095 exit (0);
5097 _ACEOF
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100 (eval $ac_link) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5110 else
5111 echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ( exit $ac_status )
5116 ac_cv_header_stdc=no
5118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5124 if test $ac_cv_header_stdc = yes; then
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5128 _ACEOF
5132 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5133 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5134 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <sys/types.h>
5144 #include <sys/wait.h>
5145 #ifndef WEXITSTATUS
5146 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5147 #endif
5148 #ifndef WIFEXITED
5149 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5150 #endif
5153 main ()
5155 int s;
5156 wait (&s);
5157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5159 return 0;
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } &&
5171 { ac_try='test -z "$ac_c_werror_flag"
5172 || test ! -s conftest.err'
5173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 (eval $ac_try) 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }; } &&
5178 { ac_try='test -s conftest.$ac_objext'
5179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_header_sys_wait_h=yes
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ac_cv_header_sys_wait_h=no
5191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5193 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5194 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5195 if test $ac_cv_header_sys_wait_h = yes; then
5197 cat >>confdefs.h <<\_ACEOF
5198 #define HAVE_SYS_WAIT_H 1
5199 _ACEOF
5203 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5204 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5205 if test "${ac_cv_header_time+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h. */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <sys/types.h>
5215 #include <sys/time.h>
5216 #include <time.h>
5219 main ()
5221 if ((struct tm *) 0)
5222 return 0;
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229 (eval $ac_compile) 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -z "$ac_c_werror_flag"
5237 || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_header_time=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 ac_cv_header_time=no
5256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5259 echo "${ECHO_T}$ac_cv_header_time" >&6
5260 if test $ac_cv_header_time = yes; then
5262 cat >>confdefs.h <<\_ACEOF
5263 #define TIME_WITH_SYS_TIME 1
5264 _ACEOF
5269 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5270 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5271 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5282 main ()
5284 static struct stat ac_aggr;
5285 if (ac_aggr.st_blksize)
5286 return 0;
5288 return 0;
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293 (eval $ac_compile) 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } &&
5300 { ac_try='test -z "$ac_c_werror_flag"
5301 || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_member_struct_stat_st_blksize=yes
5314 else
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5326 main ()
5328 static struct stat ac_aggr;
5329 if (sizeof ac_aggr.st_blksize)
5330 return 0;
5332 return 0;
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try='test -s conftest.$ac_objext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_member_struct_stat_st_blksize=yes
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 ac_cv_member_struct_stat_st_blksize=no
5364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5369 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5370 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5372 cat >>confdefs.h <<_ACEOF
5373 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5374 _ACEOF
5377 cat >>confdefs.h <<\_ACEOF
5378 #define HAVE_ST_BLKSIZE 1
5379 _ACEOF
5384 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5385 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5386 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5397 main ()
5399 static struct stat ac_aggr;
5400 if (ac_aggr.st_blocks)
5401 return 0;
5403 return 0;
5405 _ACEOF
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_member_struct_stat_st_blocks=yes
5429 else
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 cat >conftest.$ac_ext <<_ACEOF
5434 /* confdefs.h. */
5435 _ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5439 $ac_includes_default
5441 main ()
5443 static struct stat ac_aggr;
5444 if (sizeof ac_aggr.st_blocks)
5445 return 0;
5447 return 0;
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5452 (eval $ac_compile) 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } &&
5459 { ac_try='test -z "$ac_c_werror_flag"
5460 || test ! -s conftest.err'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462 (eval $ac_try) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_member_struct_stat_st_blocks=yes
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 ac_cv_member_struct_stat_st_blocks=no
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5484 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5485 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5489 _ACEOF
5492 cat >>confdefs.h <<\_ACEOF
5493 #define HAVE_ST_BLOCKS 1
5494 _ACEOF
5496 else
5497 case $LIBOBJS in
5498 "fileblocks.$ac_objext" | \
5499 *" fileblocks.$ac_objext" | \
5500 "fileblocks.$ac_objext "* | \
5501 *" fileblocks.$ac_objext "* ) ;;
5502 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5503 esac
5509 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5510 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5511 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5522 main ()
5524 static struct stat ac_aggr;
5525 if (ac_aggr.st_rdev)
5526 return 0;
5528 return 0;
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_member_struct_stat_st_rdev=yes
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h. */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5564 $ac_includes_default
5566 main ()
5568 static struct stat ac_aggr;
5569 if (sizeof ac_aggr.st_rdev)
5570 return 0;
5572 return 0;
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag"
5585 || test ! -s conftest.err'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; } &&
5591 { ac_try='test -s conftest.$ac_objext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 (eval $ac_try) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_member_struct_stat_st_rdev=yes
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cv_member_struct_stat_st_rdev=no
5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5609 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5610 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5612 cat >>confdefs.h <<_ACEOF
5613 #define HAVE_STRUCT_STAT_ST_RDEV 1
5614 _ACEOF
5617 cat >>confdefs.h <<\_ACEOF
5618 #define HAVE_ST_RDEV 1
5619 _ACEOF
5624 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5626 if test "${ac_cv_struct_tm+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629 cat >conftest.$ac_ext <<_ACEOF
5630 /* confdefs.h. */
5631 _ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 #include <time.h>
5639 main ()
5641 struct tm *tp; tp->tm_sec;
5643 return 0;
5645 _ACEOF
5646 rm -f conftest.$ac_objext
5647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_struct_tm=time.h
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 ac_cv_struct_tm=sys/time.h
5675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5678 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5679 if test $ac_cv_struct_tm = sys/time.h; then
5681 cat >>confdefs.h <<\_ACEOF
5682 #define TM_IN_SYS_TIME 1
5683 _ACEOF
5687 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5688 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5689 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <sys/types.h>
5699 #include <$ac_cv_struct_tm>
5703 main ()
5705 static struct tm ac_aggr;
5706 if (ac_aggr.tm_zone)
5707 return 0;
5709 return 0;
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_cv_member_struct_tm_tm_zone=yes
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5739 cat >conftest.$ac_ext <<_ACEOF
5740 /* confdefs.h. */
5741 _ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <$ac_cv_struct_tm>
5750 main ()
5752 static struct tm ac_aggr;
5753 if (sizeof ac_aggr.tm_zone)
5754 return 0;
5756 return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_member_struct_tm_tm_zone=yes
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 ac_cv_member_struct_tm_tm_zone=no
5788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5792 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5793 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5794 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5796 cat >>confdefs.h <<_ACEOF
5797 #define HAVE_STRUCT_TM_TM_ZONE 1
5798 _ACEOF
5803 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5805 cat >>confdefs.h <<\_ACEOF
5806 #define HAVE_TM_ZONE 1
5807 _ACEOF
5809 else
5810 echo "$as_me:$LINENO: checking for tzname" >&5
5811 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5812 if test "${ac_cv_var_tzname+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 cat >conftest.$ac_ext <<_ACEOF
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <time.h>
5822 #ifndef tzname /* For SGI. */
5823 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5824 #endif
5827 main ()
5829 atoi(*tzname);
5831 return 0;
5833 _ACEOF
5834 rm -f conftest.$ac_objext conftest$ac_exeext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5836 (eval $ac_link) 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -z "$ac_c_werror_flag"
5844 || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_var_tzname=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 ac_cv_var_tzname=no
5863 rm -f conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5866 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5867 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5868 if test $ac_cv_var_tzname = yes; then
5870 cat >>confdefs.h <<\_ACEOF
5871 #define HAVE_TZNAME 1
5872 _ACEOF
5877 echo "$as_me:$LINENO: checking for off_t" >&5
5878 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5879 if test "${ac_cv_type_off_t+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h. */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 $ac_includes_default
5890 main ()
5892 if ((off_t *) 0)
5893 return 0;
5894 if (sizeof (off_t))
5895 return 0;
5897 return 0;
5899 _ACEOF
5900 rm -f conftest.$ac_objext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 ac_cv_type_off_t=yes
5923 else
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.$ac_ext >&5
5927 ac_cv_type_off_t=no
5929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5931 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5932 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5933 if test $ac_cv_type_off_t = yes; then
5935 else
5937 cat >>confdefs.h <<_ACEOF
5938 #define off_t long
5939 _ACEOF
5943 echo "$as_me:$LINENO: checking for pid_t" >&5
5944 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5945 if test "${ac_cv_type_pid_t+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 $ac_includes_default
5956 main ()
5958 if ((pid_t *) 0)
5959 return 0;
5960 if (sizeof (pid_t))
5961 return 0;
5963 return 0;
5965 _ACEOF
5966 rm -f conftest.$ac_objext
5967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5968 (eval $ac_compile) 2>conftest.er1
5969 ac_status=$?
5970 grep -v '^ *+' conftest.er1 >conftest.err
5971 rm -f conftest.er1
5972 cat conftest.err >&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } &&
5975 { ac_try='test -z "$ac_c_werror_flag"
5976 || test ! -s conftest.err'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_type_pid_t=yes
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_cv_type_pid_t=no
5995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5997 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5998 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5999 if test $ac_cv_type_pid_t = yes; then
6001 else
6003 cat >>confdefs.h <<_ACEOF
6004 #define pid_t int
6005 _ACEOF
6009 echo "$as_me:$LINENO: checking for size_t" >&5
6010 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6011 if test "${ac_cv_type_size_t+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h. */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 $ac_includes_default
6022 main ()
6024 if ((size_t *) 0)
6025 return 0;
6026 if (sizeof (size_t))
6027 return 0;
6029 return 0;
6031 _ACEOF
6032 rm -f conftest.$ac_objext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034 (eval $ac_compile) 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -z "$ac_c_werror_flag"
6042 || test ! -s conftest.err'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_type_size_t=yes
6055 else
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 ac_cv_type_size_t=no
6061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6064 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6065 if test $ac_cv_type_size_t = yes; then
6067 else
6069 cat >>confdefs.h <<_ACEOF
6070 #define size_t unsigned
6071 _ACEOF
6075 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6076 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6077 if test "${ac_cv_type_uid_t+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <sys/types.h>
6088 _ACEOF
6089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090 $EGREP "uid_t" >/dev/null 2>&1; then
6091 ac_cv_type_uid_t=yes
6092 else
6093 ac_cv_type_uid_t=no
6095 rm -f conftest*
6098 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6099 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6100 if test $ac_cv_type_uid_t = no; then
6102 cat >>confdefs.h <<\_ACEOF
6103 #define uid_t int
6104 _ACEOF
6107 cat >>confdefs.h <<\_ACEOF
6108 #define gid_t int
6109 _ACEOF
6114 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6115 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6116 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6127 main ()
6129 static struct tm ac_aggr;
6130 if (ac_aggr.tm_gmtoff)
6131 return 0;
6133 return 0;
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 (eval $ac_try) 2>&5
6155 ac_status=$?
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_member_struct_tm_tm_gmtoff=yes
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 $ac_includes_default
6171 main ()
6173 static struct tm ac_aggr;
6174 if (sizeof ac_aggr.tm_gmtoff)
6175 return 0;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>conftest.er1
6183 ac_status=$?
6184 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_member_struct_tm_tm_gmtoff=yes
6203 else
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_cv_member_struct_tm_tm_gmtoff=no
6209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6214 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6215 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6219 _ACEOF
6225 # Look for some functions
6240 for ac_func in getpagesize kqueue statfs statvfs \
6241 clone kse_create rfork_thread thr_create sa_register \
6242 getcontext makecontext setcontext sigaltstack swapcontext
6244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6245 echo "$as_me:$LINENO: checking for $ac_func" >&5
6246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6247 if eval "test \"\${$as_ac_var+set}\" = set"; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6258 #define $ac_func innocuous_$ac_func
6260 /* System header to define __stub macros and hopefully few prototypes,
6261 which can conflict with char $ac_func (); below.
6262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6263 <limits.h> exists even on freestanding compilers. */
6265 #ifdef __STDC__
6266 # include <limits.h>
6267 #else
6268 # include <assert.h>
6269 #endif
6271 #undef $ac_func
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 #ifdef __cplusplus
6275 extern "C"
6277 #endif
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6280 char $ac_func ();
6281 /* The GNU C library defines this for functions which it implements
6282 to always fail with ENOSYS. Some functions are actually named
6283 something starting with __ and the normal name is an alias. */
6284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6285 choke me
6286 #else
6287 char (*f) () = $ac_func;
6288 #endif
6289 #ifdef __cplusplus
6291 #endif
6294 main ()
6296 return f != $ac_func;
6298 return 0;
6300 _ACEOF
6301 rm -f conftest.$ac_objext conftest$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 (eval $ac_try) 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 eval "$as_ac_var=yes"
6324 else
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 eval "$as_ac_var=no"
6330 rm -f conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6335 if test `eval echo '${'$as_ac_var'}'` = yes; then
6336 cat >>confdefs.h <<_ACEOF
6337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6338 _ACEOF
6341 done
6346 for ac_header in stdlib.h unistd.h
6348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350 echo "$as_me:$LINENO: checking for $ac_header" >&5
6351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6357 else
6358 # Is the header compilable?
6359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 $ac_includes_default
6368 #include <$ac_header>
6369 _ACEOF
6370 rm -f conftest.$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 (eval $ac_try) 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_header_compiler=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_compiler=no
6399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6401 echo "${ECHO_T}$ac_header_compiler" >&6
6403 # Is the header present?
6404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <$ac_header>
6413 _ACEOF
6414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } >/dev/null; then
6422 if test -s conftest.err; then
6423 ac_cpp_err=$ac_c_preproc_warn_flag
6424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6425 else
6426 ac_cpp_err=
6428 else
6429 ac_cpp_err=yes
6431 if test -z "$ac_cpp_err"; then
6432 ac_header_preproc=yes
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_header_preproc=no
6439 rm -f conftest.err conftest.$ac_ext
6440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6441 echo "${ECHO_T}$ac_header_preproc" >&6
6443 # So? What about this header?
6444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6445 yes:no: )
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6450 ac_header_preproc=yes
6452 no:yes:* )
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466 cat <<\_ASBOX
6467 ## ------------------------------------------ ##
6468 ## Report this to the AC_PACKAGE_NAME lists. ##
6469 ## ------------------------------------------ ##
6470 _ASBOX
6472 sed "s/^/$as_me: WARNING: /" >&2
6474 esac
6475 echo "$as_me:$LINENO: checking for $ac_header" >&5
6476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480 eval "$as_ac_Header=\$ac_header_preproc"
6482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6487 cat >>confdefs.h <<_ACEOF
6488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6489 _ACEOF
6493 done
6496 for ac_func in getpagesize
6498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6499 echo "$as_me:$LINENO: checking for $ac_func" >&5
6500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_var+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6512 #define $ac_func innocuous_$ac_func
6514 /* System header to define __stub macros and hopefully few prototypes,
6515 which can conflict with char $ac_func (); below.
6516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6517 <limits.h> exists even on freestanding compilers. */
6519 #ifdef __STDC__
6520 # include <limits.h>
6521 #else
6522 # include <assert.h>
6523 #endif
6525 #undef $ac_func
6527 /* Override any gcc2 internal prototype to avoid an error. */
6528 #ifdef __cplusplus
6529 extern "C"
6531 #endif
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char $ac_func ();
6535 /* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */
6538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6539 choke me
6540 #else
6541 char (*f) () = $ac_func;
6542 #endif
6543 #ifdef __cplusplus
6545 #endif
6548 main ()
6550 return f != $ac_func;
6552 return 0;
6554 _ACEOF
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6557 (eval $ac_link) 2>conftest.er1
6558 ac_status=$?
6559 grep -v '^ *+' conftest.er1 >conftest.err
6560 rm -f conftest.er1
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s 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 eval "$as_ac_var=yes"
6578 else
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 eval "$as_ac_var=no"
6584 rm -f conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6589 if test `eval echo '${'$as_ac_var'}'` = yes; then
6590 cat >>confdefs.h <<_ACEOF
6591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6592 _ACEOF
6595 done
6597 echo "$as_me:$LINENO: checking for working mmap" >&5
6598 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6599 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 if test "$cross_compiling" = yes; then
6603 ac_cv_func_mmap_fixed_mapped=no
6604 else
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 $ac_includes_default
6612 /* malloc might have been renamed as rpl_malloc. */
6613 #undef malloc
6615 /* Thanks to Mike Haertel and Jim Avera for this test.
6616 Here is a matrix of mmap possibilities:
6617 mmap private not fixed
6618 mmap private fixed at somewhere currently unmapped
6619 mmap private fixed at somewhere already mapped
6620 mmap shared not fixed
6621 mmap shared fixed at somewhere currently unmapped
6622 mmap shared fixed at somewhere already mapped
6623 For private mappings, we should verify that changes cannot be read()
6624 back from the file, nor mmap's back from the file at a different
6625 address. (There have been systems where private was not correctly
6626 implemented like the infamous i386 svr4.0, and systems where the
6627 VM page cache was not coherent with the file system buffer cache
6628 like early versions of FreeBSD and possibly contemporary NetBSD.)
6629 For shared mappings, we should conversely verify that changes get
6630 propagated back to all the places they're supposed to be.
6632 Grep wants private fixed already mapped.
6633 The main things grep needs to know about mmap are:
6634 * does it exist and is it safe to write into the mmap'd area
6635 * how to use it (BSD variants) */
6637 #include <fcntl.h>
6638 #include <sys/mman.h>
6640 #if !STDC_HEADERS && !HAVE_STDLIB_H
6641 char *malloc ();
6642 #endif
6644 /* This mess was copied from the GNU getpagesize.h. */
6645 #if !HAVE_GETPAGESIZE
6646 /* Assume that all systems that can run configure have sys/param.h. */
6647 # if !HAVE_SYS_PARAM_H
6648 # define HAVE_SYS_PARAM_H 1
6649 # endif
6651 # ifdef _SC_PAGESIZE
6652 # define getpagesize() sysconf(_SC_PAGESIZE)
6653 # else /* no _SC_PAGESIZE */
6654 # if HAVE_SYS_PARAM_H
6655 # include <sys/param.h>
6656 # ifdef EXEC_PAGESIZE
6657 # define getpagesize() EXEC_PAGESIZE
6658 # else /* no EXEC_PAGESIZE */
6659 # ifdef NBPG
6660 # define getpagesize() NBPG * CLSIZE
6661 # ifndef CLSIZE
6662 # define CLSIZE 1
6663 # endif /* no CLSIZE */
6664 # else /* no NBPG */
6665 # ifdef NBPC
6666 # define getpagesize() NBPC
6667 # else /* no NBPC */
6668 # ifdef PAGESIZE
6669 # define getpagesize() PAGESIZE
6670 # endif /* PAGESIZE */
6671 # endif /* no NBPC */
6672 # endif /* no NBPG */
6673 # endif /* no EXEC_PAGESIZE */
6674 # else /* no HAVE_SYS_PARAM_H */
6675 # define getpagesize() 8192 /* punt totally */
6676 # endif /* no HAVE_SYS_PARAM_H */
6677 # endif /* no _SC_PAGESIZE */
6679 #endif /* no HAVE_GETPAGESIZE */
6682 main ()
6684 char *data, *data2, *data3;
6685 int i, pagesize;
6686 int fd;
6688 pagesize = getpagesize ();
6690 /* First, make a file with some known garbage in it. */
6691 data = (char *) malloc (pagesize);
6692 if (!data)
6693 exit (1);
6694 for (i = 0; i < pagesize; ++i)
6695 *(data + i) = rand ();
6696 umask (0);
6697 fd = creat ("conftest.mmap", 0600);
6698 if (fd < 0)
6699 exit (1);
6700 if (write (fd, data, pagesize) != pagesize)
6701 exit (1);
6702 close (fd);
6704 /* Next, try to mmap the file at a fixed address which already has
6705 something else allocated at it. If we can, also make sure that
6706 we see the same garbage. */
6707 fd = open ("conftest.mmap", O_RDWR);
6708 if (fd < 0)
6709 exit (1);
6710 data2 = (char *) malloc (2 * pagesize);
6711 if (!data2)
6712 exit (1);
6713 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6714 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6715 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6716 exit (1);
6717 for (i = 0; i < pagesize; ++i)
6718 if (*(data + i) != *(data2 + i))
6719 exit (1);
6721 /* Finally, make sure that changes to the mapped area do not
6722 percolate back to the file as seen by read(). (This is a bug on
6723 some variants of i386 svr4.0.) */
6724 for (i = 0; i < pagesize; ++i)
6725 *(data2 + i) = *(data2 + i) + 1;
6726 data3 = (char *) malloc (pagesize);
6727 if (!data3)
6728 exit (1);
6729 if (read (fd, data3, pagesize) != pagesize)
6730 exit (1);
6731 for (i = 0; i < pagesize; ++i)
6732 if (*(data + i) != *(data3 + i))
6733 exit (1);
6734 close (fd);
6735 exit (0);
6737 _ACEOF
6738 rm -f conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>&5
6741 ac_status=$?
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_cv_func_mmap_fixed_mapped=yes
6750 else
6751 echo "$as_me: program exited with status $ac_status" >&5
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ( exit $ac_status )
6756 ac_cv_func_mmap_fixed_mapped=no
6758 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6762 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6763 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define HAVE_MMAP 1
6767 _ACEOF
6770 rm -f conftest.mmap
6773 # Find X
6774 echo "$as_me:$LINENO: checking for X" >&5
6775 echo $ECHO_N "checking for X... $ECHO_C" >&6
6778 # Check whether --with-x or --without-x was given.
6779 if test "${with_x+set}" = set; then
6780 withval="$with_x"
6783 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6784 if test "x$with_x" = xno; then
6785 # The user explicitly disabled X.
6786 have_x=disabled
6787 else
6788 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6789 # Both variables are already set.
6790 have_x=yes
6791 else
6792 if test "${ac_cv_have_x+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 # One or both of the vars are not set, and there is no cached value.
6796 ac_x_includes=no ac_x_libraries=no
6797 rm -fr conftest.dir
6798 if mkdir conftest.dir; then
6799 cd conftest.dir
6800 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6801 cat >Imakefile <<'_ACEOF'
6802 acfindx:
6803 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6804 _ACEOF
6805 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6807 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6808 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6809 for ac_extension in a so sl; do
6810 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6811 test -f $ac_im_libdir/libX11.$ac_extension; then
6812 ac_im_usrlibdir=$ac_im_libdir; break
6814 done
6815 # Screen out bogus values from the imake configuration. They are
6816 # bogus both because they are the default anyway, and because
6817 # using them would break gcc on systems where it needs fixed includes.
6818 case $ac_im_incroot in
6819 /usr/include) ;;
6820 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6821 esac
6822 case $ac_im_usrlibdir in
6823 /usr/lib | /lib) ;;
6824 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6825 esac
6827 cd ..
6828 rm -fr conftest.dir
6831 # Standard set of common directories for X headers.
6832 # Check X11 before X11Rn because it is often a symlink to the current release.
6833 ac_x_header_dirs='
6834 /usr/X11/include
6835 /usr/X11R6/include
6836 /usr/X11R5/include
6837 /usr/X11R4/include
6839 /usr/include/X11
6840 /usr/include/X11R6
6841 /usr/include/X11R5
6842 /usr/include/X11R4
6844 /usr/local/X11/include
6845 /usr/local/X11R6/include
6846 /usr/local/X11R5/include
6847 /usr/local/X11R4/include
6849 /usr/local/include/X11
6850 /usr/local/include/X11R6
6851 /usr/local/include/X11R5
6852 /usr/local/include/X11R4
6854 /usr/X386/include
6855 /usr/x386/include
6856 /usr/XFree86/include/X11
6858 /usr/include
6859 /usr/local/include
6860 /usr/unsupported/include
6861 /usr/athena/include
6862 /usr/local/x11r5/include
6863 /usr/lpp/Xamples/include
6865 /usr/openwin/include
6866 /usr/openwin/share/include'
6868 if test "$ac_x_includes" = no; then
6869 # Guess where to find include files, by looking for Intrinsic.h.
6870 # First, try using that file with no special directory specified.
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 #include <X11/Intrinsic.h>
6878 _ACEOF
6879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } >/dev/null; then
6887 if test -s conftest.err; then
6888 ac_cpp_err=$ac_c_preproc_warn_flag
6889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6890 else
6891 ac_cpp_err=
6893 else
6894 ac_cpp_err=yes
6896 if test -z "$ac_cpp_err"; then
6897 # We can compile using X headers with no special include directory.
6898 ac_x_includes=
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 for ac_dir in $ac_x_header_dirs; do
6904 if test -r "$ac_dir/X11/Intrinsic.h"; then
6905 ac_x_includes=$ac_dir
6906 break
6908 done
6910 rm -f conftest.err conftest.$ac_ext
6911 fi # $ac_x_includes = no
6913 if test "$ac_x_libraries" = no; then
6914 # Check for the libraries.
6915 # See if we find them without any special options.
6916 # Don't add to $LIBS permanently.
6917 ac_save_LIBS=$LIBS
6918 LIBS="-lXt $LIBS"
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <X11/Intrinsic.h>
6927 main ()
6929 XtMalloc (0)
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -z "$ac_c_werror_flag"
6944 || test ! -s conftest.err'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest$ac_exeext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 LIBS=$ac_save_LIBS
6957 # We can link X programs with no special library path.
6958 ac_x_libraries=
6959 else
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 LIBS=$ac_save_LIBS
6964 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6966 # Don't even attempt the hair of trying to link an X program!
6967 for ac_extension in a so sl; do
6968 if test -r $ac_dir/libXt.$ac_extension; then
6969 ac_x_libraries=$ac_dir
6970 break 2
6972 done
6973 done
6975 rm -f conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 fi # $ac_x_libraries = no
6979 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6980 # Didn't find X anywhere. Cache the known absence of X.
6981 ac_cv_have_x="have_x=no"
6982 else
6983 # Record where we found X for the cache.
6984 ac_cv_have_x="have_x=yes \
6985 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6990 eval "$ac_cv_have_x"
6991 fi # $with_x != no
6993 if test "$have_x" != yes; then
6994 echo "$as_me:$LINENO: result: $have_x" >&5
6995 echo "${ECHO_T}$have_x" >&6
6996 no_x=yes
6997 else
6998 # If each of the values was on the command line, it overrides each guess.
6999 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7000 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7001 # Update the cache value to reflect the command line values.
7002 ac_cv_have_x="have_x=yes \
7003 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7004 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7005 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7011 # Find all the tools we need to compile. This could be cross-compiling
7012 # though! If that is the case we use the GNU form of the target and
7013 # simply add this to the front of the binary name. This is rather simple,
7014 # but it should work under most circumstances.
7016 # The default tools are to use the same as the host, but only if the
7017 # host and target CPU are the same. With GCC this is normally enough.
7020 aros_cc_pre=""
7021 aros_target_cc="$aros_host_cc"
7022 aros_target_as="$aros_host_cc"
7023 aros_shared_ld="$aros_host_ld"
7024 aros_kernel_ld="$aros_host_ld"
7025 aros_target_ld="$aros_host_ld"
7027 aros_target_mkdep="$aros_host_mkdep"
7028 aros_target_incl_def="$aros_host_incl"
7030 # The default tools executables to be linked at.
7031 if test "$GCC" = "yes"; then
7032 aros_gcc_ar=`$CC -print-prog-name=ar`
7033 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
7034 set dummy `basename $aros_gcc_ar`; ac_word=$2
7035 echo "$as_me:$LINENO: checking for $ac_word" >&5
7036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7037 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 case $aros_target_ar_ln in
7041 [\\/]* | ?:[\\/]*)
7042 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in `dirname $aros_gcc_ar`
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7056 done
7057 done
7060 esac
7062 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7064 if test -n "$aros_target_ar_ln"; then
7065 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
7066 echo "${ECHO_T}$aros_target_ar_ln" >&6
7067 else
7068 echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6
7073 if test "$aros_target_ar_ln" = ""; then
7074 # Extract the first word of "ar", so it can be a program name with args.
7075 set dummy ar; ac_word=$2
7076 echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7078 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081 case $aros_target_ar_ln in
7082 [\\/]* | ?:[\\/]*)
7083 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7097 done
7098 done
7101 esac
7103 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7105 if test -n "$aros_target_ar_ln"; then
7106 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
7107 echo "${ECHO_T}$aros_target_ar_ln" >&6
7108 else
7109 echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7114 if test "$aros_target_ar_ln" = ""; then
7115 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
7116 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
7117 { (exit 1); exit 1; }; }
7119 if test "$GCC" = "yes"; then
7120 aros_gcc_nm=`$CC -print-prog-name=nm`
7121 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
7122 set dummy `basename $aros_gcc_nm`; ac_word=$2
7123 echo "$as_me:$LINENO: checking for $ac_word" >&5
7124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7125 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128 case $aros_target_nm_ln in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in `dirname $aros_gcc_nm`
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7148 esac
7150 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
7152 if test -n "$aros_target_nm_ln"; then
7153 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
7154 echo "${ECHO_T}$aros_target_nm_ln" >&6
7155 else
7156 echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7161 if test "$aros_target_nm_ln" = ""; then
7162 # Extract the first word of "nm", so it can be a program name with args.
7163 set dummy nm; ac_word=$2
7164 echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7166 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 case $aros_target_nm_ln in
7170 [\\/]* | ?:[\\/]*)
7171 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183 break 2
7185 done
7186 done
7189 esac
7191 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
7193 if test -n "$aros_target_nm_ln"; then
7194 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
7195 echo "${ECHO_T}$aros_target_nm_ln" >&6
7196 else
7197 echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6
7202 if test "$aros_target_nm_ln" = ""; then
7203 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
7204 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
7205 { (exit 1); exit 1; }; }
7207 if test "$GCC" = "yes"; then
7208 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
7209 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
7210 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 case $aros_target_objcopy_ln in
7217 [\\/]* | ?:[\\/]*)
7218 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in `dirname $aros_gcc_objcopy`
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7232 done
7233 done
7236 esac
7238 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7240 if test -n "$aros_target_objcopy_ln"; then
7241 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7242 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7243 else
7244 echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7249 if test "$aros_target_objcopy_ln" = ""; then
7250 # Extract the first word of "objcopy", so it can be a program name with args.
7251 set dummy objcopy; ac_word=$2
7252 echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7254 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257 case $aros_target_objcopy_ln in
7258 [\\/]* | ?:[\\/]*)
7259 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7273 done
7274 done
7277 esac
7279 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
7281 if test -n "$aros_target_objcopy_ln"; then
7282 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
7283 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
7284 else
7285 echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6
7290 if test "$aros_target_objcopy_ln" = ""; then
7291 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
7292 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
7293 { (exit 1); exit 1; }; }
7295 if test "$GCC" = "yes"; then
7296 aros_gcc_objdump=`$CC -print-prog-name=objdump`
7297 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
7298 set dummy `basename $aros_gcc_objdump`; ac_word=$2
7299 echo "$as_me:$LINENO: checking for $ac_word" >&5
7300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7301 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 case $aros_target_objdump_ln in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in `dirname $aros_gcc_objdump`
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7324 esac
7326 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7328 if test -n "$aros_target_objdump_ln"; then
7329 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7330 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6
7337 if test "$aros_target_objdump_ln" = ""; then
7338 # Extract the first word of "objdump", so it can be a program name with args.
7339 set dummy objdump; ac_word=$2
7340 echo "$as_me:$LINENO: checking for $ac_word" >&5
7341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7342 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 else
7345 case $aros_target_objdump_ln in
7346 [\\/]* | ?:[\\/]*)
7347 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7365 esac
7367 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
7369 if test -n "$aros_target_objdump_ln"; then
7370 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
7371 echo "${ECHO_T}$aros_target_objdump_ln" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7378 if test "$aros_target_objdump_ln" = ""; then
7379 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
7380 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
7381 { (exit 1); exit 1; }; }
7383 if test "$GCC" = "yes"; then
7384 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
7385 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
7386 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
7387 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392 case $aros_target_ranlib_ln in
7393 [\\/]* | ?:[\\/]*)
7394 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in `dirname $aros_gcc_ranlib`
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7412 esac
7414 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7416 if test -n "$aros_target_ranlib_ln"; then
7417 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7418 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7419 else
7420 echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6
7425 if test "$aros_target_ranlib_ln" = ""; then
7426 # Extract the first word of "ranlib", so it can be a program name with args.
7427 set dummy ranlib; ac_word=$2
7428 echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7430 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 case $aros_target_ranlib_ln in
7434 [\\/]* | ?:[\\/]*)
7435 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 break 2
7449 done
7450 done
7453 esac
7455 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
7457 if test -n "$aros_target_ranlib_ln"; then
7458 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
7459 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
7460 else
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7466 if test "$aros_target_ranlib_ln" = ""; then
7467 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
7468 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
7469 { (exit 1); exit 1; }; }
7471 if test "$GCC" = "yes"; then
7472 aros_gcc_strip=`$CC -print-prog-name=strip`
7473 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
7474 set dummy `basename $aros_gcc_strip`; ac_word=$2
7475 echo "$as_me:$LINENO: checking for $ac_word" >&5
7476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7477 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 case $aros_target_strip_ln in
7481 [\\/]* | ?:[\\/]*)
7482 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in `dirname $aros_gcc_strip`
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7496 done
7497 done
7500 esac
7502 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7504 if test -n "$aros_target_strip_ln"; then
7505 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7506 echo "${ECHO_T}$aros_target_strip_ln" >&6
7507 else
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7513 if test "$aros_target_strip_ln" = ""; then
7514 # Extract the first word of "strip", so it can be a program name with args.
7515 set dummy strip; ac_word=$2
7516 echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521 case $aros_target_strip_ln in
7522 [\\/]* | ?:[\\/]*)
7523 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7537 done
7538 done
7541 esac
7543 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
7545 if test -n "$aros_target_strip_ln"; then
7546 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
7547 echo "${ECHO_T}$aros_target_strip_ln" >&6
7548 else
7549 echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7554 if test "$aros_target_strip_ln" = ""; then
7555 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
7556 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
7557 { (exit 1); exit 1; }; }
7560 if test "$GCC" = "yes"; then
7561 aros_target_cc_path=`$CC -print-search-dirs | grep "programs: =" | cut -c 12-`
7564 # It is necessary to clear the include and link paths for target
7565 # commands. This should help clear up problems when cross compiling.
7566 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7567 aros_config_aflags="-Wall -x assembler-with-cpp"
7568 aros_config_ldflags=""
7570 aros_shared_default=yes
7572 aros_shared_cflags="-fPIC"
7573 aros_shared_aflags=""
7574 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7575 aros_kernel_ldflags="-Wl,-rpath,./lib"
7577 aros_compiler_libs=
7579 aros_target_genmap="-Wl,-Map -Xlinker"
7581 # Native flavour stuff
7582 aros_bochs_hack="0"
7583 aros_serial_debug="0"
7585 # Palm native flavour stuff
7586 aros_palm_debug_hack="0"
7588 # Unix flavour stuff
7589 aros_nesting_supervisor="0"
7591 # Collect-aros stuff: "-ius" to ignore undefined symbols
7592 ignore_undefined_symbols=""
7594 # X11 Xshm
7595 DO_XSHM_SUPPORT="1"
7596 DO_VIDMODE_SUPPORT="1"
7598 #-----------------------------------------------------------------------------
7600 echo "$as_me:$LINENO: checking for type of build" >&5
7601 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
7602 # Check whether --enable-build_type or --disable-build_type was given.
7603 if test "${enable_build_type+set}" = set; then
7604 enableval="$enable_build_type"
7605 build_type=$enableval
7606 else
7607 build_type="personal"
7610 if test "$build_type" = "nightly"; then
7611 build_type_string="NIGHTLY"
7612 elif test "$build_type" = "snapshot"; then
7613 build_type_string="SNAPSHOT"
7614 elif test "$build_type" = "milestone"; then
7615 build_type_string="MILESTONE"
7616 elif test "$build_type" = "release"; then
7617 build_type_string="RELEASE"
7618 else
7619 build_type_string="PERSONAL"
7620 build_type="personal"
7623 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7625 echo "$as_me:$LINENO: result: $build_type" >&5
7626 echo "${ECHO_T}$build_type" >&6
7628 #-----------------------------------------------------------------------------
7629 all_debug_types="messages stack mungwall modules symbols"
7631 echo "$as_me:$LINENO: checking which debug types to enable" >&5
7632 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
7633 # Check whether --enable-debug or --disable-debug was given.
7634 if test "${enable_debug+set}" = set; then
7635 enableval="$enable_debug"
7636 debug="$enableval"
7637 else
7638 debug=""
7641 if test "$debug" = "" -o "$debug" = "no"; then
7642 debug="none"
7643 elif test "$debug" = "yes"; then
7644 debug="all"
7647 if test "$debug" = "all" ; then
7648 debug=$all_debug_types
7649 for d in $all_debug_types; do
7650 export aros_${d}_debug="1"
7651 done
7652 else
7653 for d in $all_debug_types; do
7654 export aros_${d}_debug="0"
7655 done
7658 if test "$debug" != "none"; then
7659 debug=`echo $debug | sed s/,/\ /g`
7660 for d in $debug; do
7661 found="0"
7662 for d2 in $all_debug_types; do
7663 if test "$d2" = "$d"; then
7664 found="1"
7665 break
7667 done
7668 if test "$found" = "0"; then
7669 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7670 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7671 { (exit 1); exit 1; }; }
7673 export aros_${d}_debug="1"
7674 done
7675 aros_debug="yes"
7677 echo "$as_me:$LINENO: result: $debug" >&5
7678 echo "${ECHO_T}$debug" >&6
7680 if test "$aros_messages_debug" = "1"; then
7681 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7682 else
7683 aros_messages_debug=""
7685 if test "$aros_symbols_debug" = "1"; then
7686 aros_symbols_debug="-g"
7687 else
7688 aros_symbols_debug=""
7691 # These are the flags to pass when compiling debugged programs
7692 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7693 aros_debug_aflags=""
7694 aros_debug_ldflags="$aros_symbols_debug"
7696 #-----------------------------------------------------------------------------
7697 # Checking for distcc and ccache.
7699 # Always apply the transforms in this particular order. Basically you should
7700 # always run 'ccache distcc compiler' in that order for the best performance.
7702 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7703 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7704 # Check whether --enable-distcc or --disable-distcc was given.
7705 if test "${enable_distcc+set}" = set; then
7706 enableval="$enable_distcc"
7707 distcc="$enableval"
7708 else
7709 distcc="no"
7711 if test "$distcc" != "" -a "$distcc" != "no"; then
7712 # AC_CHECK_PROG will print out the result in this case
7713 # Extract the first word of "distcc", so it can be a program name with args.
7714 set dummy distcc; ac_word=$2
7715 echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717 if test "${ac_cv_path_DISTCC+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 case $DISTCC in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7736 done
7737 done
7739 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7741 esac
7743 DISTCC=$ac_cv_path_DISTCC
7745 if test -n "$DISTCC"; then
7746 echo "$as_me:$LINENO: result: $DISTCC" >&5
7747 echo "${ECHO_T}$DISTCC" >&6
7748 else
7749 echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7753 else
7754 echo "$as_me:$LINENO: result: no" >&5
7755 echo "${ECHO_T}no" >&6
7758 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7759 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7760 # Check whether --enable-ccache or --disable-ccache was given.
7761 if test "${enable_ccache+set}" = set; then
7762 enableval="$enable_ccache"
7763 ccache="$enableval"
7764 else
7765 ccache="no"
7767 if test "$ccache" != "" -a "$ccache" != "no"; then
7768 # AC_CHECK_PROG will print out the result in this case
7769 # Extract the first word of "ccache", so it can be a program name with args.
7770 set dummy ccache; ac_word=$2
7771 echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773 if test "${ac_cv_prog_CCACHE+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 if test -n "$CCACHE"; then
7777 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_CCACHE="ccache"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7790 done
7791 done
7795 CCACHE=$ac_cv_prog_CCACHE
7796 if test -n "$CCACHE"; then
7797 echo "$as_me:$LINENO: result: $CCACHE" >&5
7798 echo "${ECHO_T}$CCACHE" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7804 else
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7809 #-----------------------------------------------------------------------------
7810 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7811 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7813 # Check whether --with-optimization or --without-optimization was given.
7814 if test "${with_optimization+set}" = set; then
7815 withval="$with_optimization"
7816 optimization="$withval"
7817 else
7818 optimization="unknown"
7820 if test "$optimization" = "unknown"; then
7821 if test "$debug" != "none"; then
7822 optimization="-O0"
7823 else
7824 optimization="-O2"
7827 aros_config_cflags="$aros_config_cflags $optimization"
7828 echo "$as_me:$LINENO: result: $optimization" >&5
7829 echo "${ECHO_T}$optimization" >&6
7831 #-----------------------------------------------------------------------------
7832 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7833 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7834 # Check whether --enable-target_variant or --disable-target_variant was given.
7835 if test "${enable_target_variant+set}" = set; then
7836 enableval="$enable_target_variant"
7837 target_variant=$enableval
7838 else
7839 target_variant="none"
7841 if test "$target_variant" = "none"; then
7842 aros_target_variant=""
7843 aros_target_suffix=""
7844 else
7845 aros_target_variant="$target_variant"
7846 aros_target_suffix="-$target_variant"
7848 echo "$as_me:$LINENO: result: $enableval" >&5
7849 echo "${ECHO_T}$enableval" >&6
7851 #-----------------------------------------------------------------------------
7852 # This is the target configuration switch.
7853 case "$target_os" in
7854 linux*)
7855 aros_target_arch="linux"
7856 case "$target_cpu" in
7857 *m68k*)
7858 aros_target_cpu="m68k"
7859 aros_object_format="m68kelf"
7860 aros_flavour="emulcompat"
7861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7862 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7863 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7864 gcc_target_cpu="mc68000"
7866 *i?86*)
7867 aros_target_cpu="i386"
7868 aros_object_format="elf_i386"
7869 aros_flavour="emulation"
7870 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7871 aros_default_wbdepth=8
7872 gcc_target_cpu="i386"
7874 *x86_64*)
7875 aros_target_cpu="x86_64"
7876 aros_object_format="elf_x86_64"
7877 aros_flavour="emulation"
7878 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7879 aros_default_wbdepth=8
7880 gcc_target_cpu="x86_64"
7882 *powerpc*)
7883 aros_target_cpu="ppc"
7884 aros_object_format="elf32ppc"
7885 aros_flavour="emulation"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7887 aros_default_wbdepth=8
7888 aros_compiler_libs="-lgcc"
7889 gcc_target_cpu="ppc"
7892 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7893 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7894 { (exit 1); exit 1; }; }
7896 esac
7900 aros_target_arch="pc"
7901 aros_shared_default="no"
7902 case "$target_cpu" in
7903 *i?86*)
7904 aros_target_cpu="i386"
7907 if test "$aros_object_format" = "" ; then
7908 aros_object_format="elf_i386"
7910 aros_flavour="standalone"
7911 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7912 aros_kernel_ldflags=""
7913 aros_default_wbwidth=640
7914 aros_default_wbheight=480
7915 gcc_target_cpu="i386"
7918 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7919 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7920 { (exit 1); exit 1; }; }
7922 esac
7925 prep)
7926 aros_target_arch="prep"
7927 aros_shared_default="no"
7928 aros_target_cpu="ppc"
7929 aros_object_format="elf32ppc"
7930 aros_flavour="ppcnative"
7931 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7932 aros_kernel_ldflags=""
7933 aros_default_wbwidth=640
7934 aros_default_wbheight=480
7935 gcc_target_cpu="ppc"
7936 case "$target_cpu" in
7937 *cross*)
7938 aros_target_cc="ppc-linux-gcc -pipe"
7939 aros_target_ld="ppc-linux-ld"
7940 aros_target_as="ppc-linux-as"
7941 aros_target_ar="ppc-linux-ar"
7942 aros_target_ranlib="ppc-linux-ranlib"
7943 aros_target_nm="ppc-linux-nm"
7944 aros_target_strip="ppc-linux-strip"
7945 aros_target_objcopy="ppc-linux-objcopy"
7946 aros_target_objdump="ppc-linux-objdump"
7947 aros_shared_ld="ppc-linux-ld"
7948 aros_kernel_ld="ppc-linux-ld"
7952 esac
7955 freebsd*)
7956 aros_target_arch="freebsd"
7957 aros_target_cpu="i386"
7958 aros_flavour="emulation"
7959 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7960 gcc_target_cpu="i386"
7962 strip_args="-x"
7965 netbsd*)
7966 aros_target_arch="netbsd"
7967 case "$target_cpu" in
7968 *m68k*)
7969 aros_target_cpu="m68k"
7970 aros_object_format="m68kelf"
7971 aros_flavour="emulcompat"
7972 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7973 gcc_target_cpu="mc68000"
7975 *i?86*)
7976 aros_target_cpu="i386"
7977 aros_object_format="elf_i386"
7978 aros_flavour="emulation"
7979 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7980 aros_default_wbdepth=8
7981 gcc_target_cpu="i386"
7984 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7985 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7986 { (exit 1); exit 1; }; }
7988 esac
7989 aros_target_genmap="-Wl,-M -Xlinker >"
7990 aros_flavour="emulation"
7991 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7994 openbsd*)
7995 aros_target_arch="openbsd"
7996 case "$target_cpu" in
7997 *i?86*)
7998 aros_target_cpu="i386"
7999 aros_object_format="elf_i386"
8000 aros_flavour="emulation"
8001 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8002 gcc_target_cpu="i386"
8005 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8006 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8007 { (exit 1); exit 1; }; }
8009 esac
8010 aros_target_genmap="-Wl,-M -Xlinker >"
8011 aros_target_nm_flags="-u"
8012 aros_flavour="emulation"
8015 solaris*)
8016 aros_target_arch="solaris"
8017 case "$target_cpu" in
8018 *sparc*)
8019 aros_target_cpu="sparc"
8020 aros_object_format="elf_sparc"
8021 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8022 gcc_target_cpu="sparc"
8025 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8026 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8027 { (exit 1); exit 1; }; }
8029 esac
8030 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8031 aros_flavour="emulation"
8034 morphos*)
8035 aros_target_arch="morphos"
8036 aros_shared_default="no"
8037 aros_target_cpu="ppc"
8038 aros_object_format="elf_ppc"
8039 aros_flavour="nativecompat"
8040 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8041 gcc_target_cpu="ppc"
8044 amiga*)
8045 aros_target_arch="amiga"
8046 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8047 aros_shared_default="no"
8049 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8051 case "$target_cpu" in
8052 *m68k*)
8053 aros_target_cpu="m68k"
8054 aros_object_format="m68kelf"
8055 aros_flavour="nativecompat"
8056 gcc_target_cpu="mc68000"
8058 *ppc*)
8059 aros_cpu="ppc"
8060 aros_flavour="native"
8061 gcc_target_cpu="ppc"
8064 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8065 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8066 { (exit 1); exit 1; }; }
8068 esac
8071 cygwin*)
8072 aros_target_arch="cygwin"
8073 aros_shared_default="no"
8074 case "$target_cpu" in
8075 *i?86*)
8076 aros_target_cpu="i386"
8077 aros_object_format="elf_i386"
8078 aros_flavour="emulation"
8079 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8080 aros_shared_cflags=""
8081 aros_default_wbdepth=8
8082 gcc_target_cpu="i386"
8085 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8086 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8087 { (exit 1); exit 1; }; }
8089 esac
8091 pp*)
8092 aros_target_arch="pp"
8093 aros_shared_default="no"
8094 case "$target_cpu" in
8095 *m68k*)
8096 aros_target_cpu="m68k"
8097 aros_object_format="m68kelf"
8098 aros_flavour="palmnative"
8099 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8100 aros_kernel_ldflags=""
8101 aros_default_wbwidth=160
8102 aros_default_wbheight=160
8103 aros_default_wbdepth=1
8104 aros_target_cc="m68k-elf-gcc -pipe"
8105 aros_target_ld="$(which m68k-elf-ld)"
8106 aros_target_as="m68k-elf-gcc -pipe"
8107 aros_shared_ld="m68k-elf-gcc"
8108 aros_kernel_ld="m68k-elf-gcc"
8109 aros_target_ar="m68k-elf-ar"
8110 aros_target_ar_flags="cru"
8111 aros_target_ranlib="m68k-elf-ranlib"
8112 aros_target_nm="m68k-elf-nm"
8113 aros_target_objcopy="m68k-elf-objcopy"
8114 aros_target_objdump="m68k-elf-objdump"
8115 aros_compiler_libs="-lgcc1"
8116 aros_shared_default=no
8117 aros_shared_cflags="-fpic"
8118 aros_shared_aflags=""
8119 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8120 aros_kernel_ldflags="-Wl,-rpath,./lib"
8121 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8122 aros_debug_aflags=""
8123 aros_debug_ldflags="$aros_symbols_debug"
8124 aros_mungwall_debug="0"
8125 aros_modules_debug="0"
8126 gcc_target_cpu="mc68000"
8127 ignore_undefined_symbols="-ius"
8130 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8131 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8132 { (exit 1); exit 1; }; }
8134 esac
8138 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8139 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8140 { (exit 1); exit 1; }; }
8142 esac
8144 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8145 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8146 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8147 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8148 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8149 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8150 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8152 # aros_cc_pre is a variable that is added to the front of the compiler name
8153 # in the generated aros-gcc shell script. We need this to enable the cache
8154 # to work across cleaned builds. Also, support DISTCC using the correct
8155 # environment variable.
8158 if test "x${DISTCC}" != "x" ; then
8159 if test "x${CCACHE}" != "x" ; then
8160 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
8161 else
8162 aros_cc_pre="${DISTCC} "
8164 else
8165 if test "x${CCACHE}" != "x" ; then
8166 aros_cc_pre="${CCACHE} "
8170 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8172 TARGET_CC="${prefix}-gcc"
8173 TARGET_AS="$TARGET_CC"
8174 TARGET_LD="${prefix}-ld"
8175 aros_target_ld="${prefix}-ld"
8177 NOSTDINC_CFLAGS=-nostdinc
8179 NOSTARTUP_LDFLAGS=-nostartfiles
8180 NIX_LDFLAGS=-nix
8181 DETACH_LDFLAGS=-detach
8182 NOSTDLIB_LDFLAGS=-nostdlib
8184 if test "$cross_compile" = "yes" ; then
8185 # Extract the first word of "$aros_shared_ld", so it can be a program name with args.
8186 set dummy $aros_shared_ld; ac_word=$2
8187 echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8189 if test "${ac_cv_path_SHARED_LD+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 else
8192 case $SHARED_LD in
8193 [\\/]* | ?:[\\/]*)
8194 ac_cv_path_SHARED_LD="$SHARED_LD" # Let the user override the test with a path.
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_path_SHARED_LD="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8211 test -z "$ac_cv_path_SHARED_LD" && ac_cv_path_SHARED_LD="$aros_shared_ld"
8213 esac
8215 SHARED_LD=$ac_cv_path_SHARED_LD
8217 if test -n "$SHARED_LD"; then
8218 echo "$as_me:$LINENO: result: $SHARED_LD" >&5
8219 echo "${ECHO_T}$SHARED_LD" >&6
8220 else
8221 echo "$as_me:$LINENO: result: no" >&5
8222 echo "${ECHO_T}no" >&6
8225 else
8226 SHARED_LD="$aros_shared_ld"
8230 if test "$cross_compile" = "yes" ; then
8231 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8232 set dummy $aros_kernel_ld; ac_word=$2
8233 echo "$as_me:$LINENO: checking for $ac_word" >&5
8234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8235 if test "${ac_cv_path_KERNEL_LD+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 case $KERNEL_LD in
8239 [\\/]* | ?:[\\/]*)
8240 ac_cv_path_KERNEL_LD="$KERNEL_LD" # Let the user override the test with a path.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_path_KERNEL_LD="$as_dir/$ac_word$ac_exec_ext"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8257 test -z "$ac_cv_path_KERNEL_LD" && ac_cv_path_KERNEL_LD="$aros_kernel_ld"
8259 esac
8261 KERNEL_LD=$ac_cv_path_KERNEL_LD
8263 if test -n "$KERNEL_LD"; then
8264 echo "$as_me:$LINENO: result: $KERNEL_LD" >&5
8265 echo "${ECHO_T}$KERNEL_LD" >&6
8266 else
8267 echo "$as_me:$LINENO: result: no" >&5
8268 echo "${ECHO_T}no" >&6
8271 else
8272 KERNEL_LD="$aros_kernel_ld"
8277 # The default tools
8278 aros_target_ar=${prefix}-ar
8279 aros_target_ar_flags="cr"
8280 aros_target_nm=${prefix}-nm
8281 aros_target_nm_flags="-C -ul"
8282 aros_target_objcopy=${prefix}-objcopy
8283 aros_target_objdump=${prefix}-objdump
8284 aros_target_ranlib=${prefix}-ranlib
8285 aros_target_strip="${prefix}-strip --strip-unneeded -R.comment"
8287 prefix="\$(TOOLDIR)/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8288 AR="${prefix}-ar $aros_target_ar_flags"
8289 RANLIB="${prefix}-ranlib $aros_target_ranlib_flags"
8290 NM="${prefix}-nm $aros_target_nm_flags"
8291 NM_PLAIN="${prefix}-nm"
8292 STRIP="${prefix}-strip $aros_target_strip_flags"
8293 OBJDUMP="${prefix}-objdump"
8294 OBJCOPY="${prefix}-objcopy"
8313 #-----------------------------------------------------------------------------
8314 # See if we can compile SHM support
8315 HAVE_XSHM_SUPPORT=0
8316 if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
8317 echo "$as_me:$LINENO: checking whether the X11 MIT-SHM extension can be compiled in" >&5
8318 echo $ECHO_N "checking whether the X11 MIT-SHM extension can be compiled in... $ECHO_C" >&6
8319 if test -z "$x_includes" ; then
8320 CFLAGS=""
8321 else
8322 CFLAGS="-I $x_includes"
8324 LIBS="-L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext"
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8332 #include <sys/types.h>
8333 #include <X11/Xlib.h>
8334 #include <X11/Xutil.h>
8335 #include <X11/keysym.h>
8336 #include <X11/cursorfont.h>
8337 #include <sys/ipc.h>
8338 #include <sys/shm.h>
8339 #include <X11/extensions/XShm.h>
8341 main ()
8344 static XShmSegmentInfo shminfo;
8345 static Display *display;
8346 XShmAttach(display, &shminfo);
8347 XSync(display,0);
8348 shmctl(shminfo.shmid, IPC_RMID, 0);
8351 return 0;
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356 (eval $ac_link) 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag"
8364 || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 (eval $ac_try) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 HAVE_XSHM_SUPPORT=1
8377 echo "$as_me:$LINENO: result: yes" >&5
8378 echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 HAVE_XSHM_SUPPORT=0
8384 echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8387 rm -f conftest.err conftest.$ac_objext \
8388 conftest$ac_exeext conftest.$ac_ext
8391 #-----------------------------------------------------------------------------
8392 # See if we can compile VIDMODE support
8393 HAVE_VIDMODE_SUPPORT=0
8394 if [ "x$no_x" != "xyes" ]; then
8395 LIBS=""
8396 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8397 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8398 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 ac_check_lib_save_LIBS=$LIBS
8402 LIBS="-lXxf86vm -L/usr/X11R6/lib -lXext -lX11 $LIBS"
8403 cat >conftest.$ac_ext <<_ACEOF
8404 /* confdefs.h. */
8405 _ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any gcc2 internal prototype to avoid an error. */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 /* We use char because int might match the return type of a gcc2
8415 builtin and then its argument prototype would still apply. */
8416 char XF86VidModeQueryExtension ();
8418 main ()
8420 XF86VidModeQueryExtension ();
8422 return 0;
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427 (eval $ac_link) 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag"
8435 || test ! -s conftest.err'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 (eval $ac_try) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8454 rm -f conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8458 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8459 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8460 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8461 HAVE_VIDMODE_SUPPORT=1
8462 else
8463 HAVE_VIDMODE_SUPPORT=0
8469 # Find the system include path. We can suggest that an alternative is
8470 # used if we don't get it correct. The default is to use /usr/include.
8471 # Which is set in the aros_target_incl_def variable.
8473 # Check whether --enable-includes or --disable-includes was given.
8474 if test "${enable_includes+set}" = set; then
8475 enableval="$enable_includes"
8476 aros_target_incl=$enable_includes
8477 else
8478 aros_target_incl=$aros_target_incl_def
8481 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
8482 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
8483 if test "$aros_target_cc_includes" = "" ; then
8484 #try to guess where the directory is
8485 aros_target_cc_includes=`dirname \`${aros_target_cc} -print-libgcc-file-name\``/include
8486 if ! test -d $aros_target_cc_includes; then
8487 #the directory doesn't exist, we need to do some more work
8488 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
8490 #these are the headers we're looling for
8491 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
8492 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
8493 zutil.h"
8495 dirs=
8496 for h in $headers; do
8497 #which other headers each of the above headers needs?
8498 deps=$(echo "#include <$h>" | \
8499 $aros_host_cc -E -M - 2>/dev/null | \
8500 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
8502 #copy all the needed headers to a directory beneath gendir
8503 for d in $deps; do
8504 h=$(basename $d)
8505 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
8506 sed -n "s,^.*/include\(/.*\),\1,p")
8507 ! test -d $dir && mkdir -p $dir
8508 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
8509 done
8510 done
8513 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
8514 echo "${ECHO_T}$aros_target_cc_includes" >&6
8516 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
8517 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
8519 # Check whether --with-resolution or --without-resolution was given.
8520 if test "${with_resolution+set}" = set; then
8521 withval="$with_resolution"
8522 resolution=$withval
8523 else
8524 resolution=none
8526 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
8527 if test "$resolution" = "yes" ; then
8528 resolution="none"
8530 if test "$resolution" = "no" ; then
8531 resolution="none"
8533 if test "$resolution" != "none" ; then
8534 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
8535 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
8536 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
8538 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
8539 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
8540 aros_cv_default_wbwidth=$aros_default_wbwidth
8541 aros_cv_default_wbheight=$aros_default_wbheight
8542 aros_cv_default_wbdepth=$aros_default_wbdepth
8544 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
8545 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
8546 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
8547 if test "${enable_bochs_hack+set}" = set; then
8548 enableval="$enable_bochs_hack"
8549 bochs_hack="yes"
8550 else
8551 bochs_hack="no"
8553 if test "$bochs_hack" = "yes" ; then
8554 aros_bochs_hack="1"
8556 echo "$as_me:$LINENO: result: $bochs_hack" >&5
8557 echo "${ECHO_T}$bochs_hack" >&6
8559 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
8560 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
8562 # Check whether --with-serial-debug or --without-serial-debug was given.
8563 if test "${with_serial_debug+set}" = set; then
8564 withval="$with_serial_debug"
8565 serial_debug=$withval
8566 else
8567 serial_debug=none
8569 if test "$serial_debug" = "yes" ; then
8570 serial_debug="2"
8572 if test "$serial_debug" = "no" ; then
8573 serial_debug="none"
8575 if test "$serial_debug" != "none" ; then
8576 aros_serial_debug=$serial_debug
8577 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
8578 echo "${ECHO_T}on port $serial_debug" >&6
8579 else
8580 echo "$as_me:$LINENO: result: no" >&5
8581 echo "${ECHO_T}no" >&6
8584 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
8585 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
8586 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
8587 if test "${enable_palm_debug_hack+set}" = set; then
8588 enableval="$enable_palm_debug_hack"
8589 palm_debug_hack="yes"
8590 else
8591 palm_debug_hack="no"
8593 if test "$palm_debug_hack" = "yes" ; then
8594 aros_palm_debug_hack="1"
8596 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
8597 echo "${ECHO_T}$palm_debug_hack" >&6
8600 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
8601 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
8602 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
8603 if test "${enable_nesting_supervisor+set}" = set; then
8604 enableval="$enable_nesting_supervisor"
8605 nesting_supervisor="yes"
8606 else
8607 nesting_supervisor="no"
8609 if test "$nesting_supervisor" = "yes" ; then
8610 aros_nesting_supervisor="1"
8612 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
8613 echo "${ECHO_T}$nesting_supervisor" >&6
8617 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8618 echo "$as_me:$LINENO: checking if X11 MIT-SHM extension is enabled" >&5
8619 echo $ECHO_N "checking if X11 MIT-SHM extension is enabled... $ECHO_C" >&6
8620 # Check whether --enable-xshm_extension or --disable-xshm_extension was given.
8621 if test "${enable_xshm_extension+set}" = set; then
8622 enableval="$enable_xshm_extension"
8623 xshm_extension="$enableval"
8624 else
8625 xshm_extension="yes"
8627 if test "$xshm_extension" = "no" ; then
8628 DO_XSHM_SUPPORT="0"
8630 echo "$as_me:$LINENO: result: $xshm_extension" >&5
8631 echo "${ECHO_T}$xshm_extension" >&6
8632 else
8633 DO_XSHM_SUPPORT="0"
8636 if test "$HAVE_VIDMODE_SUPPORT" = "1" ; then
8637 echo "$as_me:$LINENO: checking if vidmode extension is enabled" >&5
8638 echo $ECHO_N "checking if vidmode extension is enabled... $ECHO_C" >&6
8639 # Check whether --enable-vidmodeextension or --disable-vidmodeextension was given.
8640 if test "${enable_vidmodeextension+set}" = set; then
8641 enableval="$enable_vidmodeextension"
8642 vidmode_extension="$enableval"
8643 else
8644 vidmode_extension="yes"
8646 if test "$vidmode_extension" = "no" ; then
8647 DO_VIDMODE_SUPPORT="0"
8649 echo "$as_me:$LINENO: result: $vidmode_extension" >&5
8650 echo "${ECHO_T}$vidmode_extension" >&6
8651 else
8652 DO_VIDMODE_SUPPORT="0"
8656 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
8657 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
8658 # Check whether --enable-dbus or --disable-dbus was given.
8659 if test "${enable_dbus+set}" = set; then
8660 enableval="$enable_dbus"
8661 dbus="yes"
8662 else
8663 dbus="no"
8665 if test "$dbus" = "yes" ; then
8666 ENABLE_DBUS=1
8667 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
8668 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
8669 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
8670 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
8671 else
8672 ENABLE_DBUS=0
8674 echo "$as_me:$LINENO: result: $dbus" >&5
8675 echo "${ECHO_T}$dbus" >&6
8679 # Generic
8686 # Host related
8705 # Target Related
8737 # Graphics Related
8750 # Native version related
8754 # Palm native version related
8757 # Unix/Hosted version related
8760 # DBUS related
8767 # Debug related
8773 # Collect-aros stuff: "-ius" to ignore undefined symbols
8776 # C compiler related
8779 case "$aros_flavour" in
8780 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
8781 aros_flavour="emulation" ;;
8782 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
8783 aros_flavour="emulation" ;;
8784 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
8785 aros_flavour="standalone";;
8786 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
8787 aros_flavour="native" ;;
8788 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8789 aros_flavour="native" ;;
8790 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
8791 aros_flavour="linklib" ;;
8792 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
8793 aros_flavour="palmnative" ;;
8794 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
8795 aros_flavour="ppcnative" ;;
8796 esac
8798 if test -z "$aros_gui_basedir" ; then
8799 aros_gui_libdir="$x_libraries"
8800 if test -z "$x_libraries" ; then
8801 aros_gui_ldflags=""
8802 else
8803 aros_gui_ldflags="-L $x_libraries"
8805 if test "$HAVE_XSHM_SUPPORT" = "1" ; then
8806 aros_gui_libflags="-lX11 -lXext"
8807 else
8808 aros_gui_libflags="-lX11"
8810 if test "$HAVE_VIDMODE_SUPPORT" = "1"; then
8811 aros_gui_libflags="$aros_gui_libflags -lXxf86vm"
8814 aros_gui_incdir="$x_includes"
8815 if test -z "$x_includes" ; then
8816 aros_gui_ccflags=""
8817 else
8818 aros_gui_ccflags="-I $x_includes"
8820 else
8821 if test -n "$aros_gui_basedir" ; then
8822 aros_gui_libdir="${aros_gui_basedir}/lib"
8823 aros_gui_incdir="${aros_gui_basedir}/include"
8826 if test -n "$aros_gui_libdir" ; then
8827 aros_gui_ldflags="-L ${aros_gui_libdir}"
8830 if test -n "$aros_gui_incdir" ; then
8831 aros_gui_ccflags="-I ${aros_gui_incdir}"
8832 else
8833 aros_gui_incdir="${aros_sysincludes}"
8834 aros_gui_ccflags=""
8838 if test ! -d ${aros_inc_dir} ; then
8839 ${MKDIR} ${aros_inc_dir}
8841 if test ! -d ${aros_geninc_dir} ; then
8842 ${MKDIR} ${aros_geninc_dir}
8844 if test ! -d ${aros_hostcfg_dir} ; then
8845 ${MKDIR} ${aros_hostcfg_dir}
8847 if test ! -d ${aros_targetcfg_dir} ; then
8848 ${MKDIR} ${aros_targetcfg_dir}
8850 if test ! -d ${aros_tools_dir} ; then
8851 ${MKDIR} ${aros_tools_dir}
8853 if test ! -d ${aros_scripts_dir} ; then
8854 ${MKDIR} ${aros_scripts_dir}
8857 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
8860 ac_config_commands="$ac_config_commands compiler_executable"
8862 ac_config_commands="$ac_config_commands genshared_executable"
8864 ac_config_commands="$ac_config_commands genmf_executable"
8866 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
8869 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"
8872 cat >confcache <<\_ACEOF
8873 # This file is a shell script that caches the results of configure
8874 # tests run on this system so they can be shared between configure
8875 # scripts and configure runs, see configure's option --config-cache.
8876 # It is not useful on other systems. If it contains results you don't
8877 # want to keep, you may remove or edit it.
8879 # config.status only pays attention to the cache file if you give it
8880 # the --recheck option to rerun configure.
8882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8884 # following values.
8886 _ACEOF
8888 # The following way of writing the cache mishandles newlines in values,
8889 # but we know of no workaround that is simple, portable, and efficient.
8890 # So, don't put newlines in cache variables' values.
8891 # Ultrix sh set writes to stderr and can't be redirected directly,
8892 # and sets the high bit in the cache file unless we assign to the vars.
8894 (set) 2>&1 |
8895 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8896 *ac_space=\ *)
8897 # `set' does not quote correctly, so add quotes (double-quote
8898 # substitution turns \\\\ into \\, and sed turns \\ into \).
8899 sed -n \
8900 "s/'/'\\\\''/g;
8901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8904 # `set' quotes correctly as required by POSIX, so do not add quotes.
8905 sed -n \
8906 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8908 esac;
8910 sed '
8911 t clear
8912 : clear
8913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8914 t end
8915 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8916 : end' >>confcache
8917 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8918 if test -w $cache_file; then
8919 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8920 cat confcache >$cache_file
8921 else
8922 echo "not updating unwritable cache $cache_file"
8925 rm -f confcache
8927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8928 # Let make expand exec_prefix.
8929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8933 # trailing colons and then remove the whole line if VPATH becomes empty
8934 # (actually we leave an empty line to preserve line numbers).
8935 if test "x$srcdir" = x.; then
8936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8937 s/:*\$(srcdir):*/:/;
8938 s/:*\${srcdir}:*/:/;
8939 s/:*@srcdir@:*/:/;
8940 s/^\([^=]*=[ ]*\):*/\1/;
8941 s/:*$//;
8942 s/^[^=]*=[ ]*$//;
8946 DEFS=-DHAVE_CONFIG_H
8948 ac_libobjs=
8949 ac_ltlibobjs=
8950 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8951 # 1. Remove the extension, and $U if already installed.
8952 ac_i=`echo "$ac_i" |
8953 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8954 # 2. Add them.
8955 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8956 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8957 done
8958 LIBOBJS=$ac_libobjs
8960 LTLIBOBJS=$ac_ltlibobjs
8964 : ${CONFIG_STATUS=./config.status}
8965 ac_clean_files_save=$ac_clean_files
8966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8967 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8968 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8969 cat >$CONFIG_STATUS <<_ACEOF
8970 #! $SHELL
8971 # Generated by $as_me.
8972 # Run this file to recreate the current configuration.
8973 # Compiler output produced by configure, useful for debugging
8974 # configure, is in config.log if it exists.
8976 debug=false
8977 ac_cs_recheck=false
8978 ac_cs_silent=false
8979 SHELL=\${CONFIG_SHELL-$SHELL}
8980 _ACEOF
8982 cat >>$CONFIG_STATUS <<\_ACEOF
8983 ## --------------------- ##
8984 ## M4sh Initialization. ##
8985 ## --------------------- ##
8987 # Be Bourne compatible
8988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8989 emulate sh
8990 NULLCMD=:
8991 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8992 # is contrary to our usage. Disable this feature.
8993 alias -g '${1+"$@"}'='"$@"'
8994 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8995 set -o posix
8997 DUALCASE=1; export DUALCASE # for MKS sh
8999 # Support unset when possible.
9000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9001 as_unset=unset
9002 else
9003 as_unset=false
9007 # Work around bugs in pre-3.0 UWIN ksh.
9008 $as_unset ENV MAIL MAILPATH
9009 PS1='$ '
9010 PS2='> '
9011 PS4='+ '
9013 # NLS nuisances.
9014 for as_var in \
9015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9017 LC_TELEPHONE LC_TIME
9019 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9020 eval $as_var=C; export $as_var
9021 else
9022 $as_unset $as_var
9024 done
9026 # Required to use basename.
9027 if expr a : '\(a\)' >/dev/null 2>&1; then
9028 as_expr=expr
9029 else
9030 as_expr=false
9033 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9034 as_basename=basename
9035 else
9036 as_basename=false
9040 # Name of the executable.
9041 as_me=`$as_basename "$0" ||
9042 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9043 X"$0" : 'X\(//\)$' \| \
9044 X"$0" : 'X\(/\)$' \| \
9045 . : '\(.\)' 2>/dev/null ||
9046 echo X/"$0" |
9047 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9048 /^X\/\(\/\/\)$/{ s//\1/; q; }
9049 /^X\/\(\/\).*/{ s//\1/; q; }
9050 s/.*/./; q'`
9053 # PATH needs CR, and LINENO needs CR and PATH.
9054 # Avoid depending upon Character Ranges.
9055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9058 as_cr_digits='0123456789'
9059 as_cr_alnum=$as_cr_Letters$as_cr_digits
9061 # The user is always right.
9062 if test "${PATH_SEPARATOR+set}" != set; then
9063 echo "#! /bin/sh" >conf$$.sh
9064 echo "exit 0" >>conf$$.sh
9065 chmod +x conf$$.sh
9066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9067 PATH_SEPARATOR=';'
9068 else
9069 PATH_SEPARATOR=:
9071 rm -f conf$$.sh
9075 as_lineno_1=$LINENO
9076 as_lineno_2=$LINENO
9077 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9078 test "x$as_lineno_1" != "x$as_lineno_2" &&
9079 test "x$as_lineno_3" = "x$as_lineno_2" || {
9080 # Find who we are. Look in the path if we contain no path at all
9081 # relative or not.
9082 case $0 in
9083 *[\\/]* ) as_myself=$0 ;;
9084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9090 done
9093 esac
9094 # We did not find ourselves, most probably we were run as `sh COMMAND'
9095 # in which case we are not to be found in the path.
9096 if test "x$as_myself" = x; then
9097 as_myself=$0
9099 if test ! -f "$as_myself"; then
9100 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9101 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9102 { (exit 1); exit 1; }; }
9104 case $CONFIG_SHELL in
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for as_base in sh bash ksh sh5; do
9112 case $as_dir in
9114 if ("$as_dir/$as_base" -c '
9115 as_lineno_1=$LINENO
9116 as_lineno_2=$LINENO
9117 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9118 test "x$as_lineno_1" != "x$as_lineno_2" &&
9119 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9120 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9121 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9122 CONFIG_SHELL=$as_dir/$as_base
9123 export CONFIG_SHELL
9124 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9125 fi;;
9126 esac
9127 done
9128 done
9130 esac
9132 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9133 # uniformly replaced by the line number. The first 'sed' inserts a
9134 # line-number line before each line; the second 'sed' does the real
9135 # work. The second script uses 'N' to pair each line-number line
9136 # with the numbered line, and appends trailing '-' during
9137 # substitution so that $LINENO is not a special case at line end.
9138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9139 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9140 sed '=' <$as_myself |
9141 sed '
9143 s,$,-,
9144 : loop
9145 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9146 t loop
9147 s,-$,,
9148 s,^['$as_cr_digits']*\n,,
9149 ' >$as_me.lineno &&
9150 chmod +x $as_me.lineno ||
9151 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9152 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9153 { (exit 1); exit 1; }; }
9155 # Don't try to exec as it changes $[0], causing all sort of problems
9156 # (the dirname of $[0] is not the place where we might find the
9157 # original and so on. Autoconf is especially sensible to this).
9158 . ./$as_me.lineno
9159 # Exit status is that of the last command.
9160 exit
9164 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9165 *c*,-n*) ECHO_N= ECHO_C='
9166 ' ECHO_T=' ' ;;
9167 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9168 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9169 esac
9171 if expr a : '\(a\)' >/dev/null 2>&1; then
9172 as_expr=expr
9173 else
9174 as_expr=false
9177 rm -f conf$$ conf$$.exe conf$$.file
9178 echo >conf$$.file
9179 if ln -s conf$$.file conf$$ 2>/dev/null; then
9180 # We could just check for DJGPP; but this test a) works b) is more generic
9181 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9182 if test -f conf$$.exe; then
9183 # Don't use ln at all; we don't have any links
9184 as_ln_s='cp -p'
9185 else
9186 as_ln_s='ln -s'
9188 elif ln conf$$.file conf$$ 2>/dev/null; then
9189 as_ln_s=ln
9190 else
9191 as_ln_s='cp -p'
9193 rm -f conf$$ conf$$.exe conf$$.file
9195 if mkdir -p . 2>/dev/null; then
9196 as_mkdir_p=:
9197 else
9198 test -d ./-p && rmdir ./-p
9199 as_mkdir_p=false
9202 as_executable_p="test -f"
9204 # Sed expression to map a string onto a valid CPP name.
9205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9207 # Sed expression to map a string onto a valid variable name.
9208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9211 # IFS
9212 # We need space, tab and new line, in precisely that order.
9213 as_nl='
9215 IFS=" $as_nl"
9217 # CDPATH.
9218 $as_unset CDPATH
9220 exec 6>&1
9222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9223 # report actual input values of CONFIG_FILES etc. instead of their
9224 # values after options handling. Logging --version etc. is OK.
9225 exec 5>>config.log
9227 echo
9228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9229 ## Running $as_me. ##
9230 _ASBOX
9231 } >&5
9232 cat >&5 <<_CSEOF
9234 This file was extended by $as_me, which was
9235 generated by GNU Autoconf 2.59. Invocation command line was
9237 CONFIG_FILES = $CONFIG_FILES
9238 CONFIG_HEADERS = $CONFIG_HEADERS
9239 CONFIG_LINKS = $CONFIG_LINKS
9240 CONFIG_COMMANDS = $CONFIG_COMMANDS
9241 $ $0 $@
9243 _CSEOF
9244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9245 echo >&5
9246 _ACEOF
9248 # Files that config.status was made for.
9249 if test -n "$ac_config_files"; then
9250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9253 if test -n "$ac_config_headers"; then
9254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9257 if test -n "$ac_config_links"; then
9258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9261 if test -n "$ac_config_commands"; then
9262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9265 cat >>$CONFIG_STATUS <<\_ACEOF
9267 ac_cs_usage="\
9268 \`$as_me' instantiates files from templates according to the
9269 current configuration.
9271 Usage: $0 [OPTIONS] [FILE]...
9273 -h, --help print this help, then exit
9274 -V, --version print version number, then exit
9275 -q, --quiet do not print progress messages
9276 -d, --debug don't remove temporary files
9277 --recheck update $as_me by reconfiguring in the same conditions
9278 --file=FILE[:TEMPLATE]
9279 instantiate the configuration file FILE
9280 --header=FILE[:TEMPLATE]
9281 instantiate the configuration header FILE
9283 Configuration files:
9284 $config_files
9286 Configuration headers:
9287 $config_headers
9289 Configuration commands:
9290 $config_commands
9292 Report bugs to <bug-autoconf@gnu.org>."
9293 _ACEOF
9295 cat >>$CONFIG_STATUS <<_ACEOF
9296 ac_cs_version="\\
9297 config.status
9298 configured by $0, generated by GNU Autoconf 2.59,
9299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9301 Copyright (C) 2003 Free Software Foundation, Inc.
9302 This config.status script is free software; the Free Software Foundation
9303 gives unlimited permission to copy, distribute and modify it."
9304 srcdir=$srcdir
9305 _ACEOF
9307 cat >>$CONFIG_STATUS <<\_ACEOF
9308 # If no file are specified by the user, then we need to provide default
9309 # value. By we need to know if files were specified by the user.
9310 ac_need_defaults=:
9311 while test $# != 0
9313 case $1 in
9314 --*=*)
9315 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9316 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9317 ac_shift=:
9320 ac_option=$1
9321 ac_optarg=$2
9322 ac_shift=shift
9324 *) # This is not an option, so the user has probably given explicit
9325 # arguments.
9326 ac_option=$1
9327 ac_need_defaults=false;;
9328 esac
9330 case $ac_option in
9331 # Handling of the options.
9332 _ACEOF
9333 cat >>$CONFIG_STATUS <<\_ACEOF
9334 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9335 ac_cs_recheck=: ;;
9336 --version | --vers* | -V )
9337 echo "$ac_cs_version"; exit 0 ;;
9338 --he | --h)
9339 # Conflict between --help and --header
9340 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9341 Try \`$0 --help' for more information." >&5
9342 echo "$as_me: error: ambiguous option: $1
9343 Try \`$0 --help' for more information." >&2;}
9344 { (exit 1); exit 1; }; };;
9345 --help | --hel | -h )
9346 echo "$ac_cs_usage"; exit 0 ;;
9347 --debug | --d* | -d )
9348 debug=: ;;
9349 --file | --fil | --fi | --f )
9350 $ac_shift
9351 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9352 ac_need_defaults=false;;
9353 --header | --heade | --head | --hea )
9354 $ac_shift
9355 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9356 ac_need_defaults=false;;
9357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9359 ac_cs_silent=: ;;
9361 # This is an error.
9362 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9363 Try \`$0 --help' for more information." >&5
9364 echo "$as_me: error: unrecognized option: $1
9365 Try \`$0 --help' for more information." >&2;}
9366 { (exit 1); exit 1; }; } ;;
9368 *) ac_config_targets="$ac_config_targets $1" ;;
9370 esac
9371 shift
9372 done
9374 ac_configure_extra_args=
9376 if $ac_cs_silent; then
9377 exec 6>/dev/null
9378 ac_configure_extra_args="$ac_configure_extra_args --silent"
9381 _ACEOF
9382 cat >>$CONFIG_STATUS <<_ACEOF
9383 if \$ac_cs_recheck; then
9384 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9385 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9388 _ACEOF
9390 cat >>$CONFIG_STATUS <<_ACEOF
9392 # INIT-COMMANDS section.
9396 aros_tools_dir=${aros_tools_dir}
9397 aros_target_cpu=${aros_target_cpu}
9398 aros_target_arch=${aros_target_arch}
9399 aros_target_suffix=${aros_target_suffix}
9400 aros_target_nm_ln=${aros_target_nm_ln}
9401 aros_target_ar_ln=${aros_target_ar_ln}
9402 aros_target_ranlib_ln=${aros_target_ranlib_ln}
9403 aros_target_objdump_ln=${aros_target_objdump_ln}
9404 aros_target_objcopy_ln=${aros_target_objcopy_ln}
9405 aros_target_strip_ln=${aros_target_strip_ln}
9408 aros_scripts_dir=${aros_scripts_dir}
9410 aros_tools_dir=${aros_tools_dir}
9413 _ACEOF
9417 cat >>$CONFIG_STATUS <<\_ACEOF
9418 for ac_config_target in $ac_config_targets
9420 case "$ac_config_target" in
9421 # Handling of arguments.
9422 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9423 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
9424 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
9425 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
9426 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
9427 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
9428 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
9429 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
9430 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
9431 "${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" ;;
9432 "${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" ;;
9433 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
9434 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
9435 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
9436 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
9437 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
9438 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
9439 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
9440 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
9441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9443 { (exit 1); exit 1; }; };;
9444 esac
9445 done
9447 # If the user did not use the arguments to specify the items to instantiate,
9448 # then the envvar interface is used. Set only those that are not.
9449 # We use the long form for the default assignment because of an extremely
9450 # bizarre bug on SunOS 4.1.3.
9451 if $ac_need_defaults; then
9452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9457 # Have a temporary directory for convenience. Make it in the build tree
9458 # simply because there is no reason to put it here, and in addition,
9459 # creating and moving files from /tmp can sometimes cause problems.
9460 # Create a temporary directory, and hook for its removal unless debugging.
9461 $debug ||
9463 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9464 trap '{ (exit 1); exit 1; }' 1 2 13 15
9467 # Create a (secure) tmp directory for tmp files.
9470 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9471 test -n "$tmp" && test -d "$tmp"
9472 } ||
9474 tmp=./confstat$$-$RANDOM
9475 (umask 077 && mkdir $tmp)
9476 } ||
9478 echo "$me: cannot create a temporary directory in ." >&2
9479 { (exit 1); exit 1; }
9482 _ACEOF
9484 cat >>$CONFIG_STATUS <<_ACEOF
9487 # CONFIG_FILES section.
9490 # No need to generate the scripts if there are no CONFIG_FILES.
9491 # This happens for instance when ./config.status config.h
9492 if test -n "\$CONFIG_FILES"; then
9493 # Protect against being on the right side of a sed subst in config.status.
9494 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9495 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9496 s,@SHELL@,$SHELL,;t t
9497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9503 s,@exec_prefix@,$exec_prefix,;t t
9504 s,@prefix@,$prefix,;t t
9505 s,@program_transform_name@,$program_transform_name,;t t
9506 s,@bindir@,$bindir,;t t
9507 s,@sbindir@,$sbindir,;t t
9508 s,@libexecdir@,$libexecdir,;t t
9509 s,@datadir@,$datadir,;t t
9510 s,@sysconfdir@,$sysconfdir,;t t
9511 s,@sharedstatedir@,$sharedstatedir,;t t
9512 s,@localstatedir@,$localstatedir,;t t
9513 s,@libdir@,$libdir,;t t
9514 s,@includedir@,$includedir,;t t
9515 s,@oldincludedir@,$oldincludedir,;t t
9516 s,@infodir@,$infodir,;t t
9517 s,@mandir@,$mandir,;t t
9518 s,@build_alias@,$build_alias,;t t
9519 s,@host_alias@,$host_alias,;t t
9520 s,@target_alias@,$target_alias,;t t
9521 s,@DEFS@,$DEFS,;t t
9522 s,@ECHO_C@,$ECHO_C,;t t
9523 s,@ECHO_N@,$ECHO_N,;t t
9524 s,@ECHO_T@,$ECHO_T,;t t
9525 s,@LIBS@,$LIBS,;t t
9526 s,@build@,$build,;t t
9527 s,@build_cpu@,$build_cpu,;t t
9528 s,@build_vendor@,$build_vendor,;t t
9529 s,@build_os@,$build_os,;t t
9530 s,@host@,$host,;t t
9531 s,@host_cpu@,$host_cpu,;t t
9532 s,@host_vendor@,$host_vendor,;t t
9533 s,@host_os@,$host_os,;t t
9534 s,@CC@,$CC,;t t
9535 s,@CFLAGS@,$CFLAGS,;t t
9536 s,@LDFLAGS@,$LDFLAGS,;t t
9537 s,@CPPFLAGS@,$CPPFLAGS,;t t
9538 s,@ac_ct_CC@,$ac_ct_CC,;t t
9539 s,@EXEEXT@,$EXEEXT,;t t
9540 s,@OBJEXT@,$OBJEXT,;t t
9541 s,@CPP@,$CPP,;t t
9542 s,@AWK@,$AWK,;t t
9543 s,@MMAKE@,$MMAKE,;t t
9544 s,@aros_host_ld@,$aros_host_ld,;t t
9545 s,@aros_host_aclocal@,$aros_host_aclocal,;t t
9546 s,@aros_host_autoconf@,$aros_host_autoconf,;t t
9547 s,@aros_host_autoheader@,$aros_host_autoheader,;t t
9548 s,@aros_host_automake@,$aros_host_automake,;t t
9549 s,@HOST_AR@,$HOST_AR,;t t
9550 s,@HOST_RANLIB@,$HOST_RANLIB,;t t
9551 s,@RM@,$RM,;t t
9552 s,@CP@,$CP,;t t
9553 s,@MV@,$MV,;t t
9554 s,@ECHO@,$ECHO,;t t
9555 s,@MKDIR@,$MKDIR,;t t
9556 s,@TOUCH@,$TOUCH,;t t
9557 s,@SORT@,$SORT,;t t
9558 s,@UNIQ@,$UNIQ,;t t
9559 s,@NOP@,$NOP,;t t
9560 s,@CAT@,$CAT,;t t
9561 s,@BISON@,$BISON,;t t
9562 s,@PNGTOPNM@,$PNGTOPNM,;t t
9563 s,@PPMTOILBM@,$PPMTOILBM,;t t
9564 s,@STRIP@,$STRIP,;t t
9565 s,@SED@,$SED,;t t
9566 s,@CHMOD@,$CHMOD,;t t
9567 s,@PYTHON@,$PYTHON,;t t
9568 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
9569 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
9570 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
9571 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
9572 s,@pythondir@,$pythondir,;t t
9573 s,@pkgpythondir@,$pkgpythondir,;t t
9574 s,@pyexecdir@,$pyexecdir,;t t
9575 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
9576 s,@FOR@,$FOR,;t t
9577 s,@IF@,$IF,;t t
9578 s,@TEST@,$TEST,;t t
9579 s,@CMP@,$CMP,;t t
9580 s,@EGREP@,$EGREP,;t t
9581 s,@LIBOBJS@,$LIBOBJS,;t t
9582 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
9583 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
9584 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
9585 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
9586 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
9587 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
9588 s,@DISTCC@,$DISTCC,;t t
9589 s,@CCACHE@,$CCACHE,;t t
9590 s,@SHARED_LD@,$SHARED_LD,;t t
9591 s,@KERNEL_LD@,$KERNEL_LD,;t t
9592 s,@TARGET_CC@,$TARGET_CC,;t t
9593 s,@TARGET_AS@,$TARGET_AS,;t t
9594 s,@TARGET_LD@,$TARGET_LD,;t t
9595 s,@NOSTDINC_CFLAGS@,$NOSTDINC_CFLAGS,;t t
9596 s,@NOSTARTUP_LDFLAGS@,$NOSTARTUP_LDFLAGS,;t t
9597 s,@NIX_LDFLAGS@,$NIX_LDFLAGS,;t t
9598 s,@DETACH_LDFLAGS@,$DETACH_LDFLAGS,;t t
9599 s,@NOSTDLIB_LDFLAGS@,$NOSTDLIB_LDFLAGS,;t t
9600 s,@aros_cc_pre@,$aros_cc_pre,;t t
9601 s,@AR@,$AR,;t t
9602 s,@RANLIB@,$RANLIB,;t t
9603 s,@NM@,$NM,;t t
9604 s,@NM_PLAIN@,$NM_PLAIN,;t t
9605 s,@OBJDUMP@,$OBJDUMP,;t t
9606 s,@OBJCOPY@,$OBJCOPY,;t t
9607 s,@aros_arch@,$aros_arch,;t t
9608 s,@aros_cpu@,$aros_cpu,;t t
9609 s,@aros_flavour@,$aros_flavour,;t t
9610 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
9611 s,@TOPDIR@,$TOPDIR,;t t
9612 s,@aros_host_arch@,$aros_host_arch,;t t
9613 s,@aros_host_cpu@,$aros_host_cpu,;t t
9614 s,@aros_host_cc@,$aros_host_cc,;t t
9615 s,@aros_host_make@,$aros_host_make,;t t
9616 s,@aros_host_cflags@,$aros_host_cflags,;t t
9617 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
9618 s,@aros_host_debug@,$aros_host_debug,;t t
9619 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
9620 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
9621 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
9622 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
9623 s,@aros_tools_dir@,$aros_tools_dir,;t t
9624 s,@aros_target_arch@,$aros_target_arch,;t t
9625 s,@aros_target_cpu@,$aros_target_cpu,;t t
9626 s,@aros_target_variant@,$aros_target_variant,;t t
9627 s,@aros_target_suffix@,$aros_target_suffix,;t t
9628 s,@aros_target_incl@,$aros_target_incl,;t t
9629 s,@aros_target_cc@,$aros_target_cc,;t t
9630 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
9631 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
9632 s,@aros_target_objdump@,$aros_target_objdump,;t t
9633 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
9634 s,@aros_target_strip@,$aros_target_strip,;t t
9635 s,@aros_target_as@,$aros_target_as,;t t
9636 s,@aros_target_nm@,$aros_target_nm,;t t
9637 s,@aros_shared_default@,$aros_shared_default,;t t
9638 s,@aros_object_format@,$aros_object_format,;t t
9639 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
9640 s,@aros_config_cflags@,$aros_config_cflags,;t t
9641 s,@aros_config_aflags@,$aros_config_aflags,;t t
9642 s,@aros_target_ld@,$aros_target_ld,;t t
9643 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
9644 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
9645 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
9646 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
9647 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
9648 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
9649 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
9650 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
9651 s,@aros_target_genmap@,$aros_target_genmap,;t t
9652 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
9653 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
9654 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
9655 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
9656 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
9657 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
9658 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
9659 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
9660 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
9661 s,@DO_VIDMODE_SUPPORT@,$DO_VIDMODE_SUPPORT,;t t
9662 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
9663 s,@aros_serial_debug@,$aros_serial_debug,;t t
9664 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
9665 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
9666 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
9667 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
9668 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
9669 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
9670 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
9671 s,@aros_debug@,$aros_debug,;t t
9672 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
9673 s,@aros_stack_debug@,$aros_stack_debug,;t t
9674 s,@aros_modules_debug@,$aros_modules_debug,;t t
9675 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
9676 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
9677 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9678 CEOF
9680 _ACEOF
9682 cat >>$CONFIG_STATUS <<\_ACEOF
9683 # Split the substitutions into bite-sized pieces for seds with
9684 # small command number limits, like on Digital OSF/1 and HP-UX.
9685 ac_max_sed_lines=48
9686 ac_sed_frag=1 # Number of current file.
9687 ac_beg=1 # First line for current file.
9688 ac_end=$ac_max_sed_lines # Line after last line for current file.
9689 ac_more_lines=:
9690 ac_sed_cmds=
9691 while $ac_more_lines; do
9692 if test $ac_beg -gt 1; then
9693 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9694 else
9695 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9697 if test ! -s $tmp/subs.frag; then
9698 ac_more_lines=false
9699 else
9700 # The purpose of the label and of the branching condition is to
9701 # speed up the sed processing (if there are no `@' at all, there
9702 # is no need to browse any of the substitutions).
9703 # These are the two extra sed commands mentioned above.
9704 (echo ':t
9705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9706 if test -z "$ac_sed_cmds"; then
9707 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9708 else
9709 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9711 ac_sed_frag=`expr $ac_sed_frag + 1`
9712 ac_beg=$ac_end
9713 ac_end=`expr $ac_end + $ac_max_sed_lines`
9715 done
9716 if test -z "$ac_sed_cmds"; then
9717 ac_sed_cmds=cat
9719 fi # test -n "$CONFIG_FILES"
9721 _ACEOF
9722 cat >>$CONFIG_STATUS <<\_ACEOF
9723 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9725 case $ac_file in
9726 - | *:- | *:-:* ) # input from stdin
9727 cat >$tmp/stdin
9728 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9730 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9732 * ) ac_file_in=$ac_file.in ;;
9733 esac
9735 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9736 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9738 X"$ac_file" : 'X\(//\)[^/]' \| \
9739 X"$ac_file" : 'X\(//\)$' \| \
9740 X"$ac_file" : 'X\(/\)' \| \
9741 . : '\(.\)' 2>/dev/null ||
9742 echo X"$ac_file" |
9743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9745 /^X\(\/\/\)$/{ s//\1/; q; }
9746 /^X\(\/\).*/{ s//\1/; q; }
9747 s/.*/./; q'`
9748 { if $as_mkdir_p; then
9749 mkdir -p "$ac_dir"
9750 else
9751 as_dir="$ac_dir"
9752 as_dirs=
9753 while test ! -d "$as_dir"; do
9754 as_dirs="$as_dir $as_dirs"
9755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9757 X"$as_dir" : 'X\(//\)[^/]' \| \
9758 X"$as_dir" : 'X\(//\)$' \| \
9759 X"$as_dir" : 'X\(/\)' \| \
9760 . : '\(.\)' 2>/dev/null ||
9761 echo X"$as_dir" |
9762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9764 /^X\(\/\/\)$/{ s//\1/; q; }
9765 /^X\(\/\).*/{ s//\1/; q; }
9766 s/.*/./; q'`
9767 done
9768 test ! -n "$as_dirs" || mkdir $as_dirs
9769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9770 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9771 { (exit 1); exit 1; }; }; }
9773 ac_builddir=.
9775 if test "$ac_dir" != .; then
9776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9777 # A "../" for each directory in $ac_dir_suffix.
9778 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9779 else
9780 ac_dir_suffix= ac_top_builddir=
9783 case $srcdir in
9784 .) # No --srcdir option. We are building in place.
9785 ac_srcdir=.
9786 if test -z "$ac_top_builddir"; then
9787 ac_top_srcdir=.
9788 else
9789 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9790 fi ;;
9791 [\\/]* | ?:[\\/]* ) # Absolute path.
9792 ac_srcdir=$srcdir$ac_dir_suffix;
9793 ac_top_srcdir=$srcdir ;;
9794 *) # Relative path.
9795 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9796 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9797 esac
9799 # Do not use `cd foo && pwd` to compute absolute paths, because
9800 # the directories may not exist.
9801 case `pwd` in
9802 .) ac_abs_builddir="$ac_dir";;
9804 case "$ac_dir" in
9805 .) ac_abs_builddir=`pwd`;;
9806 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9807 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9808 esac;;
9809 esac
9810 case $ac_abs_builddir in
9811 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9813 case ${ac_top_builddir}. in
9814 .) ac_abs_top_builddir=$ac_abs_builddir;;
9815 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9816 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9817 esac;;
9818 esac
9819 case $ac_abs_builddir in
9820 .) ac_abs_srcdir=$ac_srcdir;;
9822 case $ac_srcdir in
9823 .) ac_abs_srcdir=$ac_abs_builddir;;
9824 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9825 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9826 esac;;
9827 esac
9828 case $ac_abs_builddir in
9829 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9831 case $ac_top_srcdir in
9832 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9833 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9834 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9835 esac;;
9836 esac
9840 if test x"$ac_file" != x-; then
9841 { echo "$as_me:$LINENO: creating $ac_file" >&5
9842 echo "$as_me: creating $ac_file" >&6;}
9843 rm -f "$ac_file"
9845 # Let's still pretend it is `configure' which instantiates (i.e., don't
9846 # use $as_me), people would be surprised to read:
9847 # /* config.h. Generated by config.status. */
9848 if test x"$ac_file" = x-; then
9849 configure_input=
9850 else
9851 configure_input="$ac_file. "
9853 configure_input=$configure_input"Generated from `echo $ac_file_in |
9854 sed 's,.*/,,'` by configure."
9856 # First look for the input files in the build tree, otherwise in the
9857 # src tree.
9858 ac_file_inputs=`IFS=:
9859 for f in $ac_file_in; do
9860 case $f in
9861 -) echo $tmp/stdin ;;
9862 [\\/$]*)
9863 # Absolute (can't be DOS-style, as IFS=:)
9864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9865 echo "$as_me: error: cannot find input file: $f" >&2;}
9866 { (exit 1); exit 1; }; }
9867 echo "$f";;
9868 *) # Relative
9869 if test -f "$f"; then
9870 # Build tree
9871 echo "$f"
9872 elif test -f "$srcdir/$f"; then
9873 # Source tree
9874 echo "$srcdir/$f"
9875 else
9876 # /dev/null tree
9877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9878 echo "$as_me: error: cannot find input file: $f" >&2;}
9879 { (exit 1); exit 1; }; }
9880 fi;;
9881 esac
9882 done` || { (exit 1); exit 1; }
9883 _ACEOF
9884 cat >>$CONFIG_STATUS <<_ACEOF
9885 sed "$ac_vpsub
9886 $extrasub
9887 _ACEOF
9888 cat >>$CONFIG_STATUS <<\_ACEOF
9890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9891 s,@configure_input@,$configure_input,;t t
9892 s,@srcdir@,$ac_srcdir,;t t
9893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9894 s,@top_srcdir@,$ac_top_srcdir,;t t
9895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9896 s,@builddir@,$ac_builddir,;t t
9897 s,@abs_builddir@,$ac_abs_builddir,;t t
9898 s,@top_builddir@,$ac_top_builddir,;t t
9899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9901 rm -f $tmp/stdin
9902 if test x"$ac_file" != x-; then
9903 mv $tmp/out $ac_file
9904 else
9905 cat $tmp/out
9906 rm -f $tmp/out
9909 done
9910 _ACEOF
9911 cat >>$CONFIG_STATUS <<\_ACEOF
9914 # CONFIG_HEADER section.
9917 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9918 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9920 # ac_d sets the value in "#define NAME VALUE" lines.
9921 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9922 ac_dB='[ ].*$,\1#\2'
9923 ac_dC=' '
9924 ac_dD=',;t'
9925 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9926 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9927 ac_uB='$,\1#\2define\3'
9928 ac_uC=' '
9929 ac_uD=',;t'
9931 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9933 case $ac_file in
9934 - | *:- | *:-:* ) # input from stdin
9935 cat >$tmp/stdin
9936 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9937 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9938 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9939 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9940 * ) ac_file_in=$ac_file.in ;;
9941 esac
9943 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9944 echo "$as_me: creating $ac_file" >&6;}
9946 # First look for the input files in the build tree, otherwise in the
9947 # src tree.
9948 ac_file_inputs=`IFS=:
9949 for f in $ac_file_in; do
9950 case $f in
9951 -) echo $tmp/stdin ;;
9952 [\\/$]*)
9953 # Absolute (can't be DOS-style, as IFS=:)
9954 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9955 echo "$as_me: error: cannot find input file: $f" >&2;}
9956 { (exit 1); exit 1; }; }
9957 # Do quote $f, to prevent DOS paths from being IFS'd.
9958 echo "$f";;
9959 *) # Relative
9960 if test -f "$f"; then
9961 # Build tree
9962 echo "$f"
9963 elif test -f "$srcdir/$f"; then
9964 # Source tree
9965 echo "$srcdir/$f"
9966 else
9967 # /dev/null tree
9968 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9969 echo "$as_me: error: cannot find input file: $f" >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi;;
9972 esac
9973 done` || { (exit 1); exit 1; }
9974 # Remove the trailing spaces.
9975 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9977 _ACEOF
9979 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9980 # `conftest.undefs', that substitutes the proper values into
9981 # config.h.in to produce config.h. The first handles `#define'
9982 # templates, and the second `#undef' templates.
9983 # And first: Protect against being on the right side of a sed subst in
9984 # config.status. Protect against being in an unquoted here document
9985 # in config.status.
9986 rm -f conftest.defines conftest.undefs
9987 # Using a here document instead of a string reduces the quoting nightmare.
9988 # Putting comments in sed scripts is not portable.
9990 # `end' is used to avoid that the second main sed command (meant for
9991 # 0-ary CPP macros) applies to n-ary macro definitions.
9992 # See the Autoconf documentation for `clear'.
9993 cat >confdef2sed.sed <<\_ACEOF
9994 s/[\\&,]/\\&/g
9995 s,[\\$`],\\&,g
9996 t clear
9997 : clear
9998 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9999 t end
10000 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10001 : end
10002 _ACEOF
10003 # If some macros were called several times there might be several times
10004 # the same #defines, which is useless. Nevertheless, we may not want to
10005 # sort them, since we want the *last* AC-DEFINE to be honored.
10006 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10007 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10008 rm -f confdef2sed.sed
10010 # This sed command replaces #undef with comments. This is necessary, for
10011 # example, in the case of _POSIX_SOURCE, which is predefined and required
10012 # on some systems where configure will not decide to define it.
10013 cat >>conftest.undefs <<\_ACEOF
10014 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10015 _ACEOF
10017 # Break up conftest.defines because some shells have a limit on the size
10018 # of here documents, and old seds have small limits too (100 cmds).
10019 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10020 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10021 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10022 echo ' :' >>$CONFIG_STATUS
10023 rm -f conftest.tail
10024 while grep . conftest.defines >/dev/null
10026 # Write a limited-size here document to $tmp/defines.sed.
10027 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10028 # Speed up: don't consider the non `#define' lines.
10029 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10030 # Work around the forget-to-reset-the-flag bug.
10031 echo 't clr' >>$CONFIG_STATUS
10032 echo ': clr' >>$CONFIG_STATUS
10033 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10034 echo 'CEOF
10035 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10036 rm -f $tmp/in
10037 mv $tmp/out $tmp/in
10038 ' >>$CONFIG_STATUS
10039 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10040 rm -f conftest.defines
10041 mv conftest.tail conftest.defines
10042 done
10043 rm -f conftest.defines
10044 echo ' fi # grep' >>$CONFIG_STATUS
10045 echo >>$CONFIG_STATUS
10047 # Break up conftest.undefs because some shells have a limit on the size
10048 # of here documents, and old seds have small limits too (100 cmds).
10049 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10050 rm -f conftest.tail
10051 while grep . conftest.undefs >/dev/null
10053 # Write a limited-size here document to $tmp/undefs.sed.
10054 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10055 # Speed up: don't consider the non `#undef'
10056 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10057 # Work around the forget-to-reset-the-flag bug.
10058 echo 't clr' >>$CONFIG_STATUS
10059 echo ': clr' >>$CONFIG_STATUS
10060 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10061 echo 'CEOF
10062 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10063 rm -f $tmp/in
10064 mv $tmp/out $tmp/in
10065 ' >>$CONFIG_STATUS
10066 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10067 rm -f conftest.undefs
10068 mv conftest.tail conftest.undefs
10069 done
10070 rm -f conftest.undefs
10072 cat >>$CONFIG_STATUS <<\_ACEOF
10073 # Let's still pretend it is `configure' which instantiates (i.e., don't
10074 # use $as_me), people would be surprised to read:
10075 # /* config.h. Generated by config.status. */
10076 if test x"$ac_file" = x-; then
10077 echo "/* Generated by configure. */" >$tmp/config.h
10078 else
10079 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10081 cat $tmp/in >>$tmp/config.h
10082 rm -f $tmp/in
10083 if test x"$ac_file" != x-; then
10084 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10085 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10086 echo "$as_me: $ac_file is unchanged" >&6;}
10087 else
10088 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10090 X"$ac_file" : 'X\(//\)[^/]' \| \
10091 X"$ac_file" : 'X\(//\)$' \| \
10092 X"$ac_file" : 'X\(/\)' \| \
10093 . : '\(.\)' 2>/dev/null ||
10094 echo X"$ac_file" |
10095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10096 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10097 /^X\(\/\/\)$/{ s//\1/; q; }
10098 /^X\(\/\).*/{ s//\1/; q; }
10099 s/.*/./; q'`
10100 { if $as_mkdir_p; then
10101 mkdir -p "$ac_dir"
10102 else
10103 as_dir="$ac_dir"
10104 as_dirs=
10105 while test ! -d "$as_dir"; do
10106 as_dirs="$as_dir $as_dirs"
10107 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10109 X"$as_dir" : 'X\(//\)[^/]' \| \
10110 X"$as_dir" : 'X\(//\)$' \| \
10111 X"$as_dir" : 'X\(/\)' \| \
10112 . : '\(.\)' 2>/dev/null ||
10113 echo X"$as_dir" |
10114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10116 /^X\(\/\/\)$/{ s//\1/; q; }
10117 /^X\(\/\).*/{ s//\1/; q; }
10118 s/.*/./; q'`
10119 done
10120 test ! -n "$as_dirs" || mkdir $as_dirs
10121 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10122 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10123 { (exit 1); exit 1; }; }; }
10125 rm -f $ac_file
10126 mv $tmp/config.h $ac_file
10128 else
10129 cat $tmp/config.h
10130 rm -f $tmp/config.h
10132 done
10133 _ACEOF
10134 cat >>$CONFIG_STATUS <<\_ACEOF
10137 # CONFIG_COMMANDS section.
10139 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10140 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10141 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10142 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10143 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10144 X"$ac_dest" : 'X\(//\)[^/]' \| \
10145 X"$ac_dest" : 'X\(//\)$' \| \
10146 X"$ac_dest" : 'X\(/\)' \| \
10147 . : '\(.\)' 2>/dev/null ||
10148 echo X"$ac_dest" |
10149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10151 /^X\(\/\/\)$/{ s//\1/; q; }
10152 /^X\(\/\).*/{ s//\1/; q; }
10153 s/.*/./; q'`
10154 { if $as_mkdir_p; then
10155 mkdir -p "$ac_dir"
10156 else
10157 as_dir="$ac_dir"
10158 as_dirs=
10159 while test ! -d "$as_dir"; do
10160 as_dirs="$as_dir $as_dirs"
10161 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10163 X"$as_dir" : 'X\(//\)[^/]' \| \
10164 X"$as_dir" : 'X\(//\)$' \| \
10165 X"$as_dir" : 'X\(/\)' \| \
10166 . : '\(.\)' 2>/dev/null ||
10167 echo X"$as_dir" |
10168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10170 /^X\(\/\/\)$/{ s//\1/; q; }
10171 /^X\(\/\).*/{ s//\1/; q; }
10172 s/.*/./; q'`
10173 done
10174 test ! -n "$as_dirs" || mkdir $as_dirs
10175 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10176 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10177 { (exit 1); exit 1; }; }; }
10179 ac_builddir=.
10181 if test "$ac_dir" != .; then
10182 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10183 # A "../" for each directory in $ac_dir_suffix.
10184 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10185 else
10186 ac_dir_suffix= ac_top_builddir=
10189 case $srcdir in
10190 .) # No --srcdir option. We are building in place.
10191 ac_srcdir=.
10192 if test -z "$ac_top_builddir"; then
10193 ac_top_srcdir=.
10194 else
10195 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10196 fi ;;
10197 [\\/]* | ?:[\\/]* ) # Absolute path.
10198 ac_srcdir=$srcdir$ac_dir_suffix;
10199 ac_top_srcdir=$srcdir ;;
10200 *) # Relative path.
10201 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10202 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10203 esac
10205 # Do not use `cd foo && pwd` to compute absolute paths, because
10206 # the directories may not exist.
10207 case `pwd` in
10208 .) ac_abs_builddir="$ac_dir";;
10210 case "$ac_dir" in
10211 .) ac_abs_builddir=`pwd`;;
10212 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10213 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10214 esac;;
10215 esac
10216 case $ac_abs_builddir in
10217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10219 case ${ac_top_builddir}. in
10220 .) ac_abs_top_builddir=$ac_abs_builddir;;
10221 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10222 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10223 esac;;
10224 esac
10225 case $ac_abs_builddir in
10226 .) ac_abs_srcdir=$ac_srcdir;;
10228 case $ac_srcdir in
10229 .) ac_abs_srcdir=$ac_abs_builddir;;
10230 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10231 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10232 esac;;
10233 esac
10234 case $ac_abs_builddir in
10235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10237 case $ac_top_srcdir in
10238 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10239 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10240 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10241 esac;;
10242 esac
10245 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10246 echo "$as_me: executing $ac_dest commands" >&6;}
10247 case $ac_dest in
10248 compiler_executable )
10249 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
10250 mkdir -p $prefix
10251 prefix="${prefix}/${aros_target_cpu}-aros"
10252 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
10254 echo ${prefix}
10255 echo ${prefix2}
10256 chmod a+x ${prefix2}-gcc ${prefix2}-ld
10258 ln -sf ${prefix2}-gcc ${prefix}-gcc
10259 ln -sf ${prefix2}-ld ${prefix}-ld
10261 ln -sf $aros_target_nm_ln ${prefix}-nm
10262 ln -sf $aros_target_ar_ln ${prefix}-ar
10263 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
10264 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
10265 ln -sf $aros_target_objdump_ln ${prefix}-objdump
10266 ln -sf $aros_target_strip_ln ${prefix}-strip
10268 ln -sf $aros_target_nm_ln ${prefix2}-nm
10269 ln -sf $aros_target_ar_ln ${prefix2}-ar
10270 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
10271 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
10272 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
10273 ln -sf $aros_target_strip_ln ${prefix2}-strip
10275 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
10276 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
10277 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
10279 esac
10280 done
10281 _ACEOF
10283 cat >>$CONFIG_STATUS <<\_ACEOF
10285 { (exit 0); exit 0; }
10286 _ACEOF
10287 chmod +x $CONFIG_STATUS
10288 ac_clean_files=$ac_clean_files_save
10291 # configure is writing to config.log, and then calls config.status.
10292 # config.status does its own redirection, appending to config.log.
10293 # Unfortunately, on DOS this fails, as config.log is still kept open
10294 # by configure, so config.status won't be able to write to it; its
10295 # output is simply discarded. So we exec the FD to /dev/null,
10296 # effectively closing config.log, so it can be properly (re)opened and
10297 # appended to by config.status. When coming back to configure, we
10298 # need to make the FD available again.
10299 if test "$no_create" != yes; then
10300 ac_cs_success=:
10301 ac_config_status_args=
10302 test "$silent" = yes &&
10303 ac_config_status_args="$ac_config_status_args --quiet"
10304 exec 5>/dev/null
10305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10306 exec 5>>config.log
10307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10308 # would make configure fail if this is the last instruction.
10309 $ac_cs_success || { (exit 1); exit 1; }
10314 #XXX compatability...
10315 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
10317 if test -n "$aros_shared_cflags" ; then
10318 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
10319 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg