r6430@lvps87-230-33-50: verhaegs | 2007-12-16 15:34:15 +0100
[cake.git] / configure
blob95e86850fe052cc98bf1d66f49fc49fda6086174
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="mmakefile"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP AWK MMAKE aros_host_ld aros_host_aclocal aros_host_autoconf aros_host_autoheader aros_host_automake aros_host_ar aros_host_ranlib aros_host_strip RM CP MV ECHO MKDIR TOUCH SORT UNIQ NOP CAT BISON FLEX PNGTOPNM PPMTOILBM SED CHMOD PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir FOR IF TEST CMP EGREP LIBOBJS DISTCC CCACHE aros_kernel_cc aros_target_as_ln aros_kernel_ld aros_target_ar_ln aros_target_nm_ln aros_target_objcopy_ln aros_target_objdump_ln aros_target_ranlib_ln aros_target_strip_ln aros_target_nostdinc_cflags aros_target_nostartup_ldflags aros_target_nix_ldflags aros_target_detach_ldflags aros_target_nostdlib_ldflags SDL_CONFIG SDL_CFLAGS SDL_LIBS aros_arch aros_cpu aros_flavour aros_flavour_uc TOPDIR aros_cc_pre aros_host_arch aros_host_cpu aros_host_cc aros_host_make aros_host_cflags aros_host_ldflags aros_host_debug aros_host_mkdep aros_host_mkargs aros_host_exe_suffix aros_host_lib_suffix aros_tools_dir aros_host_x11_includes aros_host_x11_libdirs aros_host_sdl_cflags aros_host_sdl_libs aros_target_arch aros_target_cpu aros_target_variant aros_target_suffix aros_target_incl aros_target_ar aros_target_ranlib aros_kernel_nm aros_target_cc aros_target_as aros_target_ld aros_target_cc_includes aros_target_cc_path aros_target_objdump aros_target_objcopy aros_target_strip aros_target_nm aros_shared_default aros_shared_ld aros_object_format aros_compiler_libs aros_config_cflags aros_config_aflags aros_config_ldflags aros_shared_cflags aros_shared_aflags aros_shared_ldflags aros_kernel_ldflags aros_debug_cflags aros_debug_aflags aros_debug_ldflags aros_target_genmap aros_target_strip_flags aros_gui_libdir aros_gui_ldflags aros_gui_libflags aros_gui_incdir aros_gui_ccflags x11_hidd_target sdl_hidd_target 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-x11-hidd build X11 hidd for hosted (default=auto)
878 --enable-x11-shm use X11 shared memory (default=auto)
879 --enable-x11-vidmode use X11 vidmode extension (default=auto)
880 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
881 --disable-sdltest Do not try to compile and run a test SDL program
882 --enable-dbus Enable DBUS support via dbus.library (default=no)
884 Optional Packages:
885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
887 --with-optimization=FLAGS
888 Use optimization flags FLAGS (default=-O2).
889 --with-resolution=XRESxYRESxDEPTH
890 Default resolution of the initial WorkbenchScreen
891 --with-serial-debug Enable serial debug output in native (default=no)
892 --with-x use the X Window System
893 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
894 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
903 CPP C preprocessor
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
908 _ACEOF
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
913 ac_popdir=`pwd`
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923 ac_dir_suffix= ac_top_builddir=
926 case $srcdir in
927 .) # No --srcdir option. We are building in place.
928 ac_srcdir=.
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
944 case `pwd` in
945 .) ac_abs_builddir="$ac_dir";;
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
979 esac
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
984 echo
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
987 echo
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
993 else
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996 cd $ac_popdir
997 done
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1002 cat <<\_ACEOF
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1007 _ACEOF
1008 exit 0
1010 exec 5>config.log
1011 cat >&5 <<_ACEOF
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1018 $ $0 $@
1020 _ACEOF
1022 cat <<_ASUNAME
1023 ## --------- ##
1024 ## Platform. ##
1025 ## --------- ##
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1044 _ASUNAME
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047 for as_dir in $PATH
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052 done
1054 } >&5
1056 cat >&5 <<_ACEOF
1059 ## ----------- ##
1060 ## Core tests. ##
1061 ## ----------- ##
1063 _ACEOF
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1071 ac_configure_args=
1072 ac_configure_args0=
1073 ac_configure_args1=
1074 ac_sep=
1075 ac_must_keep_next=false
1076 for ac_pass in 1 2
1078 for ac_arg
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1111 esac
1112 done
1113 done
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1125 echo
1127 cat <<\_ASBOX
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1131 _ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
1135 (set) 2>&1 |
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
1138 sed -n \
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146 esac;
1148 echo
1150 cat <<\_ASBOX
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
1165 ## ------------- ##
1166 ## Output files. ##
1167 ## ------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180 ## ----------- ##
1181 ## confdefs.h. ##
1182 ## ----------- ##
1183 _ASBOX
1184 echo
1185 sed "/^$/d" confdefs.h | sort
1186 echo
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194 exit $exit_status
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198 done
1199 ac_signal=0
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 echo >confdefs.h
1206 # Predefined preprocessor variables.
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1210 _ACEOF
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215 _ACEOF
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1220 _ACEOF
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1225 _ACEOF
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230 _ACEOF
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
1247 . "$ac_site_file"
1249 done
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1262 else
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1268 # Check that the precious variables saved in the cache have kept the same
1269 # value.
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292 echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294 echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1310 done
1311 if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
1319 ac_ext=c
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1344 ac_aux_dir=
1345 for ac_dir in scripts/autoconf $srcdir/scripts/autoconf; do
1346 if 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/install.sh; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1353 break
1354 elif test -f $ac_dir/shtool; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1357 break
1359 done
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf $srcdir/scripts/autoconf" >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1370 # Check what host we are running on.
1371 # If a target is not suggested, we use this one.
1372 # Note that what we call a target, Autoconf calls a host.
1373 # Make sure we can run config.sub.
1374 $ac_config_sub sun4 >/dev/null 2>&1 ||
1375 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1376 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1377 { (exit 1); exit 1; }; }
1379 echo "$as_me:$LINENO: checking build system type" >&5
1380 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1381 if test "${ac_cv_build+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384 ac_cv_build_alias=$build_alias
1385 test -z "$ac_cv_build_alias" &&
1386 ac_cv_build_alias=`$ac_config_guess`
1387 test -z "$ac_cv_build_alias" &&
1388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1389 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1390 { (exit 1); exit 1; }; }
1391 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1398 echo "${ECHO_T}$ac_cv_build" >&6
1399 build=$ac_cv_build
1400 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$as_me:$LINENO: checking host system type" >&5
1406 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1407 if test "${ac_cv_host+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 ac_cv_host_alias=$host_alias
1411 test -z "$ac_cv_host_alias" &&
1412 ac_cv_host_alias=$ac_cv_build_alias
1413 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1420 echo "${ECHO_T}$ac_cv_host" >&6
1421 host=$ac_cv_host
1422 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 # The AROS target is slightly different to the normal GNU style
1429 # format. We don't have the middle part, and we reverse the order
1430 # of the $(CPU) and $(OS) bits.
1432 # Don't strip the version of the target yet, it might be
1433 # useful on some systems.
1435 echo "$as_me:$LINENO: checking for AROS style target" >&5
1436 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6
1438 if test "$target" = "NONE" ; then
1439 target=$host_os-$host_cpu
1440 cross_compile=no
1441 else
1442 if test "$target" = "" ; then
1443 target=$host_os-$host_cpu
1444 cross_compile=no
1445 else
1446 cross_compile=yes
1449 echo "$as_me:$LINENO: result: $target" >&5
1450 echo "${ECHO_T}$target" >&6
1452 #don't know where else to put this...
1453 TOPDIR=$PWD
1455 # Parse the target field into something useful.
1457 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
1458 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
1461 aros_default_wbwidth=800
1462 aros_default_wbheight=600
1463 aros_default_wbdepth=4
1466 # The first step is to find the host binaries.
1467 # Check for a compiler.
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1495 done
1496 done
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502 echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1510 if test -z "$ac_cv_prog_CC"; then
1511 ac_ct_CC=$CC
1512 # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519 if test -n "$ac_ct_CC"; then
1520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_ac_ct_CC="gcc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 break 2
1533 done
1534 done
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543 echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1547 CC=$ac_ct_CC
1548 else
1549 CC="$ac_cv_prog_CC"
1552 if test -z "$CC"; then
1553 if test -n "$ac_tool_prefix"; then
1554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$CC"; then
1562 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_CC="${ac_tool_prefix}cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582 echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1590 if test -z "$ac_cv_prog_CC"; then
1591 ac_ct_CC=$CC
1592 # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_ac_ct_CC="cc"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1613 done
1614 done
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1627 CC=$ac_ct_CC
1628 else
1629 CC="$ac_cv_prog_CC"
1633 if test -z "$CC"; then
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$CC"; then
1642 ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644 ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653 ac_prog_rejected=yes
1654 continue
1656 ac_cv_prog_CC="cc"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1663 if test $ac_prog_rejected = yes; then
1664 # We found a bogon in the path, so make sure we never use it.
1665 set dummy $ac_cv_prog_CC
1666 shift
1667 if test $# != 0; then
1668 # We chose a different compiler from the bogus one.
1669 # However, it has the same basename, so the bogon will be chosen
1670 # first if we set CC to just the basename; use the full file name.
1671 shift
1672 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679 echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$CC"; then
1688 if test -n "$ac_tool_prefix"; then
1689 for ac_prog in cl
1691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1712 done
1713 done
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1726 test -n "$CC" && break
1727 done
1729 if test -z "$CC"; then
1730 ac_ct_CC=$CC
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$ac_ct_CC"; then
1741 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_CC="$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$ac_ct_CC" && break
1769 done
1771 CC=$ac_ct_CC
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781 { (exit 1); exit 1; }; }
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785 "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788 (eval $ac_compiler --version </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); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798 (eval $ac_compiler -V </dev/null >&5) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1803 cat >conftest.$ac_ext <<_ACEOF
1804 /* confdefs.h. */
1805 _ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h. */
1811 main ()
1815 return 0;
1817 _ACEOF
1818 ac_clean_files_save=$ac_clean_files
1819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1820 # Try to create an executable without -o first, disregard a.out.
1821 # It will help us diagnose broken compilers, and finding out an intuition
1822 # of exeext.
1823 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1826 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1827 (eval $ac_link_default) 2>&5
1828 ac_status=$?
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; then
1831 # Find the output, starting from the most likely. This scheme is
1832 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1833 # resort.
1835 # Be careful to initialize this variable, since it used to be cached.
1836 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 ac_cv_exeext=
1838 # b.out is created by i960 compilers.
1839 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 test -f "$ac_file" || continue
1842 case $ac_file in
1843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845 conftest.$ac_ext )
1846 # This is the source file.
1848 [ab].out )
1849 # We found the default executable, but exeext='' is most
1850 # certainly right.
1851 break;;
1852 *.* )
1853 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1854 # FIXME: I believe we export ac_cv_exeext for Libtool,
1855 # but it would be cool to find out if it's true. Does anybody
1856 # maintain Libtool? --akim.
1857 export ac_cv_exeext
1858 break;;
1860 break;;
1861 esac
1862 done
1863 else
1864 echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1868 See \`config.log' for more details." >&5
1869 echo "$as_me: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&2;}
1871 { (exit 77); exit 77; }; }
1874 ac_exeext=$ac_cv_exeext
1875 echo "$as_me:$LINENO: result: $ac_file" >&5
1876 echo "${ECHO_T}$ac_file" >&6
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1883 # If not cross compiling, check that we can run a simple program.
1884 if test "$cross_compiling" != yes; then
1885 if { ac_try='./$ac_file'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1887 (eval $ac_try) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1891 cross_compiling=no
1892 else
1893 if test "$cross_compiling" = maybe; then
1894 cross_compiling=yes
1895 else
1896 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&5
1899 echo "$as_me: error: cannot run C compiled programs.
1900 If you meant to cross compile, use \`--host'.
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1906 echo "$as_me:$LINENO: result: yes" >&5
1907 echo "${ECHO_T}yes" >&6
1909 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1910 ac_clean_files=$ac_clean_files_save
1911 # Check the compiler produces executables we can run. If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1914 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1915 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1916 echo "${ECHO_T}$cross_compiling" >&6
1918 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1919 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1921 (eval $ac_link) 2>&5
1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; then
1925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1927 # work properly (i.e., refer to `conftest.exe'), while it won't with
1928 # `rm'.
1929 for ac_file in conftest.exe conftest conftest.*; do
1930 test -f "$ac_file" || continue
1931 case $ac_file in
1932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1933 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1934 export ac_cv_exeext
1935 break;;
1936 * ) break;;
1937 esac
1938 done
1939 else
1940 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1947 rm -f conftest$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1949 echo "${ECHO_T}$ac_cv_exeext" >&6
1951 rm -f conftest.$ac_ext
1952 EXEEXT=$ac_cv_exeext
1953 ac_exeext=$EXEEXT
1954 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1955 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1956 if test "${ac_cv_objext+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h. */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h. */
1967 main ()
1971 return 0;
1973 _ACEOF
1974 rm -f conftest.o conftest.obj
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976 (eval $ac_compile) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1981 case $ac_file in
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1984 break;;
1985 esac
1986 done
1987 else
1988 echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2000 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2001 echo "${ECHO_T}$ac_cv_objext" >&6
2002 OBJEXT=$ac_cv_objext
2003 ac_objext=$OBJEXT
2004 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h. */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2017 main ()
2019 #ifndef __GNUC__
2020 choke me
2021 #endif
2024 return 0;
2026 _ACEOF
2027 rm -f conftest.$ac_objext
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>conftest.er1
2030 ac_status=$?
2031 grep -v '^ *+' conftest.er1 >conftest.err
2032 rm -f conftest.er1
2033 cat conftest.err >&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); } &&
2036 { ac_try='test -z "$ac_c_werror_flag"
2037 || test ! -s conftest.err'
2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 (eval $ac_try) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_compiler_gnu=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2054 ac_compiler_gnu=no
2056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2057 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2060 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2061 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2062 GCC=`test $ac_compiler_gnu = yes && echo yes`
2063 ac_test_CFLAGS=${CFLAGS+set}
2064 ac_save_CFLAGS=$CFLAGS
2065 CFLAGS="-g"
2066 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2067 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2068 if test "${ac_cv_prog_cc_g+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h. */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h. */
2079 main ()
2083 return 0;
2085 _ACEOF
2086 rm -f conftest.$ac_objext
2087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088 (eval $ac_compile) 2>conftest.er1
2089 ac_status=$?
2090 grep -v '^ *+' conftest.er1 >conftest.err
2091 rm -f conftest.er1
2092 cat conftest.err >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try='test -z "$ac_c_werror_flag"
2096 || test ! -s conftest.err'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 ac_cv_prog_cc_g=yes
2109 else
2110 echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 ac_cv_prog_cc_g=no
2115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2118 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2119 if test "$ac_test_CFLAGS" = set; then
2120 CFLAGS=$ac_save_CFLAGS
2121 elif test $ac_cv_prog_cc_g = yes; then
2122 if test "$GCC" = yes; then
2123 CFLAGS="-g -O2"
2124 else
2125 CFLAGS="-g"
2127 else
2128 if test "$GCC" = yes; then
2129 CFLAGS="-O2"
2130 else
2131 CFLAGS=
2134 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2135 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2136 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 ac_cv_prog_cc_stdc=no
2140 ac_save_CC=$CC
2141 cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h. */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2147 #include <stdarg.h>
2148 #include <stdio.h>
2149 #include <sys/types.h>
2150 #include <sys/stat.h>
2151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2152 struct buf { int x; };
2153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2154 static char *e (p, i)
2155 char **p;
2156 int i;
2158 return p[i];
2160 static char *f (char * (*g) (char **, int), char **p, ...)
2162 char *s;
2163 va_list v;
2164 va_start (v,p);
2165 s = g (p, va_arg (v,int));
2166 va_end (v);
2167 return s;
2170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2171 function prototypes and stuff, but not '\xHH' hex character constants.
2172 These don't provoke an error unfortunately, instead are silently treated
2173 as 'x'. The following induces an error, until -std1 is added to get
2174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2175 array size at least. It's necessary to write '\x00'==0 to get something
2176 that's true only with -std1. */
2177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2179 int test (int i, double x);
2180 struct s1 {int (*f) (int a);};
2181 struct s2 {int (*f) (double a);};
2182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2183 int argc;
2184 char **argv;
2186 main ()
2188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2190 return 0;
2192 _ACEOF
2193 # Don't try gcc -ansi; that turns off useful extensions and
2194 # breaks some systems' header files.
2195 # AIX -qlanglvl=ansi
2196 # Ultrix and OSF/1 -std1
2197 # HP-UX 10.20 and later -Ae
2198 # HP-UX older versions -Aa -D_HPUX_SOURCE
2199 # SVR4 -Xc -D__EXTENSIONS__
2200 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2202 CC="$ac_save_CC $ac_arg"
2203 rm -f conftest.$ac_objext
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205 (eval $ac_compile) 2>conftest.er1
2206 ac_status=$?
2207 grep -v '^ *+' conftest.er1 >conftest.err
2208 rm -f conftest.er1
2209 cat conftest.err >&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); } &&
2212 { ac_try='test -z "$ac_c_werror_flag"
2213 || test ! -s conftest.err'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; } &&
2219 { ac_try='test -s conftest.$ac_objext'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 ac_cv_prog_cc_stdc=$ac_arg
2226 break
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2232 rm -f conftest.err conftest.$ac_objext
2233 done
2234 rm -f conftest.$ac_ext conftest.$ac_objext
2235 CC=$ac_save_CC
2239 case "x$ac_cv_prog_cc_stdc" in
2240 x|xno)
2241 echo "$as_me:$LINENO: result: none needed" >&5
2242 echo "${ECHO_T}none needed" >&6 ;;
2244 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2245 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2246 CC="$CC $ac_cv_prog_cc_stdc" ;;
2247 esac
2249 # Some people use a C++ compiler to compile C. Since we use `exit',
2250 # in C++ we need to declare it. In case someone uses the same compiler
2251 # for both compiling C and C++ we need to have the C++ compiler decide
2252 # the declaration of exit, since it's the most demanding environment.
2253 cat >conftest.$ac_ext <<_ACEOF
2254 #ifndef __cplusplus
2255 choke me
2256 #endif
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2261 ac_status=$?
2262 grep -v '^ *+' conftest.er1 >conftest.err
2263 rm -f conftest.er1
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 (eval $ac_try) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration in \
2281 '' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2286 'void exit (int);'
2288 cat >conftest.$ac_ext <<_ACEOF
2289 /* confdefs.h. */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2294 $ac_declaration
2295 #include <stdlib.h>
2297 main ()
2299 exit (42);
2301 return 0;
2303 _ACEOF
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2307 ac_status=$?
2308 grep -v '^ *+' conftest.er1 >conftest.err
2309 rm -f conftest.er1
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag"
2314 || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 continue
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 $ac_declaration
2342 main ()
2344 exit (42);
2346 return 0;
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_c_werror_flag"
2359 || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 break
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378 done
2379 rm -f conftest*
2380 if test -n "$ac_declaration"; then
2381 echo '#ifdef __cplusplus' >>confdefs.h
2382 echo $ac_declaration >>confdefs.h
2383 echo '#endif' >>confdefs.h
2386 else
2387 echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_ext=c
2393 ac_cpp='$CPP $CPPFLAGS'
2394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2399 ac_ext=c
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2406 # On Suns, sometimes $CPP names a directory.
2407 if test -n "$CPP" && test -d "$CPP"; then
2408 CPP=
2410 if test -z "$CPP"; then
2411 if test "${ac_cv_prog_CPP+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414 # Double quotes because CPP needs to be expanded
2415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2417 ac_preproc_ok=false
2418 for ac_c_preproc_warn_flag in '' yes
2420 # Use a header file that comes with gcc, so configuring glibc
2421 # with a fresh cross-compiler works.
2422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2423 # <limits.h> exists even on freestanding compilers.
2424 # On the NeXT, cc -E runs the code through the compiler's parser,
2425 # not just through cpp. "Syntax error" is here to catch this case.
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h. */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 #ifdef __STDC__
2433 # include <limits.h>
2434 #else
2435 # include <assert.h>
2436 #endif
2437 Syntax error
2438 _ACEOF
2439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } >/dev/null; then
2447 if test -s conftest.err; then
2448 ac_cpp_err=$ac_c_preproc_warn_flag
2449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2450 else
2451 ac_cpp_err=
2453 else
2454 ac_cpp_err=yes
2456 if test -z "$ac_cpp_err"; then
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 # Broken: fails on valid input.
2463 continue
2465 rm -f conftest.err conftest.$ac_ext
2467 # OK, works on sane cases. Now check whether non-existent headers
2468 # can be detected and how.
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h. */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2475 #include <ac_nonexistent.h>
2476 _ACEOF
2477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2479 ac_status=$?
2480 grep -v '^ *+' conftest.er1 >conftest.err
2481 rm -f conftest.er1
2482 cat conftest.err >&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); } >/dev/null; then
2485 if test -s conftest.err; then
2486 ac_cpp_err=$ac_c_preproc_warn_flag
2487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2488 else
2489 ac_cpp_err=
2491 else
2492 ac_cpp_err=yes
2494 if test -z "$ac_cpp_err"; then
2495 # Broken: success on invalid input.
2496 continue
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 # Passes both tests.
2502 ac_preproc_ok=:
2503 break
2505 rm -f conftest.err conftest.$ac_ext
2507 done
2508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2509 rm -f conftest.err conftest.$ac_ext
2510 if $ac_preproc_ok; then
2511 break
2514 done
2515 ac_cv_prog_CPP=$CPP
2518 CPP=$ac_cv_prog_CPP
2519 else
2520 ac_cv_prog_CPP=$CPP
2522 echo "$as_me:$LINENO: result: $CPP" >&5
2523 echo "${ECHO_T}$CPP" >&6
2524 ac_preproc_ok=false
2525 for ac_c_preproc_warn_flag in '' yes
2527 # Use a header file that comes with gcc, so configuring glibc
2528 # with a fresh cross-compiler works.
2529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2530 # <limits.h> exists even on freestanding compilers.
2531 # On the NeXT, cc -E runs the code through the compiler's parser,
2532 # not just through cpp. "Syntax error" is here to catch this case.
2533 cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h. */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 #ifdef __STDC__
2540 # include <limits.h>
2541 #else
2542 # include <assert.h>
2543 #endif
2544 Syntax error
2545 _ACEOF
2546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } >/dev/null; then
2554 if test -s conftest.err; then
2555 ac_cpp_err=$ac_c_preproc_warn_flag
2556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2557 else
2558 ac_cpp_err=
2560 else
2561 ac_cpp_err=yes
2563 if test -z "$ac_cpp_err"; then
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2569 # Broken: fails on valid input.
2570 continue
2572 rm -f conftest.err conftest.$ac_ext
2574 # OK, works on sane cases. Now check whether non-existent headers
2575 # can be detected and how.
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2582 #include <ac_nonexistent.h>
2583 _ACEOF
2584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586 ac_status=$?
2587 grep -v '^ *+' conftest.er1 >conftest.err
2588 rm -f conftest.er1
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } >/dev/null; then
2592 if test -s conftest.err; then
2593 ac_cpp_err=$ac_c_preproc_warn_flag
2594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2595 else
2596 ac_cpp_err=
2598 else
2599 ac_cpp_err=yes
2601 if test -z "$ac_cpp_err"; then
2602 # Broken: success on invalid input.
2603 continue
2604 else
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 # Passes both tests.
2609 ac_preproc_ok=:
2610 break
2612 rm -f conftest.err conftest.$ac_ext
2614 done
2615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2616 rm -f conftest.err conftest.$ac_ext
2617 if $ac_preproc_ok; then
2619 else
2620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634 # Check for a compatible awk
2635 for ac_prog in gawk nawk
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638 set dummy $ac_prog; ac_word=$2
2639 echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2641 if test "${ac_cv_prog_AWK+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644 if test -n "$AWK"; then
2645 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2654 ac_cv_prog_AWK="$ac_prog"
2655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2658 done
2659 done
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 echo "$as_me:$LINENO: result: $AWK" >&5
2666 echo "${ECHO_T}$AWK" >&6
2667 else
2668 echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6
2672 test -n "$AWK" && break
2673 done
2675 if test "$AWK" = ""; then
2676 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
2677 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
2678 { (exit 1); exit 1; }; }
2680 # Extract the first word of "mmake", so it can be a program name with args.
2681 set dummy mmake; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_MMAKE+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$MMAKE"; then
2688 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_MMAKE="mmake "
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2701 done
2702 done
2706 MMAKE=$ac_cv_prog_MMAKE
2707 if test -n "$MMAKE"; then
2708 echo "$as_me:$LINENO: result: $MMAKE" >&5
2709 echo "${ECHO_T}$MMAKE" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2716 # Perform some default variable assignments. Note all of these will be
2717 # Regenerated from the script, so there is no need to cache them.
2719 aros_host_cc="$CC"
2720 if test "$GCC" = "yes"; then
2721 aros_gcc_ld=`$CC -print-prog-name=ld`
2722 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
2723 set dummy `basename $aros_gcc_ld`; ac_word=$2
2724 echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2726 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 case $aros_host_ld in
2730 [\\/]* | ?:[\\/]*)
2731 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in `dirname $aros_gcc_ld`
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2749 esac
2751 aros_host_ld=$ac_cv_path_aros_host_ld
2753 if test -n "$aros_host_ld"; then
2754 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2755 echo "${ECHO_T}$aros_host_ld" >&6
2756 else
2757 echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6
2762 if test "$aros_host_ld" = ""; then
2763 # Extract the first word of "ld", so it can be a program name with args.
2764 set dummy ld; ac_word=$2
2765 echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2767 if test "${ac_cv_path_aros_host_ld+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 case $aros_host_ld in
2771 [\\/]* | ?:[\\/]*)
2772 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2790 esac
2792 aros_host_ld=$ac_cv_path_aros_host_ld
2794 if test -n "$aros_host_ld"; then
2795 echo "$as_me:$LINENO: result: $aros_host_ld" >&5
2796 echo "${ECHO_T}$aros_host_ld" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test "$aros_host_ld" = ""; then
2804 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
2805 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
2806 { (exit 1); exit 1; }; }
2808 aros_host_make="make"
2809 aros_host_cflags=$CFLAGS
2810 aros_host_ldflags=$LDFLAGS
2811 aros_host_debug="-g -O0"
2812 aros_host_mkdep="\$(TOP)/scripts/mkdep"
2813 aros_host_mkargs="--no-print-directory"
2814 aros_host_incl="/usr/include"
2815 aros_host_exe_suffix="$EXEEXT"
2816 aros_host_lib_suffix=""
2818 for ac_prog in aclocal aclocal19
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2824 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827 if test -n "$aros_host_aclocal"; then
2828 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_aros_host_aclocal="$ac_prog"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 break 2
2841 done
2842 done
2846 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
2847 if test -n "$aros_host_aclocal"; then
2848 echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
2849 echo "${ECHO_T}$aros_host_aclocal" >&6
2850 else
2851 echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2855 test -n "$aros_host_aclocal" && break
2856 done
2858 for ac_prog in autoconf autoconf259 autoconf253
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 if test -n "$aros_host_autoconf"; then
2868 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877 ac_cv_prog_aros_host_autoconf="$ac_prog"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2886 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
2887 if test -n "$aros_host_autoconf"; then
2888 echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
2889 echo "${ECHO_T}$aros_host_autoconf" >&6
2890 else
2891 echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2895 test -n "$aros_host_autoconf" && break
2896 done
2898 for ac_prog in autoheader autoheader259 autoheader253
2900 # Extract the first word of "$ac_prog", so it can be a program name with args.
2901 set dummy $ac_prog; ac_word=$2
2902 echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2904 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 else
2907 if test -n "$aros_host_autoheader"; then
2908 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_aros_host_autoheader="$ac_prog"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2926 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
2927 if test -n "$aros_host_autoheader"; then
2928 echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
2929 echo "${ECHO_T}$aros_host_autoheader" >&6
2930 else
2931 echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2935 test -n "$aros_host_autoheader" && break
2936 done
2938 for ac_prog in automake automake19
2940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947 if test -n "$aros_host_automake"; then
2948 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_aros_host_automake="$ac_prog"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2966 aros_host_automake=$ac_cv_prog_aros_host_automake
2967 if test -n "$aros_host_automake"; then
2968 echo "$as_me:$LINENO: result: $aros_host_automake" >&5
2969 echo "${ECHO_T}$aros_host_automake" >&6
2970 else
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2975 test -n "$aros_host_automake" && break
2976 done
2979 case "$aros_host_cc" in
2980 *gcc*)
2981 aros_host_cc_pipe="-pipe"
2983 icc)
2984 aros_host_cc_pipe=""
2987 aros_host_cc_pipe=""
2989 esac
2991 aros_target_cc_includes=""
2993 # This is the main host configuration section. It is where the host
2994 # can change the values of any variables it needs to change. We do
2995 # not look at anything that compiles to the target yet, we'll get
2996 # to that later.
2998 case "$host_os" in
2999 linux*)
3000 aros_host_arch="linux"
3001 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3002 case "$host_cpu" in
3003 *i?86*)
3004 aros_host_cpu="i386"
3006 *x86_64*)
3007 aros_host_cpu="x86_64"
3009 *m68k*)
3010 aros_host_cpu="m68k"
3012 *powerpc*)
3013 aros_host_cpu="ppc"
3016 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3017 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3018 aros_host_cpu="$host_cpu"
3020 esac
3023 freebsd*)
3024 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3025 aros_host_make="gmake"
3026 aros_host_arch="freebsd"
3027 aros_host_cpu="i386"
3029 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3032 case $host_os in
3033 freebsd[234]*)
3034 aros_object_format="elf_i386"
3038 aros_object_format="elf_i386_fbsd"
3040 esac
3044 darwin*)
3045 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3046 aros_host_arch="darwin"
3047 case "$host_cpu" in
3048 *i?86*)
3049 aros_host_cpu="i386"
3051 *powerpc*)
3052 aros_host_cpu="ppc"
3055 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3056 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3057 aros_host_cpu="$host_cpu"
3059 esac
3061 aros_host_ldflags="$aros_host_ldflags -liconv"
3065 netbsd*)
3066 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3067 aros_host_make="gmake"
3068 aros_host_arch="netbsd"
3069 case "$host_cpu" in
3070 *i?86*)
3071 aros_host_cpu="i386"
3073 *m68k*)
3074 aros_host_cpu="m68k"
3077 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3078 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3079 aros_host_cpu="$host_cpu"
3081 esac
3082 aros_host_lib_suffix=".0.0"
3085 openbsd*)
3086 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3087 aros_host_make="gmake"
3088 aros_host_arch="openbsd"
3089 case "$host_cpu" in
3090 *i?86*)
3091 aros_host_cpu="i386"
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 solaris*)
3102 aros_host_arch="solaris"
3103 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3104 case "$host_cpu" in
3105 *sparc*)
3106 aros_host_cpu="sparc"
3109 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3110 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3111 aros_host_cpu="$host_cpu"
3113 esac
3116 morphos*)
3117 aros_host_arch="morphos"
3118 aros_host_cpu="ppc"
3121 amiga*)
3122 aros_host_arch="amiga"
3123 SORT="/gg/bin/sort"
3124 TEST="/gg/bin/test"
3125 UNIQ="/gg/bin/uniq"
3126 FOR="for"
3127 TOUCH="/gg/bin/touch"
3128 case "$host_cpu" in
3129 *m68k*)
3130 aros_host_cpu="m68k"
3132 *powerpc*)
3133 aros_host_cpu="ppc"
3136 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3137 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3138 aros_host_cpu="$host_cpu"
3140 esac
3143 cygwin*)
3144 aros_host_arch="cygwin"
3145 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3146 case "$host_cpu" in
3147 *i?86*)
3148 aros_host_cpu="i386"
3151 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3152 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3153 aros_host_cpu="$host_cpu"
3155 esac
3158 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
3159 echo "$as_me: error: Unsupported host architecture $host" >&2;}
3160 { (exit 1); exit 1; }; }
3162 esac
3164 # Extract the first word of "ar", so it can be a program name with args.
3165 set dummy ar; ac_word=$2
3166 echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 if test -n "$aros_host_ar"; then
3172 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_aros_host_ar="ar cr"
3182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3185 done
3186 done
3190 aros_host_ar=$ac_cv_prog_aros_host_ar
3191 if test -n "$aros_host_ar"; then
3192 echo "$as_me:$LINENO: result: $aros_host_ar" >&5
3193 echo "${ECHO_T}$aros_host_ar" >&6
3194 else
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3199 if test "$aros_host_ar" = ""; then
3200 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
3201 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
3202 { (exit 1); exit 1; }; }
3204 # Extract the first word of "ranlib", so it can be a program name with args.
3205 set dummy ranlib; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211 if test -n "$aros_host_ranlib"; then
3212 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
3213 else
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 ac_cv_prog_aros_host_ranlib="ranlib "
3222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3225 done
3226 done
3230 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
3231 if test -n "$aros_host_ranlib"; then
3232 echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
3233 echo "${ECHO_T}$aros_host_ranlib" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236 echo "${ECHO_T}no" >&6
3239 if test "$aros_host_ranlib" = ""; then
3240 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
3241 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
3242 { (exit 1); exit 1; }; }
3244 # Extract the first word of "strip", so it can be a program name with args.
3245 set dummy strip; ac_word=$2
3246 echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 else
3251 if test -n "$aros_host_strip"; then
3252 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_aros_host_strip="strip "
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3265 done
3266 done
3270 aros_host_strip=$ac_cv_prog_aros_host_strip
3271 if test -n "$aros_host_strip"; then
3272 echo "$as_me:$LINENO: result: $aros_host_strip" >&5
3273 echo "${ECHO_T}$aros_host_strip" >&6
3274 else
3275 echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3279 if test "$aros_host_strip" = ""; then
3280 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
3281 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
3282 { (exit 1); exit 1; }; }
3285 # Extract the first word of "rm", so it can be a program name with args.
3286 set dummy rm; ac_word=$2
3287 echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3289 if test "${ac_cv_prog_RM+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -n "$RM"; then
3293 ac_cv_prog_RM="$RM" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_RM="rm -rf"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3306 done
3307 done
3311 RM=$ac_cv_prog_RM
3312 if test -n "$RM"; then
3313 echo "$as_me:$LINENO: result: $RM" >&5
3314 echo "${ECHO_T}$RM" >&6
3315 else
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3320 if test "$RM" = ""; then
3321 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
3322 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
3323 { (exit 1); exit 1; }; }
3325 # Extract the first word of "cp", so it can be a program name with args.
3326 set dummy cp; ac_word=$2
3327 echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3329 if test "${ac_cv_prog_CP+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$CP"; then
3333 ac_cv_prog_CP="$CP" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CP="cp "
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3351 CP=$ac_cv_prog_CP
3352 if test -n "$CP"; then
3353 echo "$as_me:$LINENO: result: $CP" >&5
3354 echo "${ECHO_T}$CP" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3360 if test "$CP" = ""; then
3361 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
3362 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
3363 { (exit 1); exit 1; }; }
3365 # Extract the first word of "mv", so it can be a program name with args.
3366 set dummy mv; ac_word=$2
3367 echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_MV+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 if test -n "$MV"; then
3373 ac_cv_prog_MV="$MV" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_MV="mv "
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3386 done
3387 done
3391 MV=$ac_cv_prog_MV
3392 if test -n "$MV"; then
3393 echo "$as_me:$LINENO: result: $MV" >&5
3394 echo "${ECHO_T}$MV" >&6
3395 else
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3400 if test "$MV" = ""; then
3401 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
3402 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
3403 { (exit 1); exit 1; }; }
3405 # Extract the first word of "echo", so it can be a program name with args.
3406 set dummy echo; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_ECHO+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -n "$ECHO"; then
3413 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ECHO="echo "
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3426 done
3427 done
3431 ECHO=$ac_cv_prog_ECHO
3432 if test -n "$ECHO"; then
3433 echo "$as_me:$LINENO: result: $ECHO" >&5
3434 echo "${ECHO_T}$ECHO" >&6
3435 else
3436 echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3440 if test "$ECHO" = ""; then
3441 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
3442 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
3443 { (exit 1); exit 1; }; }
3445 # Extract the first word of "mkdir", so it can be a program name with args.
3446 set dummy mkdir; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_MKDIR+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$MKDIR"; then
3453 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_MKDIR="mkdir -p"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3471 MKDIR=$ac_cv_prog_MKDIR
3472 if test -n "$MKDIR"; then
3473 echo "$as_me:$LINENO: result: $MKDIR" >&5
3474 echo "${ECHO_T}$MKDIR" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3480 if test "$MKDIR" = ""; then
3481 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
3482 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
3483 { (exit 1); exit 1; }; }
3485 # Extract the first word of "touch", so it can be a program name with args.
3486 set dummy touch; ac_word=$2
3487 echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3489 if test "${ac_cv_prog_TOUCH+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492 if test -n "$TOUCH"; then
3493 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
3494 else
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_TOUCH="touch "
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 break 2
3506 done
3507 done
3511 TOUCH=$ac_cv_prog_TOUCH
3512 if test -n "$TOUCH"; then
3513 echo "$as_me:$LINENO: result: $TOUCH" >&5
3514 echo "${ECHO_T}$TOUCH" >&6
3515 else
3516 echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3520 if test "$TOUCH" = ""; then
3521 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
3522 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
3523 { (exit 1); exit 1; }; }
3525 # Extract the first word of "sort", so it can be a program name with args.
3526 set dummy sort; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_SORT+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532 if test -n "$SORT"; then
3533 ac_cv_prog_SORT="$SORT" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_SORT="sort "
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3546 done
3547 done
3551 SORT=$ac_cv_prog_SORT
3552 if test -n "$SORT"; then
3553 echo "$as_me:$LINENO: result: $SORT" >&5
3554 echo "${ECHO_T}$SORT" >&6
3555 else
3556 echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3560 if test "$SORT" = ""; then
3561 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
3562 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
3563 { (exit 1); exit 1; }; }
3565 # Extract the first word of "uniq", so it can be a program name with args.
3566 set dummy uniq; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_UNIQ+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 if test -n "$UNIQ"; then
3573 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_UNIQ="uniq "
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584 break 2
3586 done
3587 done
3591 UNIQ=$ac_cv_prog_UNIQ
3592 if test -n "$UNIQ"; then
3593 echo "$as_me:$LINENO: result: $UNIQ" >&5
3594 echo "${ECHO_T}$UNIQ" >&6
3595 else
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3600 if test "$UNIQ" = ""; then
3601 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
3602 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
3603 { (exit 1); exit 1; }; }
3605 # Extract the first word of "true", so it can be a program name with args.
3606 set dummy true; ac_word=$2
3607 echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_NOP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 if test -n "$NOP"; then
3613 ac_cv_prog_NOP="$NOP" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_NOP="true "
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3631 NOP=$ac_cv_prog_NOP
3632 if test -n "$NOP"; then
3633 echo "$as_me:$LINENO: result: $NOP" >&5
3634 echo "${ECHO_T}$NOP" >&6
3635 else
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 if test "$NOP" = ""; then
3641 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
3642 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
3643 { (exit 1); exit 1; }; }
3645 # Extract the first word of "cat", so it can be a program name with args.
3646 set dummy cat; ac_word=$2
3647 echo "$as_me:$LINENO: checking for $ac_word" >&5
3648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3649 if test "${ac_cv_prog_CAT+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 if test -n "$CAT"; then
3653 ac_cv_prog_CAT="$CAT" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_CAT="cat "
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3671 CAT=$ac_cv_prog_CAT
3672 if test -n "$CAT"; then
3673 echo "$as_me:$LINENO: result: $CAT" >&5
3674 echo "${ECHO_T}$CAT" >&6
3675 else
3676 echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3680 if test "$CAT" = ""; then
3681 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
3682 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
3683 { (exit 1); exit 1; }; }
3685 # Extract the first word of "bison", so it can be a program name with args.
3686 set dummy bison; ac_word=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_BISON+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 if test -n "$BISON"; then
3693 ac_cv_prog_BISON="$BISON" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_BISON="bison "
3703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3706 done
3707 done
3711 BISON=$ac_cv_prog_BISON
3712 if test -n "$BISON"; then
3713 echo "$as_me:$LINENO: result: $BISON" >&5
3714 echo "${ECHO_T}$BISON" >&6
3715 else
3716 echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3720 if test "$BISON" = ""; then
3721 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
3722 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
3723 { (exit 1); exit 1; }; }
3725 # Extract the first word of "flex", so it can be a program name with args.
3726 set dummy flex; ac_word=$2
3727 echo "$as_me:$LINENO: checking for $ac_word" >&5
3728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729 if test "${ac_cv_prog_FLEX+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 if test -n "$FLEX"; then
3733 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_FLEX="flex "
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3751 FLEX=$ac_cv_prog_FLEX
3752 if test -n "$FLEX"; then
3753 echo "$as_me:$LINENO: result: $FLEX" >&5
3754 echo "${ECHO_T}$FLEX" >&6
3755 else
3756 echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6
3760 if test "$FLEX" = ""; then
3761 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
3762 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
3763 { (exit 1); exit 1; }; }
3765 # Extract the first word of "pngtopnm", so it can be a program name with args.
3766 set dummy pngtopnm; ac_word=$2
3767 echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 if test -n "$PNGTOPNM"; then
3773 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3778 IFS=$as_save_IFS
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_PNGTOPNM="pngtopnm "
3783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 break 2
3786 done
3787 done
3791 PNGTOPNM=$ac_cv_prog_PNGTOPNM
3792 if test -n "$PNGTOPNM"; then
3793 echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
3794 echo "${ECHO_T}$PNGTOPNM" >&6
3795 else
3796 echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3800 if test "$PNGTOPNM" = ""; then
3801 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
3802 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
3803 { (exit 1); exit 1; }; }
3805 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
3806 set dummy ppmtoilbm; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 if test -n "$PPMTOILBM"; then
3813 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_PPMTOILBM="ppmtoilbm "
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3826 done
3827 done
3831 PPMTOILBM=$ac_cv_prog_PPMTOILBM
3832 if test -n "$PPMTOILBM"; then
3833 echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
3834 echo "${ECHO_T}$PPMTOILBM" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3840 if test "$PPMTOILBM" = ""; then
3841 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
3842 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
3843 { (exit 1); exit 1; }; }
3845 # Extract the first word of "sed", so it can be a program name with args.
3846 set dummy sed; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_SED+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$SED"; then
3853 ac_cv_prog_SED="$SED" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_SED="sed "
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3871 SED=$ac_cv_prog_SED
3872 if test -n "$SED"; then
3873 echo "$as_me:$LINENO: result: $SED" >&5
3874 echo "${ECHO_T}$SED" >&6
3875 else
3876 echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3880 if test "$SED" = ""; then
3881 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
3882 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
3883 { (exit 1); exit 1; }; }
3885 # Extract the first word of "chmod", so it can be a program name with args.
3886 set dummy chmod; ac_word=$2
3887 echo "$as_me:$LINENO: checking for $ac_word" >&5
3888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3889 if test "${ac_cv_prog_CHMOD+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 else
3892 if test -n "$CHMOD"; then
3893 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CHMOD="chmod "
3903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3911 CHMOD=$ac_cv_prog_CHMOD
3912 if test -n "$CHMOD"; then
3913 echo "$as_me:$LINENO: result: $CHMOD" >&5
3914 echo "${ECHO_T}$CHMOD" >&6
3915 else
3916 echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6
3920 if test "$CHMOD" = ""; then
3921 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
3922 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
3923 { (exit 1); exit 1; }; }
3930 if test -n "$PYTHON"; then
3931 # If the user set $PYTHON, use it and don't search something else.
3932 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
3933 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
3934 prog="import sys, string
3935 # split strings by '.' and convert to numeric. Append some zeros
3936 # because we need at least 4 digits for the hex conversion.
3937 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3938 minverhex = 0
3939 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3940 sys.exit(sys.hexversion < minverhex)"
3941 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3942 ($PYTHON -c "$prog") >&5 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); }; then
3946 echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6
3948 else
3949 { { echo "$as_me:$LINENO: error: too old" >&5
3950 echo "$as_me: error: too old" >&2;}
3951 { (exit 1); exit 1; }; }
3954 am_display_PYTHON=$PYTHON
3955 else
3956 # Otherwise, try each interpreter until we find one that satisfies
3957 # VERSION.
3958 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
3959 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
3960 if test "${am_cv_pathless_PYTHON+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3964 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
3965 test "$am_cv_pathless_PYTHON" = none && break
3966 prog="import sys, string
3967 # split strings by '.' and convert to numeric. Append some zeros
3968 # because we need at least 4 digits for the hex conversion.
3969 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
3970 minverhex = 0
3971 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
3972 sys.exit(sys.hexversion < minverhex)"
3973 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3974 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 break
3981 done
3983 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
3984 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
3985 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3986 if test "$am_cv_pathless_PYTHON" = none; then
3987 PYTHON=:
3988 else
3989 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3990 set dummy $am_cv_pathless_PYTHON; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_PYTHON+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 case $PYTHON in
3997 [\\/]* | ?:[\\/]*)
3998 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4016 esac
4018 PYTHON=$ac_cv_path_PYTHON
4020 if test -n "$PYTHON"; then
4021 echo "$as_me:$LINENO: result: $PYTHON" >&5
4022 echo "${ECHO_T}$PYTHON" >&6
4023 else
4024 echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4029 am_display_PYTHON=$am_cv_pathless_PYTHON
4033 if test "$PYTHON" = :; then
4034 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4035 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4036 { (exit 1); exit 1; }; }
4037 else
4040 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4041 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
4042 if test "${am_cv_python_version+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4047 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4048 echo "${ECHO_T}$am_cv_python_version" >&6
4049 PYTHON_VERSION=$am_cv_python_version
4053 PYTHON_PREFIX='${prefix}'
4055 PYTHON_EXEC_PREFIX='${exec_prefix}'
4059 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4060 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
4061 if test "${am_cv_python_platform+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4066 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4067 echo "${ECHO_T}$am_cv_python_platform" >&6
4068 PYTHON_PLATFORM=$am_cv_python_platform
4073 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4074 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
4075 if test "${am_cv_python_pythondir+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4079 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4081 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4082 echo "${ECHO_T}$am_cv_python_pythondir" >&6
4083 pythondir=$am_cv_python_pythondir
4087 pkgpythondir=\${pythondir}/$PACKAGE
4090 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4091 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
4092 if test "${am_cv_python_pyexecdir+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4096 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4098 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4099 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
4100 pyexecdir=$am_cv_python_pyexecdir
4104 pkgpyexecdir=\${pyexecdir}/$PACKAGE
4112 FOR=for
4114 IF=if
4116 TEST=test
4118 CMP=cmp
4122 # Check for some includes for the X11 HIDD and the kernel
4125 echo "$as_me:$LINENO: checking for egrep" >&5
4126 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4127 if test "${ac_cv_prog_egrep+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4131 then ac_cv_prog_egrep='grep -E'
4132 else ac_cv_prog_egrep='egrep'
4135 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4136 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4137 EGREP=$ac_cv_prog_egrep
4140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4142 if test "${ac_cv_header_stdc+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <stdlib.h>
4152 #include <stdarg.h>
4153 #include <string.h>
4154 #include <float.h>
4157 main ()
4161 return 0;
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_header_stdc=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_header_stdc=no
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4195 if test $ac_cv_header_stdc = yes; then
4196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <string.h>
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "memchr" >/dev/null 2>&1; then
4209 else
4210 ac_cv_header_stdc=no
4212 rm -f conftest*
4216 if test $ac_cv_header_stdc = yes; then
4217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4226 _ACEOF
4227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4228 $EGREP "free" >/dev/null 2>&1; then
4230 else
4231 ac_cv_header_stdc=no
4233 rm -f conftest*
4237 if test $ac_cv_header_stdc = yes; then
4238 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4239 if test "$cross_compiling" = yes; then
4241 else
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <ctype.h>
4249 #if ((' ' & 0x0FF) == 0x020)
4250 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4251 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4252 #else
4253 # define ISLOWER(c) \
4254 (('a' <= (c) && (c) <= 'i') \
4255 || ('j' <= (c) && (c) <= 'r') \
4256 || ('s' <= (c) && (c) <= 'z'))
4257 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4258 #endif
4260 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4262 main ()
4264 int i;
4265 for (i = 0; i < 256; i++)
4266 if (XOR (islower (i), ISLOWER (i))
4267 || toupper (i) != TOUPPER (i))
4268 exit(2);
4269 exit (0);
4271 _ACEOF
4272 rm -f conftest$ac_exeext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274 (eval $ac_link) 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4284 else
4285 echo "$as_me: program exited with status $ac_status" >&5
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 ( exit $ac_status )
4290 ac_cv_header_stdc=no
4292 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4297 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4298 if test $ac_cv_header_stdc = yes; then
4300 cat >>confdefs.h <<\_ACEOF
4301 #define STDC_HEADERS 1
4302 _ACEOF
4306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4317 inttypes.h stdint.h unistd.h
4319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320 echo "$as_me:$LINENO: checking for $ac_header" >&5
4321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325 cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 $ac_includes_default
4333 #include <$ac_header>
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337 (eval $ac_compile) 2>conftest.er1
4338 ac_status=$?
4339 grep -v '^ *+' conftest.er1 >conftest.err
4340 rm -f conftest.er1
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 (eval $ac_try) 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest.$ac_objext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 eval "$as_ac_Header=yes"
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 eval "$as_ac_Header=no"
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4369 cat >>confdefs.h <<_ACEOF
4370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4371 _ACEOF
4375 done
4387 for ac_header in sys/ipc.h sys/shm.h \
4388 sys/mmap.h sys/mman.h sysexits.h \
4389 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
4392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4394 echo "$as_me:$LINENO: checking for $ac_header" >&5
4395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4401 else
4402 # Is the header compilable?
4403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 $ac_includes_default
4412 #include <$ac_header>
4413 _ACEOF
4414 rm -f conftest.$ac_objext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -z "$ac_c_werror_flag"
4424 || test ! -s conftest.err'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; } &&
4430 { ac_try='test -s conftest.$ac_objext'
4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 (eval $ac_try) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }; }; then
4436 ac_header_compiler=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 ac_header_compiler=no
4443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4445 echo "${ECHO_T}$ac_header_compiler" >&6
4447 # Is the header present?
4448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4450 cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h. */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4456 #include <$ac_header>
4457 _ACEOF
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4469 else
4470 ac_cpp_err=
4472 else
4473 ac_cpp_err=yes
4475 if test -z "$ac_cpp_err"; then
4476 ac_header_preproc=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 ac_header_preproc=no
4483 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4485 echo "${ECHO_T}$ac_header_preproc" >&6
4487 # So? What about this header?
4488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489 yes:no: )
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4494 ac_header_preproc=yes
4496 no:yes:* )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 cat <<\_ASBOX
4511 ## ------------------------------------------ ##
4512 ## Report this to the AC_PACKAGE_NAME lists. ##
4513 ## ------------------------------------------ ##
4514 _ASBOX
4516 sed "s/^/$as_me: WARNING: /" >&2
4518 esac
4519 echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 eval "$as_ac_Header=\$ac_header_preproc"
4526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4531 cat >>confdefs.h <<_ACEOF
4532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533 _ACEOF
4537 done
4541 for ac_header in sys/mount.h
4543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4544 echo "$as_me:$LINENO: checking for $ac_header" >&5
4545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #include <sys/param.h>
4557 #include <$ac_header>
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 eval "$as_ac_Header=yes"
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 eval "$as_ac_Header=no"
4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 _ACEOF
4599 done
4607 ac_header_dirent=no
4608 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4609 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4610 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4611 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 cat >conftest.$ac_ext <<_ACEOF
4616 /* confdefs.h. */
4617 _ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4621 #include <sys/types.h>
4622 #include <$ac_hdr>
4625 main ()
4627 if ((DIR *) 0)
4628 return 0;
4630 return 0;
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635 (eval $ac_compile) 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } &&
4642 { ac_try='test -z "$ac_c_werror_flag"
4643 || test ! -s conftest.err'
4644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 (eval $ac_try) 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; } &&
4649 { ac_try='test -s conftest.$ac_objext'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 eval "$as_ac_Header=yes"
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 eval "$as_ac_Header=no"
4662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4669 _ACEOF
4671 ac_header_dirent=$ac_hdr; break
4674 done
4675 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4676 if test $ac_header_dirent = dirent.h; then
4677 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4678 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4679 if test "${ac_cv_search_opendir+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 ac_func_search_save_LIBS=$LIBS
4683 ac_cv_search_opendir=no
4684 cat >conftest.$ac_ext <<_ACEOF
4685 /* confdefs.h. */
4686 _ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 /* Override any gcc2 internal prototype to avoid an error. */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4697 char opendir ();
4699 main ()
4701 opendir ();
4703 return 0;
4705 _ACEOF
4706 rm -f conftest.$ac_objext conftest$ac_exeext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
4728 ac_cv_search_opendir="none required"
4729 else
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4734 rm -f conftest.err conftest.$ac_objext \
4735 conftest$ac_exeext conftest.$ac_ext
4736 if test "$ac_cv_search_opendir" = no; then
4737 for ac_lib in dir; do
4738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h. */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4746 /* Override any gcc2 internal prototype to avoid an error. */
4747 #ifdef __cplusplus
4748 extern "C"
4749 #endif
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4752 char opendir ();
4754 main ()
4756 opendir ();
4758 return 0;
4760 _ACEOF
4761 rm -f conftest.$ac_objext conftest$ac_exeext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4763 (eval $ac_link) 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 (eval $ac_try) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try='test -s conftest$ac_exeext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_search_opendir="-l$ac_lib"
4784 break
4785 else
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4790 rm -f conftest.err conftest.$ac_objext \
4791 conftest$ac_exeext conftest.$ac_ext
4792 done
4794 LIBS=$ac_func_search_save_LIBS
4796 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4797 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4798 if test "$ac_cv_search_opendir" != no; then
4799 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4803 else
4804 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4806 if test "${ac_cv_search_opendir+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 ac_func_search_save_LIBS=$LIBS
4810 ac_cv_search_opendir=no
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 #ifdef __cplusplus
4820 extern "C"
4821 #endif
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char opendir ();
4826 main ()
4828 opendir ();
4830 return 0;
4832 _ACEOF
4833 rm -f conftest.$ac_objext conftest$ac_exeext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4835 (eval $ac_link) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_search_opendir="none required"
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4861 rm -f conftest.err conftest.$ac_objext \
4862 conftest$ac_exeext conftest.$ac_ext
4863 if test "$ac_cv_search_opendir" = no; then
4864 for ac_lib in x; do
4865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 #ifdef __cplusplus
4875 extern "C"
4876 #endif
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879 char opendir ();
4881 main ()
4883 opendir ();
4885 return 0;
4887 _ACEOF
4888 rm -f conftest.$ac_objext conftest$ac_exeext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890 (eval $ac_link) 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest$ac_exeext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906 (eval $ac_try) 2>&5
4907 ac_status=$?
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_search_opendir="-l$ac_lib"
4911 break
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f conftest.err conftest.$ac_objext \
4918 conftest$ac_exeext conftest.$ac_ext
4919 done
4921 LIBS=$ac_func_search_save_LIBS
4923 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4924 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4925 if test "$ac_cv_search_opendir" != no; then
4926 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4932 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4933 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4934 if test "${ac_cv_header_stat_broken+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <sys/types.h>
4944 #include <sys/stat.h>
4946 #if defined(S_ISBLK) && defined(S_IFDIR)
4947 # if S_ISBLK (S_IFDIR)
4948 You lose.
4949 # endif
4950 #endif
4952 #if defined(S_ISBLK) && defined(S_IFCHR)
4953 # if S_ISBLK (S_IFCHR)
4954 You lose.
4955 # endif
4956 #endif
4958 #if defined(S_ISLNK) && defined(S_IFREG)
4959 # if S_ISLNK (S_IFREG)
4960 You lose.
4961 # endif
4962 #endif
4964 #if defined(S_ISSOCK) && defined(S_IFREG)
4965 # if S_ISSOCK (S_IFREG)
4966 You lose.
4967 # endif
4968 #endif
4970 _ACEOF
4971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4972 $EGREP "You lose" >/dev/null 2>&1; then
4973 ac_cv_header_stat_broken=yes
4974 else
4975 ac_cv_header_stat_broken=no
4977 rm -f conftest*
4980 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4981 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4982 if test $ac_cv_header_stat_broken = yes; then
4984 cat >>confdefs.h <<\_ACEOF
4985 #define STAT_MACROS_BROKEN 1
4986 _ACEOF
4990 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4991 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4992 if test "${ac_cv_header_stdc+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #include <stdlib.h>
5002 #include <stdarg.h>
5003 #include <string.h>
5004 #include <float.h>
5007 main ()
5011 return 0;
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>conftest.er1
5017 ac_status=$?
5018 grep -v '^ *+' conftest.er1 >conftest.err
5019 rm -f conftest.er1
5020 cat conftest.err >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -z "$ac_c_werror_flag"
5024 || test ! -s conftest.err'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; } &&
5030 { ac_try='test -s conftest.$ac_objext'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 (eval $ac_try) 2>&5
5033 ac_status=$?
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5036 ac_cv_header_stdc=yes
5037 else
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_header_stdc=no
5043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 if test $ac_cv_header_stdc = yes; then
5046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5047 cat >conftest.$ac_ext <<_ACEOF
5048 /* confdefs.h. */
5049 _ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 #include <string.h>
5055 _ACEOF
5056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5057 $EGREP "memchr" >/dev/null 2>&1; then
5059 else
5060 ac_cv_header_stdc=no
5062 rm -f conftest*
5066 if test $ac_cv_header_stdc = yes; then
5067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
5076 _ACEOF
5077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5078 $EGREP "free" >/dev/null 2>&1; then
5080 else
5081 ac_cv_header_stdc=no
5083 rm -f conftest*
5087 if test $ac_cv_header_stdc = yes; then
5088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5089 if test "$cross_compiling" = yes; then
5091 else
5092 cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h. */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5098 #include <ctype.h>
5099 #if ((' ' & 0x0FF) == 0x020)
5100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5102 #else
5103 # define ISLOWER(c) \
5104 (('a' <= (c) && (c) <= 'i') \
5105 || ('j' <= (c) && (c) <= 'r') \
5106 || ('s' <= (c) && (c) <= 'z'))
5107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5108 #endif
5110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5112 main ()
5114 int i;
5115 for (i = 0; i < 256; i++)
5116 if (XOR (islower (i), ISLOWER (i))
5117 || toupper (i) != TOUPPER (i))
5118 exit(2);
5119 exit (0);
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5134 else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 ( exit $ac_status )
5140 ac_cv_header_stdc=no
5142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5147 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5148 if test $ac_cv_header_stdc = yes; then
5150 cat >>confdefs.h <<\_ACEOF
5151 #define STDC_HEADERS 1
5152 _ACEOF
5156 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5157 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5158 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h. */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 #include <sys/types.h>
5168 #include <sys/wait.h>
5169 #ifndef WEXITSTATUS
5170 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5171 #endif
5172 #ifndef WIFEXITED
5173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5174 #endif
5177 main ()
5179 int s;
5180 wait (&s);
5181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5183 return 0;
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_header_sys_wait_h=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_cv_header_sys_wait_h=no
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5218 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5219 if test $ac_cv_header_sys_wait_h = yes; then
5221 cat >>confdefs.h <<\_ACEOF
5222 #define HAVE_SYS_WAIT_H 1
5223 _ACEOF
5227 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5229 if test "${ac_cv_header_time+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <sys/types.h>
5239 #include <sys/time.h>
5240 #include <time.h>
5243 main ()
5245 if ((struct tm *) 0)
5246 return 0;
5248 return 0;
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -z "$ac_c_werror_flag"
5261 || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_header_time=yes
5274 else
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5278 ac_cv_header_time=no
5280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5282 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5283 echo "${ECHO_T}$ac_cv_header_time" >&6
5284 if test $ac_cv_header_time = yes; then
5286 cat >>confdefs.h <<\_ACEOF
5287 #define TIME_WITH_SYS_TIME 1
5288 _ACEOF
5293 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5294 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5295 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 $ac_includes_default
5306 main ()
5308 static struct stat ac_aggr;
5309 if (ac_aggr.st_blksize)
5310 return 0;
5312 return 0;
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_c_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_member_struct_stat_st_blksize=yes
5338 else
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 $ac_includes_default
5350 main ()
5352 static struct stat ac_aggr;
5353 if (sizeof ac_aggr.st_blksize)
5354 return 0;
5356 return 0;
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_member_struct_stat_st_blksize=yes
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 ac_cv_member_struct_stat_st_blksize=no
5388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5393 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5394 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5398 _ACEOF
5401 cat >>confdefs.h <<\_ACEOF
5402 #define HAVE_ST_BLKSIZE 1
5403 _ACEOF
5408 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5409 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5410 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419 $ac_includes_default
5421 main ()
5423 static struct stat ac_aggr;
5424 if (ac_aggr.st_blocks)
5425 return 0;
5427 return 0;
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432 (eval $ac_compile) 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -z "$ac_c_werror_flag"
5440 || test ! -s conftest.err'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 (eval $ac_try) 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; } &&
5446 { ac_try='test -s conftest.$ac_objext'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; }; then
5452 ac_cv_member_struct_stat_st_blocks=yes
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5465 main ()
5467 static struct stat ac_aggr;
5468 if (sizeof ac_aggr.st_blocks)
5469 return 0;
5471 return 0;
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag"
5484 || test ! -s conftest.err'
5485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 (eval $ac_try) 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_cv_member_struct_stat_st_blocks=yes
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_member_struct_stat_st_blocks=no
5503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5508 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5509 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5511 cat >>confdefs.h <<_ACEOF
5512 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5513 _ACEOF
5516 cat >>confdefs.h <<\_ACEOF
5517 #define HAVE_ST_BLOCKS 1
5518 _ACEOF
5520 else
5521 case $LIBOBJS in
5522 "fileblocks.$ac_objext" | \
5523 *" fileblocks.$ac_objext" | \
5524 "fileblocks.$ac_objext "* | \
5525 *" fileblocks.$ac_objext "* ) ;;
5526 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
5527 esac
5533 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5534 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5535 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h. */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5546 main ()
5548 static struct stat ac_aggr;
5549 if (ac_aggr.st_rdev)
5550 return 0;
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_member_struct_stat_st_rdev=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5590 main ()
5592 static struct stat ac_aggr;
5593 if (sizeof ac_aggr.st_rdev)
5594 return 0;
5596 return 0;
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601 (eval $ac_compile) 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -z "$ac_c_werror_flag"
5609 || test ! -s conftest.err'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_member_struct_stat_st_rdev=yes
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_member_struct_stat_st_rdev=no
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5632 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5633 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5634 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5636 cat >>confdefs.h <<_ACEOF
5637 #define HAVE_STRUCT_STAT_ST_RDEV 1
5638 _ACEOF
5641 cat >>confdefs.h <<\_ACEOF
5642 #define HAVE_ST_RDEV 1
5643 _ACEOF
5648 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5649 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5650 if test "${ac_cv_struct_tm+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 #include <time.h>
5663 main ()
5665 struct tm *tp; tp->tm_sec;
5667 return 0;
5669 _ACEOF
5670 rm -f conftest.$ac_objext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672 (eval $ac_compile) 2>conftest.er1
5673 ac_status=$?
5674 grep -v '^ *+' conftest.er1 >conftest.err
5675 rm -f conftest.er1
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_struct_tm=time.h
5693 else
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_struct_tm=sys/time.h
5699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5701 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5702 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5703 if test $ac_cv_struct_tm = sys/time.h; then
5705 cat >>confdefs.h <<\_ACEOF
5706 #define TM_IN_SYS_TIME 1
5707 _ACEOF
5711 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5712 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5713 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716 cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h. */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #include <sys/types.h>
5723 #include <$ac_cv_struct_tm>
5727 main ()
5729 static struct tm ac_aggr;
5730 if (ac_aggr.tm_zone)
5731 return 0;
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5738 (eval $ac_compile) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest.$ac_objext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_member_struct_tm_tm_zone=yes
5759 else
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 #include <$ac_cv_struct_tm>
5774 main ()
5776 static struct tm ac_aggr;
5777 if (sizeof ac_aggr.tm_zone)
5778 return 0;
5780 return 0;
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_member_struct_tm_tm_zone=yes
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5810 ac_cv_member_struct_tm_tm_zone=no
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5816 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5817 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5818 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5820 cat >>confdefs.h <<_ACEOF
5821 #define HAVE_STRUCT_TM_TM_ZONE 1
5822 _ACEOF
5827 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_TM_ZONE 1
5831 _ACEOF
5833 else
5834 echo "$as_me:$LINENO: checking for tzname" >&5
5835 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5836 if test "${ac_cv_var_tzname+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 #include <time.h>
5846 #ifndef tzname /* For SGI. */
5847 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5848 #endif
5851 main ()
5853 atoi(*tzname);
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_var_tzname=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_var_tzname=no
5887 rm -f conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5891 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5892 if test $ac_cv_var_tzname = yes; then
5894 cat >>confdefs.h <<\_ACEOF
5895 #define HAVE_TZNAME 1
5896 _ACEOF
5901 echo "$as_me:$LINENO: checking for off_t" >&5
5902 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5903 if test "${ac_cv_type_off_t+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5914 main ()
5916 if ((off_t *) 0)
5917 return 0;
5918 if (sizeof (off_t))
5919 return 0;
5921 return 0;
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926 (eval $ac_compile) 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_c_werror_flag"
5934 || test ! -s conftest.err'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_type_off_t=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 ac_cv_type_off_t=no
5953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5956 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5957 if test $ac_cv_type_off_t = yes; then
5959 else
5961 cat >>confdefs.h <<_ACEOF
5962 #define off_t long
5963 _ACEOF
5967 echo "$as_me:$LINENO: checking for pid_t" >&5
5968 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5969 if test "${ac_cv_type_pid_t+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5980 main ()
5982 if ((pid_t *) 0)
5983 return 0;
5984 if (sizeof (pid_t))
5985 return 0;
5987 return 0;
5989 _ACEOF
5990 rm -f conftest.$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 (eval $ac_try) 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_type_pid_t=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_type_pid_t=no
6019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6022 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6023 if test $ac_cv_type_pid_t = yes; then
6025 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define pid_t int
6029 _ACEOF
6033 echo "$as_me:$LINENO: checking for size_t" >&5
6034 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6035 if test "${ac_cv_type_size_t+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6046 main ()
6048 if ((size_t *) 0)
6049 return 0;
6050 if (sizeof (size_t))
6051 return 0;
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_type_size_t=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_cv_type_size_t=no
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6088 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6089 if test $ac_cv_type_size_t = yes; then
6091 else
6093 cat >>confdefs.h <<_ACEOF
6094 #define size_t unsigned
6095 _ACEOF
6099 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6100 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6101 if test "${ac_cv_type_uid_t+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <sys/types.h>
6112 _ACEOF
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "uid_t" >/dev/null 2>&1; then
6115 ac_cv_type_uid_t=yes
6116 else
6117 ac_cv_type_uid_t=no
6119 rm -f conftest*
6122 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6123 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6124 if test $ac_cv_type_uid_t = no; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define uid_t int
6128 _ACEOF
6131 cat >>confdefs.h <<\_ACEOF
6132 #define gid_t int
6133 _ACEOF
6138 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6139 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6140 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6151 main ()
6153 static struct tm ac_aggr;
6154 if (ac_aggr.tm_gmtoff)
6155 return 0;
6157 return 0;
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_member_struct_tm_tm_gmtoff=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 main ()
6197 static struct tm ac_aggr;
6198 if (sizeof ac_aggr.tm_gmtoff)
6199 return 0;
6201 return 0;
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6206 (eval $ac_compile) 2>conftest.er1
6207 ac_status=$?
6208 grep -v '^ *+' conftest.er1 >conftest.err
6209 rm -f conftest.er1
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 (eval $ac_try) 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_member_struct_tm_tm_gmtoff=yes
6227 else
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_member_struct_tm_tm_gmtoff=no
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6238 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6239 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6243 _ACEOF
6249 # Look for some functions
6264 for ac_func in getpagesize kqueue statfs statvfs \
6265 clone kse_create rfork_thread thr_create sa_register \
6266 getcontext makecontext setcontext sigaltstack swapcontext
6268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6269 echo "$as_me:$LINENO: checking for $ac_func" >&5
6270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6271 if eval "test \"\${$as_ac_var+set}\" = set"; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6282 #define $ac_func innocuous_$ac_func
6284 /* System header to define __stub macros and hopefully few prototypes,
6285 which can conflict with char $ac_func (); below.
6286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6287 <limits.h> exists even on freestanding compilers. */
6289 #ifdef __STDC__
6290 # include <limits.h>
6291 #else
6292 # include <assert.h>
6293 #endif
6295 #undef $ac_func
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 #ifdef __cplusplus
6299 extern "C"
6301 #endif
6302 /* We use char because int might match the return type of a gcc2
6303 builtin and then its argument prototype would still apply. */
6304 char $ac_func ();
6305 /* The GNU C library defines this for functions which it implements
6306 to always fail with ENOSYS. Some functions are actually named
6307 something starting with __ and the normal name is an alias. */
6308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6309 choke me
6310 #else
6311 char (*f) () = $ac_func;
6312 #endif
6313 #ifdef __cplusplus
6315 #endif
6318 main ()
6320 return f != $ac_func;
6322 return 0;
6324 _ACEOF
6325 rm -f conftest.$ac_objext conftest$ac_exeext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest$ac_exeext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 eval "$as_ac_var=yes"
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 eval "$as_ac_var=no"
6354 rm -f conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6359 if test `eval echo '${'$as_ac_var'}'` = yes; then
6360 cat >>confdefs.h <<_ACEOF
6361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6362 _ACEOF
6365 done
6370 for ac_header in stdlib.h unistd.h
6372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381 else
6382 # Is the header compilable?
6383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 #include <$ac_header>
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396 (eval $ac_compile) 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -z "$ac_c_werror_flag"
6404 || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_header_compiler=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_compiler=no
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6425 echo "${ECHO_T}$ac_header_compiler" >&6
6427 # Is the header present?
6428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <$ac_header>
6437 _ACEOF
6438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null; then
6446 if test -s conftest.err; then
6447 ac_cpp_err=$ac_c_preproc_warn_flag
6448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6449 else
6450 ac_cpp_err=
6452 else
6453 ac_cpp_err=yes
6455 if test -z "$ac_cpp_err"; then
6456 ac_header_preproc=yes
6457 else
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_header_preproc=no
6463 rm -f conftest.err conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6476 no:yes:* )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 cat <<\_ASBOX
6491 ## ------------------------------------------ ##
6492 ## Report this to the AC_PACKAGE_NAME lists. ##
6493 ## ------------------------------------------ ##
6494 _ASBOX
6496 sed "s/^/$as_me: WARNING: /" >&2
6498 esac
6499 echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 _ACEOF
6517 done
6520 for ac_func in getpagesize
6522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6523 echo "$as_me:$LINENO: checking for $ac_func" >&5
6524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6525 if eval "test \"\${$as_ac_var+set}\" = set"; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h. */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6536 #define $ac_func innocuous_$ac_func
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func (); below.
6540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541 <limits.h> exists even on freestanding compilers. */
6543 #ifdef __STDC__
6544 # include <limits.h>
6545 #else
6546 # include <assert.h>
6547 #endif
6549 #undef $ac_func
6551 /* Override any gcc2 internal prototype to avoid an error. */
6552 #ifdef __cplusplus
6553 extern "C"
6555 #endif
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6558 char $ac_func ();
6559 /* The GNU C library defines this for functions which it implements
6560 to always fail with ENOSYS. Some functions are actually named
6561 something starting with __ and the normal name is an alias. */
6562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6563 choke me
6564 #else
6565 char (*f) () = $ac_func;
6566 #endif
6567 #ifdef __cplusplus
6569 #endif
6572 main ()
6574 return f != $ac_func;
6576 return 0;
6578 _ACEOF
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -z "$ac_c_werror_flag"
6589 || test ! -s conftest.err'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 (eval $ac_try) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; } &&
6595 { ac_try='test -s conftest$ac_exeext'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; }; then
6601 eval "$as_ac_var=yes"
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 eval "$as_ac_var=no"
6608 rm -f conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6613 if test `eval echo '${'$as_ac_var'}'` = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6616 _ACEOF
6619 done
6621 echo "$as_me:$LINENO: checking for working mmap" >&5
6622 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6623 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 if test "$cross_compiling" = yes; then
6627 ac_cv_func_mmap_fixed_mapped=no
6628 else
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h. */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6636 /* malloc might have been renamed as rpl_malloc. */
6637 #undef malloc
6639 /* Thanks to Mike Haertel and Jim Avera for this test.
6640 Here is a matrix of mmap possibilities:
6641 mmap private not fixed
6642 mmap private fixed at somewhere currently unmapped
6643 mmap private fixed at somewhere already mapped
6644 mmap shared not fixed
6645 mmap shared fixed at somewhere currently unmapped
6646 mmap shared fixed at somewhere already mapped
6647 For private mappings, we should verify that changes cannot be read()
6648 back from the file, nor mmap's back from the file at a different
6649 address. (There have been systems where private was not correctly
6650 implemented like the infamous i386 svr4.0, and systems where the
6651 VM page cache was not coherent with the file system buffer cache
6652 like early versions of FreeBSD and possibly contemporary NetBSD.)
6653 For shared mappings, we should conversely verify that changes get
6654 propagated back to all the places they're supposed to be.
6656 Grep wants private fixed already mapped.
6657 The main things grep needs to know about mmap are:
6658 * does it exist and is it safe to write into the mmap'd area
6659 * how to use it (BSD variants) */
6661 #include <fcntl.h>
6662 #include <sys/mman.h>
6664 #if !STDC_HEADERS && !HAVE_STDLIB_H
6665 char *malloc ();
6666 #endif
6668 /* This mess was copied from the GNU getpagesize.h. */
6669 #if !HAVE_GETPAGESIZE
6670 /* Assume that all systems that can run configure have sys/param.h. */
6671 # if !HAVE_SYS_PARAM_H
6672 # define HAVE_SYS_PARAM_H 1
6673 # endif
6675 # ifdef _SC_PAGESIZE
6676 # define getpagesize() sysconf(_SC_PAGESIZE)
6677 # else /* no _SC_PAGESIZE */
6678 # if HAVE_SYS_PARAM_H
6679 # include <sys/param.h>
6680 # ifdef EXEC_PAGESIZE
6681 # define getpagesize() EXEC_PAGESIZE
6682 # else /* no EXEC_PAGESIZE */
6683 # ifdef NBPG
6684 # define getpagesize() NBPG * CLSIZE
6685 # ifndef CLSIZE
6686 # define CLSIZE 1
6687 # endif /* no CLSIZE */
6688 # else /* no NBPG */
6689 # ifdef NBPC
6690 # define getpagesize() NBPC
6691 # else /* no NBPC */
6692 # ifdef PAGESIZE
6693 # define getpagesize() PAGESIZE
6694 # endif /* PAGESIZE */
6695 # endif /* no NBPC */
6696 # endif /* no NBPG */
6697 # endif /* no EXEC_PAGESIZE */
6698 # else /* no HAVE_SYS_PARAM_H */
6699 # define getpagesize() 8192 /* punt totally */
6700 # endif /* no HAVE_SYS_PARAM_H */
6701 # endif /* no _SC_PAGESIZE */
6703 #endif /* no HAVE_GETPAGESIZE */
6706 main ()
6708 char *data, *data2, *data3;
6709 int i, pagesize;
6710 int fd;
6712 pagesize = getpagesize ();
6714 /* First, make a file with some known garbage in it. */
6715 data = (char *) malloc (pagesize);
6716 if (!data)
6717 exit (1);
6718 for (i = 0; i < pagesize; ++i)
6719 *(data + i) = rand ();
6720 umask (0);
6721 fd = creat ("conftest.mmap", 0600);
6722 if (fd < 0)
6723 exit (1);
6724 if (write (fd, data, pagesize) != pagesize)
6725 exit (1);
6726 close (fd);
6728 /* Next, try to mmap the file at a fixed address which already has
6729 something else allocated at it. If we can, also make sure that
6730 we see the same garbage. */
6731 fd = open ("conftest.mmap", O_RDWR);
6732 if (fd < 0)
6733 exit (1);
6734 data2 = (char *) malloc (2 * pagesize);
6735 if (!data2)
6736 exit (1);
6737 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6738 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6739 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6740 exit (1);
6741 for (i = 0; i < pagesize; ++i)
6742 if (*(data + i) != *(data2 + i))
6743 exit (1);
6745 /* Finally, make sure that changes to the mapped area do not
6746 percolate back to the file as seen by read(). (This is a bug on
6747 some variants of i386 svr4.0.) */
6748 for (i = 0; i < pagesize; ++i)
6749 *(data2 + i) = *(data2 + i) + 1;
6750 data3 = (char *) malloc (pagesize);
6751 if (!data3)
6752 exit (1);
6753 if (read (fd, data3, pagesize) != pagesize)
6754 exit (1);
6755 for (i = 0; i < pagesize; ++i)
6756 if (*(data + i) != *(data3 + i))
6757 exit (1);
6758 close (fd);
6759 exit (0);
6761 _ACEOF
6762 rm -f conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_cv_func_mmap_fixed_mapped=yes
6774 else
6775 echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ( exit $ac_status )
6780 ac_cv_func_mmap_fixed_mapped=no
6782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6786 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6787 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_MMAP 1
6791 _ACEOF
6794 rm -f conftest.mmap
6799 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6800 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6801 aros_config_ldflags=""
6803 aros_shared_default=yes
6805 aros_shared_cflags="-fPIC"
6806 aros_shared_aflags=""
6807 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6808 aros_kernel_ldflags="-Wl,-rpath,./lib"
6810 aros_target_ar_flags="cr"
6811 aros_target_nm_flags="-C -ul"
6812 aros_target_strip_flags="--strip-unneeded -R.comment"
6814 aros_compiler_libs=
6816 aros_target_genmap="-Wl,-Map -Xlinker"
6818 # Native flavour stuff
6819 aros_bochs_hack="0"
6820 aros_serial_debug="0"
6822 # Palm native flavour stuff
6823 aros_palm_debug_hack="0"
6825 # Unix flavour stuff
6826 aros_nesting_supervisor="0"
6828 # Collect-aros stuff: "-ius" to ignore undefined symbols
6829 ignore_undefined_symbols=""
6831 #-----------------------------------------------------------------------------
6834 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6835 # it switched on by default, and we use the host compiler, so it compiles AROS
6836 # code with this enabled resulting in link failures as we don't have support
6837 # for it.
6839 # We use two methods to disable it. For the host compiler (used to compile
6840 # some hosted modules), we test to see if the compiler supports stack
6841 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6842 # work on all platforms.
6844 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6845 # (this is done unconditionally, as it should have no effect on compilers
6846 # without the stack protection feature). This may be specific to the way that
6847 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6848 # strong enough to disable it in a generic way though, so we'll live with it
6849 # until another vendor ships GCC with it enabled in a different way, and deal
6850 # with it then.
6853 echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
6854 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6
6855 save_cflags="$CFLAGS"
6856 CFLAGS="$CFLAGS -fno-stack-protector"
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6865 main ()
6869 return 0;
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874 (eval $ac_compile) 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest.$ac_objext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 use_no_stack_protector="yes"
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 use_no_stack_protector="no"
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902 echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
6903 echo "${ECHO_T}$use_no_stack_protector" >&6
6904 if test "x-$use_no_stack_protector" = "x-yes" ; then
6905 aros_config_cflags="$aros_config_cflags -fno-stack-protector"
6907 CFLAGS="$save_cflags"
6909 #-----------------------------------------------------------------------------
6911 echo "$as_me:$LINENO: checking for type of build" >&5
6912 echo $ECHO_N "checking for type of build... $ECHO_C" >&6
6913 # Check whether --enable-build_type or --disable-build_type was given.
6914 if test "${enable_build_type+set}" = set; then
6915 enableval="$enable_build_type"
6916 build_type=$enableval
6917 else
6918 build_type="personal"
6921 if test "$build_type" = "nightly"; then
6922 build_type_string="NIGHTLY"
6923 elif test "$build_type" = "snapshot"; then
6924 build_type_string="SNAPSHOT"
6925 elif test "$build_type" = "milestone"; then
6926 build_type_string="MILESTONE"
6927 elif test "$build_type" = "release"; then
6928 build_type_string="RELEASE"
6929 else
6930 build_type_string="PERSONAL"
6931 build_type="personal"
6934 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6936 echo "$as_me:$LINENO: result: $build_type" >&5
6937 echo "${ECHO_T}$build_type" >&6
6939 #-----------------------------------------------------------------------------
6940 all_debug_types="messages stack mungwall modules symbols"
6942 echo "$as_me:$LINENO: checking which debug types to enable" >&5
6943 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6
6944 # Check whether --enable-debug or --disable-debug was given.
6945 if test "${enable_debug+set}" = set; then
6946 enableval="$enable_debug"
6947 debug="$enableval"
6948 else
6949 debug=""
6952 if test "$debug" = "" -o "$debug" = "no"; then
6953 debug="none"
6954 elif test "$debug" = "yes"; then
6955 debug="all"
6958 if test "$debug" = "all" ; then
6959 debug=$all_debug_types
6960 for d in $all_debug_types; do
6961 export aros_${d}_debug="1"
6962 done
6963 else
6964 for d in $all_debug_types; do
6965 export aros_${d}_debug="0"
6966 done
6969 if test "$debug" != "none"; then
6970 debug=`echo $debug | sed s/,/\ /g`
6971 for d in $debug; do
6972 found="0"
6973 for d2 in $all_debug_types; do
6974 if test "$d2" = "$d"; then
6975 found="1"
6976 break
6978 done
6979 if test "$found" = "0"; then
6980 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
6981 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
6982 { (exit 1); exit 1; }; }
6984 export aros_${d}_debug="1"
6985 done
6986 aros_debug="yes"
6988 echo "$as_me:$LINENO: result: $debug" >&5
6989 echo "${ECHO_T}$debug" >&6
6991 if test "$aros_messages_debug" = "1"; then
6992 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6993 else
6994 aros_messages_debug=""
6996 if test "$aros_symbols_debug" = "1"; then
6997 aros_symbols_debug="-g"
6998 else
6999 aros_symbols_debug=""
7002 # These are the flags to pass when compiling debugged programs
7003 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7004 aros_debug_aflags=""
7005 aros_debug_ldflags="$aros_symbols_debug"
7007 #-----------------------------------------------------------------------------
7008 # Checking for distcc and ccache.
7010 # Always apply the transforms in this particular order. Basically you should
7011 # always run 'ccache distcc compiler' in that order for the best performance.
7013 echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7014 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6
7015 # Check whether --enable-distcc or --disable-distcc was given.
7016 if test "${enable_distcc+set}" = set; then
7017 enableval="$enable_distcc"
7018 distcc="$enableval"
7019 else
7020 distcc="no"
7022 if test "$distcc" != "" -a "$distcc" != "no"; then
7023 # AC_CHECK_PROG will print out the result in this case
7024 # Extract the first word of "distcc", so it can be a program name with args.
7025 set dummy distcc; ac_word=$2
7026 echo "$as_me:$LINENO: checking for $ac_word" >&5
7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7028 if test "${ac_cv_path_DISTCC+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 case $DISTCC in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7050 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7052 esac
7054 DISTCC=$ac_cv_path_DISTCC
7056 if test -n "$DISTCC"; then
7057 echo "$as_me:$LINENO: result: $DISTCC" >&5
7058 echo "${ECHO_T}$DISTCC" >&6
7059 else
7060 echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6
7064 else
7065 echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6
7069 echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7070 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6
7071 # Check whether --enable-ccache or --disable-ccache was given.
7072 if test "${enable_ccache+set}" = set; then
7073 enableval="$enable_ccache"
7074 ccache="$enableval"
7075 else
7076 ccache="no"
7078 if test "$ccache" != "" -a "$ccache" != "no"; then
7079 # AC_CHECK_PROG will print out the result in this case
7080 # Extract the first word of "ccache", so it can be a program name with args.
7081 set dummy ccache; ac_word=$2
7082 echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084 if test "${ac_cv_prog_CCACHE+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 if test -n "$CCACHE"; then
7088 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_CCACHE="ccache"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7101 done
7102 done
7106 CCACHE=$ac_cv_prog_CCACHE
7107 if test -n "$CCACHE"; then
7108 echo "$as_me:$LINENO: result: $CCACHE" >&5
7109 echo "${ECHO_T}$CCACHE" >&6
7110 else
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7115 else
7116 echo "$as_me:$LINENO: result: no" >&5
7117 echo "${ECHO_T}no" >&6
7120 #-----------------------------------------------------------------------------
7121 echo "$as_me:$LINENO: checking what optimization flags to use" >&5
7122 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6
7124 # Check whether --with-optimization or --without-optimization was given.
7125 if test "${with_optimization+set}" = set; then
7126 withval="$with_optimization"
7127 optimization="$withval"
7128 else
7129 optimization="unknown"
7131 if test "$optimization" = "unknown"; then
7132 if test "$debug" != "none"; then
7133 optimization="-O0"
7134 else
7135 optimization="-O2"
7138 aros_config_cflags="$aros_config_cflags $optimization"
7139 echo "$as_me:$LINENO: result: $optimization" >&5
7140 echo "${ECHO_T}$optimization" >&6
7142 #-----------------------------------------------------------------------------
7143 echo "$as_me:$LINENO: checking what target variant to enable" >&5
7144 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6
7145 # Check whether --enable-target_variant or --disable-target_variant was given.
7146 if test "${enable_target_variant+set}" = set; then
7147 enableval="$enable_target_variant"
7148 target_variant=$enableval
7149 else
7150 target_variant="none"
7152 if test "$target_variant" = "none"; then
7153 aros_target_variant=""
7154 aros_target_suffix=""
7155 else
7156 aros_target_variant="$target_variant"
7157 aros_target_suffix="-$target_variant"
7159 echo "$as_me:$LINENO: result: $enableval" >&5
7160 echo "${ECHO_T}$enableval" >&6
7162 #-----------------------------------------------------------------------------
7163 # This is the target configuration switch.
7164 case "$target_os" in
7165 linux*)
7166 aros_target_arch="linux"
7167 case "$target_cpu" in
7168 *m68k*)
7169 aros_target_cpu="m68k"
7170 aros_object_format="m68kelf"
7171 aros_flavour="emulcompat"
7172 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7173 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7174 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7175 gcc_target_cpu="mc68000"
7177 *i?86*)
7178 aros_target_cpu="i386"
7179 aros_object_format="elf_i386"
7180 aros_flavour="emulation"
7181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7182 aros_default_wbdepth=8
7183 gcc_target_cpu="i386"
7185 *x86_64*)
7186 aros_target_cpu="x86_64"
7187 aros_object_format="elf_x86_64"
7188 aros_flavour="emulation"
7189 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7190 aros_default_wbdepth=8
7191 gcc_target_cpu="x86_64"
7193 *powerpc*)
7194 aros_target_cpu="ppc"
7195 aros_object_format="elf32ppc"
7196 aros_flavour="emulation"
7197 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7198 aros_default_wbdepth=8
7199 gcc_target_cpu="ppc"
7202 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
7203 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
7204 { (exit 1); exit 1; }; }
7206 esac
7210 aros_target_arch="pc"
7211 aros_shared_default="no"
7212 case "$target_cpu" in
7213 *i?86*)
7214 aros_target_cpu="i386"
7217 if test "$aros_object_format" = "" ; then
7218 aros_object_format="elf_i386"
7220 aros_flavour="standalone"
7221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7222 aros_kernel_ldflags=""
7223 aros_default_wbwidth=640
7224 aros_default_wbheight=480
7225 gcc_target_cpu="i386"
7227 *x86_64*)
7228 aros_target_cpu="x86_64"
7229 if test "$aros_object_format" = "" ; then
7230 aros_object_format="elf_x86_64"
7232 aros_flavour="standalone"
7233 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7234 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
7235 aros_kernel_ldflags=""
7236 aros_default_wbwidth=640
7237 aros_default_wbheight=480
7238 gcc_target_cpu="x86_64"
7241 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
7242 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
7243 { (exit 1); exit 1; }; }
7245 esac
7248 prep)
7249 aros_target_arch="prep"
7250 aros_shared_default="no"
7251 aros_target_cpu="ppc"
7252 aros_object_format="elf32ppc"
7253 aros_flavour="ppcnative"
7254 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7255 aros_kernel_ldflags=""
7256 aros_default_wbwidth=640
7257 aros_default_wbheight=480
7258 gcc_target_cpu="ppc"
7259 case "$target_cpu" in
7260 *cross*)
7261 aros_target_cc="ppc-linux-gcc -pipe"
7262 aros_target_ld="ppc-linux-ld"
7263 aros_target_as="ppc-linux-as"
7264 aros_target_ar="ppc-linux-ar"
7265 aros_target_ranlib="ppc-linux-ranlib"
7266 aros_target_nm="ppc-linux-nm"
7267 aros_target_strip="ppc-linux-strip"
7268 aros_target_objcopy="ppc-linux-objcopy"
7269 aros_target_objdump="ppc-linux-objdump"
7270 aros_shared_ld="ppc-linux-ld"
7271 aros_kernel_ld="ppc-linux-ld"
7275 esac
7278 freebsd*)
7279 aros_target_arch="freebsd"
7280 aros_target_cpu="i386"
7281 aros_flavour="emulation"
7282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7283 gcc_target_cpu="i386"
7285 aros_target_strip_flags="-x"
7288 darwin*)
7289 aros_target_arch="darwin"
7290 aros_target_cpu="i386"
7291 aros_flavour="emulation"
7292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7293 gcc_target_cpu="i386"
7295 aros_target_strip_flags="-x"
7298 netbsd*)
7299 aros_target_arch="netbsd"
7300 case "$target_cpu" in
7301 *m68k*)
7302 aros_target_cpu="m68k"
7303 aros_object_format="m68kelf"
7304 aros_flavour="emulcompat"
7305 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7306 gcc_target_cpu="mc68000"
7308 *i?86*)
7309 aros_target_cpu="i386"
7310 aros_object_format="elf_i386"
7311 aros_flavour="emulation"
7312 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7313 aros_default_wbdepth=8
7314 gcc_target_cpu="i386"
7317 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
7318 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
7319 { (exit 1); exit 1; }; }
7321 esac
7322 aros_target_genmap="-Wl,-M -Xlinker >"
7323 aros_flavour="emulation"
7324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7327 openbsd*)
7328 aros_target_arch="openbsd"
7329 case "$target_cpu" in
7330 *i?86*)
7331 aros_target_cpu="i386"
7332 aros_object_format="elf_i386"
7333 aros_flavour="emulation"
7334 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7335 gcc_target_cpu="i386"
7338 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
7339 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
7340 { (exit 1); exit 1; }; }
7342 esac
7343 aros_target_genmap="-Wl,-M -Xlinker >"
7344 aros_target_nm_flags="-u"
7345 aros_flavour="emulation"
7348 solaris*)
7349 aros_target_arch="solaris"
7350 case "$target_cpu" in
7351 *sparc*)
7352 aros_target_cpu="sparc"
7353 aros_object_format="elf_sparc"
7354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7355 gcc_target_cpu="sparc"
7358 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
7359 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
7360 { (exit 1); exit 1; }; }
7362 esac
7363 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7364 aros_flavour="emulation"
7367 morphos*)
7368 aros_target_arch="morphos"
7369 aros_shared_default="no"
7370 aros_target_cpu="ppc"
7371 aros_object_format="elf_ppc"
7372 aros_flavour="nativecompat"
7373 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7374 gcc_target_cpu="ppc"
7377 amiga*)
7378 aros_target_arch="amiga"
7379 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7380 aros_shared_default="no"
7382 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
7384 case "$target_cpu" in
7385 *m68k*)
7386 aros_target_cpu="m68k"
7387 aros_object_format="m68kelf"
7388 aros_flavour="nativecompat"
7389 gcc_target_cpu="mc68000"
7391 *ppc*)
7392 aros_cpu="ppc"
7393 aros_flavour="native"
7394 gcc_target_cpu="ppc"
7397 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
7398 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
7399 { (exit 1); exit 1; }; }
7401 esac
7404 cygwin*)
7405 aros_target_arch="cygwin"
7406 aros_shared_default="no"
7407 case "$target_cpu" in
7408 *i?86*)
7409 aros_target_cpu="i386"
7410 aros_object_format="elf_i386"
7411 aros_flavour="emulation"
7412 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
7413 aros_shared_cflags=""
7414 aros_default_wbdepth=8
7415 gcc_target_cpu="i386"
7418 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
7419 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
7420 { (exit 1); exit 1; }; }
7422 esac
7424 pp*)
7425 aros_target_arch="pp"
7426 aros_shared_default="no"
7427 case "$target_cpu" in
7428 *m68k*)
7429 aros_target_cpu="m68k"
7430 aros_object_format="m68kelf"
7431 aros_flavour="palmnative"
7432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7433 aros_kernel_ldflags=""
7434 aros_default_wbwidth=160
7435 aros_default_wbheight=160
7436 aros_default_wbdepth=1
7437 aros_target_cc="m68k-elf-gcc -pipe"
7438 aros_target_ld="$(which m68k-elf-ld)"
7439 aros_target_as="m68k-elf-gcc -pipe"
7440 aros_shared_ld="m68k-elf-gcc"
7441 aros_kernel_ld="m68k-elf-gcc"
7442 aros_target_ar="m68k-elf-ar"
7443 aros_target_ar_flags="cru"
7444 aros_target_ranlib="m68k-elf-ranlib"
7445 aros_target_nm="m68k-elf-nm"
7446 aros_target_objcopy="m68k-elf-objcopy"
7447 aros_target_objdump="m68k-elf-objdump"
7448 aros_compiler_libs="-lgcc1"
7449 aros_shared_default=no
7450 aros_shared_cflags="-fpic"
7451 aros_shared_aflags=""
7452 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7453 aros_kernel_ldflags="-Wl,-rpath,./lib"
7454 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7455 aros_debug_aflags=""
7456 aros_debug_ldflags="$aros_symbols_debug"
7457 aros_mungwall_debug="0"
7458 aros_modules_debug="0"
7459 gcc_target_cpu="mc68000"
7460 ignore_undefined_symbols="-ius"
7463 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
7464 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
7465 { (exit 1); exit 1; }; }
7467 esac
7470 mac*)
7471 aros_target_arch="mac"
7472 aros_shared_default="no"
7473 case "$target_cpu" in
7474 *m68k*)
7475 aros_target_cpu="m68k"
7476 aros_object_format="m68kelf"
7477 aros_flavour="mac68knative"
7478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7479 aros_default_wbwidth=512
7480 aros_default_wbheight=384
7481 aros_default_wbdepth=8
7482 aros_target_cc="m68k-elf-gcc -pipe"
7483 aros_target_ld="$(which m68k-elf-ld)"
7484 aros_target_as="m68k-elf-gcc -pipe"
7485 aros_shared_ld="m68k-elf-gcc"
7486 aros_kernel_ld="m68k-elf-gcc"
7487 aros_target_ar="m68k-elf-ar"
7488 aros_target_ar_flags="cru"
7489 aros_target_ranlib="m68k-elf-ranlib"
7490 aros_target_nm="m68k-elf-nm"
7491 aros_target_objcopy="m68k-elf-objcopy"
7492 aros_target_objdump="m68k-elf-objdump"
7493 aros_compiler_libs="-lgcc1"
7494 aros_shared_default=no
7495 aros_shared_cflags="-fpic"
7496 aros_shared_aflags=""
7497 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7498 aros_kernel_ldflags="-Wl,-rpath,./lib"
7499 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7500 aros_debug_aflags=""
7501 aros_debug_ldflags="$aros_symbols_debug"
7502 aros_mungwall_debug="0"
7503 aros_modules_debug="0"
7504 gcc_target_cpu="mc68000"
7505 ignore_undefined_symbols="-ius"
7508 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
7509 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
7510 { (exit 1); exit 1; }; }
7512 esac
7516 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
7517 echo "$as_me: error: Unsupported target architecture $target" >&2;}
7518 { (exit 1); exit 1; }; }
7520 esac
7523 # Find out if we are cross-compiling (ie. if we can't use the host compiler
7524 # for target code)
7525 cross_compiling=no
7526 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7527 cross_compiling=yes
7529 if test "$aros_host_arch" == "darwin" ; then
7530 cross_compiling=yes
7533 # Set prefix for target compiler etc. if we're cross-compiling
7534 # (should possibly be earlier but needs to be after AC_PROG_CC)
7535 if test "$cross_compiling" = "yes" ; then
7536 target_tool_prefix=${target_cpu}-elf-
7537 CC=${target_tool_prefix}gcc
7540 # Find all the tools we need to compile. This could be cross-compiling
7541 # though! If that is the case we use the GNU form of the target and
7542 # simply add this to the front of the binary name. This is rather simple,
7543 # but it should work under most circumstances.
7545 # The default tools are to use the same as the host, but only if the
7546 # host and target CPU are the same. With GCC this is normally enough.
7549 aros_cc_pre=""
7550 aros_shared_ld="$aros_host_ld"
7552 aros_target_mkdep="$aros_host_mkdep"
7553 aros_target_incl_def="$aros_host_incl"
7555 # Extract the first word of "$CC", so it can be a program name with args.
7556 set dummy $CC; ac_word=$2
7557 echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 case $aros_kernel_cc in
7563 [\\/]* | ?:[\\/]*)
7564 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7582 esac
7584 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
7586 if test -n "$aros_kernel_cc"; then
7587 echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
7588 echo "${ECHO_T}$aros_kernel_cc" >&6
7589 else
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7595 # The default tools executables to be linked to.
7597 if test "$cross_compiling" = "yes" ; then
7598 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7599 set dummy ${target_tool_prefix}as; ac_word=$2
7600 echo "$as_me:$LINENO: checking for $ac_word" >&5
7601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7602 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 case $aros_target_as_ln in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7625 esac
7627 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7629 if test -n "$aros_target_as_ln"; then
7630 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7631 echo "${ECHO_T}$aros_target_as_ln" >&6
7632 else
7633 echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6
7637 else
7638 if test "$GCC" = "yes"; then
7639 aros_gcc_as=`$CC -print-prog-name=as`
7640 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7641 set dummy `basename $aros_gcc_as`; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 case $aros_target_as_ln in
7648 [\\/]* | ?:[\\/]*)
7649 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in `dirname $aros_gcc_as`
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7663 done
7664 done
7667 esac
7669 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7671 if test -n "$aros_target_as_ln"; then
7672 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7673 echo "${ECHO_T}$aros_target_as_ln" >&6
7674 else
7675 echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6
7680 if test "$aros_target_as_ln" = ""; then
7681 # Extract the first word of "as", so it can be a program name with args.
7682 set dummy as; ac_word=$2
7683 echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 case $aros_target_as_ln in
7689 [\\/]* | ?:[\\/]*)
7690 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7708 esac
7710 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7712 if test -n "$aros_target_as_ln"; then
7713 echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
7714 echo "${ECHO_T}$aros_target_as_ln" >&6
7715 else
7716 echo "$as_me:$LINENO: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7723 if test "$aros_target_as_ln" = ""; then
7724 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
7725 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
7726 { (exit 1); exit 1; }; }
7729 if test "$cross_compiling" = "yes" ; then
7730 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
7731 set dummy ${target_tool_prefix}ld; ac_word=$2
7732 echo "$as_me:$LINENO: checking for $ac_word" >&5
7733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737 case $aros_kernel_ld in
7738 [\\/]* | ?:[\\/]*)
7739 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7753 done
7754 done
7757 esac
7759 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7761 if test -n "$aros_kernel_ld"; then
7762 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7763 echo "${ECHO_T}$aros_kernel_ld" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7769 else
7770 if test "$GCC" = "yes"; then
7771 aros_gcc_ld=`$CC -print-prog-name=ld`
7772 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
7773 set dummy `basename $aros_gcc_ld`; ac_word=$2
7774 echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7776 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 case $aros_kernel_ld in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in `dirname $aros_gcc_ld`
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7799 esac
7801 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7803 if test -n "$aros_kernel_ld"; then
7804 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7805 echo "${ECHO_T}$aros_kernel_ld" >&6
7806 else
7807 echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6
7812 if test "$aros_kernel_ld" = ""; then
7813 # Extract the first word of "ld", so it can be a program name with args.
7814 set dummy ld; ac_word=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820 case $aros_kernel_ld in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 for as_dir in $PATH
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7836 done
7837 done
7840 esac
7842 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
7844 if test -n "$aros_kernel_ld"; then
7845 echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
7846 echo "${ECHO_T}$aros_kernel_ld" >&6
7847 else
7848 echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6
7855 if test "$aros_kernel_ld" = ""; then
7856 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
7857 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
7858 { (exit 1); exit 1; }; }
7861 if test "$cross_compiling" = "yes" ; then
7862 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
7863 set dummy ${target_tool_prefix}ar; ac_word=$2
7864 echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7866 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 else
7869 case $aros_target_ar_ln in
7870 [\\/]* | ?:[\\/]*)
7871 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7889 esac
7891 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7893 if test -n "$aros_target_ar_ln"; then
7894 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
7895 echo "${ECHO_T}$aros_target_ar_ln" >&6
7896 else
7897 echo "$as_me:$LINENO: result: no" >&5
7898 echo "${ECHO_T}no" >&6
7901 else
7902 if test "$GCC" = "yes"; then
7903 aros_gcc_ar=`$CC -print-prog-name=ar`
7904 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
7905 set dummy `basename $aros_gcc_ar`; ac_word=$2
7906 echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7908 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 case $aros_target_ar_ln in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in `dirname $aros_gcc_ar`
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7931 esac
7933 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7935 if test -n "$aros_target_ar_ln"; then
7936 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
7937 echo "${ECHO_T}$aros_target_ar_ln" >&6
7938 else
7939 echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6
7944 if test "$aros_target_ar_ln" = ""; then
7945 # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952 case $aros_target_ar_ln in
7953 [\\/]* | ?:[\\/]*)
7954 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7968 done
7969 done
7972 esac
7974 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
7976 if test -n "$aros_target_ar_ln"; then
7977 echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
7978 echo "${ECHO_T}$aros_target_ar_ln" >&6
7979 else
7980 echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6
7987 if test "$aros_target_ar_ln" = ""; then
7988 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
7989 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
7990 { (exit 1); exit 1; }; }
7993 if test "$cross_compiling" = "yes" ; then
7994 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
7995 set dummy ${target_tool_prefix}nm; ac_word=$2
7996 echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 case $aros_target_nm_ln in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8017 done
8018 done
8021 esac
8023 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8025 if test -n "$aros_target_nm_ln"; then
8026 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8027 echo "${ECHO_T}$aros_target_nm_ln" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8033 else
8034 if test "$GCC" = "yes"; then
8035 aros_gcc_nm=`$CC -print-prog-name=nm`
8036 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8037 set dummy `basename $aros_gcc_nm`; ac_word=$2
8038 echo "$as_me:$LINENO: checking for $ac_word" >&5
8039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 case $aros_target_nm_ln in
8044 [\\/]* | ?:[\\/]*)
8045 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in `dirname $aros_gcc_nm`
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 for ac_exec_ext in '' $ac_executable_extensions; do
8054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8055 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 break 2
8059 done
8060 done
8063 esac
8065 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8067 if test -n "$aros_target_nm_ln"; then
8068 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8069 echo "${ECHO_T}$aros_target_nm_ln" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6
8076 if test "$aros_target_nm_ln" = ""; then
8077 # Extract the first word of "nm", so it can be a program name with args.
8078 set dummy nm; ac_word=$2
8079 echo "$as_me:$LINENO: checking for $ac_word" >&5
8080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8081 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 else
8084 case $aros_target_nm_ln in
8085 [\\/]* | ?:[\\/]*)
8086 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8096 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8104 esac
8106 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8108 if test -n "$aros_target_nm_ln"; then
8109 echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8110 echo "${ECHO_T}$aros_target_nm_ln" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113 echo "${ECHO_T}no" >&6
8119 if test "$aros_target_nm_ln" = ""; then
8120 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
8121 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
8122 { (exit 1); exit 1; }; }
8125 if test "$cross_compiling" = "yes" ; then
8126 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8127 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8128 echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8130 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133 case $aros_target_objcopy_ln in
8134 [\\/]* | ?:[\\/]*)
8135 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8153 esac
8155 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8157 if test -n "$aros_target_objcopy_ln"; then
8158 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8159 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8160 else
8161 echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8165 else
8166 if test "$GCC" = "yes"; then
8167 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8168 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8169 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8170 echo "$as_me:$LINENO: checking for $ac_word" >&5
8171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8172 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 case $aros_target_objcopy_ln in
8176 [\\/]* | ?:[\\/]*)
8177 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in `dirname $aros_gcc_objcopy`
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8195 esac
8197 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8199 if test -n "$aros_target_objcopy_ln"; then
8200 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8201 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204 echo "${ECHO_T}no" >&6
8208 if test "$aros_target_objcopy_ln" = ""; then
8209 # Extract the first word of "objcopy", so it can be a program name with args.
8210 set dummy objcopy; ac_word=$2
8211 echo "$as_me:$LINENO: checking for $ac_word" >&5
8212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8213 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216 case $aros_target_objcopy_ln in
8217 [\\/]* | ?:[\\/]*)
8218 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8236 esac
8238 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8240 if test -n "$aros_target_objcopy_ln"; then
8241 echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
8242 echo "${ECHO_T}$aros_target_objcopy_ln" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245 echo "${ECHO_T}no" >&6
8251 if test "$aros_target_objcopy_ln" = ""; then
8252 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
8253 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
8254 { (exit 1); exit 1; }; }
8257 if test "$cross_compiling" = "yes" ; then
8258 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8259 set dummy ${target_tool_prefix}objdump; ac_word=$2
8260 echo "$as_me:$LINENO: checking for $ac_word" >&5
8261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8262 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265 case $aros_target_objdump_ln in
8266 [\\/]* | ?:[\\/]*)
8267 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8281 done
8282 done
8285 esac
8287 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8289 if test -n "$aros_target_objdump_ln"; then
8290 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8291 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8292 else
8293 echo "$as_me:$LINENO: result: no" >&5
8294 echo "${ECHO_T}no" >&6
8297 else
8298 if test "$GCC" = "yes"; then
8299 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8300 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8301 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8302 echo "$as_me:$LINENO: checking for $ac_word" >&5
8303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8304 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 case $aros_target_objdump_ln in
8308 [\\/]* | ?:[\\/]*)
8309 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in `dirname $aros_gcc_objdump`
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8327 esac
8329 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8331 if test -n "$aros_target_objdump_ln"; then
8332 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8333 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8334 else
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8340 if test "$aros_target_objdump_ln" = ""; then
8341 # Extract the first word of "objdump", so it can be a program name with args.
8342 set dummy objdump; ac_word=$2
8343 echo "$as_me:$LINENO: checking for $ac_word" >&5
8344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8345 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348 case $aros_target_objdump_ln in
8349 [\\/]* | ?:[\\/]*)
8350 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8360 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8364 done
8365 done
8368 esac
8370 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8372 if test -n "$aros_target_objdump_ln"; then
8373 echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
8374 echo "${ECHO_T}$aros_target_objdump_ln" >&6
8375 else
8376 echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8383 if test "$aros_target_objdump_ln" = ""; then
8384 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
8385 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
8386 { (exit 1); exit 1; }; }
8389 if test "$cross_compiling" = "yes" ; then
8390 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8391 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8392 echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8394 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397 case $aros_target_ranlib_ln in
8398 [\\/]* | ?:[\\/]*)
8399 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8417 esac
8419 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8421 if test -n "$aros_target_ranlib_ln"; then
8422 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8423 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8429 else
8430 if test "$GCC" = "yes"; then
8431 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8432 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8433 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8434 echo "$as_me:$LINENO: checking for $ac_word" >&5
8435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8436 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 case $aros_target_ranlib_ln in
8440 [\\/]* | ?:[\\/]*)
8441 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in `dirname $aros_gcc_ranlib`
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8451 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8455 done
8456 done
8459 esac
8461 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8463 if test -n "$aros_target_ranlib_ln"; then
8464 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8465 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8466 else
8467 echo "$as_me:$LINENO: result: no" >&5
8468 echo "${ECHO_T}no" >&6
8472 if test "$aros_target_ranlib_ln" = ""; then
8473 # Extract the first word of "ranlib", so it can be a program name with args.
8474 set dummy ranlib; ac_word=$2
8475 echo "$as_me:$LINENO: checking for $ac_word" >&5
8476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8477 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 case $aros_target_ranlib_ln in
8481 [\\/]* | ?:[\\/]*)
8482 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8496 done
8497 done
8500 esac
8502 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8504 if test -n "$aros_target_ranlib_ln"; then
8505 echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
8506 echo "${ECHO_T}$aros_target_ranlib_ln" >&6
8507 else
8508 echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6
8515 if test "$aros_target_ranlib_ln" = ""; then
8516 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
8517 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
8518 { (exit 1); exit 1; }; }
8521 if test "$cross_compiling" = "yes" ; then
8522 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
8523 set dummy ${target_tool_prefix}strip; ac_word=$2
8524 echo "$as_me:$LINENO: checking for $ac_word" >&5
8525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8526 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 else
8529 case $aros_target_strip_ln in
8530 [\\/]* | ?:[\\/]*)
8531 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8549 esac
8551 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8553 if test -n "$aros_target_strip_ln"; then
8554 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8555 echo "${ECHO_T}$aros_target_strip_ln" >&6
8556 else
8557 echo "$as_me:$LINENO: result: no" >&5
8558 echo "${ECHO_T}no" >&6
8561 else
8562 if test "$GCC" = "yes"; then
8563 aros_gcc_strip=`$CC -print-prog-name=strip`
8564 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
8565 set dummy `basename $aros_gcc_strip`; ac_word=$2
8566 echo "$as_me:$LINENO: checking for $ac_word" >&5
8567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8568 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571 case $aros_target_strip_ln in
8572 [\\/]* | ?:[\\/]*)
8573 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577 for as_dir in `dirname $aros_gcc_strip`
8579 IFS=$as_save_IFS
8580 test -z "$as_dir" && as_dir=.
8581 for ac_exec_ext in '' $ac_executable_extensions; do
8582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8583 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8585 break 2
8587 done
8588 done
8591 esac
8593 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8595 if test -n "$aros_target_strip_ln"; then
8596 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8597 echo "${ECHO_T}$aros_target_strip_ln" >&6
8598 else
8599 echo "$as_me:$LINENO: result: no" >&5
8600 echo "${ECHO_T}no" >&6
8604 if test "$aros_target_strip_ln" = ""; then
8605 # Extract the first word of "strip", so it can be a program name with args.
8606 set dummy strip; ac_word=$2
8607 echo "$as_me:$LINENO: checking for $ac_word" >&5
8608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8609 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 else
8612 case $aros_target_strip_ln in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
8625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8628 done
8629 done
8632 esac
8634 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
8636 if test -n "$aros_target_strip_ln"; then
8637 echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
8638 echo "${ECHO_T}$aros_target_strip_ln" >&6
8639 else
8640 echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6
8647 if test "$aros_target_strip_ln" = ""; then
8648 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
8649 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
8650 { (exit 1); exit 1; }; }
8653 if test "$GCC" = "yes"; then
8654 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
8657 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
8658 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
8659 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
8660 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
8661 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
8662 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
8663 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
8665 # aros_cc_pre is a variable that is added to the front of the compiler name
8666 # in the generated aros-gcc shell script. We need this to enable the cache
8667 # to work across cleaned builds. Also, support DISTCC using the correct
8668 # environment variable.
8671 if test "x${DISTCC}" != "x" ; then
8672 if test "x${CCACHE}" != "x" ; then
8673 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
8674 else
8675 aros_cc_pre="${DISTCC} "
8677 else
8678 if test "x${CCACHE}" != "x" ; then
8679 aros_cc_pre="${CCACHE} "
8683 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
8685 aros_target_nostdinc_cflags=-nostdinc
8687 aros_target_nostartup_ldflags=-nostartfiles
8689 aros_target_nix_ldflags=-nix
8691 aros_target_detach_ldflags=-detach
8693 aros_target_nostdlib_ldflags=-nostdlib
8696 # Target tools
8697 aros_target_cc="${prefix}-gcc"
8698 aros_target_as="${prefix}-as"
8699 aros_target_ld="${prefix}-ld"
8700 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
8701 aros_target_objcopy=${prefix}-objcopy
8702 aros_target_objdump=${prefix}-objdump
8703 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
8704 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
8705 aros_kernel_nm="${prefix}-nm"
8706 aros_target_strip=${prefix}-strip
8709 # Find the system include path. We can suggest that an alternative is
8710 # used if we don't get it correct. The default is to use /usr/include.
8711 # Which is set in the aros_target_incl_def variable.
8713 # Check whether --enable-includes or --disable-includes was given.
8714 if test "${enable_includes+set}" = set; then
8715 enableval="$enable_includes"
8716 aros_target_incl=$enable_includes
8717 else
8718 aros_target_incl=$aros_target_incl_def
8721 echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
8722 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6
8723 if test "$aros_target_cc_includes" = "" ; then
8724 #try to guess where the directory is
8725 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
8726 if ! test -d $aros_target_cc_includes; then
8727 #the directory doesn't exist, we need to do some more work
8728 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
8730 #these are the headers we're looling for
8731 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
8732 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
8733 zutil.h"
8735 dirs=
8736 for h in $headers; do
8737 #which other headers each of the above headers needs?
8738 deps=$(echo "#include <$h>" | \
8739 $aros_host_cc -E -M - 2>/dev/null | \
8740 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
8742 #copy all the needed headers to a directory beneath gendir
8743 for d in $deps; do
8744 h=$(basename $d)
8745 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
8746 sed -n "s,^.*/include\(/.*\),\1,p")
8747 ! test -d $dir && mkdir -p $dir
8748 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
8749 done
8750 done
8753 echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
8754 echo "${ECHO_T}$aros_target_cc_includes" >&6
8756 echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
8757 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6
8759 # Check whether --with-resolution or --without-resolution was given.
8760 if test "${with_resolution+set}" = set; then
8761 withval="$with_resolution"
8762 resolution=$withval
8763 else
8764 resolution=none
8766 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
8767 if test "$resolution" = "yes" ; then
8768 resolution="none"
8770 if test "$resolution" = "no" ; then
8771 resolution="none"
8773 if test "$resolution" != "none" ; then
8774 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
8775 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
8776 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
8778 echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
8779 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6
8780 aros_cv_default_wbwidth=$aros_default_wbwidth
8781 aros_cv_default_wbheight=$aros_default_wbheight
8782 aros_cv_default_wbdepth=$aros_default_wbdepth
8784 echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
8785 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6
8786 # Check whether --enable-bochs_hack or --disable-bochs_hack was given.
8787 if test "${enable_bochs_hack+set}" = set; then
8788 enableval="$enable_bochs_hack"
8789 bochs_hack="yes"
8790 else
8791 bochs_hack="no"
8793 if test "$bochs_hack" = "yes" ; then
8794 aros_bochs_hack="1"
8796 echo "$as_me:$LINENO: result: $bochs_hack" >&5
8797 echo "${ECHO_T}$bochs_hack" >&6
8799 echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
8800 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6
8802 # Check whether --with-serial-debug or --without-serial-debug was given.
8803 if test "${with_serial_debug+set}" = set; then
8804 withval="$with_serial_debug"
8805 serial_debug=$withval
8806 else
8807 serial_debug=none
8809 if test "$serial_debug" = "yes" ; then
8810 serial_debug="2"
8812 if test "$serial_debug" = "no" ; then
8813 serial_debug="none"
8815 if test "$serial_debug" != "none" ; then
8816 aros_serial_debug=$serial_debug
8817 echo "$as_me:$LINENO: result: on port $serial_debug" >&5
8818 echo "${ECHO_T}on port $serial_debug" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821 echo "${ECHO_T}no" >&6
8824 echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
8825 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6
8826 # Check whether --enable-palm_debug_hack or --disable-palm_debug_hack was given.
8827 if test "${enable_palm_debug_hack+set}" = set; then
8828 enableval="$enable_palm_debug_hack"
8829 palm_debug_hack="yes"
8830 else
8831 palm_debug_hack="no"
8833 if test "$palm_debug_hack" = "yes" ; then
8834 aros_palm_debug_hack="1"
8836 echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
8837 echo "${ECHO_T}$palm_debug_hack" >&6
8840 echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
8841 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6
8842 # Check whether --enable-nesting_supervisor or --disable-nesting_supervisor was given.
8843 if test "${enable_nesting_supervisor+set}" = set; then
8844 enableval="$enable_nesting_supervisor"
8845 nesting_supervisor="yes"
8846 else
8847 nesting_supervisor="no"
8849 if test "$nesting_supervisor" = "yes" ; then
8850 aros_nesting_supervisor="1"
8852 echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
8853 echo "${ECHO_T}$nesting_supervisor" >&6
8856 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
8858 echo "$as_me:$LINENO: checking for dlopen" >&5
8859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8860 if test "${ac_cv_func_dlopen+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871 #define dlopen innocuous_dlopen
8873 /* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char dlopen (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8878 #ifdef __STDC__
8879 # include <limits.h>
8880 #else
8881 # include <assert.h>
8882 #endif
8884 #undef dlopen
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 #ifdef __cplusplus
8888 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893 char dlopen ();
8894 /* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8898 choke me
8899 #else
8900 char (*f) () = dlopen;
8901 #endif
8902 #ifdef __cplusplus
8904 #endif
8907 main ()
8909 return f != dlopen;
8911 return 0;
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 ac_cv_func_dlopen=yes
8937 else
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_cv_func_dlopen=no
8943 rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8948 if test $ac_cv_func_dlopen = yes; then
8949 have_dl="yes"
8950 else
8951 have_dl="no"
8954 if test "x-$have_dl" = "x-no" ; then
8955 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8956 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960 ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-ldl $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 /* Override any gcc2 internal prototype to avoid an error. */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975 char dlopen ();
8977 main ()
8979 dlopen ();
8981 return 0;
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986 (eval $ac_link) 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } &&
8993 { ac_try='test -z "$ac_c_werror_flag"
8994 || test ! -s conftest.err'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_dl_dlopen=yes
9007 else
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_lib_dl_dlopen=no
9013 rm -f conftest.err conftest.$ac_objext \
9014 conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9019 if test $ac_cv_lib_dl_dlopen = yes; then
9020 have_dl="yes"
9021 aros_host_ldflags="$aros_host_ldflags -ldl"
9022 else
9023 have_dl="no"
9027 if test "x-$have_dl" = "x-no" ; then
9028 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
9029 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
9030 { (exit 1); exit 1; }; }
9034 # Check whether --enable-x11_hidd or --disable-x11_hidd was given.
9035 if test "${enable_x11_hidd+set}" = set; then
9036 enableval="$enable_x11_hidd"
9037 x11_hidd="$enableval"
9038 else
9039 x11_hidd="auto"
9041 case "x-$x11_hidd" in
9042 x-yes|x-no|x-auto) ;;
9043 *) x11_hidd="auto" ;;
9044 esac
9046 if test "x-$x11_hidd" != "x-no" ; then
9048 echo "$as_me:$LINENO: checking for X" >&5
9049 echo $ECHO_N "checking for X... $ECHO_C" >&6
9052 # Check whether --with-x or --without-x was given.
9053 if test "${with_x+set}" = set; then
9054 withval="$with_x"
9057 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9058 if test "x$with_x" = xno; then
9059 # The user explicitly disabled X.
9060 have_x=disabled
9061 else
9062 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9063 # Both variables are already set.
9064 have_x=yes
9065 else
9066 if test "${ac_cv_have_x+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 # One or both of the vars are not set, and there is no cached value.
9070 ac_x_includes=no ac_x_libraries=no
9071 rm -fr conftest.dir
9072 if mkdir conftest.dir; then
9073 cd conftest.dir
9074 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9075 cat >Imakefile <<'_ACEOF'
9076 acfindx:
9077 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9078 _ACEOF
9079 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9081 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9082 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9083 for ac_extension in a so sl; do
9084 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9085 test -f $ac_im_libdir/libX11.$ac_extension; then
9086 ac_im_usrlibdir=$ac_im_libdir; break
9088 done
9089 # Screen out bogus values from the imake configuration. They are
9090 # bogus both because they are the default anyway, and because
9091 # using them would break gcc on systems where it needs fixed includes.
9092 case $ac_im_incroot in
9093 /usr/include) ;;
9094 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9095 esac
9096 case $ac_im_usrlibdir in
9097 /usr/lib | /lib) ;;
9098 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9099 esac
9101 cd ..
9102 rm -fr conftest.dir
9105 # Standard set of common directories for X headers.
9106 # Check X11 before X11Rn because it is often a symlink to the current release.
9107 ac_x_header_dirs='
9108 /usr/X11/include
9109 /usr/X11R6/include
9110 /usr/X11R5/include
9111 /usr/X11R4/include
9113 /usr/include/X11
9114 /usr/include/X11R6
9115 /usr/include/X11R5
9116 /usr/include/X11R4
9118 /usr/local/X11/include
9119 /usr/local/X11R6/include
9120 /usr/local/X11R5/include
9121 /usr/local/X11R4/include
9123 /usr/local/include/X11
9124 /usr/local/include/X11R6
9125 /usr/local/include/X11R5
9126 /usr/local/include/X11R4
9128 /usr/X386/include
9129 /usr/x386/include
9130 /usr/XFree86/include/X11
9132 /usr/include
9133 /usr/local/include
9134 /usr/unsupported/include
9135 /usr/athena/include
9136 /usr/local/x11r5/include
9137 /usr/lpp/Xamples/include
9139 /usr/openwin/include
9140 /usr/openwin/share/include'
9142 if test "$ac_x_includes" = no; then
9143 # Guess where to find include files, by looking for Intrinsic.h.
9144 # First, try using that file with no special directory specified.
9145 cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h. */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 #include <X11/Intrinsic.h>
9152 _ACEOF
9153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null; then
9161 if test -s conftest.err; then
9162 ac_cpp_err=$ac_c_preproc_warn_flag
9163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9164 else
9165 ac_cpp_err=
9167 else
9168 ac_cpp_err=yes
9170 if test -z "$ac_cpp_err"; then
9171 # We can compile using X headers with no special include directory.
9172 ac_x_includes=
9173 else
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 for ac_dir in $ac_x_header_dirs; do
9178 if test -r "$ac_dir/X11/Intrinsic.h"; then
9179 ac_x_includes=$ac_dir
9180 break
9182 done
9184 rm -f conftest.err conftest.$ac_ext
9185 fi # $ac_x_includes = no
9187 if test "$ac_x_libraries" = no; then
9188 # Check for the libraries.
9189 # See if we find them without any special options.
9190 # Don't add to $LIBS permanently.
9191 ac_save_LIBS=$LIBS
9192 LIBS="-lXt $LIBS"
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <X11/Intrinsic.h>
9201 main ()
9203 XtMalloc (0)
9205 return 0;
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 LIBS=$ac_save_LIBS
9231 # We can link X programs with no special library path.
9232 ac_x_libraries=
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 LIBS=$ac_save_LIBS
9238 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9240 # Don't even attempt the hair of trying to link an X program!
9241 for ac_extension in a so sl; do
9242 if test -r $ac_dir/libXt.$ac_extension; then
9243 ac_x_libraries=$ac_dir
9244 break 2
9246 done
9247 done
9249 rm -f conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 fi # $ac_x_libraries = no
9253 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9254 # Didn't find X anywhere. Cache the known absence of X.
9255 ac_cv_have_x="have_x=no"
9256 else
9257 # Record where we found X for the cache.
9258 ac_cv_have_x="have_x=yes \
9259 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9264 eval "$ac_cv_have_x"
9265 fi # $with_x != no
9267 if test "$have_x" != yes; then
9268 echo "$as_me:$LINENO: result: $have_x" >&5
9269 echo "${ECHO_T}$have_x" >&6
9270 no_x=yes
9271 else
9272 # If each of the values was on the command line, it overrides each guess.
9273 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9274 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9275 # Update the cache value to reflect the command line values.
9276 ac_cv_have_x="have_x=yes \
9277 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9278 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9279 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9283 if test "x-$no_x" = "x-yes" ; then
9285 if test "x-$x11_hidd" != "x-auto" ; then
9286 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
9287 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
9288 { (exit 1); exit 1; }; }
9291 else
9292 x11_hidd_target=kernel-x11gfx
9295 # Check whether --enable-x11_shm or --disable-x11_shm was given.
9296 if test "${enable_x11_shm+set}" = set; then
9297 enableval="$enable_x11_shm"
9298 x11_hidd_shm="$enableval"
9299 else
9300 x11_hidd_shm="auto"
9302 case "x-$x11_hidd_shm" in
9303 x-yes|x-no|x-auto) ;;
9304 *) x11_hidd_shm="auto" ;;
9305 esac
9307 have_xshm=no
9309 if test "x-$x11_hidd_shm" != "x-no" ; then
9312 for ac_header in sys/ipc.h
9314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316 echo "$as_me:$LINENO: checking for $ac_header" >&5
9317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9323 else
9324 # Is the header compilable?
9325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333 $ac_includes_default
9334 #include <$ac_header>
9335 _ACEOF
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338 (eval $ac_compile) 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest.$ac_objext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 ac_header_compiler=yes
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 ac_header_compiler=no
9365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6
9369 # Is the header present?
9370 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <$ac_header>
9379 _ACEOF
9380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null; then
9388 if test -s conftest.err; then
9389 ac_cpp_err=$ac_c_preproc_warn_flag
9390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9391 else
9392 ac_cpp_err=
9394 else
9395 ac_cpp_err=yes
9397 if test -z "$ac_cpp_err"; then
9398 ac_header_preproc=yes
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_header_preproc=no
9405 rm -f conftest.err conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9407 echo "${ECHO_T}$ac_header_preproc" >&6
9409 # So? What about this header?
9410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9411 yes:no: )
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9416 ac_header_preproc=yes
9418 no:yes:* )
9419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9432 cat <<\_ASBOX
9433 ## ------------------------------------------ ##
9434 ## Report this to the AC_PACKAGE_NAME lists. ##
9435 ## ------------------------------------------ ##
9436 _ASBOX
9438 sed "s/^/$as_me: WARNING: /" >&2
9440 esac
9441 echo "$as_me:$LINENO: checking for $ac_header" >&5
9442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 else
9446 eval "$as_ac_Header=\$ac_header_preproc"
9448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9453 cat >>confdefs.h <<_ACEOF
9454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9455 _ACEOF
9459 done
9462 for ac_header in sys/shm.h
9464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473 else
9474 # Is the header compilable?
9475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 #include <$ac_header>
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9513 ac_header_compiler=no
9515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517 echo "${ECHO_T}$ac_header_compiler" >&6
9519 # Is the header present?
9520 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 #include <$ac_header>
9529 _ACEOF
9530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 else
9542 ac_cpp_err=
9544 else
9545 ac_cpp_err=yes
9547 if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_header_preproc=no
9555 rm -f conftest.err conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557 echo "${ECHO_T}$ac_header_preproc" >&6
9559 # So? What about this header?
9560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9561 yes:no: )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9568 no:yes:* )
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9582 cat <<\_ASBOX
9583 ## ------------------------------------------ ##
9584 ## Report this to the AC_PACKAGE_NAME lists. ##
9585 ## ------------------------------------------ ##
9586 _ASBOX
9588 sed "s/^/$as_me: WARNING: /" >&2
9590 esac
9591 echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605 _ACEOF
9609 done
9612 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
9614 save_libs="$LIBS"
9615 save_cflags="$CFLAGS"
9616 LIBS="$x_libraries"
9617 CFLAGS="$x_includes"
9618 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9619 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
9620 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 else
9623 ac_check_lib_save_LIBS=$LIBS
9624 LIBS="-lXext $LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638 char XShmQueryExtension ();
9640 main ()
9642 XShmQueryExtension ();
9644 return 0;
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag"
9657 || test ! -s conftest.err'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; } &&
9663 { ac_try='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_lib_Xext_XShmQueryExtension=yes
9670 else
9671 echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_lib_Xext_XShmQueryExtension=no
9676 rm -f conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 LIBS=$ac_check_lib_save_LIBS
9680 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9681 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
9682 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
9683 have_xshm=yes
9686 LIBS="$save_libs"
9687 CFLAGS="$save_cflags"
9691 if test "x-$have_xshm" = "x-yes" ; then
9692 DO_XSHM_SUPPORT="1"
9693 elif test "x-$x11_hidd_shm" = "x-yes" ; then
9694 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
9695 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
9696 { (exit 1); exit 1; }; }
9697 else
9698 DO_XSHM_SUPPORT="0"
9702 # Check whether --enable-x11_vidmode or --disable-x11_vidmode was given.
9703 if test "${enable_x11_vidmode+set}" = set; then
9704 enableval="$enable_x11_vidmode"
9705 x11_hidd_vidmode="$enableval"
9706 else
9707 x11_hidd_vidmode="auto"
9709 case "x-$x11_hidd_vidmode" in
9710 x-yes|x-no|x-auto) ;;
9711 *) x11_hidd_vidmode="auto" ;;
9712 esac
9714 have_vidmode=no
9716 if test "x-$x11_hidd_vidmode" != "x-no" ; then
9718 save_libs="$LIBS"
9719 save_cflags="$CFLAGS"
9720 LIBS="$x_libraries"
9721 CFLAGS="$x_includes"
9722 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9723 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
9724 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 ac_check_lib_save_LIBS=$LIBS
9728 LIBS="-lXxf86vm $LIBS"
9729 cat >conftest.$ac_ext <<_ACEOF
9730 /* confdefs.h. */
9731 _ACEOF
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9736 /* Override any gcc2 internal prototype to avoid an error. */
9737 #ifdef __cplusplus
9738 extern "C"
9739 #endif
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742 char XF86VidModeQueryExtension ();
9744 main ()
9746 XF86VidModeQueryExtension ();
9748 return 0;
9750 _ACEOF
9751 rm -f conftest.$ac_objext conftest$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9773 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
9774 else
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
9780 rm -f conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782 LIBS=$ac_check_lib_save_LIBS
9784 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9785 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
9786 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
9787 have_vidmode=yes
9790 LIBS="$save_libs"
9791 CFLAGS="$save_cflags"
9794 if test "x-$have_vidmode" = "x-yes" ; then
9795 DO_VIDMODE_SUPPORT="1"
9796 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
9797 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
9798 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
9799 { (exit 1); exit 1; }; }
9800 else
9801 DO_VIDMODE_SUPPORT="0"
9805 aros_host_x11_includes=$x_includes
9806 aros_host_x11_libdirs=$x_libraries
9810 # Check whether --enable-sdl_hidd or --disable-sdl_hidd was given.
9811 if test "${enable_sdl_hidd+set}" = set; then
9812 enableval="$enable_sdl_hidd"
9813 sdl_hidd="$enableval"
9814 else
9815 sdl_hidd="auto"
9817 case "x-$sdl_hidd" in
9818 x-yes|x-no|x-auto) ;;
9819 *) sdl_hidd="auto" ;;
9820 esac
9822 if test "x-$sdl_hidd" != "x-no" ; then
9825 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
9826 if test "${with_sdl_prefix+set}" = set; then
9827 withval="$with_sdl_prefix"
9828 sdl_prefix="$withval"
9829 else
9830 sdl_prefix=""
9833 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
9834 if test "${with_sdl_exec_prefix+set}" = set; then
9835 withval="$with_sdl_exec_prefix"
9836 sdl_exec_prefix="$withval"
9837 else
9838 sdl_exec_prefix=""
9840 # Check whether --enable-sdltest or --disable-sdltest was given.
9841 if test "${enable_sdltest+set}" = set; then
9842 enableval="$enable_sdltest"
9844 else
9845 enable_sdltest=yes
9848 if test x$sdl_exec_prefix != x ; then
9849 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
9850 if test x${SDL_CONFIG+set} != xset ; then
9851 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
9854 if test x$sdl_prefix != x ; then
9855 sdl_args="$sdl_args --prefix=$sdl_prefix"
9856 if test x${SDL_CONFIG+set} != xset ; then
9857 SDL_CONFIG=$sdl_prefix/bin/sdl-config
9861 if test "x$prefix" != xNONE; then
9862 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
9864 # Extract the first word of "sdl-config", so it can be a program name with args.
9865 set dummy sdl-config; ac_word=$2
9866 echo "$as_me:$LINENO: checking for $ac_word" >&5
9867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9868 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871 case $SDL_CONFIG in
9872 [\\/]* | ?:[\\/]*)
9873 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9887 done
9888 done
9890 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
9892 esac
9894 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
9896 if test -n "$SDL_CONFIG"; then
9897 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
9898 echo "${ECHO_T}$SDL_CONFIG" >&6
9899 else
9900 echo "$as_me:$LINENO: result: no" >&5
9901 echo "${ECHO_T}no" >&6
9904 min_sdl_version=1.2.10
9905 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
9906 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
9907 no_sdl=""
9908 if test "$SDL_CONFIG" = "no" ; then
9909 no_sdl=yes
9910 else
9911 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
9912 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
9914 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
9915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9916 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
9917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9918 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
9919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9920 if test "x$enable_sdltest" = "xyes" ; then
9921 ac_save_CFLAGS="$CFLAGS"
9922 ac_save_CXXFLAGS="$CXXFLAGS"
9923 ac_save_LIBS="$LIBS"
9924 CFLAGS="$CFLAGS $SDL_CFLAGS"
9925 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
9926 LIBS="$LIBS $SDL_LIBS"
9927 rm -f conf.sdltest
9928 if test "$cross_compiling" = yes; then
9929 echo $ac_n "cross compiling; assumed OK... $ac_c"
9930 else
9931 cat >conftest.$ac_ext <<_ACEOF
9932 /* confdefs.h. */
9933 _ACEOF
9934 cat confdefs.h >>conftest.$ac_ext
9935 cat >>conftest.$ac_ext <<_ACEOF
9936 /* end confdefs.h. */
9938 #include <stdio.h>
9939 #include <stdlib.h>
9940 #include <string.h>
9941 #include "SDL.h"
9943 char*
9944 my_strdup (char *str)
9946 char *new_str;
9948 if (str)
9950 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
9951 strcpy (new_str, str);
9953 else
9954 new_str = NULL;
9956 return new_str;
9959 int main (int argc, char *argv[])
9961 int major, minor, micro;
9962 char *tmp_version;
9964 /* This hangs on some systems (?)
9965 system ("touch conf.sdltest");
9967 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
9969 /* HP/UX 9 (%@#!) writes to sscanf strings */
9970 tmp_version = my_strdup("$min_sdl_version");
9971 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9972 printf("%s, bad version string\n", "$min_sdl_version");
9973 exit(1);
9976 if (($sdl_major_version > major) ||
9977 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
9978 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
9980 return 0;
9982 else
9984 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
9985 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
9986 printf("*** best to upgrade to the required version.\n");
9987 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
9988 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
9989 printf("*** config.cache before re-running configure\n");
9990 return 1;
9995 _ACEOF
9996 rm -f conftest$ac_exeext
9997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10008 else
10009 echo "$as_me: program exited with status $ac_status" >&5
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ( exit $ac_status )
10014 no_sdl=yes
10016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10018 CFLAGS="$ac_save_CFLAGS"
10019 CXXFLAGS="$ac_save_CXXFLAGS"
10020 LIBS="$ac_save_LIBS"
10023 if test "x$no_sdl" = x ; then
10024 echo "$as_me:$LINENO: result: yes" >&5
10025 echo "${ECHO_T}yes" >&6
10026 have_sdl="yes"
10027 else
10028 echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6
10030 if test "$SDL_CONFIG" = "no" ; then
10031 echo "*** The sdl-config script installed by SDL could not be found"
10032 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10033 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10034 echo "*** full path to sdl-config."
10035 else
10036 if test -f conf.sdltest ; then
10038 else
10039 echo "*** Could not run SDL test program, checking why..."
10040 CFLAGS="$CFLAGS $SDL_CFLAGS"
10041 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10042 LIBS="$LIBS $SDL_LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 #include <stdio.h>
10051 #include "SDL.h"
10053 int main(int argc, char *argv[])
10054 { return 0; }
10055 #undef main
10056 #define main K_and_R_C_main
10059 main ()
10061 return 0;
10063 return 0;
10065 _ACEOF
10066 rm -f conftest.$ac_objext conftest$ac_exeext
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>conftest.er1
10069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag"
10076 || test ! -s conftest.err'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10079 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; } &&
10082 { ac_try='test -s conftest$ac_exeext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 echo "*** The test program compiled, but did not run. This usually means"
10089 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10090 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10091 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10092 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10093 echo "*** is required on your system"
10094 echo "***"
10095 echo "*** If you have an old version installed, it is best to remove it, although"
10096 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 echo "*** The test program failed to compile or link. See the file config.log for the"
10102 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10103 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10104 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 CFLAGS="$ac_save_CFLAGS"
10109 CXXFLAGS="$ac_save_CXXFLAGS"
10110 LIBS="$ac_save_LIBS"
10113 SDL_CFLAGS=""
10114 SDL_LIBS=""
10115 have_sdl="no"
10119 rm -f conf.sdltest
10122 if test "x-$have_sdl" != "x-yes" ; then
10124 if test "x-$sdl_hidd" != "x-auto" ; then
10125 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
10126 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
10127 { (exit 1); exit 1; }; }
10130 else
10131 sdl_hidd_target=kernel-hidd-sdl
10132 aros_host_sdl_cflags=SDL_CFLAGS
10133 aros_host_sdl_libs=SDL_LIBS
10140 echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
10141 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6
10142 # Check whether --enable-dbus or --disable-dbus was given.
10143 if test "${enable_dbus+set}" = set; then
10144 enableval="$enable_dbus"
10145 dbus="yes"
10146 else
10147 dbus="no"
10149 if test "$dbus" = "yes" ; then
10150 ENABLE_DBUS=1
10151 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10152 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10153 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10154 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10155 else
10156 ENABLE_DBUS=0
10158 echo "$as_me:$LINENO: result: $dbus" >&5
10159 echo "${ECHO_T}$dbus" >&6
10163 # Generic
10170 # Host related
10197 # Target Related
10236 # Graphics Related
10252 # Native version related
10256 # Palm native version related
10259 # Unix/Hosted version related
10262 # DBUS related
10269 # Debug related
10275 # Collect-aros stuff: "-ius" to ignore undefined symbols
10278 # C compiler related
10281 case "$aros_flavour" in
10282 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10283 aros_flavour="emulation" ;;
10284 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10285 aros_flavour="emulation" ;;
10286 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10287 aros_flavour="standalone";;
10288 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10289 aros_flavour="native" ;;
10290 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10291 aros_flavour="native" ;;
10292 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10293 aros_flavour="linklib" ;;
10294 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10295 aros_flavour="palmnative" ;;
10296 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10297 aros_flavour="mac68knative" ;;
10298 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10299 aros_flavour="ppcnative" ;;
10300 esac
10304 if test ! -d ${aros_inc_dir} ; then
10305 ${MKDIR} ${aros_inc_dir}
10307 if test ! -d ${aros_geninc_dir} ; then
10308 ${MKDIR} ${aros_geninc_dir}
10310 if test ! -d ${aros_hostcfg_dir} ; then
10311 ${MKDIR} ${aros_hostcfg_dir}
10313 if test ! -d ${aros_targetcfg_dir} ; then
10314 ${MKDIR} ${aros_targetcfg_dir}
10316 if test ! -d ${aros_tools_dir} ; then
10317 ${MKDIR} ${aros_tools_dir}
10319 if test ! -d ${aros_scripts_dir} ; then
10320 ${MKDIR} ${aros_scripts_dir}
10323 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10326 ac_config_commands="$ac_config_commands compiler_executable"
10328 ac_config_commands="$ac_config_commands genshared_executable"
10330 ac_config_commands="$ac_config_commands genmf_executable"
10332 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
10335 ac_config_files="$ac_config_files Makefile rom/mmakefile ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/adflib/myconf.aros tools/collect-aros/env.h"
10338 cat >confcache <<\_ACEOF
10339 # This file is a shell script that caches the results of configure
10340 # tests run on this system so they can be shared between configure
10341 # scripts and configure runs, see configure's option --config-cache.
10342 # It is not useful on other systems. If it contains results you don't
10343 # want to keep, you may remove or edit it.
10345 # config.status only pays attention to the cache file if you give it
10346 # the --recheck option to rerun configure.
10348 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10349 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10350 # following values.
10352 _ACEOF
10354 # The following way of writing the cache mishandles newlines in values,
10355 # but we know of no workaround that is simple, portable, and efficient.
10356 # So, don't put newlines in cache variables' values.
10357 # Ultrix sh set writes to stderr and can't be redirected directly,
10358 # and sets the high bit in the cache file unless we assign to the vars.
10360 (set) 2>&1 |
10361 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10362 *ac_space=\ *)
10363 # `set' does not quote correctly, so add quotes (double-quote
10364 # substitution turns \\\\ into \\, and sed turns \\ into \).
10365 sed -n \
10366 "s/'/'\\\\''/g;
10367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10370 # `set' quotes correctly as required by POSIX, so do not add quotes.
10371 sed -n \
10372 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10374 esac;
10376 sed '
10377 t clear
10378 : clear
10379 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10380 t end
10381 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10382 : end' >>confcache
10383 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10384 if test -w $cache_file; then
10385 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10386 cat confcache >$cache_file
10387 else
10388 echo "not updating unwritable cache $cache_file"
10391 rm -f confcache
10393 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10394 # Let make expand exec_prefix.
10395 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10399 # trailing colons and then remove the whole line if VPATH becomes empty
10400 # (actually we leave an empty line to preserve line numbers).
10401 if test "x$srcdir" = x.; then
10402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10403 s/:*\$(srcdir):*/:/;
10404 s/:*\${srcdir}:*/:/;
10405 s/:*@srcdir@:*/:/;
10406 s/^\([^=]*=[ ]*\):*/\1/;
10407 s/:*$//;
10408 s/^[^=]*=[ ]*$//;
10412 DEFS=-DHAVE_CONFIG_H
10414 ac_libobjs=
10415 ac_ltlibobjs=
10416 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10417 # 1. Remove the extension, and $U if already installed.
10418 ac_i=`echo "$ac_i" |
10419 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10420 # 2. Add them.
10421 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10422 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10423 done
10424 LIBOBJS=$ac_libobjs
10426 LTLIBOBJS=$ac_ltlibobjs
10430 : ${CONFIG_STATUS=./config.status}
10431 ac_clean_files_save=$ac_clean_files
10432 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10433 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10434 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10435 cat >$CONFIG_STATUS <<_ACEOF
10436 #! $SHELL
10437 # Generated by $as_me.
10438 # Run this file to recreate the current configuration.
10439 # Compiler output produced by configure, useful for debugging
10440 # configure, is in config.log if it exists.
10442 debug=false
10443 ac_cs_recheck=false
10444 ac_cs_silent=false
10445 SHELL=\${CONFIG_SHELL-$SHELL}
10446 _ACEOF
10448 cat >>$CONFIG_STATUS <<\_ACEOF
10449 ## --------------------- ##
10450 ## M4sh Initialization. ##
10451 ## --------------------- ##
10453 # Be Bourne compatible
10454 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10455 emulate sh
10456 NULLCMD=:
10457 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10458 # is contrary to our usage. Disable this feature.
10459 alias -g '${1+"$@"}'='"$@"'
10460 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10461 set -o posix
10463 DUALCASE=1; export DUALCASE # for MKS sh
10465 # Support unset when possible.
10466 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10467 as_unset=unset
10468 else
10469 as_unset=false
10473 # Work around bugs in pre-3.0 UWIN ksh.
10474 $as_unset ENV MAIL MAILPATH
10475 PS1='$ '
10476 PS2='> '
10477 PS4='+ '
10479 # NLS nuisances.
10480 for as_var in \
10481 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10482 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10483 LC_TELEPHONE LC_TIME
10485 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10486 eval $as_var=C; export $as_var
10487 else
10488 $as_unset $as_var
10490 done
10492 # Required to use basename.
10493 if expr a : '\(a\)' >/dev/null 2>&1; then
10494 as_expr=expr
10495 else
10496 as_expr=false
10499 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10500 as_basename=basename
10501 else
10502 as_basename=false
10506 # Name of the executable.
10507 as_me=`$as_basename "$0" ||
10508 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10509 X"$0" : 'X\(//\)$' \| \
10510 X"$0" : 'X\(/\)$' \| \
10511 . : '\(.\)' 2>/dev/null ||
10512 echo X/"$0" |
10513 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10514 /^X\/\(\/\/\)$/{ s//\1/; q; }
10515 /^X\/\(\/\).*/{ s//\1/; q; }
10516 s/.*/./; q'`
10519 # PATH needs CR, and LINENO needs CR and PATH.
10520 # Avoid depending upon Character Ranges.
10521 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10522 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10523 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10524 as_cr_digits='0123456789'
10525 as_cr_alnum=$as_cr_Letters$as_cr_digits
10527 # The user is always right.
10528 if test "${PATH_SEPARATOR+set}" != set; then
10529 echo "#! /bin/sh" >conf$$.sh
10530 echo "exit 0" >>conf$$.sh
10531 chmod +x conf$$.sh
10532 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10533 PATH_SEPARATOR=';'
10534 else
10535 PATH_SEPARATOR=:
10537 rm -f conf$$.sh
10541 as_lineno_1=$LINENO
10542 as_lineno_2=$LINENO
10543 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10544 test "x$as_lineno_1" != "x$as_lineno_2" &&
10545 test "x$as_lineno_3" = "x$as_lineno_2" || {
10546 # Find who we are. Look in the path if we contain no path at all
10547 # relative or not.
10548 case $0 in
10549 *[\\/]* ) as_myself=$0 ;;
10550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10556 done
10559 esac
10560 # We did not find ourselves, most probably we were run as `sh COMMAND'
10561 # in which case we are not to be found in the path.
10562 if test "x$as_myself" = x; then
10563 as_myself=$0
10565 if test ! -f "$as_myself"; then
10566 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10567 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10568 { (exit 1); exit 1; }; }
10570 case $CONFIG_SHELL in
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for as_base in sh bash ksh sh5; do
10578 case $as_dir in
10580 if ("$as_dir/$as_base" -c '
10581 as_lineno_1=$LINENO
10582 as_lineno_2=$LINENO
10583 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10584 test "x$as_lineno_1" != "x$as_lineno_2" &&
10585 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10586 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10587 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10588 CONFIG_SHELL=$as_dir/$as_base
10589 export CONFIG_SHELL
10590 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10591 fi;;
10592 esac
10593 done
10594 done
10596 esac
10598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10599 # uniformly replaced by the line number. The first 'sed' inserts a
10600 # line-number line before each line; the second 'sed' does the real
10601 # work. The second script uses 'N' to pair each line-number line
10602 # with the numbered line, and appends trailing '-' during
10603 # substitution so that $LINENO is not a special case at line end.
10604 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10605 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10606 sed '=' <$as_myself |
10607 sed '
10609 s,$,-,
10610 : loop
10611 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10612 t loop
10613 s,-$,,
10614 s,^['$as_cr_digits']*\n,,
10615 ' >$as_me.lineno &&
10616 chmod +x $as_me.lineno ||
10617 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10618 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10619 { (exit 1); exit 1; }; }
10621 # Don't try to exec as it changes $[0], causing all sort of problems
10622 # (the dirname of $[0] is not the place where we might find the
10623 # original and so on. Autoconf is especially sensible to this).
10624 . ./$as_me.lineno
10625 # Exit status is that of the last command.
10626 exit
10630 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10631 *c*,-n*) ECHO_N= ECHO_C='
10632 ' ECHO_T=' ' ;;
10633 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10634 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10635 esac
10637 if expr a : '\(a\)' >/dev/null 2>&1; then
10638 as_expr=expr
10639 else
10640 as_expr=false
10643 rm -f conf$$ conf$$.exe conf$$.file
10644 echo >conf$$.file
10645 if ln -s conf$$.file conf$$ 2>/dev/null; then
10646 # We could just check for DJGPP; but this test a) works b) is more generic
10647 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10648 if test -f conf$$.exe; then
10649 # Don't use ln at all; we don't have any links
10650 as_ln_s='cp -p'
10651 else
10652 as_ln_s='ln -s'
10654 elif ln conf$$.file conf$$ 2>/dev/null; then
10655 as_ln_s=ln
10656 else
10657 as_ln_s='cp -p'
10659 rm -f conf$$ conf$$.exe conf$$.file
10661 if mkdir -p . 2>/dev/null; then
10662 as_mkdir_p=:
10663 else
10664 test -d ./-p && rmdir ./-p
10665 as_mkdir_p=false
10668 as_executable_p="test -f"
10670 # Sed expression to map a string onto a valid CPP name.
10671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10673 # Sed expression to map a string onto a valid variable name.
10674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10677 # IFS
10678 # We need space, tab and new line, in precisely that order.
10679 as_nl='
10681 IFS=" $as_nl"
10683 # CDPATH.
10684 $as_unset CDPATH
10686 exec 6>&1
10688 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10689 # report actual input values of CONFIG_FILES etc. instead of their
10690 # values after options handling. Logging --version etc. is OK.
10691 exec 5>>config.log
10693 echo
10694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10695 ## Running $as_me. ##
10696 _ASBOX
10697 } >&5
10698 cat >&5 <<_CSEOF
10700 This file was extended by $as_me, which was
10701 generated by GNU Autoconf 2.59. Invocation command line was
10703 CONFIG_FILES = $CONFIG_FILES
10704 CONFIG_HEADERS = $CONFIG_HEADERS
10705 CONFIG_LINKS = $CONFIG_LINKS
10706 CONFIG_COMMANDS = $CONFIG_COMMANDS
10707 $ $0 $@
10709 _CSEOF
10710 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10711 echo >&5
10712 _ACEOF
10714 # Files that config.status was made for.
10715 if test -n "$ac_config_files"; then
10716 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10719 if test -n "$ac_config_headers"; then
10720 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10723 if test -n "$ac_config_links"; then
10724 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10727 if test -n "$ac_config_commands"; then
10728 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10731 cat >>$CONFIG_STATUS <<\_ACEOF
10733 ac_cs_usage="\
10734 \`$as_me' instantiates files from templates according to the
10735 current configuration.
10737 Usage: $0 [OPTIONS] [FILE]...
10739 -h, --help print this help, then exit
10740 -V, --version print version number, then exit
10741 -q, --quiet do not print progress messages
10742 -d, --debug don't remove temporary files
10743 --recheck update $as_me by reconfiguring in the same conditions
10744 --file=FILE[:TEMPLATE]
10745 instantiate the configuration file FILE
10746 --header=FILE[:TEMPLATE]
10747 instantiate the configuration header FILE
10749 Configuration files:
10750 $config_files
10752 Configuration headers:
10753 $config_headers
10755 Configuration commands:
10756 $config_commands
10758 Report bugs to <bug-autoconf@gnu.org>."
10759 _ACEOF
10761 cat >>$CONFIG_STATUS <<_ACEOF
10762 ac_cs_version="\\
10763 config.status
10764 configured by $0, generated by GNU Autoconf 2.59,
10765 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10767 Copyright (C) 2003 Free Software Foundation, Inc.
10768 This config.status script is free software; the Free Software Foundation
10769 gives unlimited permission to copy, distribute and modify it."
10770 srcdir=$srcdir
10771 _ACEOF
10773 cat >>$CONFIG_STATUS <<\_ACEOF
10774 # If no file are specified by the user, then we need to provide default
10775 # value. By we need to know if files were specified by the user.
10776 ac_need_defaults=:
10777 while test $# != 0
10779 case $1 in
10780 --*=*)
10781 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10782 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10783 ac_shift=:
10786 ac_option=$1
10787 ac_optarg=$2
10788 ac_shift=shift
10790 *) # This is not an option, so the user has probably given explicit
10791 # arguments.
10792 ac_option=$1
10793 ac_need_defaults=false;;
10794 esac
10796 case $ac_option in
10797 # Handling of the options.
10798 _ACEOF
10799 cat >>$CONFIG_STATUS <<\_ACEOF
10800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10801 ac_cs_recheck=: ;;
10802 --version | --vers* | -V )
10803 echo "$ac_cs_version"; exit 0 ;;
10804 --he | --h)
10805 # Conflict between --help and --header
10806 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10807 Try \`$0 --help' for more information." >&5
10808 echo "$as_me: error: ambiguous option: $1
10809 Try \`$0 --help' for more information." >&2;}
10810 { (exit 1); exit 1; }; };;
10811 --help | --hel | -h )
10812 echo "$ac_cs_usage"; exit 0 ;;
10813 --debug | --d* | -d )
10814 debug=: ;;
10815 --file | --fil | --fi | --f )
10816 $ac_shift
10817 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10818 ac_need_defaults=false;;
10819 --header | --heade | --head | --hea )
10820 $ac_shift
10821 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10822 ac_need_defaults=false;;
10823 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10824 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10825 ac_cs_silent=: ;;
10827 # This is an error.
10828 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10829 Try \`$0 --help' for more information." >&5
10830 echo "$as_me: error: unrecognized option: $1
10831 Try \`$0 --help' for more information." >&2;}
10832 { (exit 1); exit 1; }; } ;;
10834 *) ac_config_targets="$ac_config_targets $1" ;;
10836 esac
10837 shift
10838 done
10840 ac_configure_extra_args=
10842 if $ac_cs_silent; then
10843 exec 6>/dev/null
10844 ac_configure_extra_args="$ac_configure_extra_args --silent"
10847 _ACEOF
10848 cat >>$CONFIG_STATUS <<_ACEOF
10849 if \$ac_cs_recheck; then
10850 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10851 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10854 _ACEOF
10856 cat >>$CONFIG_STATUS <<_ACEOF
10858 # INIT-COMMANDS section.
10862 aros_tools_dir=${aros_tools_dir}
10863 aros_target_cpu=${aros_target_cpu}
10864 aros_target_arch=${aros_target_arch}
10865 aros_target_suffix=${aros_target_suffix}
10866 aros_target_nm_ln=${aros_target_nm_ln}
10867 aros_target_as_ln=${aros_target_as_ln}
10868 aros_target_ar_ln=${aros_target_ar_ln}
10869 aros_target_ranlib_ln=${aros_target_ranlib_ln}
10870 aros_target_objdump_ln=${aros_target_objdump_ln}
10871 aros_target_objcopy_ln=${aros_target_objcopy_ln}
10872 aros_target_strip_ln=${aros_target_strip_ln}
10875 aros_scripts_dir=${aros_scripts_dir}
10877 aros_tools_dir=${aros_tools_dir}
10880 _ACEOF
10884 cat >>$CONFIG_STATUS <<\_ACEOF
10885 for ac_config_target in $ac_config_targets
10887 case "$ac_config_target" in
10888 # Handling of arguments.
10889 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10890 "rom/mmakefile" ) CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
10891 "${aros_inc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
10892 "${aros_geninc_dir}/config.h" ) CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
10893 "${aros_hostcfg_dir}/host.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
10894 "${aros_targetcfg_dir}/target.cfg" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
10895 "mmake.config" ) CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
10896 "${aros_targetcfg_dir}/make.defaults" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
10897 "${aros_targetcfg_dir}/specs" ) CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
10898 "${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" ;;
10899 "${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" ;;
10900 "${aros_scripts_dir}/genshared" ) CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
10901 "${aros_tools_dir}/genmf.py" ) CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
10902 "tools/adflib/myconf.aros" ) CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
10903 "tools/collect-aros/env.h" ) CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
10904 "compiler_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
10905 "genshared_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
10906 "genmf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
10907 "adflib_myaros.conf_executable" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
10908 "${aros_geninc_dir}/host-conf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
10909 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10910 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10911 { (exit 1); exit 1; }; };;
10912 esac
10913 done
10915 # If the user did not use the arguments to specify the items to instantiate,
10916 # then the envvar interface is used. Set only those that are not.
10917 # We use the long form for the default assignment because of an extremely
10918 # bizarre bug on SunOS 4.1.3.
10919 if $ac_need_defaults; then
10920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10922 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10925 # Have a temporary directory for convenience. Make it in the build tree
10926 # simply because there is no reason to put it here, and in addition,
10927 # creating and moving files from /tmp can sometimes cause problems.
10928 # Create a temporary directory, and hook for its removal unless debugging.
10929 $debug ||
10931 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10932 trap '{ (exit 1); exit 1; }' 1 2 13 15
10935 # Create a (secure) tmp directory for tmp files.
10938 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10939 test -n "$tmp" && test -d "$tmp"
10940 } ||
10942 tmp=./confstat$$-$RANDOM
10943 (umask 077 && mkdir $tmp)
10944 } ||
10946 echo "$me: cannot create a temporary directory in ." >&2
10947 { (exit 1); exit 1; }
10950 _ACEOF
10952 cat >>$CONFIG_STATUS <<_ACEOF
10955 # CONFIG_FILES section.
10958 # No need to generate the scripts if there are no CONFIG_FILES.
10959 # This happens for instance when ./config.status config.h
10960 if test -n "\$CONFIG_FILES"; then
10961 # Protect against being on the right side of a sed subst in config.status.
10962 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10963 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10964 s,@SHELL@,$SHELL,;t t
10965 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10966 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10967 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10968 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10969 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10970 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10971 s,@exec_prefix@,$exec_prefix,;t t
10972 s,@prefix@,$prefix,;t t
10973 s,@program_transform_name@,$program_transform_name,;t t
10974 s,@bindir@,$bindir,;t t
10975 s,@sbindir@,$sbindir,;t t
10976 s,@libexecdir@,$libexecdir,;t t
10977 s,@datadir@,$datadir,;t t
10978 s,@sysconfdir@,$sysconfdir,;t t
10979 s,@sharedstatedir@,$sharedstatedir,;t t
10980 s,@localstatedir@,$localstatedir,;t t
10981 s,@libdir@,$libdir,;t t
10982 s,@includedir@,$includedir,;t t
10983 s,@oldincludedir@,$oldincludedir,;t t
10984 s,@infodir@,$infodir,;t t
10985 s,@mandir@,$mandir,;t t
10986 s,@build_alias@,$build_alias,;t t
10987 s,@host_alias@,$host_alias,;t t
10988 s,@target_alias@,$target_alias,;t t
10989 s,@DEFS@,$DEFS,;t t
10990 s,@ECHO_C@,$ECHO_C,;t t
10991 s,@ECHO_N@,$ECHO_N,;t t
10992 s,@ECHO_T@,$ECHO_T,;t t
10993 s,@LIBS@,$LIBS,;t t
10994 s,@build@,$build,;t t
10995 s,@build_cpu@,$build_cpu,;t t
10996 s,@build_vendor@,$build_vendor,;t t
10997 s,@build_os@,$build_os,;t t
10998 s,@host@,$host,;t t
10999 s,@host_cpu@,$host_cpu,;t t
11000 s,@host_vendor@,$host_vendor,;t t
11001 s,@host_os@,$host_os,;t t
11002 s,@CC@,$CC,;t t
11003 s,@CFLAGS@,$CFLAGS,;t t
11004 s,@LDFLAGS@,$LDFLAGS,;t t
11005 s,@CPPFLAGS@,$CPPFLAGS,;t t
11006 s,@ac_ct_CC@,$ac_ct_CC,;t t
11007 s,@EXEEXT@,$EXEEXT,;t t
11008 s,@OBJEXT@,$OBJEXT,;t t
11009 s,@CPP@,$CPP,;t t
11010 s,@AWK@,$AWK,;t t
11011 s,@MMAKE@,$MMAKE,;t t
11012 s,@aros_host_ld@,$aros_host_ld,;t t
11013 s,@aros_host_aclocal@,$aros_host_aclocal,;t t
11014 s,@aros_host_autoconf@,$aros_host_autoconf,;t t
11015 s,@aros_host_autoheader@,$aros_host_autoheader,;t t
11016 s,@aros_host_automake@,$aros_host_automake,;t t
11017 s,@aros_host_ar@,$aros_host_ar,;t t
11018 s,@aros_host_ranlib@,$aros_host_ranlib,;t t
11019 s,@aros_host_strip@,$aros_host_strip,;t t
11020 s,@RM@,$RM,;t t
11021 s,@CP@,$CP,;t t
11022 s,@MV@,$MV,;t t
11023 s,@ECHO@,$ECHO,;t t
11024 s,@MKDIR@,$MKDIR,;t t
11025 s,@TOUCH@,$TOUCH,;t t
11026 s,@SORT@,$SORT,;t t
11027 s,@UNIQ@,$UNIQ,;t t
11028 s,@NOP@,$NOP,;t t
11029 s,@CAT@,$CAT,;t t
11030 s,@BISON@,$BISON,;t t
11031 s,@FLEX@,$FLEX,;t t
11032 s,@PNGTOPNM@,$PNGTOPNM,;t t
11033 s,@PPMTOILBM@,$PPMTOILBM,;t t
11034 s,@SED@,$SED,;t t
11035 s,@CHMOD@,$CHMOD,;t t
11036 s,@PYTHON@,$PYTHON,;t t
11037 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
11038 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
11039 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
11040 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
11041 s,@pythondir@,$pythondir,;t t
11042 s,@pkgpythondir@,$pkgpythondir,;t t
11043 s,@pyexecdir@,$pyexecdir,;t t
11044 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
11045 s,@FOR@,$FOR,;t t
11046 s,@IF@,$IF,;t t
11047 s,@TEST@,$TEST,;t t
11048 s,@CMP@,$CMP,;t t
11049 s,@EGREP@,$EGREP,;t t
11050 s,@LIBOBJS@,$LIBOBJS,;t t
11051 s,@DISTCC@,$DISTCC,;t t
11052 s,@CCACHE@,$CCACHE,;t t
11053 s,@aros_kernel_cc@,$aros_kernel_cc,;t t
11054 s,@aros_target_as_ln@,$aros_target_as_ln,;t t
11055 s,@aros_kernel_ld@,$aros_kernel_ld,;t t
11056 s,@aros_target_ar_ln@,$aros_target_ar_ln,;t t
11057 s,@aros_target_nm_ln@,$aros_target_nm_ln,;t t
11058 s,@aros_target_objcopy_ln@,$aros_target_objcopy_ln,;t t
11059 s,@aros_target_objdump_ln@,$aros_target_objdump_ln,;t t
11060 s,@aros_target_ranlib_ln@,$aros_target_ranlib_ln,;t t
11061 s,@aros_target_strip_ln@,$aros_target_strip_ln,;t t
11062 s,@aros_target_nostdinc_cflags@,$aros_target_nostdinc_cflags,;t t
11063 s,@aros_target_nostartup_ldflags@,$aros_target_nostartup_ldflags,;t t
11064 s,@aros_target_nix_ldflags@,$aros_target_nix_ldflags,;t t
11065 s,@aros_target_detach_ldflags@,$aros_target_detach_ldflags,;t t
11066 s,@aros_target_nostdlib_ldflags@,$aros_target_nostdlib_ldflags,;t t
11067 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
11068 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
11069 s,@SDL_LIBS@,$SDL_LIBS,;t t
11070 s,@aros_arch@,$aros_arch,;t t
11071 s,@aros_cpu@,$aros_cpu,;t t
11072 s,@aros_flavour@,$aros_flavour,;t t
11073 s,@aros_flavour_uc@,$aros_flavour_uc,;t t
11074 s,@TOPDIR@,$TOPDIR,;t t
11075 s,@aros_cc_pre@,$aros_cc_pre,;t t
11076 s,@aros_host_arch@,$aros_host_arch,;t t
11077 s,@aros_host_cpu@,$aros_host_cpu,;t t
11078 s,@aros_host_cc@,$aros_host_cc,;t t
11079 s,@aros_host_make@,$aros_host_make,;t t
11080 s,@aros_host_cflags@,$aros_host_cflags,;t t
11081 s,@aros_host_ldflags@,$aros_host_ldflags,;t t
11082 s,@aros_host_debug@,$aros_host_debug,;t t
11083 s,@aros_host_mkdep@,$aros_host_mkdep,;t t
11084 s,@aros_host_mkargs@,$aros_host_mkargs,;t t
11085 s,@aros_host_exe_suffix@,$aros_host_exe_suffix,;t t
11086 s,@aros_host_lib_suffix@,$aros_host_lib_suffix,;t t
11087 s,@aros_tools_dir@,$aros_tools_dir,;t t
11088 s,@aros_host_x11_includes@,$aros_host_x11_includes,;t t
11089 s,@aros_host_x11_libdirs@,$aros_host_x11_libdirs,;t t
11090 s,@aros_host_sdl_cflags@,$aros_host_sdl_cflags,;t t
11091 s,@aros_host_sdl_libs@,$aros_host_sdl_libs,;t t
11092 s,@aros_target_arch@,$aros_target_arch,;t t
11093 s,@aros_target_cpu@,$aros_target_cpu,;t t
11094 s,@aros_target_variant@,$aros_target_variant,;t t
11095 s,@aros_target_suffix@,$aros_target_suffix,;t t
11096 s,@aros_target_incl@,$aros_target_incl,;t t
11097 s,@aros_target_ar@,$aros_target_ar,;t t
11098 s,@aros_target_ranlib@,$aros_target_ranlib,;t t
11099 s,@aros_kernel_nm@,$aros_kernel_nm,;t t
11100 s,@aros_target_cc@,$aros_target_cc,;t t
11101 s,@aros_target_as@,$aros_target_as,;t t
11102 s,@aros_target_ld@,$aros_target_ld,;t t
11103 s,@aros_target_cc_includes@,$aros_target_cc_includes,;t t
11104 s,@aros_target_cc_path@,$aros_target_cc_path,;t t
11105 s,@aros_target_objdump@,$aros_target_objdump,;t t
11106 s,@aros_target_objcopy@,$aros_target_objcopy,;t t
11107 s,@aros_target_strip@,$aros_target_strip,;t t
11108 s,@aros_target_nm@,$aros_target_nm,;t t
11109 s,@aros_shared_default@,$aros_shared_default,;t t
11110 s,@aros_shared_ld@,$aros_shared_ld,;t t
11111 s,@aros_object_format@,$aros_object_format,;t t
11112 s,@aros_compiler_libs@,$aros_compiler_libs,;t t
11113 s,@aros_config_cflags@,$aros_config_cflags,;t t
11114 s,@aros_config_aflags@,$aros_config_aflags,;t t
11115 s,@aros_config_ldflags@,$aros_config_ldflags,;t t
11116 s,@aros_shared_cflags@,$aros_shared_cflags,;t t
11117 s,@aros_shared_aflags@,$aros_shared_aflags,;t t
11118 s,@aros_shared_ldflags@,$aros_shared_ldflags,;t t
11119 s,@aros_kernel_ldflags@,$aros_kernel_ldflags,;t t
11120 s,@aros_debug_cflags@,$aros_debug_cflags,;t t
11121 s,@aros_debug_aflags@,$aros_debug_aflags,;t t
11122 s,@aros_debug_ldflags@,$aros_debug_ldflags,;t t
11123 s,@aros_target_genmap@,$aros_target_genmap,;t t
11124 s,@aros_target_strip_flags@,$aros_target_strip_flags,;t t
11125 s,@aros_gui_libdir@,$aros_gui_libdir,;t t
11126 s,@aros_gui_ldflags@,$aros_gui_ldflags,;t t
11127 s,@aros_gui_libflags@,$aros_gui_libflags,;t t
11128 s,@aros_gui_incdir@,$aros_gui_incdir,;t t
11129 s,@aros_gui_ccflags@,$aros_gui_ccflags,;t t
11130 s,@x11_hidd_target@,$x11_hidd_target,;t t
11131 s,@sdl_hidd_target@,$sdl_hidd_target,;t t
11132 s,@aros_default_wbwidth@,$aros_default_wbwidth,;t t
11133 s,@aros_default_wbheight@,$aros_default_wbheight,;t t
11134 s,@aros_default_wbdepth@,$aros_default_wbdepth,;t t
11135 s,@DO_XSHM_SUPPORT@,$DO_XSHM_SUPPORT,;t t
11136 s,@DO_VIDMODE_SUPPORT@,$DO_VIDMODE_SUPPORT,;t t
11137 s,@aros_bochs_hack@,$aros_bochs_hack,;t t
11138 s,@aros_serial_debug@,$aros_serial_debug,;t t
11139 s,@aros_palm_debug_hack@,$aros_palm_debug_hack,;t t
11140 s,@aros_nesting_supervisor@,$aros_nesting_supervisor,;t t
11141 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
11142 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
11143 s,@DBUS_LIBFLAGS@,$DBUS_LIBFLAGS,;t t
11144 s,@KERNEL_DBUS_KOBJ@,$KERNEL_DBUS_KOBJ,;t t
11145 s,@KERNEL_DBUS_INCLUDES@,$KERNEL_DBUS_INCLUDES,;t t
11146 s,@aros_debug@,$aros_debug,;t t
11147 s,@aros_mungwall_debug@,$aros_mungwall_debug,;t t
11148 s,@aros_stack_debug@,$aros_stack_debug,;t t
11149 s,@aros_modules_debug@,$aros_modules_debug,;t t
11150 s,@ignore_undefined_symbols@,$ignore_undefined_symbols,;t t
11151 s,@gcc_target_cpu@,$gcc_target_cpu,;t t
11152 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11153 CEOF
11155 _ACEOF
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 # Split the substitutions into bite-sized pieces for seds with
11159 # small command number limits, like on Digital OSF/1 and HP-UX.
11160 ac_max_sed_lines=48
11161 ac_sed_frag=1 # Number of current file.
11162 ac_beg=1 # First line for current file.
11163 ac_end=$ac_max_sed_lines # Line after last line for current file.
11164 ac_more_lines=:
11165 ac_sed_cmds=
11166 while $ac_more_lines; do
11167 if test $ac_beg -gt 1; then
11168 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11169 else
11170 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11172 if test ! -s $tmp/subs.frag; then
11173 ac_more_lines=false
11174 else
11175 # The purpose of the label and of the branching condition is to
11176 # speed up the sed processing (if there are no `@' at all, there
11177 # is no need to browse any of the substitutions).
11178 # These are the two extra sed commands mentioned above.
11179 (echo ':t
11180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11181 if test -z "$ac_sed_cmds"; then
11182 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11183 else
11184 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11186 ac_sed_frag=`expr $ac_sed_frag + 1`
11187 ac_beg=$ac_end
11188 ac_end=`expr $ac_end + $ac_max_sed_lines`
11190 done
11191 if test -z "$ac_sed_cmds"; then
11192 ac_sed_cmds=cat
11194 fi # test -n "$CONFIG_FILES"
11196 _ACEOF
11197 cat >>$CONFIG_STATUS <<\_ACEOF
11198 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11199 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11200 case $ac_file in
11201 - | *:- | *:-:* ) # input from stdin
11202 cat >$tmp/stdin
11203 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11205 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11207 * ) ac_file_in=$ac_file.in ;;
11208 esac
11210 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11211 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11213 X"$ac_file" : 'X\(//\)[^/]' \| \
11214 X"$ac_file" : 'X\(//\)$' \| \
11215 X"$ac_file" : 'X\(/\)' \| \
11216 . : '\(.\)' 2>/dev/null ||
11217 echo X"$ac_file" |
11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11219 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11220 /^X\(\/\/\)$/{ s//\1/; q; }
11221 /^X\(\/\).*/{ s//\1/; q; }
11222 s/.*/./; q'`
11223 { if $as_mkdir_p; then
11224 mkdir -p "$ac_dir"
11225 else
11226 as_dir="$ac_dir"
11227 as_dirs=
11228 while test ! -d "$as_dir"; do
11229 as_dirs="$as_dir $as_dirs"
11230 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11232 X"$as_dir" : 'X\(//\)[^/]' \| \
11233 X"$as_dir" : 'X\(//\)$' \| \
11234 X"$as_dir" : 'X\(/\)' \| \
11235 . : '\(.\)' 2>/dev/null ||
11236 echo X"$as_dir" |
11237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11239 /^X\(\/\/\)$/{ s//\1/; q; }
11240 /^X\(\/\).*/{ s//\1/; q; }
11241 s/.*/./; q'`
11242 done
11243 test ! -n "$as_dirs" || mkdir $as_dirs
11244 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11245 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11246 { (exit 1); exit 1; }; }; }
11248 ac_builddir=.
11250 if test "$ac_dir" != .; then
11251 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11252 # A "../" for each directory in $ac_dir_suffix.
11253 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11254 else
11255 ac_dir_suffix= ac_top_builddir=
11258 case $srcdir in
11259 .) # No --srcdir option. We are building in place.
11260 ac_srcdir=.
11261 if test -z "$ac_top_builddir"; then
11262 ac_top_srcdir=.
11263 else
11264 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11265 fi ;;
11266 [\\/]* | ?:[\\/]* ) # Absolute path.
11267 ac_srcdir=$srcdir$ac_dir_suffix;
11268 ac_top_srcdir=$srcdir ;;
11269 *) # Relative path.
11270 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11271 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11272 esac
11274 # Do not use `cd foo && pwd` to compute absolute paths, because
11275 # the directories may not exist.
11276 case `pwd` in
11277 .) ac_abs_builddir="$ac_dir";;
11279 case "$ac_dir" in
11280 .) ac_abs_builddir=`pwd`;;
11281 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11282 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11283 esac;;
11284 esac
11285 case $ac_abs_builddir in
11286 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11288 case ${ac_top_builddir}. in
11289 .) ac_abs_top_builddir=$ac_abs_builddir;;
11290 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11291 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11292 esac;;
11293 esac
11294 case $ac_abs_builddir in
11295 .) ac_abs_srcdir=$ac_srcdir;;
11297 case $ac_srcdir in
11298 .) ac_abs_srcdir=$ac_abs_builddir;;
11299 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11300 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11301 esac;;
11302 esac
11303 case $ac_abs_builddir in
11304 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11306 case $ac_top_srcdir in
11307 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11308 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11309 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11310 esac;;
11311 esac
11315 if test x"$ac_file" != x-; then
11316 { echo "$as_me:$LINENO: creating $ac_file" >&5
11317 echo "$as_me: creating $ac_file" >&6;}
11318 rm -f "$ac_file"
11320 # Let's still pretend it is `configure' which instantiates (i.e., don't
11321 # use $as_me), people would be surprised to read:
11322 # /* config.h. Generated by config.status. */
11323 if test x"$ac_file" = x-; then
11324 configure_input=
11325 else
11326 configure_input="$ac_file. "
11328 configure_input=$configure_input"Generated from `echo $ac_file_in |
11329 sed 's,.*/,,'` by configure."
11331 # First look for the input files in the build tree, otherwise in the
11332 # src tree.
11333 ac_file_inputs=`IFS=:
11334 for f in $ac_file_in; do
11335 case $f in
11336 -) echo $tmp/stdin ;;
11337 [\\/$]*)
11338 # Absolute (can't be DOS-style, as IFS=:)
11339 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11340 echo "$as_me: error: cannot find input file: $f" >&2;}
11341 { (exit 1); exit 1; }; }
11342 echo "$f";;
11343 *) # Relative
11344 if test -f "$f"; then
11345 # Build tree
11346 echo "$f"
11347 elif test -f "$srcdir/$f"; then
11348 # Source tree
11349 echo "$srcdir/$f"
11350 else
11351 # /dev/null tree
11352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11353 echo "$as_me: error: cannot find input file: $f" >&2;}
11354 { (exit 1); exit 1; }; }
11355 fi;;
11356 esac
11357 done` || { (exit 1); exit 1; }
11358 _ACEOF
11359 cat >>$CONFIG_STATUS <<_ACEOF
11360 sed "$ac_vpsub
11361 $extrasub
11362 _ACEOF
11363 cat >>$CONFIG_STATUS <<\_ACEOF
11365 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11366 s,@configure_input@,$configure_input,;t t
11367 s,@srcdir@,$ac_srcdir,;t t
11368 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11369 s,@top_srcdir@,$ac_top_srcdir,;t t
11370 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11371 s,@builddir@,$ac_builddir,;t t
11372 s,@abs_builddir@,$ac_abs_builddir,;t t
11373 s,@top_builddir@,$ac_top_builddir,;t t
11374 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11375 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11376 rm -f $tmp/stdin
11377 if test x"$ac_file" != x-; then
11378 mv $tmp/out $ac_file
11379 else
11380 cat $tmp/out
11381 rm -f $tmp/out
11384 done
11385 _ACEOF
11386 cat >>$CONFIG_STATUS <<\_ACEOF
11389 # CONFIG_HEADER section.
11392 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11393 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11395 # ac_d sets the value in "#define NAME VALUE" lines.
11396 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11397 ac_dB='[ ].*$,\1#\2'
11398 ac_dC=' '
11399 ac_dD=',;t'
11400 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11401 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11402 ac_uB='$,\1#\2define\3'
11403 ac_uC=' '
11404 ac_uD=',;t'
11406 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11407 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11408 case $ac_file in
11409 - | *:- | *:-:* ) # input from stdin
11410 cat >$tmp/stdin
11411 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11412 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11413 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11414 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11415 * ) ac_file_in=$ac_file.in ;;
11416 esac
11418 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11419 echo "$as_me: creating $ac_file" >&6;}
11421 # First look for the input files in the build tree, otherwise in the
11422 # src tree.
11423 ac_file_inputs=`IFS=:
11424 for f in $ac_file_in; do
11425 case $f in
11426 -) echo $tmp/stdin ;;
11427 [\\/$]*)
11428 # Absolute (can't be DOS-style, as IFS=:)
11429 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11430 echo "$as_me: error: cannot find input file: $f" >&2;}
11431 { (exit 1); exit 1; }; }
11432 # Do quote $f, to prevent DOS paths from being IFS'd.
11433 echo "$f";;
11434 *) # Relative
11435 if test -f "$f"; then
11436 # Build tree
11437 echo "$f"
11438 elif test -f "$srcdir/$f"; then
11439 # Source tree
11440 echo "$srcdir/$f"
11441 else
11442 # /dev/null tree
11443 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11444 echo "$as_me: error: cannot find input file: $f" >&2;}
11445 { (exit 1); exit 1; }; }
11446 fi;;
11447 esac
11448 done` || { (exit 1); exit 1; }
11449 # Remove the trailing spaces.
11450 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11452 _ACEOF
11454 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11455 # `conftest.undefs', that substitutes the proper values into
11456 # config.h.in to produce config.h. The first handles `#define'
11457 # templates, and the second `#undef' templates.
11458 # And first: Protect against being on the right side of a sed subst in
11459 # config.status. Protect against being in an unquoted here document
11460 # in config.status.
11461 rm -f conftest.defines conftest.undefs
11462 # Using a here document instead of a string reduces the quoting nightmare.
11463 # Putting comments in sed scripts is not portable.
11465 # `end' is used to avoid that the second main sed command (meant for
11466 # 0-ary CPP macros) applies to n-ary macro definitions.
11467 # See the Autoconf documentation for `clear'.
11468 cat >confdef2sed.sed <<\_ACEOF
11469 s/[\\&,]/\\&/g
11470 s,[\\$`],\\&,g
11471 t clear
11472 : clear
11473 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11474 t end
11475 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11476 : end
11477 _ACEOF
11478 # If some macros were called several times there might be several times
11479 # the same #defines, which is useless. Nevertheless, we may not want to
11480 # sort them, since we want the *last* AC-DEFINE to be honored.
11481 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11482 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11483 rm -f confdef2sed.sed
11485 # This sed command replaces #undef with comments. This is necessary, for
11486 # example, in the case of _POSIX_SOURCE, which is predefined and required
11487 # on some systems where configure will not decide to define it.
11488 cat >>conftest.undefs <<\_ACEOF
11489 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11490 _ACEOF
11492 # Break up conftest.defines because some shells have a limit on the size
11493 # of here documents, and old seds have small limits too (100 cmds).
11494 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11495 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11496 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11497 echo ' :' >>$CONFIG_STATUS
11498 rm -f conftest.tail
11499 while grep . conftest.defines >/dev/null
11501 # Write a limited-size here document to $tmp/defines.sed.
11502 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11503 # Speed up: don't consider the non `#define' lines.
11504 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11505 # Work around the forget-to-reset-the-flag bug.
11506 echo 't clr' >>$CONFIG_STATUS
11507 echo ': clr' >>$CONFIG_STATUS
11508 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11509 echo 'CEOF
11510 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11511 rm -f $tmp/in
11512 mv $tmp/out $tmp/in
11513 ' >>$CONFIG_STATUS
11514 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11515 rm -f conftest.defines
11516 mv conftest.tail conftest.defines
11517 done
11518 rm -f conftest.defines
11519 echo ' fi # grep' >>$CONFIG_STATUS
11520 echo >>$CONFIG_STATUS
11522 # Break up conftest.undefs because some shells have a limit on the size
11523 # of here documents, and old seds have small limits too (100 cmds).
11524 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11525 rm -f conftest.tail
11526 while grep . conftest.undefs >/dev/null
11528 # Write a limited-size here document to $tmp/undefs.sed.
11529 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11530 # Speed up: don't consider the non `#undef'
11531 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11532 # Work around the forget-to-reset-the-flag bug.
11533 echo 't clr' >>$CONFIG_STATUS
11534 echo ': clr' >>$CONFIG_STATUS
11535 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11536 echo 'CEOF
11537 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11538 rm -f $tmp/in
11539 mv $tmp/out $tmp/in
11540 ' >>$CONFIG_STATUS
11541 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11542 rm -f conftest.undefs
11543 mv conftest.tail conftest.undefs
11544 done
11545 rm -f conftest.undefs
11547 cat >>$CONFIG_STATUS <<\_ACEOF
11548 # Let's still pretend it is `configure' which instantiates (i.e., don't
11549 # use $as_me), people would be surprised to read:
11550 # /* config.h. Generated by config.status. */
11551 if test x"$ac_file" = x-; then
11552 echo "/* Generated by configure. */" >$tmp/config.h
11553 else
11554 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11556 cat $tmp/in >>$tmp/config.h
11557 rm -f $tmp/in
11558 if test x"$ac_file" != x-; then
11559 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11560 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11561 echo "$as_me: $ac_file is unchanged" >&6;}
11562 else
11563 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11565 X"$ac_file" : 'X\(//\)[^/]' \| \
11566 X"$ac_file" : 'X\(//\)$' \| \
11567 X"$ac_file" : 'X\(/\)' \| \
11568 . : '\(.\)' 2>/dev/null ||
11569 echo X"$ac_file" |
11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11572 /^X\(\/\/\)$/{ s//\1/; q; }
11573 /^X\(\/\).*/{ s//\1/; q; }
11574 s/.*/./; q'`
11575 { if $as_mkdir_p; then
11576 mkdir -p "$ac_dir"
11577 else
11578 as_dir="$ac_dir"
11579 as_dirs=
11580 while test ! -d "$as_dir"; do
11581 as_dirs="$as_dir $as_dirs"
11582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11584 X"$as_dir" : 'X\(//\)[^/]' \| \
11585 X"$as_dir" : 'X\(//\)$' \| \
11586 X"$as_dir" : 'X\(/\)' \| \
11587 . : '\(.\)' 2>/dev/null ||
11588 echo X"$as_dir" |
11589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11591 /^X\(\/\/\)$/{ s//\1/; q; }
11592 /^X\(\/\).*/{ s//\1/; q; }
11593 s/.*/./; q'`
11594 done
11595 test ! -n "$as_dirs" || mkdir $as_dirs
11596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11598 { (exit 1); exit 1; }; }; }
11600 rm -f $ac_file
11601 mv $tmp/config.h $ac_file
11603 else
11604 cat $tmp/config.h
11605 rm -f $tmp/config.h
11607 done
11608 _ACEOF
11609 cat >>$CONFIG_STATUS <<\_ACEOF
11612 # CONFIG_COMMANDS section.
11614 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11615 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11616 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11617 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11618 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11619 X"$ac_dest" : 'X\(//\)[^/]' \| \
11620 X"$ac_dest" : 'X\(//\)$' \| \
11621 X"$ac_dest" : 'X\(/\)' \| \
11622 . : '\(.\)' 2>/dev/null ||
11623 echo X"$ac_dest" |
11624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11626 /^X\(\/\/\)$/{ s//\1/; q; }
11627 /^X\(\/\).*/{ s//\1/; q; }
11628 s/.*/./; q'`
11629 { if $as_mkdir_p; then
11630 mkdir -p "$ac_dir"
11631 else
11632 as_dir="$ac_dir"
11633 as_dirs=
11634 while test ! -d "$as_dir"; do
11635 as_dirs="$as_dir $as_dirs"
11636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11638 X"$as_dir" : 'X\(//\)[^/]' \| \
11639 X"$as_dir" : 'X\(//\)$' \| \
11640 X"$as_dir" : 'X\(/\)' \| \
11641 . : '\(.\)' 2>/dev/null ||
11642 echo X"$as_dir" |
11643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11645 /^X\(\/\/\)$/{ s//\1/; q; }
11646 /^X\(\/\).*/{ s//\1/; q; }
11647 s/.*/./; q'`
11648 done
11649 test ! -n "$as_dirs" || mkdir $as_dirs
11650 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11652 { (exit 1); exit 1; }; }; }
11654 ac_builddir=.
11656 if test "$ac_dir" != .; then
11657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11658 # A "../" for each directory in $ac_dir_suffix.
11659 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11660 else
11661 ac_dir_suffix= ac_top_builddir=
11664 case $srcdir in
11665 .) # No --srcdir option. We are building in place.
11666 ac_srcdir=.
11667 if test -z "$ac_top_builddir"; then
11668 ac_top_srcdir=.
11669 else
11670 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11671 fi ;;
11672 [\\/]* | ?:[\\/]* ) # Absolute path.
11673 ac_srcdir=$srcdir$ac_dir_suffix;
11674 ac_top_srcdir=$srcdir ;;
11675 *) # Relative path.
11676 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11677 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11678 esac
11680 # Do not use `cd foo && pwd` to compute absolute paths, because
11681 # the directories may not exist.
11682 case `pwd` in
11683 .) ac_abs_builddir="$ac_dir";;
11685 case "$ac_dir" in
11686 .) ac_abs_builddir=`pwd`;;
11687 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11688 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11689 esac;;
11690 esac
11691 case $ac_abs_builddir in
11692 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11694 case ${ac_top_builddir}. in
11695 .) ac_abs_top_builddir=$ac_abs_builddir;;
11696 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11697 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11698 esac;;
11699 esac
11700 case $ac_abs_builddir in
11701 .) ac_abs_srcdir=$ac_srcdir;;
11703 case $ac_srcdir in
11704 .) ac_abs_srcdir=$ac_abs_builddir;;
11705 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11706 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11707 esac;;
11708 esac
11709 case $ac_abs_builddir in
11710 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11712 case $ac_top_srcdir in
11713 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11714 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11715 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11716 esac;;
11717 esac
11720 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11721 echo "$as_me: executing $ac_dest commands" >&6;}
11722 case $ac_dest in
11723 compiler_executable )
11724 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11725 mkdir -p $prefix
11726 prefix="${prefix}/${aros_target_cpu}-aros"
11727 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11729 echo ${prefix}
11730 echo ${prefix2}
11731 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11733 ln -sf ${prefix2}-gcc ${prefix}-gcc
11734 ln -sf ${prefix2}-ld ${prefix}-ld
11736 ln -sf $aros_target_as_ln ${prefix}-as
11737 ln -sf $aros_target_nm_ln ${prefix}-nm
11738 ln -sf $aros_target_ar_ln ${prefix}-ar
11739 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
11740 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
11741 ln -sf $aros_target_objdump_ln ${prefix}-objdump
11742 ln -sf $aros_target_strip_ln ${prefix}-strip
11744 ln -sf $aros_target_as_ln ${prefix2}-as
11745 ln -sf $aros_target_nm_ln ${prefix2}-nm
11746 ln -sf $aros_target_ar_ln ${prefix2}-ar
11747 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
11748 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
11749 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
11750 ln -sf $aros_target_strip_ln ${prefix2}-strip
11752 genshared_executable ) chmod a+x ${aros_scripts_dir}/genshared ;;
11753 genmf_executable ) chmod a+x ${aros_tools_dir}/genmf.py ;;
11754 adflib_myaros.conf_executable ) chmod a+x tools/adflib/myconf.aros
11756 esac
11757 done
11758 _ACEOF
11760 cat >>$CONFIG_STATUS <<\_ACEOF
11762 { (exit 0); exit 0; }
11763 _ACEOF
11764 chmod +x $CONFIG_STATUS
11765 ac_clean_files=$ac_clean_files_save
11768 # configure is writing to config.log, and then calls config.status.
11769 # config.status does its own redirection, appending to config.log.
11770 # Unfortunately, on DOS this fails, as config.log is still kept open
11771 # by configure, so config.status won't be able to write to it; its
11772 # output is simply discarded. So we exec the FD to /dev/null,
11773 # effectively closing config.log, so it can be properly (re)opened and
11774 # appended to by config.status. When coming back to configure, we
11775 # need to make the FD available again.
11776 if test "$no_create" != yes; then
11777 ac_cs_success=:
11778 ac_config_status_args=
11779 test "$silent" = yes &&
11780 ac_config_status_args="$ac_config_status_args --quiet"
11781 exec 5>/dev/null
11782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11783 exec 5>>config.log
11784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11785 # would make configure fail if this is the last instruction.
11786 $ac_cs_success || { (exit 1); exit 1; }
11791 #XXX compatability...
11792 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
11794 if test -n "$aros_shared_cflags" ; then
11795 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
11796 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg