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