]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/ppc/configure
sim:
[thirdparty/binutils-gdb.git] / sim / ppc / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
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## --------------------- ##
c906108c 11
b7026657
AC
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
c906108c 23
b7026657
AC
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
38# NLS nuisances.
39for 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
43do
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
48 fi
49done
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
c906108c
SS
76
77
b7026657
AC
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 85
b7026657
AC
86# The user is always right.
87if 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=:
95 fi
96 rm -f conf$$.sh
97fi
c906108c
SS
98
99
b7026657
AC
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
c906108c 116
b7026657
AC
117 ;;
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
123 fi
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; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
137 /*)
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
152done
153;;
154 esac
c906108c 155
b7026657
AC
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 '
166 N
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; }; }
177
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
184}
c906108c
SS
185
186
b7026657
AC
187case `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= ;;
192esac
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
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}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="Makefile.in"
275# Factoring default headers for most tests.
276ac_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"
c906108c 311
6efef468 312ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS CC_FOR_BUILD CFLAGS_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu LTLIBOBJS'
b7026657 313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
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.
c906108c
SS
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
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
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
378
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=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
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"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
416
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=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
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 ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
441
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=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
465
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=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
486 no_create=yes ;;
487
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 ;;
491
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=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
505
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=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
512
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=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
519
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=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
546
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=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
567
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=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
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; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
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" ;;
c906108c
SS
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
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=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
618
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=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
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 ;;
640
c906108c 641 *)
b7026657
AC
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}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
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; }; }
c906108c 656fi
c906108c 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
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; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
696 fi
697fi
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
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 ||
715echo 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'`
c906108c
SS
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
c906108c 773
b7026657
AC
774#
775# Report the --help message.
776#
777if 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.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
790Configuration:
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 \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation 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]
c906108c 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
c906108c 814
b7026657 815For better control, use the options below.
c906108c 816
b7026657
AC
817Fine 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
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
c906108c 844fi
c906108c 845
b7026657 846if test -n "$ac_init_help"; then
c906108c 847
b7026657 848 cat <<\_ACEOF
cd0fc7c3 849
b7026657
AC
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
853 --enable-sim-alignment=align Specify strict or nonstrict alignment.
854 --enable-sim-assert Specify whether to perform random assertions.
855 --enable-sim-bitsize=n Specify target bitsize (32 or 64).
856 --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums.
857 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
858 --enable-sim-config=file Override default config file
859 --enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
860 --enable-sim-default-model=which Specify default PowerPC to model.
861 --enable-sim-duplicate Expand (duplicate) semantic functions.
862 --enable-sim-endian=endian Specify target byte endian orientation.
863 --enable-sim-env=env Specify target environment (operating, virtual, user).
864 --enable-sim-filter=rule Specify filter rules.
865 --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point.
866 --enable-sim-hardware=list Specify the hardware to be included in the build.
867 --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64).
868 --enable-sim-hostendian=end Specify host byte endian orientation.
869 --enable-sim-icache=size Specify instruction-decode cache size and type.
870 --enable-sim-inline=inlines Specify which functions should be inlined.
871 --enable-sim-jump Jump between semantic code (instead of call/return).
872 --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code
873 --enable-sim-model=which Specify PowerPC to model.
874 --enable-sim-model-issue Specify whether to simulate model specific actions
875 --enable-sim-monitor=mon Specify whether to enable monitoring events.
876 --enable-sim-opcode=which Override default opcode lookup.
877 --enable-sim-packages=list Specify the packages to be included in the build.
878 --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.
879 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
880 --enable-sim-smp=n Specify number of processors to configure for.
881 --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.
882 --enable-sim-stdio Specify whether to use stdio for console input/output.
883 --enable-sim-switch Use a switch instead of a table for instruction call.
884 --enable-sim-timebase Specify whether the PPC timebase is supported.
885 --enable-sim-trace Specify whether tracing is supported.
886 --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
887 --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
888
6efef468
JM
889Optional Packages:
890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
892 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
893 --with-bugurl=URL Direct users to URL to report a bug
894
b7026657
AC
895Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904Use these variables to override the choices made by `configure' or to help
905it to find libraries and programs with nonstandard names/locations.
906
907_ACEOF
908fi
909
910if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921else
922 ac_dir_suffix= ac_top_builddir=
923fi
924
925case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939esac
940
941# Do not use `cd foo && pwd` to compute absolute paths, because
942# the directories may not exist.
943case `pwd` in
944.) ac_abs_builddir="$ac_dir";;
945*)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_builddir=${ac_top_builddir}.;;
954*)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_srcdir=$ac_srcdir;;
963*)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969esac
970case $ac_abs_builddir in
971.) ac_abs_top_srcdir=$ac_top_srcdir;;
972*)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
992 else
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
058ad269 995 cd $ac_popdir
b7026657
AC
996 done
997fi
998
999test -n "$ac_init_help" && exit 0
1000if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003Copyright (C) 2003 Free Software Foundation, Inc.
1004This configure script is free software; the Free Software Foundation
1005gives unlimited permission to copy, distribute and modify it.
1006_ACEOF
1007 exit 0
1008fi
1009exec 5>config.log
1010cat >&5 <<_ACEOF
1011This file contains any messages produced by compilers while
1012running configure, to aid debugging if configure makes a mistake.
1013
1014It was created by $as_me, which was
1015generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019_ACEOF
1020{
1021cat <<_ASUNAME
1022## --------- ##
1023## Platform. ##
1024## --------- ##
1025
1026hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043_ASUNAME
1044
1045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046for as_dir in $PATH
1047do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051done
1052
1053} >&5
1054
1055cat >&5 <<_ACEOF
1056
1057
1058## ----------- ##
1059## Core tests. ##
1060## ----------- ##
1061
1062_ACEOF
1063
1064
1065# Keep a trace of the command line.
1066# Strip out --no-create and --no-recursion so they do not pile up.
1067# Strip out --silent because we don't want to record it for future runs.
1068# Also quote any args containing shell meta-characters.
1069# Make two passes to allow for proper duplicate-argument suppression.
1070ac_configure_args=
1071ac_configure_args0=
1072ac_configure_args1=
1073ac_sep=
1074ac_must_keep_next=false
1075for ac_pass in 1 2
1076do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112done
1113$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116# When interrupted or exit'd, cleanup temporary files, and complete
1117# config.log. We remove comments because anyway the quotes in there
1118# would cause problems or look ugly.
1119# WARNING: Be sure not to use single quotes in there, as some shells,
1120# such as our DU 5.0 friend, will then `close' the trap.
1121trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127## ---------------- ##
1128## Cache variables. ##
1129## ---------------- ##
1130_ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133{
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146}
1147 echo
1148
1149 cat <<\_ASBOX
1150## ----------------- ##
1151## Output variables. ##
1152## ----------------- ##
1153_ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164## ------------- ##
1165## Output files. ##
1166## ------------- ##
1167_ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179## ----------- ##
1180## confdefs.h. ##
1181## ----------- ##
1182_ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
1186 fi
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197done
1198ac_signal=0
1199
1200# confdefs.h avoids OS command line length limits that DEFS can exceed.
1201rm -rf conftest* confdefs.h
1202# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203echo >confdefs.h
1204
1205# Predefined preprocessor variables.
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_NAME "$PACKAGE_NAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_VERSION "$PACKAGE_VERSION"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_STRING "$PACKAGE_STRING"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229_ACEOF
1230
1231
1232# Let the site file select an alternate cache file if it wants to.
1233# Prefer explicitly selected file to automatically selected ones.
1234if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 fi
1240fi
1241for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1246 . "$ac_site_file"
1247 fi
1248done
1249
1250if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
1261else
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265fi
1266
1267# Check that the precious variables saved in the cache have kept the same
1268# value.
1269ac_cache_corrupted=false
1270for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309done
1310if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1316fi
1317
1318ac_ext=c
1319ac_cpp='$CPP $CPPFLAGS'
1320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343ac_aux_dir=
1344for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1345 if test -f $ac_dir/install-sh; then
1346 ac_aux_dir=$ac_dir
1347 ac_install_sh="$ac_aux_dir/install-sh -c"
1348 break
1349 elif test -f $ac_dir/install.sh; then
1350 ac_aux_dir=$ac_dir
1351 ac_install_sh="$ac_aux_dir/install.sh -c"
1352 break
1353 elif test -f $ac_dir/shtool; then
1354 ac_aux_dir=$ac_dir
1355 ac_install_sh="$ac_aux_dir/shtool install -c"
1356 break
1357 fi
1358done
1359if test -z "$ac_aux_dir"; then
1360 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1361echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1362 { (exit 1); exit 1; }; }
1363fi
1364ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1365ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1366ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1367
1368# Find a good install program. We prefer a C program (faster),
1369# so one script is as good as another. But avoid the broken or
1370# incompatible versions:
1371# SysV /etc/install, /usr/sbin/install
1372# SunOS /usr/etc/install
1373# IRIX /sbin/install
1374# AIX /bin/install
1375# AmigaOS /C/install, which installs bootblocks on floppy discs
1376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1379# OS/2's system install, which has a completely different semantic
1380# ./install, which can be erroneously created by make from ./install.sh.
1381echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1382echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1383if test -z "$INSTALL"; then
1384if test "${ac_cv_path_install+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388for as_dir in $PATH
1389do
1390 IFS=$as_save_IFS
1391 test -z "$as_dir" && as_dir=.
1392 # Account for people who put trailing slashes in PATH elements.
1393case $as_dir/ in
1394 ./ | .// | /cC/* | \
1395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1396 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1397 /usr/ucb/* ) ;;
1398 *)
1399 # OSF1 and SCO ODT 3.0 have their own names for install.
1400 # Don't use installbsd from OSF since it installs stuff as root
1401 # by default.
1402 for ac_prog in ginstall scoinst install; do
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1405 if test $ac_prog = install &&
1406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1407 # AIX install. It has an incompatible calling convention.
1408 :
1409 elif test $ac_prog = install &&
1410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1411 # program-specific install script used by HP pwplus--don't use.
1412 :
1413 else
1414 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1415 break 3
1416 fi
1417 fi
1418 done
1419 done
1420 ;;
1421esac
1422done
1423
1424
1425fi
1426 if test "${ac_cv_path_install+set}" = set; then
1427 INSTALL=$ac_cv_path_install
1428 else
1429 # As a last resort, use the slow shell script. We don't cache a
1430 # path for INSTALL within a source directory, because that will
1431 # break other packages using the cache if that directory is
1432 # removed, or if the path is relative.
1433 INSTALL=$ac_install_sh
1434 fi
1435fi
1436echo "$as_me:$LINENO: result: $INSTALL" >&5
1437echo "${ECHO_T}$INSTALL" >&6
1438
1439# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1440# It thinks the first close brace ends the variable substitution.
1441test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1442
1443test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1444
1445test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1446
1447ac_ext=c
1448ac_cpp='$CPP $CPPFLAGS'
1449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452if test -n "$ac_tool_prefix"; then
1453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1454set dummy ${ac_tool_prefix}gcc; ac_word=$2
1455echo "$as_me:$LINENO: checking for $ac_word" >&5
1456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1457if test "${ac_cv_prog_CC+set}" = set; then
1458 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1459else
1460 if test -n "$CC"; then
1461 ac_cv_prog_CC="$CC" # Let the user override the test.
1462else
b7026657
AC
1463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1464for as_dir in $PATH
1465do
1466 IFS=$as_save_IFS
1467 test -z "$as_dir" && as_dir=.
1468 for ac_exec_ext in '' $ac_executable_extensions; do
1469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1472 break 2
1473 fi
1474done
1475done
1476
c906108c
SS
1477fi
1478fi
b7026657 1479CC=$ac_cv_prog_CC
c906108c 1480if test -n "$CC"; then
b7026657
AC
1481 echo "$as_me:$LINENO: result: $CC" >&5
1482echo "${ECHO_T}$CC" >&6
1483else
1484 echo "$as_me:$LINENO: result: no" >&5
1485echo "${ECHO_T}no" >&6
1486fi
1487
1488fi
1489if test -z "$ac_cv_prog_CC"; then
1490 ac_ct_CC=$CC
1491 # Extract the first word of "gcc", so it can be a program name with args.
1492set dummy gcc; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498 if test -n "$ac_ct_CC"; then
1499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_ac_ct_CC="gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510 break 2
1511 fi
1512done
1513done
1514
1515fi
1516fi
1517ac_ct_CC=$ac_cv_prog_ac_ct_CC
1518if test -n "$ac_ct_CC"; then
1519 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1520echo "${ECHO_T}$ac_ct_CC" >&6
c906108c 1521else
b7026657
AC
1522 echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526 CC=$ac_ct_CC
1527else
1528 CC="$ac_cv_prog_CC"
c906108c
SS
1529fi
1530
1531if test -z "$CC"; then
b7026657
AC
1532 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1534set dummy ${ac_tool_prefix}cc; ac_word=$2
1535echo "$as_me:$LINENO: checking for $ac_word" >&5
1536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539else
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1542else
1543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544for as_dir in $PATH
1545do
1546 IFS=$as_save_IFS
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC="${ac_tool_prefix}cc"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 break 2
1553 fi
1554done
1555done
1556
1557fi
1558fi
1559CC=$ac_cv_prog_CC
1560if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562echo "${ECHO_T}$CC" >&6
1563else
1564 echo "$as_me:$LINENO: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566fi
1567
1568fi
1569if test -z "$ac_cv_prog_CC"; then
1570 ac_ct_CC=$CC
c906108c
SS
1571 # Extract the first word of "cc", so it can be a program name with args.
1572set dummy cc; ac_word=$2
b7026657
AC
1573echo "$as_me:$LINENO: checking for $ac_word" >&5
1574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580else
1581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582for as_dir in $PATH
1583do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC="cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1591 fi
1592done
1593done
1594
1595fi
1596fi
1597ac_ct_CC=$ac_cv_prog_ac_ct_CC
1598if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600echo "${ECHO_T}$ac_ct_CC" >&6
1601else
1602 echo "$as_me:$LINENO: result: no" >&5
1603echo "${ECHO_T}no" >&6
1604fi
1605
1606 CC=$ac_ct_CC
1607else
1608 CC="$ac_cv_prog_CC"
1609fi
1610
1611fi
1612if test -z "$CC"; then
1613 # Extract the first word of "cc", so it can be a program name with args.
1614set dummy cc; ac_word=$2
1615echo "$as_me:$LINENO: checking for $ac_word" >&5
1616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1617if test "${ac_cv_prog_CC+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1619else
1620 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test.
1622else
c906108c 1623 ac_prog_rejected=no
b7026657
AC
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1632 ac_prog_rejected=yes
1633 continue
1634 fi
1635 ac_cv_prog_CC="cc"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1638 fi
1639done
1640done
1641
c906108c
SS
1642if test $ac_prog_rejected = yes; then
1643 # We found a bogon in the path, so make sure we never use it.
1644 set dummy $ac_cv_prog_CC
1645 shift
b7026657 1646 if test $# != 0; then
c906108c
SS
1647 # We chose a different compiler from the bogus one.
1648 # However, it has the same basename, so the bogon will be chosen
1649 # first if we set CC to just the basename; use the full file name.
1650 shift
b7026657 1651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1652 fi
1653fi
1654fi
1655fi
b7026657 1656CC=$ac_cv_prog_CC
c906108c 1657if test -n "$CC"; then
b7026657
AC
1658 echo "$as_me:$LINENO: result: $CC" >&5
1659echo "${ECHO_T}$CC" >&6
c906108c 1660else
b7026657
AC
1661 echo "$as_me:$LINENO: result: no" >&5
1662echo "${ECHO_T}no" >&6
c906108c
SS
1663fi
1664
b7026657
AC
1665fi
1666if test -z "$CC"; then
1667 if test -n "$ac_tool_prefix"; then
1668 for ac_prog in cl
1669 do
1670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1672echo "$as_me:$LINENO: checking for $ac_word" >&5
1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674if test "${ac_cv_prog_CC+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1676else
1677 if test -n "$CC"; then
1678 ac_cv_prog_CC="$CC" # Let the user override the test.
1679else
b7026657
AC
1680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681for as_dir in $PATH
1682do
1683 IFS=$as_save_IFS
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 break 2
1690 fi
1691done
1692done
1693
1694fi
1695fi
1696CC=$ac_cv_prog_CC
1697if test -n "$CC"; then
1698 echo "$as_me:$LINENO: result: $CC" >&5
1699echo "${ECHO_T}$CC" >&6
1700else
1701 echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705 test -n "$CC" && break
1706 done
1707fi
1708if test -z "$CC"; then
1709 ac_ct_CC=$CC
1710 for ac_prog in cl
1711do
1712 # Extract the first word of "$ac_prog", so it can be a program name with args.
1713set dummy $ac_prog; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719 if test -n "$ac_ct_CC"; then
1720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725 IFS=$as_save_IFS
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_CC="$ac_prog"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731 break 2
1732 fi
1733done
1734done
1735
1736fi
1737fi
1738ac_ct_CC=$ac_cv_prog_ac_ct_CC
1739if test -n "$ac_ct_CC"; then
1740 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1741echo "${ECHO_T}$ac_ct_CC" >&6
1742else
1743 echo "$as_me:$LINENO: result: no" >&5
1744echo "${ECHO_T}no" >&6
1745fi
1746
1747 test -n "$ac_ct_CC" && break
1748done
1749
1750 CC=$ac_ct_CC
1751fi
1752
1753fi
1754
1755
1756test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1757See \`config.log' for more details." >&5
1758echo "$as_me: error: no acceptable C compiler found in \$PATH
1759See \`config.log' for more details." >&2;}
1760 { (exit 1); exit 1; }; }
1761
1762# Provide some information about the compiler.
1763echo "$as_me:$LINENO:" \
1764 "checking for C compiler version" >&5
1765ac_compiler=`set X $ac_compile; echo $2`
1766{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1767 (eval $ac_compiler --version </dev/null >&5) 2>&5
1768 ac_status=$?
1769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1770 (exit $ac_status); }
1771{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1772 (eval $ac_compiler -v </dev/null >&5) 2>&5
1773 ac_status=$?
1774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1775 (exit $ac_status); }
1776{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1777 (eval $ac_compiler -V </dev/null >&5) 2>&5
1778 ac_status=$?
1779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780 (exit $ac_status); }
1781
1782cat >conftest.$ac_ext <<_ACEOF
1783/* confdefs.h. */
1784_ACEOF
1785cat confdefs.h >>conftest.$ac_ext
1786cat >>conftest.$ac_ext <<_ACEOF
1787/* end confdefs.h. */
1788
1789int
1790main ()
1791{
1792
1793 ;
1794 return 0;
1795}
1796_ACEOF
1797ac_clean_files_save=$ac_clean_files
1798ac_clean_files="$ac_clean_files a.out a.exe b.out"
1799# Try to create an executable without -o first, disregard a.out.
1800# It will help us diagnose broken compilers, and finding out an intuition
1801# of exeext.
1802echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1803echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1804ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1805if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1806 (eval $ac_link_default) 2>&5
1807 ac_status=$?
1808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1809 (exit $ac_status); }; then
1810 # Find the output, starting from the most likely. This scheme is
1811# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1812# resort.
1813
1814# Be careful to initialize this variable, since it used to be cached.
1815# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1816ac_cv_exeext=
1817# b.out is created by i960 compilers.
1818for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1819do
1820 test -f "$ac_file" || continue
1821 case $ac_file in
1822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1823 ;;
1824 conftest.$ac_ext )
1825 # This is the source file.
1826 ;;
1827 [ab].out )
1828 # We found the default executable, but exeext='' is most
1829 # certainly right.
1830 break;;
1831 *.* )
1832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833 # FIXME: I believe we export ac_cv_exeext for Libtool,
1834 # but it would be cool to find out if it's true. Does anybody
1835 # maintain Libtool? --akim.
1836 export ac_cv_exeext
1837 break;;
1838 * )
1839 break;;
1840 esac
1841done
1842else
1843 echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1847See \`config.log' for more details." >&5
1848echo "$as_me: error: C compiler cannot create executables
1849See \`config.log' for more details." >&2;}
1850 { (exit 77); exit 77; }; }
1851fi
1852
1853ac_exeext=$ac_cv_exeext
1854echo "$as_me:$LINENO: result: $ac_file" >&5
1855echo "${ECHO_T}$ac_file" >&6
1856
1857# Check the compiler produces executables we can run. If not, either
1858# the compiler is broken, or we cross compile.
1859echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1860echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1861# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1862# If not cross compiling, check that we can run a simple program.
1863if test "$cross_compiling" != yes; then
1864 if { ac_try='./$ac_file'
1865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1866 (eval $ac_try) 2>&5
1867 ac_status=$?
1868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869 (exit $ac_status); }; }; then
1870 cross_compiling=no
1871 else
1872 if test "$cross_compiling" = maybe; then
1873 cross_compiling=yes
1874 else
1875 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1876If you meant to cross compile, use \`--host'.
1877See \`config.log' for more details." >&5
1878echo "$as_me: error: cannot run C compiled programs.
1879If you meant to cross compile, use \`--host'.
1880See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
c906108c 1882 fi
b7026657 1883 fi
c906108c 1884fi
b7026657
AC
1885echo "$as_me:$LINENO: result: yes" >&5
1886echo "${ECHO_T}yes" >&6
1887
1888rm -f a.out a.exe conftest$ac_cv_exeext b.out
1889ac_clean_files=$ac_clean_files_save
1890# Check the compiler produces executables we can run. If not, either
1891# the compiler is broken, or we cross compile.
1892echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1893echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1894echo "$as_me:$LINENO: result: $cross_compiling" >&5
1895echo "${ECHO_T}$cross_compiling" >&6
1896
1897echo "$as_me:$LINENO: checking for suffix of executables" >&5
1898echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1900 (eval $ac_link) 2>&5
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); }; then
1904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1906# work properly (i.e., refer to `conftest.exe'), while it won't with
1907# `rm'.
1908for ac_file in conftest.exe conftest conftest.*; do
1909 test -f "$ac_file" || continue
1910 case $ac_file in
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913 export ac_cv_exeext
1914 break;;
1915 * ) break;;
1916 esac
1917done
c906108c 1918else
b7026657
AC
1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1920See \`config.log' for more details." >&5
1921echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1922See \`config.log' for more details." >&2;}
1923 { (exit 1); exit 1; }; }
c906108c
SS
1924fi
1925
b7026657
AC
1926rm -f conftest$ac_cv_exeext
1927echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1928echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1929
b7026657
AC
1930rm -f conftest.$ac_ext
1931EXEEXT=$ac_cv_exeext
1932ac_exeext=$EXEEXT
1933echo "$as_me:$LINENO: checking for suffix of object files" >&5
1934echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1935if test "${ac_cv_objext+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
1938 cat >conftest.$ac_ext <<_ACEOF
1939/* confdefs.h. */
1940_ACEOF
1941cat confdefs.h >>conftest.$ac_ext
1942cat >>conftest.$ac_ext <<_ACEOF
1943/* end confdefs.h. */
1944
1945int
1946main ()
1947{
1948
1949 ;
1950 return 0;
1951}
1952_ACEOF
1953rm -f conftest.o conftest.obj
1954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955 (eval $ac_compile) 2>&5
1956 ac_status=$?
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }; then
1959 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1960 case $ac_file in
1961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1963 break;;
1964 esac
1965done
c906108c 1966else
b7026657
AC
1967 echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
c906108c 1969
b7026657
AC
1970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: cannot compute suffix of object files: cannot compile
1973See \`config.log' for more details." >&2;}
1974 { (exit 1); exit 1; }; }
c906108c 1975fi
c906108c 1976
b7026657
AC
1977rm -f conftest.$ac_cv_objext conftest.$ac_ext
1978fi
1979echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1980echo "${ECHO_T}$ac_cv_objext" >&6
1981OBJEXT=$ac_cv_objext
1982ac_objext=$OBJEXT
1983echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1985if test "${ac_cv_c_compiler_gnu+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1987else
b7026657
AC
1988 cat >conftest.$ac_ext <<_ACEOF
1989/* confdefs.h. */
1990_ACEOF
1991cat confdefs.h >>conftest.$ac_ext
1992cat >>conftest.$ac_ext <<_ACEOF
1993/* end confdefs.h. */
1994
1995int
1996main ()
1997{
1998#ifndef __GNUC__
1999 choke me
c906108c 2000#endif
c906108c 2001
b7026657
AC
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006rm -f conftest.$ac_objext
2007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>conftest.er1
2009 ac_status=$?
2010 grep -v '^ *+' conftest.er1 >conftest.err
2011 rm -f conftest.er1
2012 cat conftest.err >&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
058ad269
MM
2015 { ac_try='test -z "$ac_c_werror_flag"
2016 || test ! -s conftest.err'
b7026657
AC
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; } &&
2022 { ac_try='test -s conftest.$ac_objext'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; }; then
2028 ac_compiler_gnu=yes
2029else
2030 echo "$as_me: failed program was:" >&5
2031sed 's/^/| /' conftest.$ac_ext >&5
2032
2033ac_compiler_gnu=no
2034fi
2035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2036ac_cv_c_compiler_gnu=$ac_compiler_gnu
2037
2038fi
2039echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2041GCC=`test $ac_compiler_gnu = yes && echo yes`
2042ac_test_CFLAGS=${CFLAGS+set}
2043ac_save_CFLAGS=$CFLAGS
2044CFLAGS="-g"
2045echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2047if test "${ac_cv_prog_cc_g+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050 cat >conftest.$ac_ext <<_ACEOF
2051/* confdefs.h. */
2052_ACEOF
2053cat confdefs.h >>conftest.$ac_ext
2054cat >>conftest.$ac_ext <<_ACEOF
2055/* end confdefs.h. */
c906108c 2056
b7026657
AC
2057int
2058main ()
2059{
c906108c 2060
b7026657
AC
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065rm -f conftest.$ac_objext
2066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067 (eval $ac_compile) 2>conftest.er1
2068 ac_status=$?
2069 grep -v '^ *+' conftest.er1 >conftest.err
2070 rm -f conftest.er1
2071 cat conftest.err >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); } &&
058ad269
MM
2074 { ac_try='test -z "$ac_c_werror_flag"
2075 || test ! -s conftest.err'
b7026657
AC
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077 (eval $ac_try) 2>&5
2078 ac_status=$?
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; } &&
2081 { ac_try='test -s conftest.$ac_objext'
2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083 (eval $ac_try) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; }; then
c906108c
SS
2087 ac_cv_prog_cc_g=yes
2088else
b7026657
AC
2089 echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2091
b7026657 2092ac_cv_prog_cc_g=no
c906108c 2093fi
b7026657
AC
2094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2097echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2098if test "$ac_test_CFLAGS" = set; then
b7026657 2099 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2100elif test $ac_cv_prog_cc_g = yes; then
2101 if test "$GCC" = yes; then
2102 CFLAGS="-g -O2"
2103 else
2104 CFLAGS="-g"
2105 fi
2106else
2107 if test "$GCC" = yes; then
2108 CFLAGS="-O2"
2109 else
2110 CFLAGS=
2111 fi
2112fi
b7026657
AC
2113echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2114echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2115if test "${ac_cv_prog_cc_stdc+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118 ac_cv_prog_cc_stdc=no
2119ac_save_CC=$CC
2120cat >conftest.$ac_ext <<_ACEOF
2121/* confdefs.h. */
2122_ACEOF
2123cat confdefs.h >>conftest.$ac_ext
2124cat >>conftest.$ac_ext <<_ACEOF
2125/* end confdefs.h. */
2126#include <stdarg.h>
2127#include <stdio.h>
2128#include <sys/types.h>
2129#include <sys/stat.h>
2130/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2131struct buf { int x; };
2132FILE * (*rcsopen) (struct buf *, struct stat *, int);
2133static char *e (p, i)
2134 char **p;
2135 int i;
2136{
2137 return p[i];
2138}
2139static char *f (char * (*g) (char **, int), char **p, ...)
2140{
2141 char *s;
2142 va_list v;
2143 va_start (v,p);
2144 s = g (p, va_arg (v,int));
2145 va_end (v);
2146 return s;
2147}
c906108c 2148
b7026657
AC
2149/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2150 function prototypes and stuff, but not '\xHH' hex character constants.
2151 These don't provoke an error unfortunately, instead are silently treated
2152 as 'x'. The following induces an error, until -std1 is added to get
2153 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2154 array size at least. It's necessary to write '\x00'==0 to get something
2155 that's true only with -std1. */
2156int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2157
2158int test (int i, double x);
2159struct s1 {int (*f) (int a);};
2160struct s2 {int (*f) (double a);};
2161int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162int argc;
2163char **argv;
2164int
2165main ()
2166{
2167return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172# Don't try gcc -ansi; that turns off useful extensions and
2173# breaks some systems' header files.
2174# AIX -qlanglvl=ansi
2175# Ultrix and OSF/1 -std1
2176# HP-UX 10.20 and later -Ae
2177# HP-UX older versions -Aa -D_HPUX_SOURCE
2178# SVR4 -Xc -D__EXTENSIONS__
2179for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180do
2181 CC="$ac_save_CC $ac_arg"
2182 rm -f conftest.$ac_objext
2183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>conftest.er1
2185 ac_status=$?
2186 grep -v '^ *+' conftest.er1 >conftest.err
2187 rm -f conftest.er1
2188 cat conftest.err >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); } &&
058ad269
MM
2191 { ac_try='test -z "$ac_c_werror_flag"
2192 || test ! -s conftest.err'
b7026657
AC
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 (eval $ac_try) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2205break
2206else
2207 echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210fi
2211rm -f conftest.err conftest.$ac_objext
2212done
2213rm -f conftest.$ac_ext conftest.$ac_objext
2214CC=$ac_save_CC
c906108c 2215
c906108c
SS
2216fi
2217
b7026657
AC
2218case "x$ac_cv_prog_cc_stdc" in
2219 x|xno)
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221echo "${ECHO_T}none needed" >&6 ;;
2222 *)
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2226esac
2227
2228# Some people use a C++ compiler to compile C. Since we use `exit',
2229# in C++ we need to declare it. In case someone uses the same compiler
2230# for both compiling C and C++ we need to have the C++ compiler decide
2231# the declaration of exit, since it's the most demanding environment.
2232cat >conftest.$ac_ext <<_ACEOF
2233#ifndef __cplusplus
2234 choke me
2235#endif
2236_ACEOF
2237rm -f conftest.$ac_objext
2238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>conftest.er1
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
058ad269
MM
2246 { ac_try='test -z "$ac_c_werror_flag"
2247 || test ! -s conftest.err'
b7026657
AC
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 (eval $ac_try) 2>&5
2250 ac_status=$?
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; } &&
2253 { ac_try='test -s conftest.$ac_objext'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; }; then
2259 for ac_declaration in \
2260 '' \
2261 'extern "C" void std::exit (int) throw (); using std::exit;' \
2262 'extern "C" void std::exit (int); using std::exit;' \
2263 'extern "C" void exit (int) throw ();' \
2264 'extern "C" void exit (int);' \
2265 'void exit (int);'
2266do
2267 cat >conftest.$ac_ext <<_ACEOF
2268/* confdefs.h. */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h. */
2273$ac_declaration
2274#include <stdlib.h>
2275int
2276main ()
2277{
2278exit (42);
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2286 ac_status=$?
2287 grep -v '^ *+' conftest.er1 >conftest.err
2288 rm -f conftest.er1
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
058ad269
MM
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
b7026657
AC
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
c906108c
SS
2305 :
2306else
b7026657
AC
2307 echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310continue
c906108c 2311fi
b7026657
AC
2312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h. */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h. */
2319$ac_declaration
2320int
2321main ()
2322{
2323exit (42);
2324 ;
2325 return 0;
2326}
2327_ACEOF
2328rm -f conftest.$ac_objext
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
058ad269
MM
2337 { ac_try='test -z "$ac_c_werror_flag"
2338 || test ! -s conftest.err'
b7026657
AC
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; } &&
2344 { ac_try='test -s conftest.$ac_objext'
2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346 (eval $ac_try) 2>&5
2347 ac_status=$?
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; }; then
2350 break
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
c906108c 2355fi
b7026657
AC
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357done
c906108c 2358rm -f conftest*
b7026657
AC
2359if test -n "$ac_declaration"; then
2360 echo '#ifdef __cplusplus' >>confdefs.h
2361 echo $ac_declaration >>confdefs.h
2362 echo '#endif' >>confdefs.h
c906108c 2363fi
b7026657
AC
2364
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
c906108c 2369fi
b7026657
AC
2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371ac_ext=c
2372ac_cpp='$CPP $CPPFLAGS'
2373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2375ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
2377
2378# Put a plausible default for CC_FOR_BUILD in Makefile.
2379if test "x$cross_compiling" = "xno"; then
2380 CC_FOR_BUILD='$(CC)'
c906108c 2381else
b7026657 2382 CC_FOR_BUILD=gcc
c906108c 2383fi
4b164edf 2384CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
c906108c 2385
b7026657 2386ALL_LINGUAS=
20e95c23
DJ
2387# If we haven't got the data from the intl directory,
2388# assume NLS is disabled.
2389USE_NLS=no
2390LIBINTL=
2391LIBINTL_DEP=
2392INCINTL=
2393XGETTEXT=
2394GMSGFMT=
2395POSUB=
e85e3205 2396
29035cbe
NH
2397if test -f ../../intl/config.intl; then
2398 . ../../intl/config.intl
20e95c23
DJ
2399fi
2400echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2401echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2402if test x"$USE_NLS" != xyes; then
2403 echo "$as_me:$LINENO: result: no" >&5
2404echo "${ECHO_T}no" >&6
c906108c 2405else
b7026657
AC
2406 echo "$as_me:$LINENO: result: yes" >&5
2407echo "${ECHO_T}yes" >&6
c906108c 2408
20e95c23
DJ
2409cat >>confdefs.h <<\_ACEOF
2410#define ENABLE_NLS 1
2411_ACEOF
2412
2413
2414 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2415echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2416 # Look for .po and .gmo files in the source directory.
2417 CATALOGS=
2418 XLINGUAS=
2419 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2420 # If there aren't any .gmo files the shell will give us the
2421 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2422 # weeded out.
2423 case "$cat" in *\**)
2424 continue;;
2425 esac
2426 # The quadruple backslash is collapsed to a double backslash
2427 # by the backticks, then collapsed again by the double quotes,
2428 # leaving us with one backslash in the sed expression (right
2429 # before the dot that mustn't act as a wildcard).
2430 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2431 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2432 # The user is allowed to set LINGUAS to a list of languages to
2433 # install catalogs for. If it's empty that means "all of them."
2434 if test "x$LINGUAS" = x; then
2435 CATALOGS="$CATALOGS $cat"
2436 XLINGUAS="$XLINGUAS $lang"
2437 else
2438 case "$LINGUAS" in *$lang*)
2439 CATALOGS="$CATALOGS $cat"
2440 XLINGUAS="$XLINGUAS $lang"
2441 ;;
2442 esac
2443 fi
2444 done
2445 LINGUAS="$XLINGUAS"
2446 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2447echo "${ECHO_T}$LINGUAS" >&6
2448
2449
2450 DATADIRNAME=share
2451
2452 INSTOBJEXT=.mo
2453
2454 GENCAT=gencat
2455
2456 CATOBJEXT=.gmo
b7026657 2457
c906108c 2458fi
20e95c23
DJ
2459
2460
2461# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
2462if test "${enable_sim_alignment+set}" = set; then
2463 enableval="$enable_sim_alignment"
2464 case "${enableval}" in
2465 yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
2466 no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
2467 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";;
2468 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
2469echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
2470 { (exit 1); exit 1; }; }; sim_alignment="";;
2471esac
2472if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
2473 echo "Setting alignment flags = $sim_alignment" 6>&1
c906108c 2474fi
c906108c 2475else
20e95c23
DJ
2476 sim_alignment=""
2477fi;
2478
2479# Check whether --enable-sim-assert or --disable-sim-assert was given.
2480if test "${enable_sim_assert+set}" = set; then
2481 enableval="$enable_sim_assert"
2482 case "${enableval}" in
2483 yes) sim_assert="-DWITH_ASSERT=1";;
2484 no) sim_assert="-DWITH_ASSERT=0";;
2485 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5
2486echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;}
2487 { (exit 1); exit 1; }; }; sim_assert="";;
2488esac
2489if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then
2490 echo "Setting assert flags = $sim_assert" 6>&1
b7026657 2491fi
20e95c23
DJ
2492else
2493 sim_assert=""
2494fi;
b7026657 2495
20e95c23
DJ
2496# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
2497if test "${enable_sim_bitsize+set}" = set; then
2498 enableval="$enable_sim_bitsize"
2499 case "${enableval}" in
2500 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
2501 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
2502echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
2503 { (exit 1); exit 1; }; }; sim_bitsize="";;
2504esac
2505if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
2506 echo "Setting bitsize flags = $sim_bitsize" 6>&1
c906108c 2507fi
b7026657 2508else
20e95c23
DJ
2509 sim_bitsize=""
2510fi;
2511
2512# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
2513if test "${enable_sim_bswap+set}" = set; then
2514 enableval="$enable_sim_bswap"
2515 case "${enableval}" in
2516 yes) sim_bswap="-DWITH_BSWAP=1";;
2517 no) sim_bswap="-DWITH_BSWAP=0";;
2518 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
2519echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
2520 { (exit 1); exit 1; }; }; sim_bswap="";;
2521esac
2522if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
2523 echo "Setting bswap flags = $sim_bswap" 6>&1
2524fi
b7026657 2525else
20e95c23
DJ
2526 sim_bswap=""
2527fi;
c906108c 2528
20e95c23
DJ
2529# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
2530if test "${enable_sim_cflags+set}" = set; then
2531 enableval="$enable_sim_cflags"
2532 case "${enableval}" in
2533 yes) sim_cflags="-O2 -fomit-frame-pointer";;
2534 no) sim_cflags="";;
2535 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2536esac
2537if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
2538 echo "Setting sim cflags = $sim_cflags" 6>&1
b7026657 2539fi
20e95c23
DJ
2540else
2541 sim_cflags=""
2542fi;
2543
2544# Check whether --enable-sim-config or --disable-sim-config was given.
2545if test "${enable_sim_config+set}" = set; then
2546 enableval="$enable_sim_config"
2547 case "${enableval}" in
2548 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5
2549echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;}
2550 { (exit 1); exit 1; }; };;
2551 *) if test -f "${srcdir}/${enableval}"; then
2552 sim_config="${enableval}";
2553 elif test -f "${srcdir}/${enableval}-config.h"; then
2554 sim_config="${enableval}-config.h"
2555 else
2556 { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5
2557echo "$as_me: error: \"Config file $enableval was not found\"" >&2;}
2558 { (exit 1); exit 1; }; };
2559 sim_config=std-config.h
2560 fi;;
2561esac
2562if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
2563 echo "Setting config flags = $sim_config" 6>&1
b7026657 2564fi
b7026657 2565else
20e95c23
DJ
2566 sim_config="std-config.h"
2567if test x"$silent" != x"yes"; then
2568 echo "Setting config flags = $sim_config" 6>&1
b7026657 2569fi
20e95c23 2570fi;
c906108c 2571
20e95c23
DJ
2572# Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given.
2573if test "${enable_sim_decode_mechanism+set}" = set; then
2574 enableval="$enable_sim_decode_mechanism"
2575 case "${enableval}" in
2576 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5
2577echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;}
2578 { (exit 1); exit 1; }; };;
2579 array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";;
2580 *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
2581echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
2582 { (exit 1); exit 1; }; };
2583 sim_decode_mechanism="switch";;
2584esac
2585if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
2586 echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
2587fi
b7026657 2588else
20e95c23
DJ
2589 sim_decode_mechanism=""
2590if test x"$silent" != x"yes"; then
2591 echo "Setting decode mechanism flags = $sim_decode_mechanism"
b7026657 2592fi
20e95c23 2593fi;
b7026657 2594
20e95c23
DJ
2595# Check whether --enable-sim-default-model or --disable-sim-default-model was given.
2596if test "${enable_sim_default_model+set}" = set; then
2597 enableval="$enable_sim_default_model"
2598 case "${enableval}" in
2599 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5
2600echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;}
2601 { (exit 1); exit 1; }; };;
2602 *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
2603esac
2604if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
2605 echo "Setting default-model flags = $sim_default_model" 6>&1
2606fi
2607else
2608 sim_default_model=""
2609fi;
b7026657 2610
20e95c23
DJ
2611# Check whether --enable-sim-duplicate or --disable-sim-duplicate was given.
2612if test "${enable_sim_duplicate+set}" = set; then
2613 enableval="$enable_sim_duplicate"
2614 case "${enableval}" in
2615 yes) sim_dup="-E";;
2616 no) sim_dup="";;
2617 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5
2618echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;}
2619 { (exit 1); exit 1; }; }; sim_dup="";;
2620esac
2621if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
2622 echo "Setting duplicate flags = $sim_dup" 6>&1
2623fi
b7026657 2624else
20e95c23
DJ
2625 sim_dup="-E"
2626if test x"$silent" != x"yes"; then
2627 echo "Setting duplicate flags = $sim_dup" 6>&1
2628fi
2629fi;
2630
2631# Check whether --enable-sim-endian or --disable-sim-endian was given.
2632if test "${enable_sim_endian+set}" = set; then
2633 enableval="$enable_sim_endian"
2634 case "${enableval}" in
2635 yes) case "$target" in
2636 *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2637 *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2638 *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2639 esac;;
2640 no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
2641 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
2642 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
2643 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
2644echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
2645 { (exit 1); exit 1; }; }; sim_endian="";;
2646esac
2647if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
2648 echo "Setting endian flags = $sim_endian" 6>&1
2649fi
2650else
2651 sim_endian=""
2652fi;
2653
2654# Check whether --enable-sim-env or --disable-sim-env was given.
2655if test "${enable_sim_env+set}" = set; then
2656 enableval="$enable_sim_env"
2657 case "${enableval}" in
2658 operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
2659 virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
2660 user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
2661 no) sim_env="-DWITH_ENVIRONMENT=0";;
2662 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5
2663echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;}
2664 { (exit 1); exit 1; }; }; sim_env="";;
2665esac
2666if test x"$silent" != x"yes" && test x"$sim_env" != x""; then
2667 echo "Setting env flags = $sim_env" 6>&1
2668fi
2669else
2670 sim_env=""
2671fi;
2672
2673# Check whether --enable-sim-filter or --disable-sim-filter was given.
2674if test "${enable_sim_filter+set}" = set; then
2675 enableval="$enable_sim_filter"
2676 case "${enableval}" in
2677 yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5
2678echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;}
2679 { (exit 1); exit 1; }; }; sim_filter="";;
2680 no) sim_filter="";;
2681 *) sim_filter="-F $enableval";;
2682esac
2683if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
2684 echo "Setting filter flags = $sim_filter" 6>&1
2685fi
2686else
2687 sim_filter="-F 32,f,o"
2688if test x"$silent" != x"yes"; then
2689 echo "Setting filter flags = $sim_filter" 6>&1
2690fi
2691fi;
2692
2693# Check whether --enable-sim-float or --disable-sim-float was given.
2694if test "${enable_sim_float+set}" = set; then
2695 enableval="$enable_sim_float"
2696 case "${enableval}" in
2697 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
2698 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
2699 altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2700 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2701 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
2702echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
2703 { (exit 1); exit 1; }; }; sim_float="";;
2704esac
2705if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
2706 echo "Setting float flags = $sim_float" 6>&1
2707fi
2708else
2709
2710case "${target}" in
2711 *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
2712 *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
2713 *) sim_float=""
2714esac
2715
2716fi;
2717
2718# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
2719if test "${enable_sim_hardware+set}" = set; then
2720 enableval="$enable_sim_hardware"
2721 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2722case "${enableval}" in
2723 yes) ;;
2724 no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5
2725echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;}
2726 { (exit 1); exit 1; }; }; hardware="";;
2727 ,*) hardware="${hardware}${enableval}";;
2728 *,) hardware="${enableval}${hardware}";;
2729 *) hardware="${enableval}"'';;
2730esac
2731sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2732sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2733if test x"$silent" != x"yes" && test x"$hardware" != x""; then
2734 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2735fi
2736else
2737 hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide"
2738sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
2739sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
2740if test x"$silent" != x"yes"; then
2741 echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
2742fi
2743fi;
2744
2745# Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given.
2746if test "${enable_sim_hostbitsize+set}" = set; then
2747 enableval="$enable_sim_hostbitsize"
2748 case "${enableval}" in
2749 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
2750 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5
2751echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;}
2752 { (exit 1); exit 1; }; }; sim_hostbitsize="";;
2753esac
2754if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
2755 echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
2756fi
2757else
2758 sim_hostbitsize=""
2759fi;
2760
2761
2762# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
2763if test "${enable_sim_hostendian+set}" = set; then
2764 enableval="$enable_sim_hostendian"
2765 case "${enableval}" in
2766 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
2767 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
2768 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
2769 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
2770echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
2771 { (exit 1); exit 1; }; }; sim_hostendian="";;
2772esac
2773if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
2774 echo "Setting hostendian flags = $sim_hostendian" 6>&1
2775fi
2776else
2777
2778if test "x$cross_compiling" = "xno"; then
2779 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2780echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2781if test "${ac_cv_c_bigendian+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784 # See if sys/param.h defines the BYTE_ORDER macro.
2785cat >conftest.$ac_ext <<_ACEOF
2786/* confdefs.h. */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h. */
2791#include <sys/types.h>
2792#include <sys/param.h>
b7026657 2793
b7026657
AC
2794int
2795main ()
2796{
20e95c23
DJ
2797#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2798 bogus endian macros
2799#endif
2800
b7026657
AC
2801 ;
2802 return 0;
2803}
2804_ACEOF
20e95c23
DJ
2805rm -f conftest.$ac_objext
2806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
058ad269
MM
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
b7026657
AC
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
20e95c23 2821 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
20e95c23
DJ
2827 # It does; now see whether it defined to BIG_ENDIAN or not.
2828cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
20e95c23
DJ
2834#include <sys/types.h>
2835#include <sys/param.h>
b7026657 2836
b7026657
AC
2837int
2838main ()
2839{
20e95c23
DJ
2840#if BYTE_ORDER != BIG_ENDIAN
2841 not big endian
2842#endif
2843
b7026657
AC
2844 ;
2845 return 0;
2846}
2847_ACEOF
20e95c23
DJ
2848rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2850 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
058ad269
MM
2857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
b7026657
AC
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
20e95c23 2864 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
20e95c23 2870 ac_cv_c_bigendian=yes
b7026657
AC
2871else
2872 echo "$as_me: failed program was:" >&5
2873sed 's/^/| /' conftest.$ac_ext >&5
2874
20e95c23 2875ac_cv_c_bigendian=no
b7026657 2876fi
20e95c23 2877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2878else
20e95c23
DJ
2879 echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882# It does not; compile a test program.
2883if test "$cross_compiling" = yes; then
2884 # try to guess the endianness by grepping values into an object file
2885 ac_cv_c_bigendian=unknown
b7026657
AC
2886 cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
20e95c23
DJ
2892short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2893short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2894void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2895short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2896short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2897void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2898int
2899main ()
2900{
2901 _ascii (); _ebcdic ();
2902 ;
2903 return 0;
2904}
b7026657 2905_ACEOF
20e95c23
DJ
2906rm -f conftest.$ac_objext
2907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2929 ac_cv_c_bigendian=yes
2930fi
2931if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2932 if test "$ac_cv_c_bigendian" = unknown; then
2933 ac_cv_c_bigendian=no
b7026657 2934 else
20e95c23
DJ
2935 # finding both strings is unlikely to happen, but who knows?
2936 ac_cv_c_bigendian=unknown
b7026657 2937 fi
b7026657 2938fi
b7026657
AC
2939else
2940 echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
b7026657 2943fi
20e95c23
DJ
2944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2945else
b7026657
AC
2946 cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
20e95c23
DJ
2952int
2953main ()
2954{
2955 /* Are we little or big endian? From Harbison&Steele. */
2956 union
2957 {
2958 long l;
2959 char c[sizeof (long)];
2960 } u;
2961 u.l = 1;
2962 exit (u.c[sizeof (long) - 1] == 1);
2963}
b7026657 2964_ACEOF
20e95c23
DJ
2965rm -f conftest$ac_exeext
2966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2967 (eval $ac_link) 2>&5
b7026657 2968 ac_status=$?
b7026657 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
2970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 (eval $ac_try) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_cv_c_bigendian=no
b7026657 2977else
20e95c23
DJ
2978 echo "$as_me: program exited with status $ac_status" >&5
2979echo "$as_me: failed program was:" >&5
b7026657
AC
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
20e95c23
DJ
2982( exit $ac_status )
2983ac_cv_c_bigendian=yes
b7026657 2984fi
20e95c23 2985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b7026657 2986fi
b7026657 2987fi
20e95c23 2988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2989fi
20e95c23
DJ
2990echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2991echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2992case $ac_cv_c_bigendian in
2993 yes)
2994
2995cat >>confdefs.h <<\_ACEOF
2996#define WORDS_BIGENDIAN 1
b7026657 2997_ACEOF
20e95c23
DJ
2998 ;;
2999 no)
3000 ;;
3001 *)
3002 { { echo "$as_me:$LINENO: error: unknown endianness
3003presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3004echo "$as_me: error: unknown endianness
3005presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3006 { (exit 1); exit 1; }; } ;;
3007esac
3008
3009 if test $ac_cv_c_bigendian = yes; then
3010 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
b7026657 3011 else
20e95c23 3012 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
b7026657
AC
3013 fi
3014else
20e95c23 3015 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
b7026657 3016fi
20e95c23 3017fi;
b7026657 3018
20e95c23
DJ
3019# Check whether --enable-sim-icache or --disable-sim-icache was given.
3020if test "${enable_sim_icache+set}" = set; then
3021 enableval="$enable_sim_icache"
3022 icache="-R"
3023 case "${enableval}" in
3024 yes) icache="1024"; sim_icache="-I $icache";;
3025 no) sim_icache="-R";;
3026 *) icache=1024
3027 sim_icache="-"
3028 for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3029 case "$x" in
3030 define) sim_icache="${sim_icache}R";;
3031 semantic) sim_icache="${sim_icache}C";;
3032 insn) sim_icache="${sim_icache}S";;
3033 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;;
3034 *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5
3035echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;}
3036 { (exit 1); exit 1; }; }; sim_icache="";;
3037 esac
3038 done
3039 sim_icache="${sim_icache}I $icache";;
3040esac
3041if test x"$silent" != x"yes" && test x"$icache" != x""; then
3042 echo "Setting instruction cache size to $icache ($sim_icache)"
b7026657 3043fi
c906108c 3044else
20e95c23
DJ
3045 sim_icache="-CSRI 1024"
3046if test x"$silent" != x"yes"; then
3047 echo "Setting instruction cache size to 1024 ($sim_icache)"
b7026657 3048fi
20e95c23 3049fi;
b7026657 3050
20e95c23
DJ
3051# Check whether --enable-sim-inline or --disable-sim-inline was given.
3052if test "${enable_sim_inline+set}" = set; then
3053 enableval="$enable_sim_inline"
3054 sim_inline=""
3055case "$enableval" in
3056 no) sim_inline="-DDEFAULT_INLINE=0";;
3057 0) sim_inline="-DDEFAULT_INLINE=0";;
3058 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
3059 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
3060 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
3061 new_flag=""
3062 case "$x" in
3063 *_INLINE=*) new_flag="-D$x";;
3064 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
3065 *_INLINE) new_flag="-D$x=ALL_INLINE";;
3066 *) new_flag="-D$x""_INLINE=ALL_INLINE";;
3067 esac
3068 if test x"$sim_inline" = x""; then
3069 sim_inline="$new_flag"
3070 else
3071 sim_inline="$sim_inline $new_flag"
3072 fi
3073 done;;
3074esac
3075if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
3076 echo "Setting inline flags = $sim_inline" 6>&1
b7026657 3077fi
b7026657 3078else
20e95c23
DJ
3079 if test x"$GCC" != ""; then
3080 sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
3081 if test x"$silent" != x"yes"; then
3082 echo "Setting inline flags = $sim_inline" 6>&1
3083 fi
3084else
3085 sim_inline=""
b7026657 3086fi
20e95c23 3087fi;
b7026657 3088
20e95c23
DJ
3089# Check whether --enable-sim-jump or --disable-sim-jump was given.
3090if test "${enable_sim_jump+set}" = set; then
3091 enableval="$enable_sim_jump"
3092 case "${enableval}" in
3093 yes) sim_jump="-J";;
3094 no) sim_jump="";;
3095 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5
3096echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;}
3097 { (exit 1); exit 1; }; }; sim_jump="";;
3098esac
3099if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3100 echo "Setting jump flag = $sim_jump" 6>&1
3101fi
b7026657 3102else
20e95c23
DJ
3103 sim_jump=""
3104if test x"$silent" != x"yes"; then
3105 echo "Setting jump flag = $sim_jump" 6>&1
c906108c 3106fi
20e95c23 3107fi;
b7026657 3108
20e95c23
DJ
3109# Check whether --enable-sim-line-nr or --disable-sim-line-nr was given.
3110if test "${enable_sim_line_nr+set}" = set; then
3111 enableval="$enable_sim_line_nr"
3112 case "${enableval}" in
3113 yes) sim_line_nr="";;
3114 no) sim_line_nr="-L";;
3115 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5
3116echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;}
3117 { (exit 1); exit 1; }; }; sim_line_nr="";;
3118esac
3119if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3120 echo "Setting warning flags = $sim_line_nr" 6>&1
3121fi
c906108c 3122else
20e95c23
DJ
3123 sim_line_nr=""
3124fi;
b7026657 3125
20e95c23
DJ
3126# Check whether --enable-sim-model or --disable-sim-model was given.
3127if test "${enable_sim_model+set}" = set; then
3128 enableval="$enable_sim_model"
3129 case "${enableval}" in
3130 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5
3131echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;}
3132 { (exit 1); exit 1; }; };;
3133 *) sim_model="-DWITH_MODEL=${enableval}";;
3134esac
3135if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3136 echo "Setting model flags = $sim_model" 6>&1
3137fi
c906108c 3138else
20e95c23
DJ
3139 sim_model=""
3140fi;
b7026657 3141
20e95c23
DJ
3142# Check whether --enable-sim-model-issue or --disable-sim-model-issue was given.
3143if test "${enable_sim_model_issue+set}" = set; then
3144 enableval="$enable_sim_model_issue"
3145 case "${enableval}" in
3146 yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3147 no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3148 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5
3149echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;}
3150 { (exit 1); exit 1; }; }; sim_model_issue="";;
3151esac
3152if test x"$silent" != x"yes"; then
3153 echo "Setting model-issue flags = $sim_model_issue" 6>&1
c906108c 3154fi
c906108c 3155else
20e95c23
DJ
3156 sim_model_issue=""
3157fi;
c906108c 3158
20e95c23
DJ
3159# Check whether --enable-sim-monitor or --disable-sim-monitor was given.
3160if test "${enable_sim_monitor+set}" = set; then
3161 enableval="$enable_sim_monitor"
3162 case "${enableval}" in
3163 yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3164 no) sim_monitor="-DWITH_MON=0";;
3165 instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3166 memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3167 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5
3168echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;}
3169 { (exit 1); exit 1; }; }; sim_env="";;
3170esac
3171if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3172 echo "Setting monitor flags = $sim_monitor" 6>&1
c906108c 3173fi
c906108c 3174else
20e95c23
DJ
3175 sim_monitor=""
3176fi;
c906108c 3177
20e95c23
DJ
3178# Check whether --enable-sim-opcode or --disable-sim-opcode was given.
3179if test "${enable_sim_opcode+set}" = set; then
3180 enableval="$enable_sim_opcode"
3181 case "${enableval}" in
3182 yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5
3183echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;}
3184 { (exit 1); exit 1; }; };;
3185 *) if test -f "${srcdir}/${enableval}"; then
3186 sim_opcode="${enableval}"
3187 elif test -f "${srcdir}/dc-${enableval}"; then
3188 sim_opcode="dc-${enableval}"
3189 else
3190 { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5
3191echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;}
3192 { (exit 1); exit 1; }; };
3193 sim_opcode="dc-complex"
3194 fi;;
3195esac
3196if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3197 echo "Setting opcode flags = $sim_opcode" 6>&1
c906108c 3198fi
c906108c 3199else
20e95c23
DJ
3200 sim_opcode="dc-complex"
3201if test x"$silent" != x"yes"; then
3202 echo "Setting opcode flags = $sim_opcode"
3203fi
3204fi;
c906108c 3205
20e95c23
DJ
3206# Check whether --enable-sim-packages or --disable-sim-packages was given.
3207if test "${enable_sim_packages+set}" = set; then
3208 enableval="$enable_sim_packages"
3209 packages=disklabel
3210case "${enableval}" in
3211 yes) ;;
3212 no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5
3213echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;}
3214 { (exit 1); exit 1; }; }; packages="";;
3215 ,*) packages="${packages}${enableval}";;
3216 *,) packages="${enableval}${packages}";;
3217 *) packages="${enableval}"'';;
3218esac
3219sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3220sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3221if test x"$silent" != x"yes" && test x"$packages" != x""; then
3222 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3223fi
c906108c 3224else
20e95c23
DJ
3225 packages=disklabel
3226sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
3227sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
3228if test x"$silent" != x"yes"; then
3229 echo "Setting packages to $sim_pk_src, $sim_pk_obj"
3230fi
3231fi;
b7026657 3232
20e95c23
DJ
3233# Check whether --enable-sim-regparm or --disable-sim-regparm was given.
3234if test "${enable_sim_regparm+set}" = set; then
3235 enableval="$enable_sim_regparm"
3236 case "${enableval}" in
3237 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";;
3238 no) sim_regparm="" ;;
3239 yes) sim_regparm="-DWITH_REGPARM=3";;
3240 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5
3241echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;}
3242 { (exit 1); exit 1; }; }; sim_regparm="";;
3243esac
3244if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then
3245 echo "Setting regparm flags = $sim_regparm" 6>&1
c906108c 3246fi
20e95c23
DJ
3247else
3248 sim_regparm=""
3249fi;
3250
3251# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
3252if test "${enable_sim_reserved_bits+set}" = set; then
3253 enableval="$enable_sim_reserved_bits"
3254 case "${enableval}" in
3255 yes) sim_reserved="-DWITH_RESERVED_BITS=1";;
3256 no) sim_reserved="-DWITH_RESERVED_BITS=0";;
3257 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
3258echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
3259 { (exit 1); exit 1; }; }; sim_reserved="";;
3260esac
3261if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
3262 echo "Setting reserved flags = $sim_reserved" 6>&1
c906108c 3263fi
20e95c23
DJ
3264else
3265 sim_reserved=""
3266fi;
3267
3268# Check whether --enable-sim-smp or --disable-sim-smp was given.
3269if test "${enable_sim_smp+set}" = set; then
3270 enableval="$enable_sim_smp"
3271 case "${enableval}" in
3272 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3273 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3274 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3275esac
3276if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3277 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 3278fi
20e95c23
DJ
3279else
3280 sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3281if test x"$silent" != x"yes"; then
3282 echo "Setting smp flags = $sim_smp" 6>&1
c906108c 3283fi
20e95c23 3284fi;
b7026657 3285
20e95c23
DJ
3286# Check whether --enable-sim-stdcall or --disable-sim-stdcall was given.
3287if test "${enable_sim_stdcall+set}" = set; then
3288 enableval="$enable_sim_stdcall"
3289 case "${enableval}" in
3290 no) sim_stdcall="" ;;
3291 std*) sim_stdcall="-DWITH_STDCALL=1";;
3292 yes) sim_stdcall="-DWITH_STDCALL=1";;
3293 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5
3294echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;}
3295 { (exit 1); exit 1; }; }; sim_stdcall="";;
3296esac
3297if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then
3298 echo "Setting function call flags = $sim_stdcall" 6>&1
b7026657 3299fi
b7026657 3300else
20e95c23
DJ
3301 sim_stdcall=""
3302fi;
b7026657 3303
20e95c23
DJ
3304# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
3305if test "${enable_sim_stdio+set}" = set; then
3306 enableval="$enable_sim_stdio"
3307 case "${enableval}" in
3308 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
3309 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
3310 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
3311echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
3312 { (exit 1); exit 1; }; }; sim_stdio="";;
3313esac
3314if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
3315 echo "Setting stdio flags = $sim_stdio" 6>&1
3316fi
c906108c 3317else
20e95c23
DJ
3318 sim_stdio=""
3319fi;
b7026657 3320
20e95c23
DJ
3321# Check whether --enable-sim-switch or --disable-sim-switch was given.
3322if test "${enable_sim_switch+set}" = set; then
3323 enableval="$enable_sim_switch"
3324 case "${enableval}" in
3325 yes) sim_switch="-s";;
3326 no) sim_switch="";;
3327 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5
3328echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;}
3329 { (exit 1); exit 1; }; }; sim_switch="";;
3330esac
3331if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3332 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 3333fi
20e95c23
DJ
3334else
3335 sim_switch="";
3336if test x"$silent" != x"yes"; then
3337 echo "Setting switch flags = $sim_switch" 6>&1
c906108c 3338fi
20e95c23 3339fi;
c906108c 3340
20e95c23
DJ
3341# Check whether --enable-sim-timebase or --disable-sim-timebase was given.
3342if test "${enable_sim_timebase+set}" = set; then
3343 enableval="$enable_sim_timebase"
3344 case "${enableval}" in
3345 yes) sim_timebase="-DWITH_TIME_BASE=1";;
3346 no) sim_timebase="-DWITH_TIME_BASE=0";;
3347 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5
3348echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;}
3349 { (exit 1); exit 1; }; }; sim_timebase="";;
3350esac
3351if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3352 echo "Setting timebase flags = $sim_timebase" 6>&1
c906108c 3353fi
c906108c 3354else
20e95c23
DJ
3355 sim_timebase=""
3356fi;
b7026657 3357
20e95c23
DJ
3358# Check whether --enable-sim-trace or --disable-sim-trace was given.
3359if test "${enable_sim_trace+set}" = set; then
3360 enableval="$enable_sim_trace"
3361 case "${enableval}" in
3362 yes) sim_trace="-DWITH_TRACE=1";;
3363 no) sim_trace="-DWITH_TRACE=0";;
3364 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5
3365echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;}
3366 { (exit 1); exit 1; }; }; sim_trace="";;
3367esac
3368if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
3369 echo "Setting trace flags = $sim_trace" 6>&1
3370fi
c906108c 3371else
20e95c23
DJ
3372 sim_trace=""
3373fi;
b7026657 3374
20e95c23
DJ
3375# Check whether --enable-sim-warnings or --disable-sim-warnings was given.
3376if test "${enable_sim_warnings+set}" = set; then
3377 enableval="$enable_sim_warnings"
3378 case "${enableval}" in
3379 yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
3380 no) sim_warnings="-w";;
3381 *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3382esac
3383if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
3384 echo "Setting warning flags = $sim_warnings" 6>&1
c906108c 3385fi
20e95c23
DJ
3386else
3387 sim_warnings=""
3388fi;
c906108c 3389
20e95c23
DJ
3390# Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given.
3391if test "${enable_sim_xor_endian+set}" = set; then
3392 enableval="$enable_sim_xor_endian"
3393 case "${enableval}" in
3394 yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3395 no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3396 *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3397esac
3398if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3399 echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
c906108c 3400fi
20e95c23
DJ
3401else
3402 sim_xor_endian=""
3403fi;
c906108c 3404
6efef468
JM
3405
3406
3407# Check whether --with-pkgversion or --without-pkgversion was given.
3408if test "${with_pkgversion+set}" = set; then
3409 withval="$with_pkgversion"
3410 case "$withval" in
3411 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
3412echo "$as_me: error: package version not specified" >&2;}
3413 { (exit 1); exit 1; }; } ;;
3414 no) PKGVERSION= ;;
3415 *) PKGVERSION="($withval) " ;;
3416 esac
3417else
3418 PKGVERSION="(GDB) "
3419
3420fi;
3421
3422
3423
3424
3425# Check whether --with-bugurl or --without-bugurl was given.
3426if test "${with_bugurl+set}" = set; then
3427 withval="$with_bugurl"
3428 case "$withval" in
3429 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
3430echo "$as_me: error: bug URL not specified" >&2;}
3431 { (exit 1); exit 1; }; } ;;
3432 no) BUGURL=
3433 ;;
3434 *) BUGURL="$withval"
3435 ;;
3436 esac
3437else
3438 BUGURL="http://www.gnu.org/software/gdb/bugs/"
3439
3440fi;
3441 case ${BUGURL} in
3442 "")
3443 REPORT_BUGS_TO=
3444 REPORT_BUGS_TEXI=
3445 ;;
3446 *)
3447 REPORT_BUGS_TO="<$BUGURL>"
3448 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
3449 ;;
3450 esac;
3451
3452
3453
3454
3455cat >>confdefs.h <<_ACEOF
3456#define PKGVERSION "$PKGVERSION"
3457_ACEOF
3458
3459
3460cat >>confdefs.h <<_ACEOF
3461#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3462_ACEOF
3463
3464
20e95c23
DJ
3465# Make sure we can run config.sub.
3466$ac_config_sub sun4 >/dev/null 2>&1 ||
3467 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3468echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3469 { (exit 1); exit 1; }; }
c906108c 3470
20e95c23
DJ
3471echo "$as_me:$LINENO: checking build system type" >&5
3472echo $ECHO_N "checking build system type... $ECHO_C" >&6
3473if test "${ac_cv_build+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475else
3476 ac_cv_build_alias=$build_alias
3477test -z "$ac_cv_build_alias" &&
3478 ac_cv_build_alias=`$ac_config_guess`
3479test -z "$ac_cv_build_alias" &&
3480 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3481echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3482 { (exit 1); exit 1; }; }
3483ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3485echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3486 { (exit 1); exit 1; }; }
b7026657 3487
20e95c23
DJ
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3490echo "${ECHO_T}$ac_cv_build" >&6
3491build=$ac_cv_build
3492build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3493build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3494build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b7026657
AC
3495
3496
20e95c23
DJ
3497echo "$as_me:$LINENO: checking host system type" >&5
3498echo $ECHO_N "checking host system type... $ECHO_C" >&6
3499if test "${ac_cv_host+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
3502 ac_cv_host_alias=$host_alias
3503test -z "$ac_cv_host_alias" &&
3504 ac_cv_host_alias=$ac_cv_build_alias
3505ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3506 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3507echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3508 { (exit 1); exit 1; }; }
b7026657 3509
20e95c23
DJ
3510fi
3511echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3512echo "${ECHO_T}$ac_cv_host" >&6
3513host=$ac_cv_host
3514host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3515host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3516host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b7026657
AC
3517
3518
20e95c23
DJ
3519echo "$as_me:$LINENO: checking target system type" >&5
3520echo $ECHO_N "checking target system type... $ECHO_C" >&6
3521if test "${ac_cv_target+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 ac_cv_target_alias=$target_alias
3525test "x$ac_cv_target_alias" = "x" &&
3526 ac_cv_target_alias=$ac_cv_host_alias
3527ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3528 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3529echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3530 { (exit 1); exit 1; }; }
b7026657 3531
20e95c23
DJ
3532fi
3533echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3534echo "${ECHO_T}$ac_cv_target" >&6
3535target=$ac_cv_target
3536target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3537target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3538target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b7026657
AC
3539
3540
20e95c23
DJ
3541# The aliases save the names the user supplied, while $host etc.
3542# will get canonicalized.
3543test -n "$target_alias" &&
3544 test "$program_prefix$program_suffix$program_transform_name" = \
3545 NONENONEs,x,x, &&
3546 program_prefix=${target_alias}-
3547test "$program_prefix" != NONE &&
3548 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3549# Use a double $ so make ignores it.
3550test "$program_suffix" != NONE &&
3551 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3552# Double any \ or $. echo might interpret backslashes.
3553# By default was `s,x,x', remove it if useless.
3554cat <<\_ACEOF >conftest.sed
3555s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 3556_ACEOF
20e95c23
DJ
3557program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3558rm conftest.sed
b7026657 3559
b7026657 3560
20e95c23
DJ
3561. ${srcdir}/../../bfd/configure.host
3562
3563case ${host} in
3564 *mingw32*)
3565
3566cat >>confdefs.h <<\_ACEOF
3567#define USE_WIN32API 1
b7026657
AC
3568_ACEOF
3569
20e95c23
DJ
3570 ;;
3571esac
b7026657 3572
20e95c23 3573 ac_config_headers="$ac_config_headers config.h:config.in"
b7026657
AC
3574
3575
20e95c23
DJ
3576ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3582echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3583# On Suns, sometimes $CPP names a directory.
3584if test -n "$CPP" && test -d "$CPP"; then
3585 CPP=
3586fi
3587if test -z "$CPP"; then
3588 if test "${ac_cv_prog_CPP+set}" = set; then
b7026657 3589 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3590else
20e95c23
DJ
3591 # Double quotes because CPP needs to be expanded
3592 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3593 do
3594 ac_preproc_ok=false
3595for ac_c_preproc_warn_flag in '' yes
3596do
3597 # Use a header file that comes with gcc, so configuring glibc
3598 # with a fresh cross-compiler works.
3599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3600 # <limits.h> exists even on freestanding compilers.
3601 # On the NeXT, cc -E runs the code through the compiler's parser,
3602 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
3603 cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h. */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h. */
b7026657
AC
3609#ifdef __STDC__
3610# include <limits.h>
20e95c23
DJ
3611#else
3612# include <assert.h>
3613#endif
3614 Syntax error
3615_ACEOF
3616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627 else
3628 ac_cpp_err=
c906108c
SS
3629 fi
3630else
20e95c23 3631 ac_cpp_err=yes
c906108c 3632fi
20e95c23
DJ
3633if test -z "$ac_cpp_err"; then
3634 :
c906108c 3635else
20e95c23
DJ
3636 echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3638
20e95c23
DJ
3639 # Broken: fails on valid input.
3640continue
c906108c 3641fi
20e95c23 3642rm -f conftest.err conftest.$ac_ext
c906108c 3643
20e95c23
DJ
3644 # OK, works on sane cases. Now check whether non-existent headers
3645 # can be detected and how.
3646 cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652#include <ac_nonexistent.h>
3653_ACEOF
3654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3656 ac_status=$?
3657 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } >/dev/null; then
3662 if test -s conftest.err; then
3663 ac_cpp_err=$ac_c_preproc_warn_flag
3664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3665 else
3666 ac_cpp_err=
3667 fi
c906108c 3668else
20e95c23 3669 ac_cpp_err=yes
c906108c 3670fi
20e95c23
DJ
3671if test -z "$ac_cpp_err"; then
3672 # Broken: success on invalid input.
3673continue
c906108c 3674else
20e95c23
DJ
3675 echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3677
20e95c23
DJ
3678 # Passes both tests.
3679ac_preproc_ok=:
3680break
c906108c 3681fi
20e95c23 3682rm -f conftest.err conftest.$ac_ext
c906108c 3683
20e95c23
DJ
3684done
3685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3686rm -f conftest.err conftest.$ac_ext
3687if $ac_preproc_ok; then
3688 break
c906108c 3689fi
c906108c 3690
20e95c23
DJ
3691 done
3692 ac_cv_prog_CPP=$CPP
3693
c906108c 3694fi
20e95c23 3695 CPP=$ac_cv_prog_CPP
c906108c 3696else
20e95c23 3697 ac_cv_prog_CPP=$CPP
c906108c 3698fi
20e95c23
DJ
3699echo "$as_me:$LINENO: result: $CPP" >&5
3700echo "${ECHO_T}$CPP" >&6
3701ac_preproc_ok=false
3702for ac_c_preproc_warn_flag in '' yes
3703do
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat >conftest.$ac_ext <<_ACEOF
3711/* confdefs.h. */
3712_ACEOF
3713cat confdefs.h >>conftest.$ac_ext
3714cat >>conftest.$ac_ext <<_ACEOF
3715/* end confdefs.h. */
3716#ifdef __STDC__
3717# include <limits.h>
3718#else
3719# include <assert.h>
3720#endif
3721 Syntax error
3722_ACEOF
3723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null; then
3731 if test -s conftest.err; then
3732 ac_cpp_err=$ac_c_preproc_warn_flag
3733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737else
3738 ac_cpp_err=yes
c906108c 3739fi
20e95c23
DJ
3740if test -z "$ac_cpp_err"; then
3741 :
c906108c 3742else
20e95c23
DJ
3743 echo "$as_me: failed program was:" >&5
3744sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3745
20e95c23
DJ
3746 # Broken: fails on valid input.
3747continue
3748fi
3749rm -f conftest.err conftest.$ac_ext
3750
3751 # OK, works on sane cases. Now check whether non-existent headers
3752 # can be detected and how.
3753 cat >conftest.$ac_ext <<_ACEOF
3754/* confdefs.h. */
3755_ACEOF
3756cat confdefs.h >>conftest.$ac_ext
3757cat >>conftest.$ac_ext <<_ACEOF
3758/* end confdefs.h. */
3759#include <ac_nonexistent.h>
3760_ACEOF
3761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null; then
3769 if test -s conftest.err; then
3770 ac_cpp_err=$ac_c_preproc_warn_flag
3771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3772 else
3773 ac_cpp_err=
3774 fi
3775else
3776 ac_cpp_err=yes
c906108c 3777fi
20e95c23
DJ
3778if test -z "$ac_cpp_err"; then
3779 # Broken: success on invalid input.
3780continue
c906108c 3781else
20e95c23
DJ
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3784
20e95c23
DJ
3785 # Passes both tests.
3786ac_preproc_ok=:
3787break
c906108c 3788fi
20e95c23
DJ
3789rm -f conftest.err conftest.$ac_ext
3790
3791done
3792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3793rm -f conftest.err conftest.$ac_ext
3794if $ac_preproc_ok; then
3795 :
c906108c 3796else
20e95c23
DJ
3797 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3798See \`config.log' for more details." >&5
3799echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3800See \`config.log' for more details." >&2;}
3801 { (exit 1); exit 1; }; }
c906108c 3802fi
c906108c 3803
20e95c23
DJ
3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
3810
3811echo "$as_me:$LINENO: checking for egrep" >&5
3812echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3813if test "${ac_cv_prog_egrep+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3817 then ac_cv_prog_egrep='grep -E'
3818 else ac_cv_prog_egrep='egrep'
3819 fi
c906108c 3820fi
20e95c23
DJ
3821echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3822echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3823 EGREP=$ac_cv_prog_egrep
3824
3825
3826echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3827echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3828if test "${ac_cv_header_stdc+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3830else
20e95c23
DJ
3831 cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h. */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h. */
3837#include <stdlib.h>
3838#include <stdarg.h>
3839#include <string.h>
3840#include <float.h>
c906108c 3841
20e95c23
DJ
3842int
3843main ()
3844{
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext
3851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852 (eval $ac_compile) 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag"
3860 || test ! -s conftest.err'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; } &&
3866 { ac_try='test -s conftest.$ac_objext'
3867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 (eval $ac_try) 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
3872 ac_cv_header_stdc=yes
c906108c 3873else
20e95c23
DJ
3874 echo "$as_me: failed program was:" >&5
3875sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3876
20e95c23 3877ac_cv_header_stdc=no
c906108c 3878fi
20e95c23
DJ
3879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
3889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "memchr" >/dev/null 2>&1; then
3894 :
c906108c 3895else
20e95c23 3896 ac_cv_header_stdc=no
c906108c 3897fi
20e95c23 3898rm -f conftest*
c906108c 3899
c906108c 3900fi
c906108c 3901
20e95c23
DJ
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
3905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
3910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3914 $EGREP "free" >/dev/null 2>&1; then
3915 :
c906108c 3916else
20e95c23
DJ
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
c906108c 3920
c906108c 3921fi
20e95c23
DJ
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3926 :
c906108c 3927else
20e95c23
DJ
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934#include <ctype.h>
3935#if ((' ' & 0x0FF) == 0x020)
3936# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3937# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938#else
3939# define ISLOWER(c) \
3940 (('a' <= (c) && (c) <= 'i') \
3941 || ('j' <= (c) && (c) <= 'r') \
3942 || ('s' <= (c) && (c) <= 'z'))
3943# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3944#endif
c906108c 3945
20e95c23
DJ
3946#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947int
3948main ()
3949{
3950 int i;
3951 for (i = 0; i < 256; i++)
3952 if (XOR (islower (i), ISLOWER (i))
3953 || toupper (i) != TOUPPER (i))
3954 exit(2);
3955 exit (0);
3956}
3957_ACEOF
3958rm -f conftest$ac_exeext
3959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960 (eval $ac_link) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 :
c906108c 3970else
20e95c23
DJ
3971 echo "$as_me: program exited with status $ac_status" >&5
3972echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3974
20e95c23
DJ
3975( exit $ac_status )
3976ac_cv_header_stdc=no
3977fi
3978rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3979fi
3980fi
3981fi
3982echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3983echo "${ECHO_T}$ac_cv_header_stdc" >&6
3984if test $ac_cv_header_stdc = yes; then
b7026657 3985
20e95c23
DJ
3986cat >>confdefs.h <<\_ACEOF
3987#define STDC_HEADERS 1
3988_ACEOF
b7026657
AC
3989
3990fi
b7026657 3991
20e95c23 3992# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657 3993
b7026657 3994
b7026657
AC
3995
3996
b7026657 3997
c906108c 3998
c906108c 3999
c906108c
SS
4000
4001
20e95c23
DJ
4002for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4003 inttypes.h stdint.h unistd.h
4004do
4005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4006echo "$as_me:$LINENO: checking for $ac_header" >&5
4007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4008if eval "test \"\${$as_ac_Header+set}\" = set"; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h. */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h. */
4017$ac_includes_default
c906108c 4018
20e95c23
DJ
4019#include <$ac_header>
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 eval "$as_ac_Header=yes"
4044else
4045 echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
058ad269 4047
20e95c23
DJ
4048eval "$as_ac_Header=no"
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051fi
4052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4054if test `eval echo '${'$as_ac_Header'}'` = yes; then
4055 cat >>confdefs.h <<_ACEOF
4056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
058ad269
MM
4057_ACEOF
4058
20e95c23 4059fi
058ad269 4060
20e95c23 4061done
c906108c
SS
4062
4063
c906108c 4064
b7026657
AC
4065echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4066echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4067if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070 cat >conftest.$ac_ext <<_ACEOF
4071/* confdefs.h. */
4072_ACEOF
4073cat confdefs.h >>conftest.$ac_ext
4074cat >>conftest.$ac_ext <<_ACEOF
4075/* end confdefs.h. */
4076$ac_includes_default
4077int
4078main ()
4079{
4080static struct stat ac_aggr;
4081if (ac_aggr.st_blksize)
4082return 0;
4083 ;
4084 return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext
4088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089 (eval $ac_compile) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
058ad269
MM
4096 { ac_try='test -z "$ac_c_werror_flag"
4097 || test ! -s conftest.err'
b7026657
AC
4098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099 (eval $ac_try) 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105 (eval $ac_try) 2>&5
4106 ac_status=$?
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; }; then
4109 ac_cv_member_struct_stat_st_blksize=yes
4110else
4111 echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120$ac_includes_default
4121int
4122main ()
4123{
4124static struct stat ac_aggr;
4125if (sizeof ac_aggr.st_blksize)
4126return 0;
4127 ;
4128 return 0;
4129}
4130_ACEOF
4131rm -f conftest.$ac_objext
4132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>conftest.er1
4134 ac_status=$?
4135 grep -v '^ *+' conftest.er1 >conftest.err
4136 rm -f conftest.er1
4137 cat conftest.err >&5
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } &&
058ad269
MM
4140 { ac_try='test -z "$ac_c_werror_flag"
4141 || test ! -s conftest.err'
b7026657
AC
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 (eval $ac_try) 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 (eval $ac_try) 2>&5
4150 ac_status=$?
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_member_struct_stat_st_blksize=yes
4154else
4155 echo "$as_me: failed program was:" >&5
4156sed 's/^/| /' conftest.$ac_ext >&5
4157
4158ac_cv_member_struct_stat_st_blksize=no
4159fi
4160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4161fi
4162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4165echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4166if test $ac_cv_member_struct_stat_st_blksize = yes; then
4167
4168cat >>confdefs.h <<_ACEOF
4169#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4170_ACEOF
4171
4172
4173cat >>confdefs.h <<\_ACEOF
c906108c 4174#define HAVE_ST_BLKSIZE 1
b7026657 4175_ACEOF
c906108c
SS
4176
4177fi
4178
c906108c 4179
b7026657
AC
4180echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
4181echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4182if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191$ac_includes_default
4192int
4193main ()
4194{
4195static struct stat ac_aggr;
4196if (ac_aggr.st_blocks)
4197return 0;
4198 ;
4199 return 0;
4200}
4201_ACEOF
4202rm -f conftest.$ac_objext
4203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
058ad269
MM
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
b7026657
AC
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4224 ac_cv_member_struct_stat_st_blocks=yes
4225else
4226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235$ac_includes_default
4236int
4237main ()
4238{
4239static struct stat ac_aggr;
4240if (sizeof ac_aggr.st_blocks)
4241return 0;
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246rm -f conftest.$ac_objext
4247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
058ad269
MM
4255 { ac_try='test -z "$ac_c_werror_flag"
4256 || test ! -s conftest.err'
b7026657
AC
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_member_struct_stat_st_blocks=yes
4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
4273ac_cv_member_struct_stat_st_blocks=no
4274fi
4275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4276fi
4277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278fi
4279echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
4280echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4281if test $ac_cv_member_struct_stat_st_blocks = yes; then
4282
4283cat >>confdefs.h <<_ACEOF
4284#define HAVE_STRUCT_STAT_ST_BLOCKS 1
4285_ACEOF
4286
4287
4288cat >>confdefs.h <<\_ACEOF
c906108c 4289#define HAVE_ST_BLOCKS 1
b7026657 4290_ACEOF
c906108c
SS
4291
4292else
b7026657
AC
4293 case $LIBOBJS in
4294 "fileblocks.$ac_objext" | \
4295 *" fileblocks.$ac_objext" | \
4296 "fileblocks.$ac_objext "* | \
4297 *" fileblocks.$ac_objext "* ) ;;
4298 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
4299esac
c906108c 4300
c906108c
SS
4301fi
4302
b7026657
AC
4303
4304
4305echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4306echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4307if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309else
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317int
4318main ()
4319{
4320static struct stat ac_aggr;
4321if (ac_aggr.st_rdev)
4322return 0;
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest.$ac_objext
4328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
058ad269
MM
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
b7026657
AC
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 ac_cv_member_struct_stat_st_rdev=yes
4350else
4351 echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360$ac_includes_default
4361int
4362main ()
4363{
4364static struct stat ac_aggr;
4365if (sizeof ac_aggr.st_rdev)
4366return 0;
4367 ;
4368 return 0;
4369}
4370_ACEOF
4371rm -f conftest.$ac_objext
4372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>conftest.er1
4374 ac_status=$?
4375 grep -v '^ *+' conftest.er1 >conftest.err
4376 rm -f conftest.er1
4377 cat conftest.err >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
058ad269
MM
4380 { ac_try='test -z "$ac_c_werror_flag"
4381 || test ! -s conftest.err'
b7026657
AC
4382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 (eval $ac_try) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; } &&
4387 { ac_try='test -s conftest.$ac_objext'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4393 ac_cv_member_struct_stat_st_rdev=yes
4394else
4395 echo "$as_me: failed program was:" >&5
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
4398ac_cv_member_struct_stat_st_rdev=no
4399fi
4400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401fi
4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4405echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4406if test $ac_cv_member_struct_stat_st_rdev = yes; then
4407
4408cat >>confdefs.h <<_ACEOF
4409#define HAVE_STRUCT_STAT_ST_RDEV 1
4410_ACEOF
4411
4412
4413cat >>confdefs.h <<\_ACEOF
c906108c 4414#define HAVE_ST_RDEV 1
b7026657 4415_ACEOF
c906108c
SS
4416
4417fi
4418
b7026657
AC
4419
4420echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4421echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4422if test "${ac_cv_struct_tm+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4424else
b7026657
AC
4425 cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
c906108c
SS
4431#include <sys/types.h>
4432#include <time.h>
b7026657
AC
4433
4434int
4435main ()
4436{
c906108c 4437struct tm *tp; tp->tm_sec;
b7026657
AC
4438 ;
4439 return 0;
4440}
4441_ACEOF
4442rm -f conftest.$ac_objext
4443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
058ad269
MM
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
b7026657
AC
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4454 (eval $ac_try) 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
c906108c
SS
4464 ac_cv_struct_tm=time.h
4465else
b7026657
AC
4466 echo "$as_me: failed program was:" >&5
4467sed 's/^/| /' conftest.$ac_ext >&5
4468
4469ac_cv_struct_tm=sys/time.h
c906108c 4470fi
b7026657 4471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4472fi
b7026657
AC
4473echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4474echo "${ECHO_T}$ac_cv_struct_tm" >&6
c906108c 4475if test $ac_cv_struct_tm = sys/time.h; then
b7026657
AC
4476
4477cat >>confdefs.h <<\_ACEOF
c906108c 4478#define TM_IN_SYS_TIME 1
b7026657 4479_ACEOF
c906108c
SS
4480
4481fi
4482
b7026657
AC
4483echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
4484echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4485if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4487else
b7026657
AC
4488 cat >conftest.$ac_ext <<_ACEOF
4489/* confdefs.h. */
4490_ACEOF
4491cat confdefs.h >>conftest.$ac_ext
4492cat >>conftest.$ac_ext <<_ACEOF
4493/* end confdefs.h. */
c906108c
SS
4494#include <sys/types.h>
4495#include <$ac_cv_struct_tm>
c906108c 4496
b7026657
AC
4497
4498int
4499main ()
4500{
4501static struct tm ac_aggr;
4502if (ac_aggr.tm_zone)
4503return 0;
4504 ;
4505 return 0;
4506}
4507_ACEOF
4508rm -f conftest.$ac_objext
4509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
058ad269
MM
4517 { ac_try='test -z "$ac_c_werror_flag"
4518 || test ! -s conftest.err'
b7026657
AC
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; } &&
4524 { ac_try='test -s conftest.$ac_objext'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; }; then
4530 ac_cv_member_struct_tm_tm_zone=yes
4531else
4532 echo "$as_me: failed program was:" >&5
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
4535cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h. */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h. */
4541#include <sys/types.h>
4542#include <$ac_cv_struct_tm>
4543
4544
4545int
4546main ()
4547{
4548static struct tm ac_aggr;
4549if (sizeof ac_aggr.tm_zone)
4550return 0;
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555rm -f conftest.$ac_objext
4556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
058ad269
MM
4564 { ac_try='test -z "$ac_c_werror_flag"
4565 || test ! -s conftest.err'
b7026657
AC
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; } &&
4571 { ac_try='test -s conftest.$ac_objext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_member_struct_tm_tm_zone=yes
4578else
4579 echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582ac_cv_member_struct_tm_tm_zone=no
4583fi
4584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587fi
4588echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
4589echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4590if test $ac_cv_member_struct_tm_tm_zone = yes; then
4591
4592cat >>confdefs.h <<_ACEOF
4593#define HAVE_STRUCT_TM_TM_ZONE 1
4594_ACEOF
4595
4596
4597fi
4598
4599if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4600
4601cat >>confdefs.h <<\_ACEOF
c906108c 4602#define HAVE_TM_ZONE 1
b7026657 4603_ACEOF
c906108c
SS
4604
4605else
b7026657
AC
4606 echo "$as_me:$LINENO: checking for tzname" >&5
4607echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4608if test "${ac_cv_var_tzname+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4610else
b7026657
AC
4611 cat >conftest.$ac_ext <<_ACEOF
4612/* confdefs.h. */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h. */
c906108c
SS
4617#include <time.h>
4618#ifndef tzname /* For SGI. */
4619extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4620#endif
b7026657
AC
4621
4622int
4623main ()
4624{
c906108c 4625atoi(*tzname);
b7026657
AC
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630rm -f conftest.$ac_objext conftest$ac_exeext
4631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4632 (eval $ac_link) 2>conftest.er1
4633 ac_status=$?
4634 grep -v '^ *+' conftest.er1 >conftest.err
4635 rm -f conftest.er1
4636 cat conftest.err >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } &&
058ad269
MM
4639 { ac_try='test -z "$ac_c_werror_flag"
4640 || test ! -s conftest.err'
b7026657
AC
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; } &&
4646 { ac_try='test -s conftest$ac_exeext'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
c906108c
SS
4652 ac_cv_var_tzname=yes
4653else
b7026657
AC
4654 echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657ac_cv_var_tzname=no
c906108c 4658fi
b7026657
AC
4659rm -f conftest.err conftest.$ac_objext \
4660 conftest$ac_exeext conftest.$ac_ext
c906108c 4661fi
b7026657
AC
4662echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
4663echo "${ECHO_T}$ac_cv_var_tzname" >&6
c906108c 4664 if test $ac_cv_var_tzname = yes; then
b7026657
AC
4665
4666cat >>confdefs.h <<\_ACEOF
c906108c 4667#define HAVE_TZNAME 1
b7026657 4668_ACEOF
c906108c
SS
4669
4670 fi
4671fi
4672
4673
b7026657
AC
4674echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4675echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4676if test "${ac_cv_type_uid_t+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4678else
b7026657
AC
4679 cat >conftest.$ac_ext <<_ACEOF
4680/* confdefs.h. */
4681_ACEOF
4682cat confdefs.h >>conftest.$ac_ext
4683cat >>conftest.$ac_ext <<_ACEOF
4684/* end confdefs.h. */
c906108c 4685#include <sys/types.h>
b7026657
AC
4686
4687_ACEOF
c906108c 4688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 4689 $EGREP "uid_t" >/dev/null 2>&1; then
c906108c
SS
4690 ac_cv_type_uid_t=yes
4691else
c906108c
SS
4692 ac_cv_type_uid_t=no
4693fi
4694rm -f conftest*
4695
4696fi
b7026657
AC
4697echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4698echo "${ECHO_T}$ac_cv_type_uid_t" >&6
c906108c 4699if test $ac_cv_type_uid_t = no; then
b7026657
AC
4700
4701cat >>confdefs.h <<\_ACEOF
c906108c 4702#define uid_t int
b7026657 4703_ACEOF
c906108c 4704
b7026657
AC
4705
4706cat >>confdefs.h <<\_ACEOF
c906108c 4707#define gid_t int
b7026657 4708_ACEOF
c906108c
SS
4709
4710fi
4711
b7026657
AC
4712echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
4713echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4714if test "${ac_cv_type_getgroups+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
4716else
4717 if test "$cross_compiling" = yes; then
4718 ac_cv_type_getgroups=cross
4719else
b7026657
AC
4720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
c906108c
SS
4726/* Thanks to Mike Rendell for this test. */
4727#include <sys/types.h>
4728#define NGID 256
4729#undef MAX
4730#define MAX(x, y) ((x) > (y) ? (x) : (y))
b7026657
AC
4731
4732int
4733main ()
c906108c
SS
4734{
4735 gid_t gidset[NGID];
4736 int i, n;
4737 union { gid_t gval; long lval; } val;
4738
4739 val.lval = -1;
4740 for (i = 0; i < NGID; i++)
4741 gidset[i] = val.gval;
4742 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
b7026657 4743 gidset);
c906108c
SS
4744 /* Exit non-zero if getgroups seems to require an array of ints. This
4745 happens when gid_t is short but getgroups modifies an array of ints. */
4746 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4747}
b7026657
AC
4748_ACEOF
4749rm -f conftest$ac_exeext
4750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4751 (eval $ac_link) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_type_getgroups=gid_t
c906108c 4761else
b7026657
AC
4762 echo "$as_me: program exited with status $ac_status" >&5
4763echo "$as_me: failed program was:" >&5
4764sed 's/^/| /' conftest.$ac_ext >&5
4765
4766( exit $ac_status )
4767ac_cv_type_getgroups=int
c906108c 4768fi
b7026657 4769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 4770fi
c906108c 4771if test $ac_cv_type_getgroups = cross; then
b7026657
AC
4772 cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h. */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h. */
c906108c 4778#include <unistd.h>
b7026657
AC
4779
4780_ACEOF
c906108c 4781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 4782 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
c906108c
SS
4783 ac_cv_type_getgroups=gid_t
4784else
c906108c
SS
4785 ac_cv_type_getgroups=int
4786fi
4787rm -f conftest*
4788
4789fi
4790fi
b7026657
AC
4791echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
4792echo "${ECHO_T}$ac_cv_type_getgroups" >&6
c906108c 4793
b7026657 4794cat >>confdefs.h <<_ACEOF
c906108c 4795#define GETGROUPS_T $ac_cv_type_getgroups
b7026657 4796_ACEOF
c906108c
SS
4797
4798
b7026657
AC
4799echo "$as_me:$LINENO: checking for mode_t" >&5
4800echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4801if test "${ac_cv_type_mode_t+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4803else
b7026657
AC
4804 cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h. */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */
4810$ac_includes_default
4811int
4812main ()
4813{
4814if ((mode_t *) 0)
4815 return 0;
4816if (sizeof (mode_t))
4817 return 0;
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext
4823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
058ad269
MM
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
b7026657
AC
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
c906108c
SS
4844 ac_cv_type_mode_t=yes
4845else
b7026657
AC
4846 echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4848
b7026657
AC
4849ac_cv_type_mode_t=no
4850fi
4851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4852fi
b7026657
AC
4853echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4854echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4855if test $ac_cv_type_mode_t = yes; then
4856 :
4857else
4858
4859cat >>confdefs.h <<_ACEOF
c906108c 4860#define mode_t int
b7026657 4861_ACEOF
c906108c
SS
4862
4863fi
4864
b7026657
AC
4865echo "$as_me:$LINENO: checking for off_t" >&5
4866echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4867if test "${ac_cv_type_off_t+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4869else
b7026657
AC
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876$ac_includes_default
4877int
4878main ()
4879{
4880if ((off_t *) 0)
4881 return 0;
4882if (sizeof (off_t))
4883 return 0;
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888rm -f conftest.$ac_objext
4889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 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); } &&
058ad269
MM
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
b7026657
AC
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_objext'
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
c906108c
SS
4910 ac_cv_type_off_t=yes
4911else
b7026657
AC
4912 echo "$as_me: failed program was:" >&5
4913sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4914
b7026657
AC
4915ac_cv_type_off_t=no
4916fi
4917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4918fi
b7026657
AC
4919echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4920echo "${ECHO_T}$ac_cv_type_off_t" >&6
4921if test $ac_cv_type_off_t = yes; then
4922 :
4923else
4924
4925cat >>confdefs.h <<_ACEOF
c906108c 4926#define off_t long
b7026657 4927_ACEOF
c906108c
SS
4928
4929fi
4930
b7026657
AC
4931echo "$as_me:$LINENO: checking for pid_t" >&5
4932echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4933if test "${ac_cv_type_pid_t+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4935else
b7026657
AC
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942$ac_includes_default
4943int
4944main ()
4945{
4946if ((pid_t *) 0)
4947 return 0;
4948if (sizeof (pid_t))
4949 return 0;
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext
4955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956 (eval $ac_compile) 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
058ad269
MM
4963 { ac_try='test -z "$ac_c_werror_flag"
4964 || test ! -s conftest.err'
b7026657
AC
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
c906108c
SS
4976 ac_cv_type_pid_t=yes
4977else
b7026657
AC
4978 echo "$as_me: failed program was:" >&5
4979sed 's/^/| /' conftest.$ac_ext >&5
c906108c 4980
b7026657
AC
4981ac_cv_type_pid_t=no
4982fi
4983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4984fi
b7026657
AC
4985echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4986echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4987if test $ac_cv_type_pid_t = yes; then
4988 :
4989else
4990
4991cat >>confdefs.h <<_ACEOF
c906108c 4992#define pid_t int
b7026657 4993_ACEOF
c906108c
SS
4994
4995fi
4996
b7026657
AC
4997echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4998echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4999if test "${ac_cv_type_signal+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5001else
b7026657
AC
5002 cat >conftest.$ac_ext <<_ACEOF
5003/* confdefs.h. */
5004_ACEOF
5005cat confdefs.h >>conftest.$ac_ext
5006cat >>conftest.$ac_ext <<_ACEOF
5007/* end confdefs.h. */
c906108c
SS
5008#include <sys/types.h>
5009#include <signal.h>
5010#ifdef signal
b7026657 5011# undef signal
c906108c
SS
5012#endif
5013#ifdef __cplusplus
5014extern "C" void (*signal (int, void (*)(int)))(int);
5015#else
5016void (*signal ()) ();
5017#endif
5018
b7026657
AC
5019int
5020main ()
5021{
c906108c 5022int i;
b7026657
AC
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027rm -f conftest.$ac_objext
5028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
058ad269
MM
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
b7026657
AC
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
c906108c
SS
5049 ac_cv_type_signal=void
5050else
b7026657
AC
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054ac_cv_type_signal=int
c906108c 5055fi
b7026657 5056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 5057fi
b7026657
AC
5058echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5059echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 5060
b7026657 5061cat >>confdefs.h <<_ACEOF
c906108c 5062#define RETSIGTYPE $ac_cv_type_signal
b7026657 5063_ACEOF
c906108c
SS
5064
5065
b7026657
AC
5066echo "$as_me:$LINENO: checking for size_t" >&5
5067echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5068if test "${ac_cv_type_size_t+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5070else
b7026657
AC
5071 cat >conftest.$ac_ext <<_ACEOF
5072/* confdefs.h. */
5073_ACEOF
5074cat confdefs.h >>conftest.$ac_ext
5075cat >>conftest.$ac_ext <<_ACEOF
5076/* end confdefs.h. */
5077$ac_includes_default
5078int
5079main ()
5080{
5081if ((size_t *) 0)
5082 return 0;
5083if (sizeof (size_t))
5084 return 0;
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext
5090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
058ad269
MM
5098 { ac_try='test -z "$ac_c_werror_flag"
5099 || test ! -s conftest.err'
b7026657
AC
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
c906108c
SS
5111 ac_cv_type_size_t=yes
5112else
b7026657
AC
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
c906108c 5115
b7026657 5116ac_cv_type_size_t=no
c906108c 5117fi
b7026657
AC
5118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119fi
5120echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5121echo "${ECHO_T}$ac_cv_type_size_t" >&6
5122if test $ac_cv_type_size_t = yes; then
5123 :
5124else
5125
5126cat >>confdefs.h <<_ACEOF
c906108c 5127#define size_t unsigned
b7026657 5128_ACEOF
c906108c
SS
5129
5130fi
5131
b7026657
AC
5132echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5133echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5134if test "${ac_cv_type_uid_t+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5136else
b7026657
AC
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
c906108c 5143#include <sys/types.h>
b7026657
AC
5144
5145_ACEOF
c906108c 5146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 5147 $EGREP "uid_t" >/dev/null 2>&1; then
c906108c
SS
5148 ac_cv_type_uid_t=yes
5149else
c906108c
SS
5150 ac_cv_type_uid_t=no
5151fi
5152rm -f conftest*
5153
5154fi
b7026657
AC
5155echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5156echo "${ECHO_T}$ac_cv_type_uid_t" >&6
c906108c 5157if test $ac_cv_type_uid_t = no; then
b7026657
AC
5158
5159cat >>confdefs.h <<\_ACEOF
c906108c 5160#define uid_t int
b7026657
AC
5161_ACEOF
5162
c906108c 5163
b7026657 5164cat >>confdefs.h <<\_ACEOF
c906108c 5165#define gid_t int
b7026657 5166_ACEOF
c906108c
SS
5167
5168fi
5169
5170
b7026657
AC
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
c906108c
SS
5221for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
5222do
b7026657
AC
5223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5224echo "$as_me:$LINENO: checking for $ac_func" >&5
5225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5226if eval "test \"\${$as_ac_var+set}\" = set"; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
5235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5237#define $ac_func innocuous_$ac_func
5238
c906108c 5239/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5240 which can conflict with char $ac_func (); below.
5241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242 <limits.h> exists even on freestanding compilers. */
5243
5244#ifdef __STDC__
5245# include <limits.h>
5246#else
5247# include <assert.h>
5248#endif
c906108c 5249
b7026657 5250#undef $ac_func
c906108c 5251
b7026657
AC
5252/* Override any gcc2 internal prototype to avoid an error. */
5253#ifdef __cplusplus
5254extern "C"
5255{
5256#endif
5257/* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259char $ac_func ();
c906108c
SS
5260/* The GNU C library defines this for functions which it implements
5261 to always fail with ENOSYS. Some functions are actually named
5262 something starting with __ and the normal name is an alias. */
5263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5264choke me
5265#else
b7026657
AC
5266char (*f) () = $ac_func;
5267#endif
5268#ifdef __cplusplus
5269}
c906108c
SS
5270#endif
5271
b7026657
AC
5272int
5273main ()
5274{
5275return f != $ac_func;
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext conftest$ac_exeext
5281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
058ad269
MM
5289 { ac_try='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
b7026657
AC
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest$ac_exeext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
5302 eval "$as_ac_var=yes"
5303else
5304 echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307eval "$as_ac_var=no"
5308fi
5309rm -f conftest.err conftest.$ac_objext \
5310 conftest$ac_exeext conftest.$ac_ext
5311fi
5312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5314if test `eval echo '${'$as_ac_var'}'` = yes; then
5315 cat >>confdefs.h <<_ACEOF
5316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5317_ACEOF
c906108c 5318
c906108c
SS
5319fi
5320done
5321
5322
b7026657
AC
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
c906108c 5342do
b7026657
AC
5343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5344if eval "test \"\${$as_ac_Header+set}\" = set"; then
5345 echo "$as_me:$LINENO: checking for $ac_header" >&5
5346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5347if eval "test \"\${$as_ac_Header+set}\" = set"; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349fi
5350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5352else
5353 # Is the header compilable?
5354echo "$as_me:$LINENO: checking $ac_header usability" >&5
5355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5356cat >conftest.$ac_ext <<_ACEOF
5357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
5362$ac_includes_default
5363#include <$ac_header>
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
058ad269
MM
5374 { ac_try='test -z "$ac_c_werror_flag"
5375 || test ! -s conftest.err'
b7026657
AC
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); }; } &&
5381 { ac_try='test -s conftest.$ac_objext'
5382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383 (eval $ac_try) 2>&5
5384 ac_status=$?
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); }; }; then
5387 ac_header_compiler=yes
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392ac_header_compiler=no
5393fi
5394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5396echo "${ECHO_T}$ac_header_compiler" >&6
5397
5398# Is the header present?
5399echo "$as_me:$LINENO: checking $ac_header presence" >&5
5400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5401cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h. */
5407#include <$ac_header>
5408_ACEOF
5409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } >/dev/null; then
5417 if test -s conftest.err; then
5418 ac_cpp_err=$ac_c_preproc_warn_flag
5419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5420 else
5421 ac_cpp_err=
5422 fi
5423else
5424 ac_cpp_err=yes
c906108c 5425fi
b7026657
AC
5426if test -z "$ac_cpp_err"; then
5427 ac_header_preproc=yes
5428else
5429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ac_header_preproc=no
c906108c 5433fi
b7026657
AC
5434rm -f conftest.err conftest.$ac_ext
5435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5436echo "${ECHO_T}$ac_header_preproc" >&6
5437
5438# So? What about this header?
5439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5440 yes:no: )
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5445 ac_header_preproc=yes
5446 ;;
5447 no:yes:* )
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5460 (
5461 cat <<\_ASBOX
5462## ------------------------------------------ ##
5463## Report this to the AC_PACKAGE_NAME lists. ##
5464## ------------------------------------------ ##
5465_ASBOX
5466 ) |
5467 sed "s/^/$as_me: WARNING: /" >&2
5468 ;;
5469esac
5470echo "$as_me:$LINENO: checking for $ac_header" >&5
5471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472if eval "test \"\${$as_ac_Header+set}\" = set"; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5474else
b7026657
AC
5475 eval "$as_ac_Header=\$ac_header_preproc"
5476fi
5477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5479
5480fi
5481if test `eval echo '${'$as_ac_Header'}'` = yes; then
5482 cat >>confdefs.h <<_ACEOF
5483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484_ACEOF
5485
c906108c 5486fi
b7026657 5487
c906108c
SS
5488done
5489
b7026657
AC
5490
5491
5492
5493
5494
c906108c 5495ac_header_dirent=no
b7026657
AC
5496for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5497 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5498echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5499echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5500if eval "test \"\${$as_ac_Header+set}\" = set"; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
c906108c
SS
5509#include <sys/types.h>
5510#include <$ac_hdr>
b7026657
AC
5511
5512int
5513main ()
5514{
5515if ((DIR *) 0)
5516return 0;
5517 ;
5518 return 0;
5519}
5520_ACEOF
5521rm -f conftest.$ac_objext
5522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
058ad269
MM
5530 { ac_try='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
b7026657
AC
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 eval "$as_ac_Header=yes"
5544else
5545 echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548eval "$as_ac_Header=no"
5549fi
5550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5554if test `eval echo '${'$as_ac_Header'}'` = yes; then
5555 cat >>confdefs.h <<_ACEOF
5556#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5557_ACEOF
5558
5559ac_header_dirent=$ac_hdr; break
c906108c 5560fi
b7026657 5561
c906108c
SS
5562done
5563# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5564if test $ac_header_dirent = dirent.h; then
b7026657
AC
5565 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5566echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5567if test "${ac_cv_search_opendir+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 ac_func_search_save_LIBS=$LIBS
5571ac_cv_search_opendir=no
5572cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h. */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h. */
5578
c906108c 5579/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
5580#ifdef __cplusplus
5581extern "C"
5582#endif
c906108c 5583/* We use char because int might match the return type of a gcc2
b7026657
AC
5584 builtin and then its argument prototype would still apply. */
5585char opendir ();
5586int
5587main ()
5588{
5589opendir ();
5590 ;
5591 return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
058ad269
MM
5603 { ac_try='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
b7026657
AC
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_search_opendir="none required"
5617else
5618 echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621fi
5622rm -f conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624if test "$ac_cv_search_opendir" = no; then
5625 for ac_lib in dir; do
5626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5627 cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h. */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h. */
c906108c 5633
b7026657
AC
5634/* Override any gcc2 internal prototype to avoid an error. */
5635#ifdef __cplusplus
5636extern "C"
5637#endif
5638/* We use char because int might match the return type of a gcc2
5639 builtin and then its argument prototype would still apply. */
5640char opendir ();
5641int
5642main ()
5643{
5644opendir ();
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649rm -f conftest.$ac_objext conftest$ac_exeext
5650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
058ad269
MM
5658 { ac_try='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
b7026657
AC
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try='test -s conftest$ac_exeext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667 (eval $ac_try) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_search_opendir="-l$ac_lib"
5672break
5673else
5674 echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
5677fi
5678rm -f conftest.err conftest.$ac_objext \
5679 conftest$ac_exeext conftest.$ac_ext
5680 done
c906108c 5681fi
b7026657
AC
5682LIBS=$ac_func_search_save_LIBS
5683fi
5684echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5685echo "${ECHO_T}$ac_cv_search_opendir" >&6
5686if test "$ac_cv_search_opendir" != no; then
5687 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5688
c906108c
SS
5689fi
5690
5691else
b7026657
AC
5692 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5693echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5694if test "${ac_cv_search_opendir+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5696else
b7026657
AC
5697 ac_func_search_save_LIBS=$LIBS
5698ac_cv_search_opendir=no
5699cat >conftest.$ac_ext <<_ACEOF
5700/* confdefs.h. */
5701_ACEOF
5702cat confdefs.h >>conftest.$ac_ext
5703cat >>conftest.$ac_ext <<_ACEOF
5704/* end confdefs.h. */
5705
c906108c 5706/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
5707#ifdef __cplusplus
5708extern "C"
5709#endif
c906108c 5710/* We use char because int might match the return type of a gcc2
b7026657
AC
5711 builtin and then its argument prototype would still apply. */
5712char opendir ();
5713int
5714main ()
5715{
5716opendir ();
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext conftest$ac_exeext
5722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5723 (eval $ac_link) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
058ad269
MM
5730 { ac_try='test -z "$ac_c_werror_flag"
5731 || test ! -s conftest.err'
b7026657
AC
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; }; then
5743 ac_cv_search_opendir="none required"
5744else
5745 echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748fi
5749rm -f conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751if test "$ac_cv_search_opendir" = no; then
5752 for ac_lib in x; do
5753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5754 cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h. */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h. */
c906108c 5760
b7026657
AC
5761/* Override any gcc2 internal prototype to avoid an error. */
5762#ifdef __cplusplus
5763extern "C"
5764#endif
5765/* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5767char opendir ();
5768int
5769main ()
5770{
5771opendir ();
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776rm -f conftest.$ac_objext conftest$ac_exeext
5777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
058ad269
MM
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
b7026657
AC
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_cv_search_opendir="-l$ac_lib"
5799break
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804fi
5805rm -f conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 done
c906108c 5808fi
b7026657
AC
5809LIBS=$ac_func_search_save_LIBS
5810fi
5811echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5812echo "${ECHO_T}$ac_cv_search_opendir" >&6
5813if test "$ac_cv_search_opendir" != no; then
5814 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5815
c906108c
SS
5816fi
5817
5818fi
5819
5820
5821sim_termio=""
b7026657
AC
5822echo "$as_me:$LINENO: checking for struct termios" >&5
5823echo $ECHO_N "checking for struct termios... $ECHO_C" >&6
5824if test "${ac_cv_termios_struct+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h. */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h. */
c906108c
SS
5833#include <sys/types.h>
5834#include <sys/termios.h>
b7026657
AC
5835int
5836main ()
5837{
c906108c
SS
5838static struct termios x;
5839 x.c_iflag = 0;
5840 x.c_oflag = 0;
5841 x.c_cflag = 0;
5842 x.c_lflag = 0;
5843 x.c_cc[NCCS] = 0;
b7026657
AC
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext
5849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>conftest.er1
5851 ac_status=$?
5852 grep -v '^ *+' conftest.er1 >conftest.err
5853 rm -f conftest.er1
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
058ad269
MM
5857 { ac_try='test -z "$ac_c_werror_flag"
5858 || test ! -s conftest.err'
b7026657
AC
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 (eval $ac_try) 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
c906108c
SS
5870 ac_cv_termios_struct=yes
5871else
b7026657
AC
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875ac_cv_termios_struct=no
c906108c 5876fi
b7026657 5877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
5878fi
5879
b7026657
AC
5880echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5
5881echo "${ECHO_T}$ac_cv_termios_struct" >&6
c906108c
SS
5882if test $ac_cv_termios_struct = yes; then
5883 sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
5884fi
5885
5886if test "$ac_cv_termios_struct" = "yes"; then
b7026657
AC
5887 echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5
5888echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6
5889 if test "${ac_cv_termios_cline+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
c906108c
SS
5898#include <sys/types.h>
5899#include <sys/termios.h>
b7026657
AC
5900int
5901main ()
5902{
c906108c 5903static struct termios x; x.c_line = 0;
b7026657
AC
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext
5909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910 (eval $ac_compile) 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
058ad269
MM
5917 { ac_try='test -z "$ac_c_werror_flag"
5918 || test ! -s conftest.err'
b7026657
AC
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; } &&
5924 { ac_try='test -s conftest.$ac_objext'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; }; then
c906108c
SS
5930 ac_cv_termios_cline=yes
5931else
b7026657
AC
5932 echo "$as_me: failed program was:" >&5
5933sed 's/^/| /' conftest.$ac_ext >&5
5934
5935ac_cv_termios_cline=no
c906108c 5936fi
b7026657 5937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
5938fi
5939
5940
b7026657
AC
5941 echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5
5942echo "${ECHO_T}$ac_cv_termios_cline" >&6
c906108c
SS
5943 if test $ac_cv_termios_cline = yes; then
5944 sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
5945 fi
5946else
5947 ac_cv_termios_cline=no
5948fi
5949
5950if test "$ac_cv_termios_struct" != "yes"; then
b7026657
AC
5951 echo "$as_me:$LINENO: checking for struct termio" >&5
5952echo $ECHO_N "checking for struct termio... $ECHO_C" >&6
5953 if test "${ac_cv_termio_struct+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 cat >conftest.$ac_ext <<_ACEOF
5957/* confdefs.h. */
5958_ACEOF
5959cat confdefs.h >>conftest.$ac_ext
5960cat >>conftest.$ac_ext <<_ACEOF
5961/* end confdefs.h. */
c906108c
SS
5962#include <sys/types.h>
5963#include <sys/termio.h>
b7026657
AC
5964int
5965main ()
5966{
c906108c
SS
5967static struct termio x;
5968 x.c_iflag = 0;
5969 x.c_oflag = 0;
5970 x.c_cflag = 0;
5971 x.c_lflag = 0;
5972 x.c_cc[NCC] = 0;
b7026657
AC
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext
5978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
058ad269
MM
5986 { ac_try='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
b7026657
AC
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
c906108c
SS
5999 ac_cv_termio_struct=yes
6000else
b7026657
AC
6001 echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
6003
6004ac_cv_termio_struct=no
c906108c 6005fi
b7026657 6006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
6007fi
6008
b7026657
AC
6009 echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5
6010echo "${ECHO_T}$ac_cv_termio_struct" >&6
c906108c
SS
6011 if test $ac_cv_termio_struct = yes; then
6012 sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
6013 fi
6014else
6015 ac_cv_termio_struct=no
6016fi
6017
6018if test "$ac_cv_termio_struct" = "yes"; then
b7026657
AC
6019 echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5
6020echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6
6021 if test "${ac_cv_termio_cline+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024 cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h. */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */
c906108c
SS
6030#include <sys/types.h>
6031#include <sys/termio.h>
b7026657
AC
6032int
6033main ()
6034{
c906108c 6035static struct termio x; x.c_line = 0;
b7026657
AC
6036 ;
6037 return 0;
6038}
6039_ACEOF
6040rm -f conftest.$ac_objext
6041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
058ad269
MM
6049 { ac_try='test -z "$ac_c_werror_flag"
6050 || test ! -s conftest.err'
b7026657
AC
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 (eval $ac_try) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
c906108c
SS
6062 ac_cv_termio_cline=yes
6063else
b7026657
AC
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067ac_cv_termio_cline=no
c906108c 6068fi
b7026657 6069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
6070fi
6071
6072
b7026657
AC
6073 echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5
6074echo "${ECHO_T}$ac_cv_termio_cline" >&6
c906108c
SS
6075 if test $ac_cv_termio_cline = yes; then
6076 sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
6077 fi
6078else
6079 ac_cv_termio_cline=no
6080fi
6081
b7026657
AC
6082echo "$as_me:$LINENO: checking for struct statfs" >&5
6083echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6
6084if test "${ac_cv_struct_statfs+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
1f362c96 6086else
b7026657
AC
6087 cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
1f362c96
AC
6093#include <sys/types.h>
6094#ifdef HAVE_SYS_PARAM_H
6095#include <sys/param.h>
6096#endif
6097#ifdef HAVE_SYS_MOUNT_H
6098#include <sys/mount.h>
6099#endif
6100#ifdef HAVE_SYS_VFS_H
6101#include <sys/vfs.h>
6102#endif
6103#ifdef HAVE_SYS_STATFS_H
6104#include <sys/statfs.h>
6105#endif
b7026657
AC
6106int
6107main ()
6108{
1f362c96 6109static struct statfs s;
b7026657
AC
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext
6115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
058ad269
MM
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
b7026657
AC
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
1f362c96
AC
6136 ac_cv_struct_statfs=yes
6137else
b7026657
AC
6138 echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141ac_cv_struct_statfs=no
1f362c96 6142fi
b7026657 6143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1f362c96
AC
6144fi
6145
b7026657
AC
6146echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5
6147echo "${ECHO_T}$ac_cv_struct_statfs" >&6
1f362c96 6148if test $ac_cv_struct_statfs = yes; then
b7026657
AC
6149
6150cat >>confdefs.h <<\_ACEOF
1f362c96 6151#define HAVE_STRUCT_STATFS 1
b7026657 6152_ACEOF
1f362c96
AC
6153
6154fi
6155
30e66173
MI
6156echo "$as_me:$LINENO: checking for long long" >&5
6157echo $ECHO_N "checking for long long... $ECHO_C" >&6
6158if test "${ac_cv_type_long_long+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167$ac_includes_default
6168int
6169main ()
6170{
6171if ((long long *) 0)
6172 return 0;
6173if (sizeof (long long))
6174 return 0;
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179rm -f conftest.$ac_objext
6180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
058ad269
MM
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
30e66173
MI
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_type_long_long=yes
6202else
6203 echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206ac_cv_type_long_long=no
6207fi
6208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6211echo "${ECHO_T}$ac_cv_type_long_long" >&6
6212if test $ac_cv_type_long_long = yes; then
6213
6214cat >>confdefs.h <<_ACEOF
6215#define HAVE_LONG_LONG 1
6216_ACEOF
6217
6218
6219fi
6220
6221
c906108c 6222sim_devzero=""
b7026657
AC
6223echo "$as_me:$LINENO: checking for /dev/zero" >&5
6224echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6
6225if test "${ac_cv_devzero+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
6227else
6228 if test "$cross_compiling" = yes; then
6229 ac_cv_devzero=no
6230else
b7026657
AC
6231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
c906108c
SS
6237#include <fcntl.h>
6238main () {
6239 char buf[2048];
6240 int i;
6241 int fd = open ("/dev/zero", O_RDONLY);
6242 if (fd < 0)
6243 return 1;
6244 for (i = 0; i < sizeof (buf); i++)
6245 buf[i] = 1;
6246 if (read (fd, buf, sizeof (buf)) != sizeof (buf))
6247 return 1;
6248 for (i = 0; i < sizeof (buf); i++)
6249 if (buf[i])
6250 return 1;
6251 return 0;
6252}
b7026657
AC
6253_ACEOF
6254rm -f conftest$ac_exeext
6255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6256 (eval $ac_link) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
c906108c
SS
6265 ac_cv_devzero=yes
6266else
b7026657
AC
6267 echo "$as_me: program exited with status $ac_status" >&5
6268echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271( exit $ac_status )
6272ac_cv_devzero=no
c906108c 6273fi
b7026657 6274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 6275fi
c906108c
SS
6276fi
6277
b7026657
AC
6278echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5
6279echo "${ECHO_T}$ac_cv_devzero" >&6
c906108c
SS
6280if test $ac_cv_devzero = yes; then
6281 sim_devzero="-DHAVE_DEVZERO"
6282else
6283 sim_devzero=""
6284fi
6285
b7026657
AC
6286echo "$as_me:$LINENO: checking for common simulator directory" >&5
6287echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6
c906108c 6288if test -f "${srcdir}/../common/callback.c"; then
b7026657
AC
6289 echo "$as_me:$LINENO: result: yes" >&5
6290echo "${ECHO_T}yes" >&6
c906108c
SS
6291 sim_callback="callback.o targ-map.o"
6292 sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
6293else
b7026657
AC
6294 echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6
c906108c
SS
6296 sim_callback=""
6297 sim_targ_vals=""
6298fi
6299
b7026657
AC
6300echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5
6301echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6
d29d5195 6302if test -f "${srcdir}/../common/sim-fpu.c"; then
b7026657
AC
6303 echo "$as_me:$LINENO: result: yes" >&5
6304echo "${ECHO_T}yes" >&6
3e5e53f9 6305 sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
3a11ea24 6306 sim_fpu="sim-fpu.o"
d29d5195 6307else
b7026657
AC
6308 echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6
d29d5195 6310 sim_fpu_cflags=
b7026657 6311 sim_fpu=
c906108c 6312fi
cd0fc7c3 6313
c906108c
SS
6314
6315
6316
6317
6318
4b164edf 6319
c906108c
SS
6320AR=${AR-ar}
6321
b7026657
AC
6322if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6324set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6325echo "$as_me:$LINENO: checking for $ac_word" >&5
6326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6327if test "${ac_cv_prog_RANLIB+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
6329else
6330 if test -n "$RANLIB"; then
6331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6332else
b7026657
AC
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345done
6346
c906108c
SS
6347fi
6348fi
b7026657 6349RANLIB=$ac_cv_prog_RANLIB
c906108c 6350if test -n "$RANLIB"; then
b7026657
AC
6351 echo "$as_me:$LINENO: result: $RANLIB" >&5
6352echo "${ECHO_T}$RANLIB" >&6
6353else
6354 echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356fi
6357
6358fi
6359if test -z "$ac_cv_prog_RANLIB"; then
6360 ac_ct_RANLIB=$RANLIB
6361 # Extract the first word of "ranlib", so it can be a program name with args.
6362set dummy ranlib; ac_word=$2
6363echo "$as_me:$LINENO: checking for $ac_word" >&5
6364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368 if test -n "$ac_ct_RANLIB"; then
6369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6370else
6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372for as_dir in $PATH
6373do
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_RANLIB="ranlib"
6379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382done
6383done
6384
6385 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6386fi
6387fi
6388ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6389if test -n "$ac_ct_RANLIB"; then
6390 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6391echo "${ECHO_T}$ac_ct_RANLIB" >&6
6392else
6393 echo "$as_me:$LINENO: result: no" >&5
6394echo "${ECHO_T}no" >&6
6395fi
6396
6397 RANLIB=$ac_ct_RANLIB
c906108c 6398else
b7026657 6399 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
6400fi
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
d29d5195
MG
6442
6443
c906108c
SS
6444
6445
6446
b7026657
AC
6447 ac_config_files="$ac_config_files Makefile"
6448 ac_config_commands="$ac_config_commands default"
6449cat >confcache <<\_ACEOF
c906108c
SS
6450# This file is a shell script that caches the results of configure
6451# tests run on this system so they can be shared between configure
b7026657
AC
6452# scripts and configure runs, see configure's option --config-cache.
6453# It is not useful on other systems. If it contains results you don't
6454# want to keep, you may remove or edit it.
c906108c 6455#
b7026657
AC
6456# config.status only pays attention to the cache file if you give it
6457# the --recheck option to rerun configure.
c906108c 6458#
b7026657
AC
6459# `ac_cv_env_foo' variables (set or unset) will be overridden when
6460# loading this file, other *unset* `ac_cv_foo' will be assigned the
6461# following values.
6462
6463_ACEOF
6464
c906108c
SS
6465# The following way of writing the cache mishandles newlines in values,
6466# but we know of no workaround that is simple, portable, and efficient.
6467# So, don't put newlines in cache variables' values.
6468# Ultrix sh set writes to stderr and can't be redirected directly,
6469# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
6470{
6471 (set) 2>&1 |
6472 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6473 *ac_space=\ *)
6474 # `set' does not quote correctly, so add quotes (double-quote
6475 # substitution turns \\\\ into \\, and sed turns \\ into \).
6476 sed -n \
6477 "s/'/'\\\\''/g;
6478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6479 ;;
6480 *)
6481 # `set' quotes correctly as required by POSIX, so do not add quotes.
6482 sed -n \
6483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6484 ;;
6485 esac;
6486} |
6487 sed '
6488 t clear
6489 : clear
6490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6491 t end
6492 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6493 : end' >>confcache
6494if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 6495 if test -w $cache_file; then
b7026657
AC
6496 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6497 cat confcache >$cache_file
c906108c
SS
6498 else
6499 echo "not updating unwritable cache $cache_file"
6500 fi
6501fi
6502rm -f confcache
6503
c906108c
SS
6504test "x$prefix" = xNONE && prefix=$ac_default_prefix
6505# Let make expand exec_prefix.
6506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6507
b7026657
AC
6508# VPATH may cause trouble with some makes, so we remove $(srcdir),
6509# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6510# trailing colons and then remove the whole line if VPATH becomes empty
6511# (actually we leave an empty line to preserve line numbers).
c906108c 6512if test "x$srcdir" = x.; then
b7026657
AC
6513 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6514s/:*\$(srcdir):*/:/;
6515s/:*\${srcdir}:*/:/;
6516s/:*@srcdir@:*/:/;
6517s/^\([^=]*=[ ]*\):*/\1/;
6518s/:*$//;
6519s/^[^=]*=[ ]*$//;
6520}'
c906108c
SS
6521fi
6522
c906108c
SS
6523DEFS=-DHAVE_CONFIG_H
6524
b7026657
AC
6525ac_libobjs=
6526ac_ltlibobjs=
6527for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6528 # 1. Remove the extension, and $U if already installed.
6529 ac_i=`echo "$ac_i" |
6530 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6531 # 2. Add them.
6532 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6533 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6534done
6535LIBOBJS=$ac_libobjs
c906108c 6536
b7026657
AC
6537LTLIBOBJS=$ac_ltlibobjs
6538
6539
6540
6541: ${CONFIG_STATUS=./config.status}
6542ac_clean_files_save=$ac_clean_files
6543ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6544{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6545echo "$as_me: creating $CONFIG_STATUS" >&6;}
6546cat >$CONFIG_STATUS <<_ACEOF
6547#! $SHELL
6548# Generated by $as_me.
c906108c 6549# Run this file to recreate the current configuration.
c906108c 6550# Compiler output produced by configure, useful for debugging
b7026657 6551# configure, is in config.log if it exists.
c906108c 6552
b7026657
AC
6553debug=false
6554ac_cs_recheck=false
6555ac_cs_silent=false
6556SHELL=\${CONFIG_SHELL-$SHELL}
6557_ACEOF
6558
6559cat >>$CONFIG_STATUS <<\_ACEOF
6560## --------------------- ##
6561## M4sh Initialization. ##
6562## --------------------- ##
6563
6564# Be Bourne compatible
6565if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6566 emulate sh
6567 NULLCMD=:
6568 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6569 # is contrary to our usage. Disable this feature.
6570 alias -g '${1+"$@"}'='"$@"'
6571elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6572 set -o posix
6573fi
6574DUALCASE=1; export DUALCASE # for MKS sh
6575
6576# Support unset when possible.
6577if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6578 as_unset=unset
6579else
6580 as_unset=false
6581fi
6582
6583
6584# Work around bugs in pre-3.0 UWIN ksh.
6585$as_unset ENV MAIL MAILPATH
6586PS1='$ '
6587PS2='> '
6588PS4='+ '
6589
6590# NLS nuisances.
6591for as_var in \
6592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6594 LC_TELEPHONE LC_TIME
c906108c 6595do
b7026657
AC
6596 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6597 eval $as_var=C; export $as_var
6598 else
6599 $as_unset $as_var
6600 fi
c906108c
SS
6601done
6602
b7026657
AC
6603# Required to use basename.
6604if expr a : '\(a\)' >/dev/null 2>&1; then
6605 as_expr=expr
6606else
6607 as_expr=false
6608fi
c906108c 6609
b7026657
AC
6610if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6611 as_basename=basename
6612else
6613 as_basename=false
6614fi
c906108c 6615
c906108c 6616
b7026657
AC
6617# Name of the executable.
6618as_me=`$as_basename "$0" ||
6619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6620 X"$0" : 'X\(//\)$' \| \
6621 X"$0" : 'X\(/\)$' \| \
6622 . : '\(.\)' 2>/dev/null ||
6623echo X/"$0" |
6624 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6625 /^X\/\(\/\/\)$/{ s//\1/; q; }
6626 /^X\/\(\/\).*/{ s//\1/; q; }
6627 s/.*/./; q'`
6628
6629
6630# PATH needs CR, and LINENO needs CR and PATH.
6631# Avoid depending upon Character Ranges.
6632as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6634as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6635as_cr_digits='0123456789'
6636as_cr_alnum=$as_cr_Letters$as_cr_digits
6637
6638# The user is always right.
6639if test "${PATH_SEPARATOR+set}" != set; then
6640 echo "#! /bin/sh" >conf$$.sh
6641 echo "exit 0" >>conf$$.sh
6642 chmod +x conf$$.sh
6643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6644 PATH_SEPARATOR=';'
c906108c 6645 else
b7026657
AC
6646 PATH_SEPARATOR=:
6647 fi
6648 rm -f conf$$.sh
6649fi
6650
6651
6652 as_lineno_1=$LINENO
6653 as_lineno_2=$LINENO
6654 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6655 test "x$as_lineno_1" != "x$as_lineno_2" &&
6656 test "x$as_lineno_3" = "x$as_lineno_2" || {
6657 # Find who we are. Look in the path if we contain no path at all
6658 # relative or not.
6659 case $0 in
6660 *[\\/]* ) as_myself=$0 ;;
6661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6667done
6668
6669 ;;
6670 esac
6671 # We did not find ourselves, most probably we were run as `sh COMMAND'
6672 # in which case we are not to be found in the path.
6673 if test "x$as_myself" = x; then
6674 as_myself=$0
c906108c 6675 fi
b7026657
AC
6676 if test ! -f "$as_myself"; then
6677 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6678echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6679 { (exit 1); exit 1; }; }
6680 fi
6681 case $CONFIG_SHELL in
6682 '')
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for as_base in sh bash ksh sh5; do
6689 case $as_dir in
6690 /*)
6691 if ("$as_dir/$as_base" -c '
6692 as_lineno_1=$LINENO
6693 as_lineno_2=$LINENO
6694 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6695 test "x$as_lineno_1" != "x$as_lineno_2" &&
6696 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6697 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6698 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6699 CONFIG_SHELL=$as_dir/$as_base
6700 export CONFIG_SHELL
6701 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6702 fi;;
6703 esac
6704 done
6705done
6706;;
6707 esac
6708
6709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6710 # uniformly replaced by the line number. The first 'sed' inserts a
6711 # line-number line before each line; the second 'sed' does the real
6712 # work. The second script uses 'N' to pair each line-number line
6713 # with the numbered line, and appends trailing '-' during
6714 # substitution so that $LINENO is not a special case at line end.
6715 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6716 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6717 sed '=' <$as_myself |
6718 sed '
6719 N
6720 s,$,-,
6721 : loop
6722 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6723 t loop
6724 s,-$,,
6725 s,^['$as_cr_digits']*\n,,
6726 ' >$as_me.lineno &&
6727 chmod +x $as_me.lineno ||
6728 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6729echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6730 { (exit 1); exit 1; }; }
6731
6732 # Don't try to exec as it changes $[0], causing all sort of problems
6733 # (the dirname of $[0] is not the place where we might find the
6734 # original and so on. Autoconf is especially sensible to this).
6735 . ./$as_me.lineno
6736 # Exit status is that of the last command.
6737 exit
6738}
6739
6740
6741case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6742 *c*,-n*) ECHO_N= ECHO_C='
6743' ECHO_T=' ' ;;
6744 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6745 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6746esac
6747
6748if expr a : '\(a\)' >/dev/null 2>&1; then
6749 as_expr=expr
6750else
6751 as_expr=false
6752fi
6753
6754rm -f conf$$ conf$$.exe conf$$.file
6755echo >conf$$.file
6756if ln -s conf$$.file conf$$ 2>/dev/null; then
6757 # We could just check for DJGPP; but this test a) works b) is more generic
6758 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6759 if test -f conf$$.exe; then
6760 # Don't use ln at all; we don't have any links
6761 as_ln_s='cp -p'
c906108c 6762 else
b7026657 6763 as_ln_s='ln -s'
c906108c 6764 fi
b7026657
AC
6765elif ln conf$$.file conf$$ 2>/dev/null; then
6766 as_ln_s=ln
6767else
6768 as_ln_s='cp -p'
6769fi
6770rm -f conf$$ conf$$.exe conf$$.file
6771
6772if mkdir -p . 2>/dev/null; then
6773 as_mkdir_p=:
6774else
6775 test -d ./-p && rmdir ./-p
6776 as_mkdir_p=false
6777fi
6778
6779as_executable_p="test -f"
6780
6781# Sed expression to map a string onto a valid CPP name.
6782as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6783
6784# Sed expression to map a string onto a valid variable name.
6785as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6786
6787
6788# IFS
6789# We need space, tab and new line, in precisely that order.
6790as_nl='
6791'
6792IFS=" $as_nl"
6793
6794# CDPATH.
6795$as_unset CDPATH
6796
6797exec 6>&1
6798
6799# Open the log real soon, to keep \$[0] and so on meaningful, and to
6800# report actual input values of CONFIG_FILES etc. instead of their
6801# values after options handling. Logging --version etc. is OK.
6802exec 5>>config.log
6803{
6804 echo
6805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6806## Running $as_me. ##
6807_ASBOX
6808} >&5
6809cat >&5 <<_CSEOF
6810
6811This file was extended by $as_me, which was
6812generated by GNU Autoconf 2.59. Invocation command line was
6813
6814 CONFIG_FILES = $CONFIG_FILES
6815 CONFIG_HEADERS = $CONFIG_HEADERS
6816 CONFIG_LINKS = $CONFIG_LINKS
6817 CONFIG_COMMANDS = $CONFIG_COMMANDS
6818 $ $0 $@
6819
6820_CSEOF
6821echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6822echo >&5
6823_ACEOF
6824
6825# Files that config.status was made for.
6826if test -n "$ac_config_files"; then
6827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6828fi
6829
6830if test -n "$ac_config_headers"; then
6831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6832fi
6833
6834if test -n "$ac_config_links"; then
6835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6836fi
6837
6838if test -n "$ac_config_commands"; then
6839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6840fi
6841
6842cat >>$CONFIG_STATUS <<\_ACEOF
6843
6844ac_cs_usage="\
6845\`$as_me' instantiates files from templates according to the
6846current configuration.
6847
6848Usage: $0 [OPTIONS] [FILE]...
6849
6850 -h, --help print this help, then exit
6851 -V, --version print version number, then exit
6852 -q, --quiet do not print progress messages
6853 -d, --debug don't remove temporary files
6854 --recheck update $as_me by reconfiguring in the same conditions
6855 --file=FILE[:TEMPLATE]
6856 instantiate the configuration file FILE
6857 --header=FILE[:TEMPLATE]
6858 instantiate the configuration header FILE
6859
6860Configuration files:
6861$config_files
6862
6863Configuration headers:
6864$config_headers
6865
6866Configuration commands:
6867$config_commands
6868
6869Report bugs to <bug-autoconf@gnu.org>."
6870_ACEOF
6871
6872cat >>$CONFIG_STATUS <<_ACEOF
6873ac_cs_version="\\
6874config.status
6875configured by $0, generated by GNU Autoconf 2.59,
6876 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6877
6878Copyright (C) 2003 Free Software Foundation, Inc.
6879This config.status script is free software; the Free Software Foundation
6880gives unlimited permission to copy, distribute and modify it."
6881srcdir=$srcdir
6882INSTALL="$INSTALL"
6883_ACEOF
6884
6885cat >>$CONFIG_STATUS <<\_ACEOF
6886# If no file are specified by the user, then we need to provide default
6887# value. By we need to know if files were specified by the user.
6888ac_need_defaults=:
6889while test $# != 0
6890do
6891 case $1 in
6892 --*=*)
6893 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6894 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6895 ac_shift=:
6896 ;;
6897 -*)
6898 ac_option=$1
6899 ac_optarg=$2
6900 ac_shift=shift
6901 ;;
6902 *) # This is not an option, so the user has probably given explicit
6903 # arguments.
6904 ac_option=$1
6905 ac_need_defaults=false;;
6906 esac
6907
6908 case $ac_option in
6909 # Handling of the options.
6910_ACEOF
6911cat >>$CONFIG_STATUS <<\_ACEOF
6912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6913 ac_cs_recheck=: ;;
6914 --version | --vers* | -V )
6915 echo "$ac_cs_version"; exit 0 ;;
6916 --he | --h)
6917 # Conflict between --help and --header
6918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6919Try \`$0 --help' for more information." >&5
6920echo "$as_me: error: ambiguous option: $1
6921Try \`$0 --help' for more information." >&2;}
6922 { (exit 1); exit 1; }; };;
6923 --help | --hel | -h )
6924 echo "$ac_cs_usage"; exit 0 ;;
6925 --debug | --d* | -d )
6926 debug=: ;;
6927 --file | --fil | --fi | --f )
6928 $ac_shift
6929 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6930 ac_need_defaults=false;;
6931 --header | --heade | --head | --hea )
6932 $ac_shift
6933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6934 ac_need_defaults=false;;
6935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6937 ac_cs_silent=: ;;
6938
6939 # This is an error.
6940 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6941Try \`$0 --help' for more information." >&5
6942echo "$as_me: error: unrecognized option: $1
6943Try \`$0 --help' for more information." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6945
6946 *) ac_config_targets="$ac_config_targets $1" ;;
6947
6948 esac
6949 shift
c906108c 6950done
b7026657
AC
6951
6952ac_configure_extra_args=
6953
6954if $ac_cs_silent; then
6955 exec 6>/dev/null
6956 ac_configure_extra_args="$ac_configure_extra_args --silent"
6957fi
6958
6959_ACEOF
6960cat >>$CONFIG_STATUS <<_ACEOF
6961if \$ac_cs_recheck; then
6962 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6963 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 6964fi
c906108c 6965
b7026657 6966_ACEOF
c906108c 6967
b7026657
AC
6968
6969
6970
6971
6972cat >>$CONFIG_STATUS <<\_ACEOF
6973for ac_config_target in $ac_config_targets
6974do
6975 case "$ac_config_target" in
6976 # Handling of arguments.
6977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6978 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6979 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6980 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6981echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6982 { (exit 1); exit 1; }; };;
c906108c 6983 esac
b7026657 6984done
c906108c 6985
b7026657
AC
6986# If the user did not use the arguments to specify the items to instantiate,
6987# then the envvar interface is used. Set only those that are not.
6988# We use the long form for the default assignment because of an extremely
6989# bizarre bug on SunOS 4.1.3.
6990if $ac_need_defaults; then
6991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6994fi
6995
6996# Have a temporary directory for convenience. Make it in the build tree
6997# simply because there is no reason to put it here, and in addition,
6998# creating and moving files from /tmp can sometimes cause problems.
6999# Create a temporary directory, and hook for its removal unless debugging.
7000$debug ||
7001{
7002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7003 trap '{ (exit 1); exit 1; }' 1 2 13 15
7004}
c906108c 7005
b7026657
AC
7006# Create a (secure) tmp directory for tmp files.
7007
7008{
7009 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7010 test -n "$tmp" && test -d "$tmp"
7011} ||
7012{
7013 tmp=./confstat$$-$RANDOM
7014 (umask 077 && mkdir $tmp)
7015} ||
7016{
7017 echo "$me: cannot create a temporary directory in ." >&2
7018 { (exit 1); exit 1; }
7019}
7020
7021_ACEOF
7022
7023cat >>$CONFIG_STATUS <<_ACEOF
7024
7025#
7026# CONFIG_FILES section.
7027#
7028
7029# No need to generate the scripts if there are no CONFIG_FILES.
7030# This happens for instance when ./config.status config.h
7031if test -n "\$CONFIG_FILES"; then
7032 # Protect against being on the right side of a sed subst in config.status.
7033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7035s,@sim_environment@,$sim_environment,;t t
7036s,@sim_alignment@,$sim_alignment,;t t
7037s,@sim_assert@,$sim_assert,;t t
7038s,@sim_bitsize@,$sim_bitsize,;t t
7039s,@sim_endian@,$sim_endian,;t t
7040s,@sim_hostendian@,$sim_hostendian,;t t
7041s,@sim_float@,$sim_float,;t t
7042s,@sim_scache@,$sim_scache,;t t
7043s,@sim_default_model@,$sim_default_model,;t t
7044s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7045s,@sim_hw_objs@,$sim_hw_objs,;t t
7046s,@sim_hw@,$sim_hw,;t t
7047s,@sim_inline@,$sim_inline,;t t
7048s,@sim_packages@,$sim_packages,;t t
7049s,@sim_regparm@,$sim_regparm,;t t
7050s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7051s,@sim_smp@,$sim_smp,;t t
7052s,@sim_stdcall@,$sim_stdcall,;t t
7053s,@sim_xor_endian@,$sim_xor_endian,;t t
7054s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7055s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7056s,@SHELL@,$SHELL,;t t
7057s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7058s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7059s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7060s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7061s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7062s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7063s,@exec_prefix@,$exec_prefix,;t t
7064s,@prefix@,$prefix,;t t
7065s,@program_transform_name@,$program_transform_name,;t t
7066s,@bindir@,$bindir,;t t
7067s,@sbindir@,$sbindir,;t t
7068s,@libexecdir@,$libexecdir,;t t
7069s,@datadir@,$datadir,;t t
7070s,@sysconfdir@,$sysconfdir,;t t
7071s,@sharedstatedir@,$sharedstatedir,;t t
7072s,@localstatedir@,$localstatedir,;t t
7073s,@libdir@,$libdir,;t t
7074s,@includedir@,$includedir,;t t
7075s,@oldincludedir@,$oldincludedir,;t t
7076s,@infodir@,$infodir,;t t
7077s,@mandir@,$mandir,;t t
7078s,@build_alias@,$build_alias,;t t
7079s,@host_alias@,$host_alias,;t t
7080s,@target_alias@,$target_alias,;t t
7081s,@DEFS@,$DEFS,;t t
7082s,@ECHO_C@,$ECHO_C,;t t
7083s,@ECHO_N@,$ECHO_N,;t t
7084s,@ECHO_T@,$ECHO_T,;t t
7085s,@LIBS@,$LIBS,;t t
7086s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7087s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7088s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7089s,@CC@,$CC,;t t
7090s,@CFLAGS@,$CFLAGS,;t t
7091s,@LDFLAGS@,$LDFLAGS,;t t
7092s,@CPPFLAGS@,$CPPFLAGS,;t t
7093s,@ac_ct_CC@,$ac_ct_CC,;t t
7094s,@EXEEXT@,$EXEEXT,;t t
7095s,@OBJEXT@,$OBJEXT,;t t
b7026657 7096s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
7097s,@LIBINTL@,$LIBINTL,;t t
7098s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7099s,@INCINTL@,$INCINTL,;t t
b7026657 7100s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
7101s,@GMSGFMT@,$GMSGFMT,;t t
7102s,@POSUB@,$POSUB,;t t
b7026657 7103s,@CATALOGS@,$CATALOGS,;t t
b7026657 7104s,@DATADIRNAME@,$DATADIRNAME,;t t
b7026657 7105s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
7106s,@GENCAT@,$GENCAT,;t t
7107s,@CATOBJEXT@,$CATOBJEXT,;t t
6efef468
JM
7108s,@PKGVERSION@,$PKGVERSION,;t t
7109s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7110s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b7026657
AC
7111s,@build@,$build,;t t
7112s,@build_cpu@,$build_cpu,;t t
7113s,@build_vendor@,$build_vendor,;t t
7114s,@build_os@,$build_os,;t t
7115s,@host@,$host,;t t
7116s,@host_cpu@,$host_cpu,;t t
7117s,@host_vendor@,$host_vendor,;t t
7118s,@host_os@,$host_os,;t t
7119s,@target@,$target,;t t
7120s,@target_cpu@,$target_cpu,;t t
7121s,@target_vendor@,$target_vendor,;t t
7122s,@target_os@,$target_os,;t t
20e95c23
DJ
7123s,@CPP@,$CPP,;t t
7124s,@EGREP@,$EGREP,;t t
b7026657
AC
7125s,@LIBOBJS@,$LIBOBJS,;t t
7126s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
4b164edf 7127s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
b7026657
AC
7128s,@HDEFINES@,$HDEFINES,;t t
7129s,@AR@,$AR,;t t
20e95c23
DJ
7130s,@RANLIB@,$RANLIB,;t t
7131s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b7026657
AC
7132s,@sim_cflags@,$sim_cflags,;t t
7133s,@sim_warnings@,$sim_warnings,;t t
7134s,@sim_line_nr@,$sim_line_nr,;t t
7135s,@sim_config@,$sim_config,;t t
7136s,@sim_opcode@,$sim_opcode,;t t
7137s,@sim_switch@,$sim_switch,;t t
7138s,@sim_dup@,$sim_dup,;t t
7139s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t
7140s,@sim_jump@,$sim_jump,;t t
7141s,@sim_filter@,$sim_filter,;t t
7142s,@sim_icache@,$sim_icache,;t t
7143s,@sim_hw_src@,$sim_hw_src,;t t
7144s,@sim_hw_obj@,$sim_hw_obj,;t t
7145s,@sim_pk_src@,$sim_pk_src,;t t
7146s,@sim_pk_obj@,$sim_pk_obj,;t t
7147s,@sim_bswap@,$sim_bswap,;t t
7148s,@sim_igen_smp@,$sim_igen_smp,;t t
7149s,@sim_hostbitsize@,$sim_hostbitsize,;t t
7150s,@sim_env@,$sim_env,;t t
7151s,@sim_timebase@,$sim_timebase,;t t
7152s,@sim_trace@,$sim_trace,;t t
7153s,@sim_reserved@,$sim_reserved,;t t
7154s,@sim_monitor@,$sim_monitor,;t t
7155s,@sim_model@,$sim_model,;t t
7156s,@sim_model_issue@,$sim_model_issue,;t t
7157s,@sim_stdio@,$sim_stdio,;t t
7158s,@sim_termio@,$sim_termio,;t t
7159s,@sim_devzero@,$sim_devzero,;t t
7160s,@sim_callback@,$sim_callback,;t t
7161s,@sim_targ_vals@,$sim_targ_vals,;t t
7162s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t
7163s,@sim_fpu@,$sim_fpu,;t t
7164s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7165CEOF
7166
7167_ACEOF
7168
7169 cat >>$CONFIG_STATUS <<\_ACEOF
7170 # Split the substitutions into bite-sized pieces for seds with
7171 # small command number limits, like on Digital OSF/1 and HP-UX.
7172 ac_max_sed_lines=48
7173 ac_sed_frag=1 # Number of current file.
7174 ac_beg=1 # First line for current file.
7175 ac_end=$ac_max_sed_lines # Line after last line for current file.
7176 ac_more_lines=:
7177 ac_sed_cmds=
7178 while $ac_more_lines; do
7179 if test $ac_beg -gt 1; then
7180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7181 else
7182 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7183 fi
7184 if test ! -s $tmp/subs.frag; then
7185 ac_more_lines=false
7186 else
7187 # The purpose of the label and of the branching condition is to
7188 # speed up the sed processing (if there are no `@' at all, there
7189 # is no need to browse any of the substitutions).
7190 # These are the two extra sed commands mentioned above.
7191 (echo ':t
7192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7193 if test -z "$ac_sed_cmds"; then
7194 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7195 else
7196 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7197 fi
7198 ac_sed_frag=`expr $ac_sed_frag + 1`
7199 ac_beg=$ac_end
7200 ac_end=`expr $ac_end + $ac_max_sed_lines`
7201 fi
7202 done
7203 if test -z "$ac_sed_cmds"; then
7204 ac_sed_cmds=cat
c906108c 7205 fi
b7026657 7206fi # test -n "$CONFIG_FILES"
c906108c 7207
b7026657
AC
7208_ACEOF
7209cat >>$CONFIG_STATUS <<\_ACEOF
7210for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7212 case $ac_file in
7213 - | *:- | *:-:* ) # input from stdin
7214 cat >$tmp/stdin
7215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7219 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7220 esac
7221
b7026657
AC
7222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7223 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7225 X"$ac_file" : 'X\(//\)[^/]' \| \
7226 X"$ac_file" : 'X\(//\)$' \| \
7227 X"$ac_file" : 'X\(/\)' \| \
7228 . : '\(.\)' 2>/dev/null ||
7229echo X"$ac_file" |
7230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7232 /^X\(\/\/\)$/{ s//\1/; q; }
7233 /^X\(\/\).*/{ s//\1/; q; }
7234 s/.*/./; q'`
7235 { if $as_mkdir_p; then
7236 mkdir -p "$ac_dir"
7237 else
7238 as_dir="$ac_dir"
7239 as_dirs=
7240 while test ! -d "$as_dir"; do
7241 as_dirs="$as_dir $as_dirs"
7242 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7244 X"$as_dir" : 'X\(//\)[^/]' \| \
7245 X"$as_dir" : 'X\(//\)$' \| \
7246 X"$as_dir" : 'X\(/\)' \| \
7247 . : '\(.\)' 2>/dev/null ||
7248echo X"$as_dir" |
7249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7251 /^X\(\/\/\)$/{ s//\1/; q; }
7252 /^X\(\/\).*/{ s//\1/; q; }
7253 s/.*/./; q'`
7254 done
7255 test ! -n "$as_dirs" || mkdir $as_dirs
7256 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7257echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7258 { (exit 1); exit 1; }; }; }
7259
7260 ac_builddir=.
7261
7262if test "$ac_dir" != .; then
7263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7264 # A "../" for each directory in $ac_dir_suffix.
7265 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7266else
7267 ac_dir_suffix= ac_top_builddir=
7268fi
c906108c 7269
b7026657
AC
7270case $srcdir in
7271 .) # No --srcdir option. We are building in place.
7272 ac_srcdir=.
7273 if test -z "$ac_top_builddir"; then
7274 ac_top_srcdir=.
7275 else
7276 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7277 fi ;;
7278 [\\/]* | ?:[\\/]* ) # Absolute path.
7279 ac_srcdir=$srcdir$ac_dir_suffix;
7280 ac_top_srcdir=$srcdir ;;
7281 *) # Relative path.
7282 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7283 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7284esac
7285
7286# Do not use `cd foo && pwd` to compute absolute paths, because
7287# the directories may not exist.
7288case `pwd` in
7289.) ac_abs_builddir="$ac_dir";;
7290*)
7291 case "$ac_dir" in
7292 .) ac_abs_builddir=`pwd`;;
7293 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7294 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7295 esac;;
7296esac
7297case $ac_abs_builddir in
7298.) ac_abs_top_builddir=${ac_top_builddir}.;;
7299*)
7300 case ${ac_top_builddir}. in
7301 .) ac_abs_top_builddir=$ac_abs_builddir;;
7302 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7303 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7304 esac;;
7305esac
7306case $ac_abs_builddir in
7307.) ac_abs_srcdir=$ac_srcdir;;
7308*)
7309 case $ac_srcdir in
7310 .) ac_abs_srcdir=$ac_abs_builddir;;
7311 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7312 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7313 esac;;
7314esac
7315case $ac_abs_builddir in
7316.) ac_abs_top_srcdir=$ac_top_srcdir;;
7317*)
7318 case $ac_top_srcdir in
7319 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7320 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7321 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7322 esac;;
7323esac
7324
7325
7326 case $INSTALL in
7327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7328 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
7329 esac
7330
058ad269
MM
7331 if test x"$ac_file" != x-; then
7332 { echo "$as_me:$LINENO: creating $ac_file" >&5
7333echo "$as_me: creating $ac_file" >&6;}
7334 rm -f "$ac_file"
7335 fi
b7026657
AC
7336 # Let's still pretend it is `configure' which instantiates (i.e., don't
7337 # use $as_me), people would be surprised to read:
7338 # /* config.h. Generated by config.status. */
7339 if test x"$ac_file" = x-; then
7340 configure_input=
7341 else
7342 configure_input="$ac_file. "
7343 fi
7344 configure_input=$configure_input"Generated from `echo $ac_file_in |
7345 sed 's,.*/,,'` by configure."
7346
7347 # First look for the input files in the build tree, otherwise in the
7348 # src tree.
7349 ac_file_inputs=`IFS=:
7350 for f in $ac_file_in; do
7351 case $f in
7352 -) echo $tmp/stdin ;;
7353 [\\/$]*)
7354 # Absolute (can't be DOS-style, as IFS=:)
7355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7356echo "$as_me: error: cannot find input file: $f" >&2;}
7357 { (exit 1); exit 1; }; }
7358 echo "$f";;
7359 *) # Relative
7360 if test -f "$f"; then
7361 # Build tree
7362 echo "$f"
7363 elif test -f "$srcdir/$f"; then
7364 # Source tree
7365 echo "$srcdir/$f"
7366 else
7367 # /dev/null tree
7368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7369echo "$as_me: error: cannot find input file: $f" >&2;}
7370 { (exit 1); exit 1; }; }
7371 fi;;
7372 esac
7373 done` || { (exit 1); exit 1; }
7374_ACEOF
7375cat >>$CONFIG_STATUS <<_ACEOF
7376 sed "$ac_vpsub
7377$extrasub
7378_ACEOF
7379cat >>$CONFIG_STATUS <<\_ACEOF
7380:t
7381/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7382s,@configure_input@,$configure_input,;t t
7383s,@srcdir@,$ac_srcdir,;t t
7384s,@abs_srcdir@,$ac_abs_srcdir,;t t
7385s,@top_srcdir@,$ac_top_srcdir,;t t
7386s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7387s,@builddir@,$ac_builddir,;t t
7388s,@abs_builddir@,$ac_abs_builddir,;t t
7389s,@top_builddir@,$ac_top_builddir,;t t
7390s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7391s,@INSTALL@,$ac_INSTALL,;t t
7392" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7393 rm -f $tmp/stdin
7394 if test x"$ac_file" != x-; then
7395 mv $tmp/out $ac_file
7396 else
7397 cat $tmp/out
7398 rm -f $tmp/out
7399 fi
7400
7401done
7402_ACEOF
7403cat >>$CONFIG_STATUS <<\_ACEOF
7404
7405#
7406# CONFIG_HEADER section.
7407#
c906108c
SS
7408
7409# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7410# NAME is the cpp macro being defined and VALUE is the value it is being given.
7411#
7412# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
7413ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7414ac_dB='[ ].*$,\1#\2'
7415ac_dC=' '
7416ac_dD=',;t'
7417# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7418ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7419ac_uB='$,\1#\2define\3'
c906108c 7420ac_uC=' '
b7026657
AC
7421ac_uD=',;t'
7422
7423for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 7424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
7425 case $ac_file in
7426 - | *:- | *:-:* ) # input from stdin
7427 cat >$tmp/stdin
7428 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7430 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7432 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7433 esac
7434
b7026657
AC
7435 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7436echo "$as_me: creating $ac_file" >&6;}
7437
7438 # First look for the input files in the build tree, otherwise in the
7439 # src tree.
7440 ac_file_inputs=`IFS=:
7441 for f in $ac_file_in; do
7442 case $f in
7443 -) echo $tmp/stdin ;;
7444 [\\/$]*)
7445 # Absolute (can't be DOS-style, as IFS=:)
7446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7447echo "$as_me: error: cannot find input file: $f" >&2;}
7448 { (exit 1); exit 1; }; }
7449 # Do quote $f, to prevent DOS paths from being IFS'd.
7450 echo "$f";;
7451 *) # Relative
7452 if test -f "$f"; then
7453 # Build tree
7454 echo "$f"
7455 elif test -f "$srcdir/$f"; then
7456 # Source tree
7457 echo "$srcdir/$f"
7458 else
7459 # /dev/null tree
7460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7461echo "$as_me: error: cannot find input file: $f" >&2;}
7462 { (exit 1); exit 1; }; }
7463 fi;;
7464 esac
7465 done` || { (exit 1); exit 1; }
7466 # Remove the trailing spaces.
7467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7468
7469_ACEOF
7470
7471# Transform confdefs.h into two sed scripts, `conftest.defines' and
7472# `conftest.undefs', that substitutes the proper values into
7473# config.h.in to produce config.h. The first handles `#define'
7474# templates, and the second `#undef' templates.
7475# And first: Protect against being on the right side of a sed subst in
7476# config.status. Protect against being in an unquoted here document
7477# in config.status.
7478rm -f conftest.defines conftest.undefs
7479# Using a here document instead of a string reduces the quoting nightmare.
7480# Putting comments in sed scripts is not portable.
7481#
7482# `end' is used to avoid that the second main sed command (meant for
7483# 0-ary CPP macros) applies to n-ary macro definitions.
7484# See the Autoconf documentation for `clear'.
7485cat >confdef2sed.sed <<\_ACEOF
7486s/[\\&,]/\\&/g
7487s,[\\$`],\\&,g
7488t clear
7489: clear
7490s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7491t end
7492s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7493: end
7494_ACEOF
7495# If some macros were called several times there might be several times
7496# the same #defines, which is useless. Nevertheless, we may not want to
7497# sort them, since we want the *last* AC-DEFINE to be honored.
7498uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7499sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7500rm -f confdef2sed.sed
c906108c
SS
7501
7502# This sed command replaces #undef with comments. This is necessary, for
7503# example, in the case of _POSIX_SOURCE, which is predefined and required
7504# on some systems where configure will not decide to define it.
b7026657
AC
7505cat >>conftest.undefs <<\_ACEOF
7506s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7507_ACEOF
7508
7509# Break up conftest.defines because some shells have a limit on the size
7510# of here documents, and old seds have small limits too (100 cmds).
7511echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7512echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7513echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7514echo ' :' >>$CONFIG_STATUS
7515rm -f conftest.tail
7516while grep . conftest.defines >/dev/null
7517do
7518 # Write a limited-size here document to $tmp/defines.sed.
7519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7520 # Speed up: don't consider the non `#define' lines.
7521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7522 # Work around the forget-to-reset-the-flag bug.
7523 echo 't clr' >>$CONFIG_STATUS
7524 echo ': clr' >>$CONFIG_STATUS
7525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7526 echo 'CEOF
7527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7528 rm -f $tmp/in
7529 mv $tmp/out $tmp/in
7530' >>$CONFIG_STATUS
7531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7532 rm -f conftest.defines
7533 mv conftest.tail conftest.defines
7534done
7535rm -f conftest.defines
7536echo ' fi # grep' >>$CONFIG_STATUS
7537echo >>$CONFIG_STATUS
c906108c 7538
b7026657
AC
7539# Break up conftest.undefs because some shells have a limit on the size
7540# of here documents, and old seds have small limits too (100 cmds).
7541echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 7542rm -f conftest.tail
b7026657 7543while grep . conftest.undefs >/dev/null
c906108c 7544do
b7026657
AC
7545 # Write a limited-size here document to $tmp/undefs.sed.
7546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7547 # Speed up: don't consider the non `#undef'
7548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7549 # Work around the forget-to-reset-the-flag bug.
7550 echo 't clr' >>$CONFIG_STATUS
7551 echo ': clr' >>$CONFIG_STATUS
7552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 7553 echo 'CEOF
b7026657
AC
7554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7555 rm -f $tmp/in
7556 mv $tmp/out $tmp/in
7557' >>$CONFIG_STATUS
7558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7559 rm -f conftest.undefs
7560 mv conftest.tail conftest.undefs
c906108c 7561done
b7026657
AC
7562rm -f conftest.undefs
7563
7564cat >>$CONFIG_STATUS <<\_ACEOF
7565 # Let's still pretend it is `configure' which instantiates (i.e., don't
7566 # use $as_me), people would be surprised to read:
7567 # /* config.h. Generated by config.status. */
7568 if test x"$ac_file" = x-; then
7569 echo "/* Generated by configure. */" >$tmp/config.h
7570 else
7571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7572 fi
7573 cat $tmp/in >>$tmp/config.h
7574 rm -f $tmp/in
7575 if test x"$ac_file" != x-; then
7576 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7578echo "$as_me: $ac_file is unchanged" >&6;}
7579 else
7580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7581$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7586echo X"$ac_file" |
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7591 s/.*/./; q'`
7592 { if $as_mkdir_p; then
7593 mkdir -p "$ac_dir"
c906108c 7594 else
b7026657
AC
7595 as_dir="$ac_dir"
7596 as_dirs=
7597 while test ! -d "$as_dir"; do
7598 as_dirs="$as_dir $as_dirs"
7599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7601 X"$as_dir" : 'X\(//\)[^/]' \| \
7602 X"$as_dir" : 'X\(//\)$' \| \
7603 X"$as_dir" : 'X\(/\)' \| \
7604 . : '\(.\)' 2>/dev/null ||
7605echo X"$as_dir" |
7606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7608 /^X\(\/\/\)$/{ s//\1/; q; }
7609 /^X\(\/\).*/{ s//\1/; q; }
7610 s/.*/./; q'`
7611 done
7612 test ! -n "$as_dirs" || mkdir $as_dirs
7613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7614echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7615 { (exit 1); exit 1; }; }; }
7616
7617 rm -f $ac_file
7618 mv $tmp/config.h $ac_file
c906108c 7619 fi
b7026657
AC
7620 else
7621 cat $tmp/config.h
7622 rm -f $tmp/config.h
c906108c 7623 fi
b7026657
AC
7624done
7625_ACEOF
7626cat >>$CONFIG_STATUS <<\_ACEOF
7627
7628#
7629# CONFIG_COMMANDS section.
7630#
7631for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7632 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7633 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7634 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7635$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636 X"$ac_dest" : 'X\(//\)[^/]' \| \
7637 X"$ac_dest" : 'X\(//\)$' \| \
7638 X"$ac_dest" : 'X\(/\)' \| \
7639 . : '\(.\)' 2>/dev/null ||
7640echo X"$ac_dest" |
7641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7643 /^X\(\/\/\)$/{ s//\1/; q; }
7644 /^X\(\/\).*/{ s//\1/; q; }
7645 s/.*/./; q'`
7646 { if $as_mkdir_p; then
7647 mkdir -p "$ac_dir"
7648 else
7649 as_dir="$ac_dir"
7650 as_dirs=
7651 while test ! -d "$as_dir"; do
7652 as_dirs="$as_dir $as_dirs"
7653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655 X"$as_dir" : 'X\(//\)[^/]' \| \
7656 X"$as_dir" : 'X\(//\)$' \| \
7657 X"$as_dir" : 'X\(/\)' \| \
7658 . : '\(.\)' 2>/dev/null ||
7659echo X"$as_dir" |
7660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662 /^X\(\/\/\)$/{ s//\1/; q; }
7663 /^X\(\/\).*/{ s//\1/; q; }
7664 s/.*/./; q'`
7665 done
7666 test ! -n "$as_dirs" || mkdir $as_dirs
7667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7668echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7669 { (exit 1); exit 1; }; }; }
7670
7671 ac_builddir=.
7672
7673if test "$ac_dir" != .; then
7674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7675 # A "../" for each directory in $ac_dir_suffix.
7676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7677else
7678 ac_dir_suffix= ac_top_builddir=
7679fi
7680
7681case $srcdir in
7682 .) # No --srcdir option. We are building in place.
7683 ac_srcdir=.
7684 if test -z "$ac_top_builddir"; then
7685 ac_top_srcdir=.
7686 else
7687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7688 fi ;;
7689 [\\/]* | ?:[\\/]* ) # Absolute path.
7690 ac_srcdir=$srcdir$ac_dir_suffix;
7691 ac_top_srcdir=$srcdir ;;
7692 *) # Relative path.
7693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7695esac
7696
7697# Do not use `cd foo && pwd` to compute absolute paths, because
7698# the directories may not exist.
7699case `pwd` in
7700.) ac_abs_builddir="$ac_dir";;
7701*)
7702 case "$ac_dir" in
7703 .) ac_abs_builddir=`pwd`;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7706 esac;;
7707esac
7708case $ac_abs_builddir in
7709.) ac_abs_top_builddir=${ac_top_builddir}.;;
7710*)
7711 case ${ac_top_builddir}. in
7712 .) ac_abs_top_builddir=$ac_abs_builddir;;
7713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7715 esac;;
7716esac
7717case $ac_abs_builddir in
7718.) ac_abs_srcdir=$ac_srcdir;;
7719*)
7720 case $ac_srcdir in
7721 .) ac_abs_srcdir=$ac_abs_builddir;;
7722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7724 esac;;
7725esac
7726case $ac_abs_builddir in
7727.) ac_abs_top_srcdir=$ac_top_srcdir;;
7728*)
7729 case $ac_top_srcdir in
7730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7733 esac;;
7734esac
7735
c906108c 7736
b7026657
AC
7737 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7738echo "$as_me: executing $ac_dest commands" >&6;}
7739 case $ac_dest in
7740 default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
7741 esac
7742done
7743_ACEOF
c906108c 7744
b7026657
AC
7745cat >>$CONFIG_STATUS <<\_ACEOF
7746
7747{ (exit 0); exit 0; }
7748_ACEOF
c906108c 7749chmod +x $CONFIG_STATUS
b7026657
AC
7750ac_clean_files=$ac_clean_files_save
7751
7752
7753# configure is writing to config.log, and then calls config.status.
7754# config.status does its own redirection, appending to config.log.
7755# Unfortunately, on DOS this fails, as config.log is still kept open
7756# by configure, so config.status won't be able to write to it; its
7757# output is simply discarded. So we exec the FD to /dev/null,
7758# effectively closing config.log, so it can be properly (re)opened and
7759# appended to by config.status. When coming back to configure, we
7760# need to make the FD available again.
7761if test "$no_create" != yes; then
7762 ac_cs_success=:
7763 ac_config_status_args=
7764 test "$silent" = yes &&
7765 ac_config_status_args="$ac_config_status_args --quiet"
7766 exec 5>/dev/null
7767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7768 exec 5>>config.log
7769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7770 # would make configure fail if this is the last instruction.
7771 $ac_cs_success || { (exit 1); exit 1; }
7772fi
c906108c 7773