]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/d10v/configure
bfd/, binutils/, gas/, gprof/, ld/, opcodes/
[thirdparty/binutils-gdb.git] / sim / d10v / 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
20e95c23 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile cgen_breaks LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
c906108c
SS
314
315# Initialize some variables set by options.
b7026657
AC
316ac_init_help=
317ac_init_version=false
c906108c
SS
318# The variables have the same names as the options, with
319# dashes changed to underlines.
b7026657 320cache_file=/dev/null
c906108c 321exec_prefix=NONE
c906108c 322no_create=
c906108c
SS
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
c906108c
SS
331verbose=
332x_includes=NONE
333x_libraries=NONE
b7026657
AC
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
c906108c
SS
353ac_prev=
354for ac_option
355do
c906108c
SS
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
b7026657 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
b7026657 367 case $ac_option in
c906108c
SS
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 372 bindir=$ac_optarg ;;
c906108c
SS
373
374 -build | --build | --buil | --bui | --bu)
b7026657 375 ac_prev=build_alias ;;
c906108c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 377 build_alias=$ac_optarg ;;
c906108c
SS
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
c906108c
SS
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
b7026657 393 datadir=$ac_optarg ;;
c906108c
SS
394
395 -disable-* | --disable-*)
b7026657 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 397 # Reject names that are not valid shell variable names.
b7026657
AC
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
c906108c
SS
403
404 -enable-* | --enable-*)
b7026657 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 406 # Reject names that are not valid shell variable names.
b7026657
AC
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
413 *) ac_optarg=yes ;;
414 esac
b7026657 415 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
b7026657 424 exec_prefix=$ac_optarg ;;
c906108c
SS
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
b7026657
AC
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
c906108c
SS
436
437 -host | --host | --hos | --ho)
b7026657 438 ac_prev=host_alias ;;
c906108c 439 -host=* | --host=* | --hos=* | --ho=*)
b7026657 440 host_alias=$ac_optarg ;;
c906108c
SS
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 447 includedir=$ac_optarg ;;
c906108c
SS
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 452 infodir=$ac_optarg ;;
c906108c
SS
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 457 libdir=$ac_optarg ;;
c906108c
SS
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
b7026657 464 libexecdir=$ac_optarg ;;
c906108c
SS
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 473 localstatedir=$ac_optarg ;;
c906108c
SS
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 478 mandir=$ac_optarg ;;
c906108c
SS
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 485 | --no-cr | --no-c | -n)
c906108c
SS
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 499 oldincludedir=$ac_optarg ;;
c906108c
SS
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 504 prefix=$ac_optarg ;;
c906108c
SS
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 511 program_prefix=$ac_optarg ;;
c906108c
SS
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 518 program_suffix=$ac_optarg ;;
c906108c
SS
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 535 program_transform_name=$ac_optarg ;;
c906108c
SS
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
b7026657 545 sbindir=$ac_optarg ;;
c906108c
SS
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
b7026657 556 sharedstatedir=$ac_optarg ;;
c906108c
SS
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
b7026657 561 site=$ac_optarg ;;
eb2d80b4 562
c906108c
SS
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 566 srcdir=$ac_optarg ;;
c906108c
SS
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 573 sysconfdir=$ac_optarg ;;
c906108c
SS
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 576 ac_prev=target_alias ;;
c906108c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 578 target_alias=$ac_optarg ;;
c906108c
SS
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
b7026657
AC
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
c906108c
SS
585
586 -with-* | --with-*)
b7026657 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 588 # Reject names that are not valid shell variable names.
b7026657
AC
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
c906108c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
595 *) ac_optarg=yes ;;
596 esac
b7026657 597 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
598
599 -without-* | --without-*)
b7026657 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 601 # Reject names that are not valid shell variable names.
b7026657
AC
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
c906108c
SS
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 617 x_includes=$ac_optarg ;;
c906108c
SS
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 624 x_libraries=$ac_optarg ;;
c906108c 625
b7026657
AC
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
c906108c
SS
629 ;;
630
b7026657
AC
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
c906108c 641 *)
b7026657
AC
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
b7026657
AC
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
c906108c 656fi
c906108c 657
b7026657
AC
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
c906108c 668
b7026657
AC
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 672do
b7026657
AC
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
c906108c
SS
678 esac
679done
680
b7026657
AC
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
c906108c 698
b7026657
AC
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
c906108c 703
c906108c
SS
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
b7026657
AC
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
c906108c
SS
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
c906108c 732 else
b7026657
AC
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
c906108c
SS
735 fi
736fi
b7026657
AC
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
c906108c 773
b7026657
AC
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
c906108c 782
b7026657 783Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 784
b7026657
AC
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 787
b7026657 788Defaults for the options are specified in brackets.
c906108c 789
b7026657
AC
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
c906108c 809
b7026657
AC
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
c906108c 814
b7026657
AC
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
c906108c 844fi
b7026657
AC
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
853 --enable-maintainer-mode Enable developer functionality.
854 --enable-sim-bswap Use Host specific BSWAP instruction.
855 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
856 --enable-sim-debug=opts Enable debugging flags
857 --enable-sim-stdio Specify whether to use stdio for console input/output.
858 --enable-sim-trace=opts Enable tracing flags
859 --enable-sim-profile=opts Enable profiling flags
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
862
b7026657
AC
863Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
871
872Use these variables to override the choices made by `configure' or to help
873it to find libraries and programs with nonstandard names/locations.
874
875_ACEOF
c906108c
SS
876fi
877
b7026657
AC
878if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
c906108c 884
b7026657
AC
885if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 889else
b7026657 890 ac_dir_suffix= ac_top_builddir=
c906108c
SS
891fi
892
b7026657
AC
893case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907esac
908
909# Do not use `cd foo && pwd` to compute absolute paths, because
910# the directories may not exist.
911case `pwd` in
912.) ac_abs_builddir="$ac_dir";;
913*)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919esac
920case $ac_abs_builddir in
921.) ac_abs_top_builddir=${ac_top_builddir}.;;
922*)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928esac
929case $ac_abs_builddir in
930.) ac_abs_srcdir=$ac_srcdir;;
931*)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_srcdir=$ac_top_srcdir;;
940*)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
c906108c 965fi
b7026657
AC
966
967test -n "$ac_init_help" && exit 0
968if $ac_init_version; then
969 cat <<\_ACEOF
970
971Copyright (C) 2003 Free Software Foundation, Inc.
972This configure script is free software; the Free Software Foundation
973gives unlimited permission to copy, distribute and modify it.
974_ACEOF
975 exit 0
976fi
977exec 5>config.log
978cat >&5 <<_ACEOF
979This file contains any messages produced by compilers while
980running configure, to aid debugging if configure makes a mistake.
981
982It was created by $as_me, which was
983generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987_ACEOF
988{
989cat <<_ASUNAME
990## --------- ##
991## Platform. ##
992## --------- ##
993
994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995uname -m = `(uname -m) 2>/dev/null || echo unknown`
996uname -r = `(uname -r) 2>/dev/null || echo unknown`
997uname -s = `(uname -s) 2>/dev/null || echo unknown`
998uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011_ASUNAME
1012
1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014for as_dir in $PATH
1015do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019done
1020
1021} >&5
1022
1023cat >&5 <<_ACEOF
1024
1025
1026## ----------- ##
1027## Core tests. ##
1028## ----------- ##
1029
1030_ACEOF
1031
1032
1033# Keep a trace of the command line.
1034# Strip out --no-create and --no-recursion so they do not pile up.
1035# Strip out --silent because we don't want to record it for future runs.
1036# Also quote any args containing shell meta-characters.
1037# Make two passes to allow for proper duplicate-argument suppression.
1038ac_configure_args=
1039ac_configure_args0=
1040ac_configure_args1=
1041ac_sep=
1042ac_must_keep_next=false
1043for ac_pass in 1 2
1044do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080done
1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084# When interrupted or exit'd, cleanup temporary files, and complete
1085# config.log. We remove comments because anyway the quotes in there
1086# would cause problems or look ugly.
1087# WARNING: Be sure not to use single quotes in there, as some shells,
1088# such as our DU 5.0 friend, will then `close' the trap.
1089trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095## ---------------- ##
1096## Cache variables. ##
1097## ---------------- ##
1098_ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101{
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114}
1115 echo
1116
1117 cat <<\_ASBOX
1118## ----------------- ##
1119## Output variables. ##
1120## ----------------- ##
1121_ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132## ------------- ##
1133## Output files. ##
1134## ------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147## ----------- ##
1148## confdefs.h. ##
1149## ----------- ##
1150_ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165done
1166ac_signal=0
1167
1168# confdefs.h avoids OS command line length limits that DEFS can exceed.
1169rm -rf conftest* confdefs.h
1170# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171echo >confdefs.h
1172
1173# Predefined preprocessor variables.
1174
1175cat >>confdefs.h <<_ACEOF
1176#define PACKAGE_NAME "$PACKAGE_NAME"
1177_ACEOF
1178
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_VERSION "$PACKAGE_VERSION"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_STRING "$PACKAGE_STRING"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197_ACEOF
1198
1199
1200# Let the site file select an alternate cache file if it wants to.
1201# Prefer explicitly selected file to automatically selected ones.
1202if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 fi
1208fi
1209for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1215 fi
1216done
1217
1218if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
1229else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233fi
1234
1235# Check that the precious variables saved in the cache have kept the same
1236# value.
1237ac_cache_corrupted=false
1238for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277done
1278if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1284fi
1285
1286ac_ext=c
1287ac_cpp='$CPP $CPPFLAGS'
1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
35695fd6
AC
1310 ac_config_headers="$ac_config_headers config.h:config.in"
1311
1312
1313# This file contains common code used by all simulators.
1314#
1315# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
1316# directory. It is intended to be invoked before any target specific stuff.
1317# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
1318# It is intended to be invoked last.
1319#
1320# The simulator's configure.in should look like:
1321#
1322# dnl Process this file with autoconf to produce a configure script.
1323# sinclude(../common/aclocal.m4)
1324# AC_PREREQ(2.5)dnl
1325# AC_INIT(Makefile.in)
1326#
1327# SIM_AC_COMMON
1328#
1329# ... target specific stuff ...
1330#
1331# SIM_AC_OUTPUT
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380sim_inline="-DDEFAULT_INLINE=0"
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
20e95c23 1417# intl sister-directory configuration rules.
35695fd6 1418#
35695fd6 1419
20e95c23
DJ
1420# The idea behind this macro is that there's no need to repeat all the
1421# autoconf probes done by the intl directory - it's already done them
1422# for us. In fact, there's no need even to look at the cache for the
1423# answers. All we need to do is nab a few pieces of information.
1424# The intl directory is set up to make this easy, by generating a
1425# small file which can be sourced as a shell script; then we produce
1426# the necessary substitutions and definitions for this directory.
35695fd6
AC
1427
1428
1429
1430
1431
1432
b7026657 1433
35695fd6
AC
1434# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1435# it by inlining the macro's contents.
f0569246
AC
1436# This file contains common code used by all simulators.
1437#
1438# common.m4 invokes AC macros used by all simulators and by the common
1439# directory. It is intended to be included before any target specific
1440# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1441# the Makefile. It is intended to be invoked last.
1442#
1443# The simulator's configure.in should look like:
1444#
1445# dnl Process this file with autoconf to produce a configure script.
1446# AC_PREREQ(2.5)dnl
1447# AC_INIT(Makefile.in)
35695fd6 1448# AC_CONFIG_HEADER(config.h:config.in)
f0569246 1449#
35695fd6 1450# sinclude(../common/aclocal.m4)
f0569246
AC
1451# sinclude(../common/common.m4)
1452#
1453# ... target specific stuff ...
1454
38f48d72
AC
1455ac_aux_dir=
1456for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1457 if test -f $ac_dir/install-sh; then
1458 ac_aux_dir=$ac_dir
1459 ac_install_sh="$ac_aux_dir/install-sh -c"
1460 break
1461 elif test -f $ac_dir/install.sh; then
1462 ac_aux_dir=$ac_dir
1463 ac_install_sh="$ac_aux_dir/install.sh -c"
1464 break
1465 elif test -f $ac_dir/shtool; then
1466 ac_aux_dir=$ac_dir
1467 ac_install_sh="$ac_aux_dir/shtool install -c"
1468 break
1469 fi
1470done
1471if test -z "$ac_aux_dir"; then
1472 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1473echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1474 { (exit 1); exit 1; }; }
1475fi
1476ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1477ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1478ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1479
b7026657
AC
1480# Make sure we can run config.sub.
1481$ac_config_sub sun4 >/dev/null 2>&1 ||
1482 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1483echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1484 { (exit 1); exit 1; }; }
1485
1486echo "$as_me:$LINENO: checking build system type" >&5
1487echo $ECHO_N "checking build system type... $ECHO_C" >&6
1488if test "${ac_cv_build+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
1490else
1491 ac_cv_build_alias=$build_alias
1492test -z "$ac_cv_build_alias" &&
1493 ac_cv_build_alias=`$ac_config_guess`
1494test -z "$ac_cv_build_alias" &&
1495 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1496echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1497 { (exit 1); exit 1; }; }
1498ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1500echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1502
1503fi
1504echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1505echo "${ECHO_T}$ac_cv_build" >&6
1506build=$ac_cv_build
1507build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512echo "$as_me:$LINENO: checking host system type" >&5
1513echo $ECHO_N "checking host system type... $ECHO_C" >&6
1514if test "${ac_cv_host+set}" = set; then
1515 echo $ECHO_N "(cached) $ECHO_C" >&6
1516else
1517 ac_cv_host_alias=$host_alias
1518test -z "$ac_cv_host_alias" &&
1519 ac_cv_host_alias=$ac_cv_build_alias
1520ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1521 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1522echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1523 { (exit 1); exit 1; }; }
1524
1525fi
1526echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1527echo "${ECHO_T}$ac_cv_host" >&6
1528host=$ac_cv_host
1529host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
f0569246
AC
1534echo "$as_me:$LINENO: checking target system type" >&5
1535echo $ECHO_N "checking target system type... $ECHO_C" >&6
1536if test "${ac_cv_target+set}" = set; then
b7026657
AC
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
f0569246
AC
1539 ac_cv_target_alias=$target_alias
1540test "x$ac_cv_target_alias" = "x" &&
1541 ac_cv_target_alias=$ac_cv_host_alias
1542ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1543 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1544echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1545 { (exit 1); exit 1; }; }
1546
1547fi
1548echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1549echo "${ECHO_T}$ac_cv_target" >&6
1550target=$ac_cv_target
1551target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556# The aliases save the names the user supplied, while $host etc.
1557# will get canonicalized.
1558test -n "$target_alias" &&
1559 test "$program_prefix$program_suffix$program_transform_name" = \
1560 NONENONEs,x,x, &&
1561 program_prefix=${target_alias}-
1562test "$program_prefix" != NONE &&
1563 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1564# Use a double $ so make ignores it.
1565test "$program_suffix" != NONE &&
1566 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1567# Double any \ or $. echo might interpret backslashes.
1568# By default was `s,x,x', remove it if useless.
1569cat <<\_ACEOF >conftest.sed
1570s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1571_ACEOF
f0569246
AC
1572program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1573rm conftest.sed
1574
1575ac_ext=c
1576ac_cpp='$CPP $CPPFLAGS'
1577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1579ac_compiler_gnu=$ac_cv_c_compiler_gnu
1580if test -n "$ac_tool_prefix"; then
1581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1582set dummy ${ac_tool_prefix}gcc; ac_word=$2
1583echo "$as_me:$LINENO: checking for $ac_word" >&5
1584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585if test "${ac_cv_prog_CC+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1587else
f0569246
AC
1588 if test -n "$CC"; then
1589 ac_cv_prog_CC="$CC" # Let the user override the test.
1590else
1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1592for as_dir in $PATH
1593do
1594 IFS=$as_save_IFS
1595 test -z "$as_dir" && as_dir=.
1596 for ac_exec_ext in '' $ac_executable_extensions; do
1597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 break 2
1601 fi
1602done
1603done
1604
b7026657 1605fi
b7026657 1606fi
f0569246
AC
1607CC=$ac_cv_prog_CC
1608if test -n "$CC"; then
1609 echo "$as_me:$LINENO: result: $CC" >&5
1610echo "${ECHO_T}$CC" >&6
b7026657
AC
1611else
1612 echo "$as_me:$LINENO: result: no" >&5
1613echo "${ECHO_T}no" >&6
b7026657
AC
1614fi
1615
f0569246
AC
1616fi
1617if test -z "$ac_cv_prog_CC"; then
1618 ac_ct_CC=$CC
1619 # Extract the first word of "gcc", so it can be a program name with args.
1620set dummy gcc; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
f0569246
AC
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_CC="gcc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
b7026657 1642
f0569246
AC
1643fi
1644fi
1645ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1649else
f0569246
AC
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
b7026657 1653
f0569246
AC
1654 CC=$ac_ct_CC
1655else
1656 CC="$ac_cv_prog_CC"
b7026657 1657fi
b7026657 1658
f0569246
AC
1659if test -z "$CC"; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1662set dummy ${ac_tool_prefix}cc; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_CC+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1667else
f0569246
AC
1668 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674 IFS=$as_save_IFS
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_CC="${ac_tool_prefix}cc"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 break 2
1681 fi
1682done
1683done
b7026657
AC
1684
1685fi
b7026657 1686fi
f0569246
AC
1687CC=$ac_cv_prog_CC
1688if test -n "$CC"; then
1689 echo "$as_me:$LINENO: result: $CC" >&5
1690echo "${ECHO_T}$CC" >&6
1691else
1692 echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
b7026657
AC
1694fi
1695
b7026657 1696fi
f0569246
AC
1697if test -z "$ac_cv_prog_CC"; then
1698 ac_ct_CC=$CC
1699 # Extract the first word of "cc", so it can be a program name with args.
1700set dummy cc; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1705else
f0569246
AC
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
b7026657 1711do
f0569246
AC
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
b7026657 1719 fi
f0569246
AC
1720done
1721done
1722
b7026657 1723fi
f0569246
AC
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1729else
f0569246
AC
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
b7026657 1732fi
b7026657 1733
f0569246 1734 CC=$ac_ct_CC
b7026657 1735else
f0569246 1736 CC="$ac_cv_prog_CC"
b7026657 1737fi
b7026657 1738
b7026657 1739fi
f0569246
AC
1740if test -z "$CC"; then
1741 # Extract the first word of "cc", so it can be a program name with args.
1742set dummy cc; ac_word=$2
1743echo "$as_me:$LINENO: checking for $ac_word" >&5
1744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1750else
1751 ac_prog_rejected=no
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1760 ac_prog_rejected=yes
1761 continue
1762 fi
1763 ac_cv_prog_CC="cc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767done
b7026657 1768done
b7026657 1769
f0569246
AC
1770if test $ac_prog_rejected = yes; then
1771 # We found a bogon in the path, so make sure we never use it.
1772 set dummy $ac_cv_prog_CC
1773 shift
1774 if test $# != 0; then
1775 # We chose a different compiler from the bogus one.
1776 # However, it has the same basename, so the bogon will be chosen
1777 # first if we set CC to just the basename; use the full file name.
1778 shift
1779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1780 fi
b7026657 1781fi
f0569246
AC
1782fi
1783fi
1784CC=$ac_cv_prog_CC
1785if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787echo "${ECHO_T}$CC" >&6
b7026657 1788else
f0569246
AC
1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
b7026657 1791fi
f0569246
AC
1792
1793fi
1794if test -z "$CC"; then
1795 if test -n "$ac_tool_prefix"; then
1796 for ac_prog in cl
1797 do
1798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1800echo "$as_me:$LINENO: checking for $ac_word" >&5
1801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1807else
1808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
b7026657 1810do
f0569246
AC
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
b7026657 1818 fi
f0569246
AC
1819done
1820done
1821
b7026657 1822fi
f0569246
AC
1823fi
1824CC=$ac_cv_prog_CC
1825if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827echo "${ECHO_T}$CC" >&6
b7026657 1828else
f0569246
AC
1829 echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
b7026657 1831fi
b7026657 1832
f0569246
AC
1833 test -n "$CC" && break
1834 done
c906108c 1835fi
f0569246
AC
1836if test -z "$CC"; then
1837 ac_ct_CC=$CC
1838 for ac_prog in cl
1839do
1840 # Extract the first word of "$ac_prog", so it can be a program name with args.
1841set dummy $ac_prog; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
f0569246
AC
1847 if test -n "$ac_ct_CC"; then
1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1849else
f0569246
AC
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 for ac_exec_ext in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_ac_ct_CC="$ac_prog"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 break 2
1860 fi
1861done
1862done
b7026657
AC
1863
1864fi
f0569246
AC
1865fi
1866ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867if test -n "$ac_ct_CC"; then
1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869echo "${ECHO_T}$ac_ct_CC" >&6
1870else
1871 echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873fi
1874
1875 test -n "$ac_ct_CC" && break
b7026657 1876done
b7026657 1877
f0569246 1878 CC=$ac_ct_CC
b7026657
AC
1879fi
1880
f0569246 1881fi
b7026657 1882
f0569246
AC
1883
1884test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1885See \`config.log' for more details." >&5
1886echo "$as_me: error: no acceptable C compiler found in \$PATH
1887See \`config.log' for more details." >&2;}
1888 { (exit 1); exit 1; }; }
1889
1890# Provide some information about the compiler.
1891echo "$as_me:$LINENO:" \
1892 "checking for C compiler version" >&5
1893ac_compiler=`set X $ac_compile; echo $2`
1894{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1895 (eval $ac_compiler --version </dev/null >&5) 2>&5
b7026657 1896 ac_status=$?
b7026657 1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1898 (exit $ac_status); }
1899{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1900 (eval $ac_compiler -v </dev/null >&5) 2>&5
b7026657
AC
1901 ac_status=$?
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1903 (exit $ac_status); }
1904{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1905 (eval $ac_compiler -V </dev/null >&5) 2>&5
b7026657
AC
1906 ac_status=$?
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1908 (exit $ac_status); }
1909
1910cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
1911/* confdefs.h. */
1912_ACEOF
1913cat confdefs.h >>conftest.$ac_ext
1914cat >>conftest.$ac_ext <<_ACEOF
1915/* end confdefs.h. */
f0569246 1916
b7026657
AC
1917int
1918main ()
1919{
f0569246 1920
b7026657
AC
1921 ;
1922 return 0;
1923}
1924_ACEOF
f0569246
AC
1925ac_clean_files_save=$ac_clean_files
1926ac_clean_files="$ac_clean_files a.out a.exe b.out"
1927# Try to create an executable without -o first, disregard a.out.
1928# It will help us diagnose broken compilers, and finding out an intuition
1929# of exeext.
1930echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1931echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1932ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1933if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1934 (eval $ac_link_default) 2>&5
b7026657 1935 ac_status=$?
b7026657 1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1937 (exit $ac_status); }; then
1938 # Find the output, starting from the most likely. This scheme is
1939# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1940# resort.
1941
1942# Be careful to initialize this variable, since it used to be cached.
1943# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1944ac_cv_exeext=
1945# b.out is created by i960 compilers.
1946for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1947do
1948 test -f "$ac_file" || continue
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1951 ;;
1952 conftest.$ac_ext )
1953 # This is the source file.
1954 ;;
1955 [ab].out )
1956 # We found the default executable, but exeext='' is most
1957 # certainly right.
1958 break;;
1959 *.* )
1960 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961 # FIXME: I believe we export ac_cv_exeext for Libtool,
1962 # but it would be cool to find out if it's true. Does anybody
1963 # maintain Libtool? --akim.
1964 export ac_cv_exeext
1965 break;;
1966 * )
1967 break;;
1968 esac
1969done
1970else
1971 echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1975See \`config.log' for more details." >&5
1976echo "$as_me: error: C compiler cannot create executables
1977See \`config.log' for more details." >&2;}
1978 { (exit 77); exit 77; }; }
1979fi
1980
1981ac_exeext=$ac_cv_exeext
1982echo "$as_me:$LINENO: result: $ac_file" >&5
1983echo "${ECHO_T}$ac_file" >&6
1984
1985# Check the compiler produces executables we can run. If not, either
1986# the compiler is broken, or we cross compile.
1987echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1988echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1989# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1990# If not cross compiling, check that we can run a simple program.
1991if test "$cross_compiling" != yes; then
1992 if { ac_try='./$ac_file'
b7026657
AC
1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1994 (eval $ac_try) 2>&5
1995 ac_status=$?
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
1997 (exit $ac_status); }; }; then
1998 cross_compiling=no
1999 else
2000 if test "$cross_compiling" = maybe; then
2001 cross_compiling=yes
2002 else
2003 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2004If you meant to cross compile, use \`--host'.
2005See \`config.log' for more details." >&5
2006echo "$as_me: error: cannot run C compiled programs.
2007If you meant to cross compile, use \`--host'.
2008See \`config.log' for more details." >&2;}
2009 { (exit 1); exit 1; }; }
2010 fi
2011 fi
2012fi
2013echo "$as_me:$LINENO: result: yes" >&5
2014echo "${ECHO_T}yes" >&6
2015
2016rm -f a.out a.exe conftest$ac_cv_exeext b.out
2017ac_clean_files=$ac_clean_files_save
2018# Check the compiler produces executables we can run. If not, either
2019# the compiler is broken, or we cross compile.
2020echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2021echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022echo "$as_me:$LINENO: result: $cross_compiling" >&5
2023echo "${ECHO_T}$cross_compiling" >&6
2024
2025echo "$as_me:$LINENO: checking for suffix of executables" >&5
2026echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2028 (eval $ac_link) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2034# work properly (i.e., refer to `conftest.exe'), while it won't with
2035# `rm'.
2036for ac_file in conftest.exe conftest conftest.*; do
2037 test -f "$ac_file" || continue
2038 case $ac_file in
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2041 export ac_cv_exeext
2042 break;;
2043 * ) break;;
2044 esac
2045done
2046else
2047 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2050See \`config.log' for more details." >&2;}
2051 { (exit 1); exit 1; }; }
2052fi
2053
2054rm -f conftest$ac_cv_exeext
2055echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2056echo "${ECHO_T}$ac_cv_exeext" >&6
2057
2058rm -f conftest.$ac_ext
2059EXEEXT=$ac_cv_exeext
2060ac_exeext=$EXEEXT
2061echo "$as_me:$LINENO: checking for suffix of object files" >&5
2062echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2063if test "${ac_cv_objext+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066 cat >conftest.$ac_ext <<_ACEOF
2067/* confdefs.h. */
2068_ACEOF
2069cat confdefs.h >>conftest.$ac_ext
2070cat >>conftest.$ac_ext <<_ACEOF
2071/* end confdefs.h. */
2072
2073int
2074main ()
2075{
2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081rm -f conftest.o conftest.obj
2082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
b7026657
AC
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2086 (exit $ac_status); }; then
2087 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2088 case $ac_file in
2089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2090 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2091 break;;
2092 esac
2093done
b7026657
AC
2094else
2095 echo "$as_me: failed program was:" >&5
2096sed 's/^/| /' conftest.$ac_ext >&5
2097
f0569246
AC
2098{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2099See \`config.log' for more details." >&5
2100echo "$as_me: error: cannot compute suffix of object files: cannot compile
2101See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
b7026657 2103fi
f0569246
AC
2104
2105rm -f conftest.$ac_cv_objext conftest.$ac_ext
2106fi
2107echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2108echo "${ECHO_T}$ac_cv_objext" >&6
2109OBJEXT=$ac_cv_objext
2110ac_objext=$OBJEXT
2111echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2112echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2113if test "${ac_cv_c_compiler_gnu+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
b7026657
AC
2116 cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
f0569246 2122
b7026657
AC
2123int
2124main ()
2125{
f0569246
AC
2126#ifndef __GNUC__
2127 choke me
2128#endif
2129
b7026657
AC
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136 (eval $ac_compile) 2>conftest.er1
2137 ac_status=$?
2138 grep -v '^ *+' conftest.er1 >conftest.err
2139 rm -f conftest.er1
2140 cat conftest.err >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); } &&
2143 { ac_try='test -z "$ac_c_werror_flag"
2144 || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
f0569246 2156 ac_compiler_gnu=yes
b7026657 2157else
f0569246
AC
2158 echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2160
f0569246
AC
2161ac_compiler_gnu=no
2162fi
2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164ac_cv_c_compiler_gnu=$ac_compiler_gnu
b7026657 2165
b7026657 2166fi
f0569246
AC
2167echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2168echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2169GCC=`test $ac_compiler_gnu = yes && echo yes`
2170ac_test_CFLAGS=${CFLAGS+set}
2171ac_save_CFLAGS=$CFLAGS
2172CFLAGS="-g"
2173echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2174echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2175if test "${ac_cv_prog_cc_g+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2177else
f0569246 2178 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2179/* confdefs.h. */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h. */
f0569246
AC
2184
2185int
2186main ()
2187{
2188
2189 ;
2190 return 0;
2191}
b7026657
AC
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag"
2203 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
f0569246 2215 ac_cv_prog_cc_g=yes
b7026657
AC
2216else
2217 echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
f0569246 2220ac_cv_prog_cc_g=no
b7026657
AC
2221fi
2222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246
AC
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2225echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2226if test "$ac_test_CFLAGS" = set; then
2227 CFLAGS=$ac_save_CFLAGS
2228elif test $ac_cv_prog_cc_g = yes; then
2229 if test "$GCC" = yes; then
2230 CFLAGS="-g -O2"
2231 else
2232 CFLAGS="-g"
2233 fi
2234else
2235 if test "$GCC" = yes; then
2236 CFLAGS="-O2"
2237 else
2238 CFLAGS=
2239 fi
2240fi
2241echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2242echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2243if test "${ac_cv_prog_cc_stdc+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 ac_cv_prog_cc_stdc=no
2247ac_save_CC=$CC
b7026657
AC
2248cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
f0569246
AC
2254#include <stdarg.h>
2255#include <stdio.h>
2256#include <sys/types.h>
2257#include <sys/stat.h>
2258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2259struct buf { int x; };
2260FILE * (*rcsopen) (struct buf *, struct stat *, int);
2261static char *e (p, i)
2262 char **p;
2263 int i;
2264{
2265 return p[i];
2266}
2267static char *f (char * (*g) (char **, int), char **p, ...)
2268{
2269 char *s;
2270 va_list v;
2271 va_start (v,p);
2272 s = g (p, va_arg (v,int));
2273 va_end (v);
2274 return s;
2275}
2276
2277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2278 function prototypes and stuff, but not '\xHH' hex character constants.
2279 These don't provoke an error unfortunately, instead are silently treated
2280 as 'x'. The following induces an error, until -std1 is added to get
2281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2282 array size at least. It's necessary to write '\x00'==0 to get something
2283 that's true only with -std1. */
2284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2285
2286int test (int i, double x);
2287struct s1 {int (*f) (int a);};
2288struct s2 {int (*f) (double a);};
2289int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2290int argc;
2291char **argv;
2292int
2293main ()
2294{
2295return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2296 ;
2297 return 0;
2298}
b7026657 2299_ACEOF
f0569246
AC
2300# Don't try gcc -ansi; that turns off useful extensions and
2301# breaks some systems' header files.
2302# AIX -qlanglvl=ansi
2303# Ultrix and OSF/1 -std1
2304# HP-UX 10.20 and later -Ae
2305# HP-UX older versions -Aa -D_HPUX_SOURCE
2306# SVR4 -Xc -D__EXTENSIONS__
2307for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2308do
2309 CC="$ac_save_CC $ac_arg"
2310 rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 ac_cv_prog_cc_stdc=$ac_arg
2333break
b7026657
AC
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
c906108c 2338fi
f0569246 2339rm -f conftest.err conftest.$ac_objext
c906108c 2340done
f0569246
AC
2341rm -f conftest.$ac_ext conftest.$ac_objext
2342CC=$ac_save_CC
c906108c 2343
f0569246 2344fi
b7026657 2345
f0569246
AC
2346case "x$ac_cv_prog_cc_stdc" in
2347 x|xno)
2348 echo "$as_me:$LINENO: result: none needed" >&5
2349echo "${ECHO_T}none needed" >&6 ;;
2350 *)
2351 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2352echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2353 CC="$CC $ac_cv_prog_cc_stdc" ;;
2354esac
b7026657 2355
f0569246
AC
2356# Some people use a C++ compiler to compile C. Since we use `exit',
2357# in C++ we need to declare it. In case someone uses the same compiler
2358# for both compiling C and C++ we need to have the C++ compiler decide
2359# the declaration of exit, since it's the most demanding environment.
2360cat >conftest.$ac_ext <<_ACEOF
2361#ifndef __cplusplus
2362 choke me
2363#endif
2364_ACEOF
2365rm -f conftest.$ac_objext
2366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>conftest.er1
2368 ac_status=$?
2369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -z "$ac_c_werror_flag"
2375 || test ! -s conftest.err'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 (eval $ac_try) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2383 (eval $ac_try) 2>&5
2384 ac_status=$?
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2387 for ac_declaration in \
2388 '' \
2389 'extern "C" void std::exit (int) throw (); using std::exit;' \
2390 'extern "C" void std::exit (int); using std::exit;' \
2391 'extern "C" void exit (int) throw ();' \
2392 'extern "C" void exit (int);' \
2393 'void exit (int);'
c906108c 2394do
b7026657
AC
2395 cat >conftest.$ac_ext <<_ACEOF
2396/* confdefs.h. */
2397_ACEOF
2398cat confdefs.h >>conftest.$ac_ext
2399cat >>conftest.$ac_ext <<_ACEOF
2400/* end confdefs.h. */
f0569246
AC
2401$ac_declaration
2402#include <stdlib.h>
b7026657
AC
2403int
2404main ()
2405{
f0569246 2406exit (42);
b7026657
AC
2407 ;
2408 return 0;
2409}
2410_ACEOF
f0569246
AC
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2414 ac_status=$?
2415 grep -v '^ *+' conftest.er1 >conftest.err
2416 rm -f conftest.er1
2417 cat conftest.err >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); } &&
2420 { ac_try='test -z "$ac_c_werror_flag"
2421 || test ! -s conftest.err'
2422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 (eval $ac_try) 2>&5
2424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
f0569246 2427 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
f0569246 2433 :
b7026657
AC
2434else
2435 echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
f0569246 2438continue
c906108c 2439fi
f0569246 2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
f0569246 2447$ac_declaration
b7026657
AC
2448int
2449main ()
2450{
f0569246 2451exit (42);
b7026657
AC
2452 ;
2453 return 0;
2454}
2455_ACEOF
f0569246
AC
2456rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_c_werror_flag"
2466 || test ! -s conftest.err'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
f0569246 2472 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
f0569246
AC
2478 break
2479else
2480 echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485done
2486rm -f conftest*
2487if test -n "$ac_declaration"; then
2488 echo '#ifdef __cplusplus' >>confdefs.h
2489 echo $ac_declaration >>confdefs.h
2490 echo '#endif' >>confdefs.h
2491fi
2492
b7026657
AC
2493else
2494 echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
b7026657 2497fi
f0569246
AC
2498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2499ac_ext=c
2500ac_cpp='$CPP $CPPFLAGS'
2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
2505# Find a good install program. We prefer a C program (faster),
2506# so one script is as good as another. But avoid the broken or
2507# incompatible versions:
2508# SysV /etc/install, /usr/sbin/install
2509# SunOS /usr/etc/install
2510# IRIX /sbin/install
2511# AIX /bin/install
2512# AmigaOS /C/install, which installs bootblocks on floppy discs
2513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516# OS/2's system install, which has a completely different semantic
2517# ./install, which can be erroneously created by make from ./install.sh.
2518echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2519echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2520if test -z "$INSTALL"; then
2521if test "${ac_cv_path_install+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 # Account for people who put trailing slashes in PATH elements.
2530case $as_dir/ in
2531 ./ | .// | /cC/* | \
2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2533 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2534 /usr/ucb/* ) ;;
2535 *)
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2538 # by default.
2539 for ac_prog in ginstall scoinst install; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2542 if test $ac_prog = install &&
2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544 # AIX install. It has an incompatible calling convention.
2545 :
2546 elif test $ac_prog = install &&
2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # program-specific install script used by HP pwplus--don't use.
2549 :
2550 else
2551 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2552 break 3
2553 fi
2554 fi
2555 done
2556 done
2557 ;;
2558esac
2559done
2560
2561
2562fi
2563 if test "${ac_cv_path_install+set}" = set; then
2564 INSTALL=$ac_cv_path_install
2565 else
2566 # As a last resort, use the slow shell script. We don't cache a
2567 # path for INSTALL within a source directory, because that will
2568 # break other packages using the cache if that directory is
2569 # removed, or if the path is relative.
2570 INSTALL=$ac_install_sh
2571 fi
2572fi
2573echo "$as_me:$LINENO: result: $INSTALL" >&5
2574echo "${ECHO_T}$INSTALL" >&6
2575
2576# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2577# It thinks the first close brace ends the variable substitution.
2578test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2579
2580test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2581
2582test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2583
2584
2585# Put a plausible default for CC_FOR_BUILD in Makefile.
2586if test "x$cross_compiling" = "xno"; then
2587 CC_FOR_BUILD='$(CC)'
2588else
2589 CC_FOR_BUILD=gcc
2590fi
c906108c 2591
c906108c 2592
c906108c 2593
c906108c 2594
f0569246
AC
2595AR=${AR-ar}
2596
2597if test -n "$ac_tool_prefix"; then
2598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2599set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2600echo "$as_me:$LINENO: checking for $ac_word" >&5
2601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2602if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
f0569246
AC
2605 if test -n "$RANLIB"; then
2606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 2607else
f0569246
AC
2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609for as_dir in $PATH
2610do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2618 fi
2619done
2620done
b7026657 2621
c906108c 2622fi
c906108c 2623fi
f0569246
AC
2624RANLIB=$ac_cv_prog_RANLIB
2625if test -n "$RANLIB"; then
2626 echo "$as_me:$LINENO: result: $RANLIB" >&5
2627echo "${ECHO_T}$RANLIB" >&6
2628else
2629 echo "$as_me:$LINENO: result: no" >&5
2630echo "${ECHO_T}no" >&6
2631fi
c906108c 2632
f0569246
AC
2633fi
2634if test -z "$ac_cv_prog_RANLIB"; then
2635 ac_ct_RANLIB=$RANLIB
2636 # Extract the first word of "ranlib", so it can be a program name with args.
2637set dummy ranlib; ac_word=$2
2638echo "$as_me:$LINENO: checking for $ac_word" >&5
2639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2640if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2641 echo $ECHO_N "(cached) $ECHO_C" >&6
2642else
2643 if test -n "$ac_ct_RANLIB"; then
2644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2645else
2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647for as_dir in $PATH
2648do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_ac_ct_RANLIB="ranlib"
2654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
c906108c 2656 fi
f0569246
AC
2657done
2658done
2659
2660 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2661fi
2662fi
2663ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2664if test -n "$ac_ct_RANLIB"; then
2665 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2666echo "${ECHO_T}$ac_ct_RANLIB" >&6
c906108c 2667else
f0569246
AC
2668 echo "$as_me:$LINENO: result: no" >&5
2669echo "${ECHO_T}no" >&6
2670fi
c906108c 2671
f0569246
AC
2672 RANLIB=$ac_ct_RANLIB
2673else
2674 RANLIB="$ac_cv_prog_RANLIB"
2675fi
c906108c 2676
c906108c 2677
f0569246 2678ALL_LINGUAS=
20e95c23 2679CY_GNU_GETTEXT
35695fd6 2680
20e95c23
DJ
2681# Check for common headers.
2682# FIXME: Seems to me this can cause problems for i386-windows hosts.
2683# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
35695fd6
AC
2684
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2691echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2692# On Suns, sometimes $CPP names a directory.
2693if test -n "$CPP" && test -d "$CPP"; then
2694 CPP=
2695fi
2696if test -z "$CPP"; then
2697 if test "${ac_cv_prog_CPP+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700 # Double quotes because CPP needs to be expanded
2701 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2702 do
2703 ac_preproc_ok=false
2704for ac_c_preproc_warn_flag in '' yes
2705do
2706 # Use a header file that comes with gcc, so configuring glibc
2707 # with a fresh cross-compiler works.
2708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709 # <limits.h> exists even on freestanding compilers.
2710 # On the NeXT, cc -E runs the code through the compiler's parser,
2711 # not just through cpp. "Syntax error" is here to catch this case.
2712 cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
2718#ifdef __STDC__
2719# include <limits.h>
2720#else
2721# include <assert.h>
2722#endif
2723 Syntax error
2724_ACEOF
2725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } >/dev/null; then
2733 if test -s conftest.err; then
2734 ac_cpp_err=$ac_c_preproc_warn_flag
2735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2736 else
2737 ac_cpp_err=
2738 fi
2739else
2740 ac_cpp_err=yes
2741fi
2742if test -z "$ac_cpp_err"; then
2743 :
2744else
2745 echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748 # Broken: fails on valid input.
2749continue
2750fi
2751rm -f conftest.err conftest.$ac_ext
2752
2753 # OK, works on sane cases. Now check whether non-existent headers
2754 # can be detected and how.
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761#include <ac_nonexistent.h>
2762_ACEOF
2763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f0569246 2764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2770 (exit $ac_status); } >/dev/null; then
2771 if test -s conftest.err; then
2772 ac_cpp_err=$ac_c_preproc_warn_flag
2773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2774 else
2775 ac_cpp_err=
2776 fi
2777else
2778 ac_cpp_err=yes
2779fi
2780if test -z "$ac_cpp_err"; then
2781 # Broken: success on invalid input.
2782continue
c906108c 2783else
b7026657
AC
2784 echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
f0569246
AC
2787 # Passes both tests.
2788ac_preproc_ok=:
2789break
c906108c 2790fi
f0569246
AC
2791rm -f conftest.err conftest.$ac_ext
2792
2793done
2794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2795rm -f conftest.err conftest.$ac_ext
2796if $ac_preproc_ok; then
2797 break
c906108c 2798fi
c906108c 2799
f0569246
AC
2800 done
2801 ac_cv_prog_CPP=$CPP
2802
2803fi
2804 CPP=$ac_cv_prog_CPP
c906108c 2805else
f0569246
AC
2806 ac_cv_prog_CPP=$CPP
2807fi
2808echo "$as_me:$LINENO: result: $CPP" >&5
2809echo "${ECHO_T}$CPP" >&6
2810ac_preproc_ok=false
2811for ac_c_preproc_warn_flag in '' yes
2812do
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2820/* confdefs.h. */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h. */
f0569246
AC
2825#ifdef __STDC__
2826# include <limits.h>
2827#else
2828# include <assert.h>
b7026657 2829#endif
f0569246 2830 Syntax error
b7026657 2831_ACEOF
f0569246
AC
2832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2843 else
2844 ac_cpp_err=
2845 fi
2846else
2847 ac_cpp_err=yes
2848fi
2849if test -z "$ac_cpp_err"; then
2850 :
b7026657
AC
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
f0569246
AC
2855 # Broken: fails on valid input.
2856continue
b7026657 2857fi
f0569246
AC
2858rm -f conftest.err conftest.$ac_ext
2859
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
b7026657
AC
2862 cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h. */
f0569246 2868#include <ac_nonexistent.h>
b7026657 2869_ACEOF
f0569246
AC
2870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246
AC
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2881 else
2882 ac_cpp_err=
2883 fi
2884else
2885 ac_cpp_err=yes
2886fi
2887if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2889continue
c906108c 2890else
b7026657
AC
2891 echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
f0569246
AC
2894 # Passes both tests.
2895ac_preproc_ok=:
2896break
c906108c 2897fi
f0569246 2898rm -f conftest.err conftest.$ac_ext
c906108c 2899
f0569246
AC
2900done
2901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902rm -f conftest.err conftest.$ac_ext
2903if $ac_preproc_ok; then
2904 :
c906108c 2905else
f0569246
AC
2906 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2909See \`config.log' for more details." >&2;}
2910 { (exit 1); exit 1; }; }
c906108c 2911fi
c906108c 2912
f0569246
AC
2913ac_ext=c
2914ac_cpp='$CPP $CPPFLAGS'
2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920echo "$as_me:$LINENO: checking for egrep" >&5
2921echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2922if test "${ac_cv_prog_egrep+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2926 then ac_cv_prog_egrep='grep -E'
2927 else ac_cv_prog_egrep='egrep'
2928 fi
2929fi
2930echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2931echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2932 EGREP=$ac_cv_prog_egrep
2933
2934
2935echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2936echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2937if test "${ac_cv_header_stdc+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940 cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h. */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h. */
2946#include <stdlib.h>
2947#include <stdarg.h>
2948#include <string.h>
2949#include <float.h>
c906108c 2950
b7026657
AC
2951int
2952main ()
2953{
f0569246 2954
b7026657
AC
2955 ;
2956 return 0;
2957}
2958_ACEOF
f0569246
AC
2959rm -f conftest.$ac_objext
2960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2961 (eval $ac_compile) 2>conftest.er1
b7026657
AC
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } &&
2968 { ac_try='test -z "$ac_c_werror_flag"
2969 || test ! -s conftest.err'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; } &&
f0569246 2975 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; }; then
f0569246 2981 ac_cv_header_stdc=yes
b7026657
AC
2982else
2983 echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
f0569246 2986ac_cv_header_stdc=no
b7026657 2987fi
f0569246 2988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2989
f0569246
AC
2990if test $ac_cv_header_stdc = yes; then
2991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2992 cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h. */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h. */
2998#include <string.h>
c906108c 2999
f0569246
AC
3000_ACEOF
3001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 $EGREP "memchr" >/dev/null 2>&1; then
3003 :
c906108c 3004else
f0569246 3005 ac_cv_header_stdc=no
c906108c 3006fi
f0569246 3007rm -f conftest*
b7026657 3008
c906108c
SS
3009fi
3010
f0569246
AC
3011if test $ac_cv_header_stdc = yes; then
3012 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#include <stdlib.h>
3020
3021_ACEOF
3022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023 $EGREP "free" >/dev/null 2>&1; then
3024 :
c906108c 3025else
f0569246 3026 ac_cv_header_stdc=no
c906108c 3027fi
f0569246
AC
3028rm -f conftest*
3029
c906108c
SS
3030fi
3031
f0569246
AC
3032if test $ac_cv_header_stdc = yes; then
3033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3034 if test "$cross_compiling" = yes; then
3035 :
3036else
3037 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
f0569246
AC
3043#include <ctype.h>
3044#if ((' ' & 0x0FF) == 0x020)
3045# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3046# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3047#else
3048# define ISLOWER(c) \
3049 (('a' <= (c) && (c) <= 'i') \
3050 || ('j' <= (c) && (c) <= 'r') \
3051 || ('s' <= (c) && (c) <= 'z'))
3052# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3053#endif
c906108c 3054
f0569246 3055#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3056int
3057main ()
3058{
f0569246
AC
3059 int i;
3060 for (i = 0; i < 256; i++)
3061 if (XOR (islower (i), ISLOWER (i))
3062 || toupper (i) != TOUPPER (i))
3063 exit(2);
3064 exit (0);
b7026657
AC
3065}
3066_ACEOF
f0569246 3067rm -f conftest$ac_exeext
b7026657 3068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f0569246 3069 (eval $ac_link) 2>&5
b7026657
AC
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f0569246 3072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 (eval $ac_try) 2>&5
3075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
f0569246 3078 :
c906108c 3079else
f0569246
AC
3080 echo "$as_me: program exited with status $ac_status" >&5
3081echo "$as_me: failed program was:" >&5
b7026657
AC
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
f0569246
AC
3084( exit $ac_status )
3085ac_cv_header_stdc=no
c906108c 3086fi
f0569246 3087rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3088fi
c906108c 3089fi
c906108c 3090fi
f0569246
AC
3091echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3092echo "${ECHO_T}$ac_cv_header_stdc" >&6
3093if test $ac_cv_header_stdc = yes; then
b7026657 3094
f0569246
AC
3095cat >>confdefs.h <<\_ACEOF
3096#define STDC_HEADERS 1
3097_ACEOF
c906108c 3098
c906108c
SS
3099fi
3100
f0569246 3101# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3102
3103
3104
3105
3106
3107
3108
c906108c 3109
c906108c 3110
35695fd6
AC
3111for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3112 inttypes.h stdint.h unistd.h
3113do
3114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3115echo "$as_me:$LINENO: checking for $ac_header" >&5
3116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3117if eval "test \"\${$as_ac_Header+set}\" = set"; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126$ac_includes_default
3127
3128#include <$ac_header>
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3132 (eval $ac_compile) 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
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); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 eval "$as_ac_Header=yes"
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157eval "$as_ac_Header=no"
3158fi
3159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160fi
3161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3163if test `eval echo '${'$as_ac_Header'}'` = yes; then
3164 cat >>confdefs.h <<_ACEOF
3165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3166_ACEOF
3167
3168fi
3169
3170done
3171
3172
b7026657
AC
3173
3174
3175
3176
3177
3178for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 3179do
b7026657
AC
3180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3181if eval "test \"\${$as_ac_Header+set}\" = set"; then
3182 echo "$as_me:$LINENO: checking for $ac_header" >&5
3183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3184if eval "test \"\${$as_ac_Header+set}\" = set"; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186fi
3187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3189else
3190 # Is the header compilable?
3191echo "$as_me:$LINENO: checking $ac_header usability" >&5
3192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3193cat >conftest.$ac_ext <<_ACEOF
3194/* confdefs.h. */
3195_ACEOF
3196cat confdefs.h >>conftest.$ac_ext
3197cat >>conftest.$ac_ext <<_ACEOF
3198/* end confdefs.h. */
3199$ac_includes_default
3200#include <$ac_header>
3201_ACEOF
3202rm -f conftest.$ac_objext
3203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3204 (eval $ac_compile) 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag"
3212 || test ! -s conftest.err'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 (eval $ac_try) 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
3219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3220 (eval $ac_try) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; }; then
3224 ac_header_compiler=yes
3225else
3226 echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229ac_header_compiler=no
3230fi
3231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3233echo "${ECHO_T}$ac_header_compiler" >&6
3234
3235# Is the header present?
3236echo "$as_me:$LINENO: checking $ac_header presence" >&5
3237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3238cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#include <$ac_header>
3245_ACEOF
3246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 else
3258 ac_cpp_err=
3259 fi
3260else
3261 ac_cpp_err=yes
c906108c 3262fi
b7026657
AC
3263if test -z "$ac_cpp_err"; then
3264 ac_header_preproc=yes
3265else
3266 echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 ac_header_preproc=no
c906108c 3270fi
b7026657
AC
3271rm -f conftest.err conftest.$ac_ext
3272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3273echo "${ECHO_T}$ac_header_preproc" >&6
3274
3275# So? What about this header?
3276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3277 yes:no: )
3278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3282 ac_header_preproc=yes
3283 ;;
3284 no:yes:* )
3285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3297 (
3298 cat <<\_ASBOX
3299## ------------------------------------------ ##
3300## Report this to the AC_PACKAGE_NAME lists. ##
3301## ------------------------------------------ ##
3302_ASBOX
3303 ) |
3304 sed "s/^/$as_me: WARNING: /" >&2
3305 ;;
3306esac
3307echo "$as_me:$LINENO: checking for $ac_header" >&5
3308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3309if eval "test \"\${$as_ac_Header+set}\" = set"; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3311else
b7026657
AC
3312 eval "$as_ac_Header=\$ac_header_preproc"
3313fi
3314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3316
3317fi
3318if test `eval echo '${'$as_ac_Header'}'` = yes; then
3319 cat >>confdefs.h <<_ACEOF
3320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3321_ACEOF
3322
c906108c 3323fi
b7026657 3324
c906108c
SS
3325done
3326
b7026657
AC
3327
3328
3329for ac_header in sys/time.h sys/resource.h
c906108c 3330do
b7026657
AC
3331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3332if eval "test \"\${$as_ac_Header+set}\" = set"; then
3333 echo "$as_me:$LINENO: checking for $ac_header" >&5
3334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3335if eval "test \"\${$as_ac_Header+set}\" = set"; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337fi
3338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3340else
3341 # Is the header compilable?
3342echo "$as_me:$LINENO: checking $ac_header usability" >&5
3343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3344cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h. */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h. */
3350$ac_includes_default
3351#include <$ac_header>
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355 (eval $ac_compile) 2>conftest.er1
3356 ac_status=$?
3357 grep -v '^ *+' conftest.er1 >conftest.err
3358 rm -f conftest.er1
3359 cat conftest.err >&5
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); } &&
3362 { ac_try='test -z "$ac_c_werror_flag"
3363 || test ! -s conftest.err'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365 (eval $ac_try) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; } &&
3369 { ac_try='test -s conftest.$ac_objext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3375 ac_header_compiler=yes
3376else
3377 echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380ac_header_compiler=no
3381fi
3382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3384echo "${ECHO_T}$ac_header_compiler" >&6
3385
3386# Is the header present?
3387echo "$as_me:$LINENO: checking $ac_header presence" >&5
3388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3389cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395#include <$ac_header>
3396_ACEOF
3397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408 else
3409 ac_cpp_err=
3410 fi
3411else
3412 ac_cpp_err=yes
c906108c 3413fi
b7026657
AC
3414if test -z "$ac_cpp_err"; then
3415 ac_header_preproc=yes
3416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 ac_header_preproc=no
c906108c 3421fi
b7026657
AC
3422rm -f conftest.err conftest.$ac_ext
3423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3424echo "${ECHO_T}$ac_header_preproc" >&6
3425
3426# So? What about this header?
3427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3428 yes:no: )
3429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3433 ac_header_preproc=yes
3434 ;;
3435 no:yes:* )
3436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3448 (
3449 cat <<\_ASBOX
3450## ------------------------------------------ ##
3451## Report this to the AC_PACKAGE_NAME lists. ##
3452## ------------------------------------------ ##
3453_ASBOX
3454 ) |
3455 sed "s/^/$as_me: WARNING: /" >&2
3456 ;;
3457esac
3458echo "$as_me:$LINENO: checking for $ac_header" >&5
3459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3460if eval "test \"\${$as_ac_Header+set}\" = set"; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3462else
b7026657
AC
3463 eval "$as_ac_Header=\$ac_header_preproc"
3464fi
3465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467
c906108c 3468fi
b7026657
AC
3469if test `eval echo '${'$as_ac_Header'}'` = yes; then
3470 cat >>confdefs.h <<_ACEOF
3471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3472_ACEOF
3473
3474fi
3475
c906108c
SS
3476done
3477
b7026657
AC
3478
3479
3480for ac_header in fcntl.h fpu_control.h
c906108c 3481do
b7026657
AC
3482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3483if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo "$as_me:$LINENO: checking for $ac_header" >&5
3485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488fi
3489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3490echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3491else
3492 # Is the header compilable?
3493echo "$as_me:$LINENO: checking $ac_header usability" >&5
3494echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501$ac_includes_default
3502#include <$ac_header>
3503_ACEOF
3504rm -f conftest.$ac_objext
3505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_c_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_header_compiler=yes
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531ac_header_compiler=no
3532fi
3533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3535echo "${ECHO_T}$ac_header_compiler" >&6
3536
3537# Is the header present?
3538echo "$as_me:$LINENO: checking $ac_header presence" >&5
3539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3540cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546#include <$ac_header>
3547_ACEOF
3548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550 ac_status=$?
3551 grep -v '^ *+' conftest.er1 >conftest.err
3552 rm -f conftest.er1
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null; then
3556 if test -s conftest.err; then
3557 ac_cpp_err=$ac_c_preproc_warn_flag
3558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3559 else
3560 ac_cpp_err=
3561 fi
3562else
3563 ac_cpp_err=yes
cd0fc7c3 3564fi
b7026657
AC
3565if test -z "$ac_cpp_err"; then
3566 ac_header_preproc=yes
3567else
3568 echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 ac_header_preproc=no
cd0fc7c3 3572fi
b7026657
AC
3573rm -f conftest.err conftest.$ac_ext
3574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3575echo "${ECHO_T}$ac_header_preproc" >&6
3576
3577# So? What about this header?
3578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3579 yes:no: )
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3584 ac_header_preproc=yes
3585 ;;
3586 no:yes:* )
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3599 (
3600 cat <<\_ASBOX
3601## ------------------------------------------ ##
3602## Report this to the AC_PACKAGE_NAME lists. ##
3603## ------------------------------------------ ##
3604_ASBOX
3605 ) |
3606 sed "s/^/$as_me: WARNING: /" >&2
3607 ;;
3608esac
3609echo "$as_me:$LINENO: checking for $ac_header" >&5
3610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
cd0fc7c3 3613else
b7026657
AC
3614 eval "$as_ac_Header=\$ac_header_preproc"
3615fi
3616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3618
3619fi
3620if test `eval echo '${'$as_ac_Header'}'` = yes; then
3621 cat >>confdefs.h <<_ACEOF
3622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623_ACEOF
3624
cd0fc7c3 3625fi
b7026657 3626
cd0fc7c3
SS
3627done
3628
b7026657
AC
3629
3630
3631
3632for ac_header in dlfcn.h errno.h sys/stat.h
cd0fc7c3 3633do
b7026657
AC
3634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635if eval "test \"\${$as_ac_Header+set}\" = set"; then
3636 echo "$as_me:$LINENO: checking for $ac_header" >&5
3637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3638if eval "test \"\${$as_ac_Header+set}\" = set"; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640fi
3641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3643else
3644 # Is the header compilable?
3645echo "$as_me:$LINENO: checking $ac_header usability" >&5
3646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3647cat >conftest.$ac_ext <<_ACEOF
3648/* confdefs.h. */
3649_ACEOF
3650cat confdefs.h >>conftest.$ac_ext
3651cat >>conftest.$ac_ext <<_ACEOF
3652/* end confdefs.h. */
3653$ac_includes_default
3654#include <$ac_header>
3655_ACEOF
3656rm -f conftest.$ac_objext
3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3658 (eval $ac_compile) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_c_werror_flag"
3666 || test ! -s conftest.err'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3674 (eval $ac_try) 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); }; }; then
3678 ac_header_compiler=yes
3679else
3680 echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683ac_header_compiler=no
3684fi
3685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3687echo "${ECHO_T}$ac_header_compiler" >&6
3688
3689# Is the header present?
3690echo "$as_me:$LINENO: checking $ac_header presence" >&5
3691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3692cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698#include <$ac_header>
3699_ACEOF
3700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711 else
3712 ac_cpp_err=
3713 fi
3714else
3715 ac_cpp_err=yes
c906108c 3716fi
b7026657
AC
3717if test -z "$ac_cpp_err"; then
3718 ac_header_preproc=yes
3719else
3720 echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_header_preproc=no
c906108c 3724fi
b7026657
AC
3725rm -f conftest.err conftest.$ac_ext
3726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3727echo "${ECHO_T}$ac_header_preproc" >&6
3728
3729# So? What about this header?
3730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3731 yes:no: )
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3736 ac_header_preproc=yes
3737 ;;
3738 no:yes:* )
3739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3751 (
3752 cat <<\_ASBOX
3753## ------------------------------------------ ##
3754## Report this to the AC_PACKAGE_NAME lists. ##
3755## ------------------------------------------ ##
3756_ASBOX
3757 ) |
3758 sed "s/^/$as_me: WARNING: /" >&2
3759 ;;
3760esac
3761echo "$as_me:$LINENO: checking for $ac_header" >&5
3762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3763if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3765else
b7026657
AC
3766 eval "$as_ac_Header=\$ac_header_preproc"
3767fi
3768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770
3771fi
3772if test `eval echo '${'$as_ac_Header'}'` = yes; then
3773 cat >>confdefs.h <<_ACEOF
3774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775_ACEOF
3776
c906108c 3777fi
b7026657 3778
c906108c
SS
3779done
3780
b7026657
AC
3781
3782
3783
3784
c906108c
SS
3785for ac_func in getrusage time sigaction __setfpucw
3786do
b7026657
AC
3787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3788echo "$as_me:$LINENO: checking for $ac_func" >&5
3789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3790if eval "test \"\${$as_ac_var+set}\" = set"; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h. */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h. */
3799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3801#define $ac_func innocuous_$ac_func
3802
c906108c 3803/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3804 which can conflict with char $ac_func (); below.
3805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3806 <limits.h> exists even on freestanding compilers. */
3807
3808#ifdef __STDC__
3809# include <limits.h>
3810#else
3811# include <assert.h>
3812#endif
c906108c 3813
b7026657 3814#undef $ac_func
c906108c 3815
b7026657
AC
3816/* Override any gcc2 internal prototype to avoid an error. */
3817#ifdef __cplusplus
3818extern "C"
3819{
3820#endif
3821/* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3823char $ac_func ();
c906108c
SS
3824/* The GNU C library defines this for functions which it implements
3825 to always fail with ENOSYS. Some functions are actually named
3826 something starting with __ and the normal name is an alias. */
3827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3828choke me
3829#else
b7026657
AC
3830char (*f) () = $ac_func;
3831#endif
3832#ifdef __cplusplus
3833}
c906108c
SS
3834#endif
3835
b7026657
AC
3836int
3837main ()
3838{
3839return f != $ac_func;
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_c_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 eval "$as_ac_var=yes"
3867else
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871eval "$as_ac_var=no"
3872fi
3873rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875fi
3876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3878if test `eval echo '${'$as_ac_var'}'` = yes; then
3879 cat >>confdefs.h <<_ACEOF
3880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3881_ACEOF
c906108c 3882
c906108c
SS
3883fi
3884done
3885
3886
3887# Check for socket libraries
b7026657
AC
3888
3889echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3890echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3891if test "${ac_cv_lib_socket_bind+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3893else
b7026657 3894 ac_check_lib_save_LIBS=$LIBS
c906108c 3895LIBS="-lsocket $LIBS"
b7026657
AC
3896cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
3902
c906108c 3903/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
3904#ifdef __cplusplus
3905extern "C"
3906#endif
c906108c 3907/* We use char because int might match the return type of a gcc2
b7026657
AC
3908 builtin and then its argument prototype would still apply. */
3909char bind ();
3910int
3911main ()
3912{
3913bind ();
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
3919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920 (eval $ac_link) 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -z "$ac_c_werror_flag"
3928 || test ! -s conftest.err'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; } &&
3934 { ac_try='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_lib_socket_bind=yes
3941else
3942 echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945ac_cv_lib_socket_bind=no
3946fi
3947rm -f conftest.err conftest.$ac_objext \
3948 conftest$ac_exeext conftest.$ac_ext
3949LIBS=$ac_check_lib_save_LIBS
3950fi
3951echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3952echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3953if test $ac_cv_lib_socket_bind = yes; then
3954 cat >>confdefs.h <<_ACEOF
3955#define HAVE_LIBSOCKET 1
3956_ACEOF
c906108c
SS
3957
3958 LIBS="-lsocket $LIBS"
3959
c906108c
SS
3960fi
3961
b7026657
AC
3962
3963echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3964echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3965if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3967else
b7026657 3968 ac_check_lib_save_LIBS=$LIBS
c906108c 3969LIBS="-lnsl $LIBS"
b7026657
AC
3970cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h. */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h. */
3976
c906108c 3977/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
3978#ifdef __cplusplus
3979extern "C"
3980#endif
c906108c 3981/* We use char because int might match the return type of a gcc2
b7026657
AC
3982 builtin and then its argument prototype would still apply. */
3983char gethostbyname ();
3984int
3985main ()
3986{
3987gethostbyname ();
3988 ;
3989 return 0;
3990}
3991_ACEOF
3992rm -f conftest.$ac_objext conftest$ac_exeext
3993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3994 (eval $ac_link) 2>conftest.er1
3995 ac_status=$?
3996 grep -v '^ *+' conftest.er1 >conftest.err
3997 rm -f conftest.er1
3998 cat conftest.err >&5
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); } &&
4001 { ac_try='test -z "$ac_c_werror_flag"
4002 || test ! -s conftest.err'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 (eval $ac_try) 2>&5
4005 ac_status=$?
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; } &&
4008 { ac_try='test -s conftest$ac_exeext'
4009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010 (eval $ac_try) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; }; then
4014 ac_cv_lib_nsl_gethostbyname=yes
4015else
4016 echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019ac_cv_lib_nsl_gethostbyname=no
4020fi
4021rm -f conftest.err conftest.$ac_objext \
4022 conftest$ac_exeext conftest.$ac_ext
4023LIBS=$ac_check_lib_save_LIBS
4024fi
4025echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4026echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4027if test $ac_cv_lib_nsl_gethostbyname = yes; then
4028 cat >>confdefs.h <<_ACEOF
4029#define HAVE_LIBNSL 1
4030_ACEOF
c906108c
SS
4031
4032 LIBS="-lnsl $LIBS"
4033
c906108c
SS
4034fi
4035
4036
4037. ${srcdir}/../../bfd/configure.host
4038
4039
4040
4041USE_MAINTAINER_MODE=no
4042# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4043if test "${enable_maintainer_mode+set}" = set; then
4044 enableval="$enable_maintainer_mode"
4045 case "${enableval}" in
4046 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4047 no) MAINT="#" ;;
b7026657
AC
4048 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4049echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4050 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
4051esac
4052if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4053 echo "Setting maintainer mode" 6>&1
4054fi
4055else
4056 MAINT="#"
b7026657 4057fi;
c906108c
SS
4058
4059
4060# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4061if test "${enable_sim_bswap+set}" = set; then
4062 enableval="$enable_sim_bswap"
4063 case "${enableval}" in
4064 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4065 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
4066 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4067echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4068 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
4069esac
4070if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4071 echo "Setting bswap flags = $sim_bswap" 6>&1
4072fi
4073else
4074 sim_bswap=""
b7026657 4075fi;
c906108c
SS
4076
4077
4078# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4079if test "${enable_sim_cflags+set}" = set; then
4080 enableval="$enable_sim_cflags"
4081 case "${enableval}" in
4082 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
4083 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4084echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4085 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
4086 no) sim_cflags="";;
4087 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4088esac
4089if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4090 echo "Setting sim cflags = $sim_cflags" 6>&1
4091fi
4092else
4093 sim_cflags=""
b7026657 4094fi;
c906108c
SS
4095
4096
4097# Check whether --enable-sim-debug or --disable-sim-debug was given.
4098if test "${enable_sim_debug+set}" = set; then
4099 enableval="$enable_sim_debug"
4100 case "${enableval}" in
4101 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4102 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4103 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4104esac
4105if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4106 echo "Setting sim debug = $sim_debug" 6>&1
4107fi
4108else
4109 sim_debug=""
b7026657 4110fi;
c906108c
SS
4111
4112
4113# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4114if test "${enable_sim_stdio+set}" = set; then
4115 enableval="$enable_sim_stdio"
4116 case "${enableval}" in
4117 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4118 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
4119 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4120echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4121 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
4122esac
4123if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4124 echo "Setting stdio flags = $sim_stdio" 6>&1
4125fi
4126else
4127 sim_stdio=""
b7026657 4128fi;
c906108c
SS
4129
4130
4131# Check whether --enable-sim-trace or --disable-sim-trace was given.
4132if test "${enable_sim_trace+set}" = set; then
4133 enableval="$enable_sim_trace"
4134 case "${enableval}" in
4135 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4136 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4137 [-0-9]*)
4138 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4139 [a-z]*)
4140 sim_trace=""
4141 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4142 if test x"$sim_trace" = x; then
4143 sim_trace="-DWITH_TRACE='(TRACE_$x"
4144 else
4145 sim_trace="${sim_trace}|TRACE_$x"
4146 fi
4147 done
4148 sim_trace="$sim_trace)'" ;;
4149esac
4150if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4151 echo "Setting sim trace = $sim_trace" 6>&1
4152fi
4153else
4154 sim_trace=""
b7026657 4155fi;
c906108c
SS
4156
4157
4158# Check whether --enable-sim-profile or --disable-sim-profile was given.
4159if test "${enable_sim_profile+set}" = set; then
4160 enableval="$enable_sim_profile"
4161 case "${enableval}" in
4162 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4163 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4164 [-0-9]*)
4165 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4166 [a-z]*)
4167 sim_profile=""
4168 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4169 if test x"$sim_profile" = x; then
4170 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4171 else
4172 sim_profile="${sim_profile}|PROFILE_$x"
4173 fi
4174 done
4175 sim_profile="$sim_profile)'" ;;
4176esac
4177if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4178 echo "Setting sim profile = $sim_profile" 6>&1
4179fi
4180else
eb2d80b4 4181 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 4182fi;
c906108c
SS
4183
4184
b7026657
AC
4185echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4186echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4187if test "${ac_cv_type_signal+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4189else
b7026657
AC
4190 cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
c906108c
SS
4196#include <sys/types.h>
4197#include <signal.h>
4198#ifdef signal
b7026657 4199# undef signal
c906108c
SS
4200#endif
4201#ifdef __cplusplus
4202extern "C" void (*signal (int, void (*)(int)))(int);
4203#else
4204void (*signal ()) ();
4205#endif
4206
b7026657
AC
4207int
4208main ()
4209{
c906108c 4210int i;
b7026657
AC
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext
4216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
c906108c
SS
4237 ac_cv_type_signal=void
4238else
b7026657
AC
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242ac_cv_type_signal=int
c906108c 4243fi
b7026657 4244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4245fi
b7026657
AC
4246echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4247echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 4248
b7026657 4249cat >>confdefs.h <<_ACEOF
c906108c 4250#define RETSIGTYPE $ac_cv_type_signal
b7026657 4251_ACEOF
c906108c
SS
4252
4253
cd0fc7c3
SS
4254
4255
c906108c
SS
4256
4257sim_link_files=
4258sim_link_links=
4259
4260sim_link_links=tconfig.h
4261if test -f ${srcdir}/tconfig.in
4262then
4263 sim_link_files=tconfig.in
4264else
4265 sim_link_files=../common/tconfig.in
4266fi
4267
4268# targ-vals.def points to the libc macro description file.
4269case "${target}" in
4270*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4271esac
4272sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4273sim_link_links="${sim_link_links} targ-vals.def"
4274
c906108c
SS
4275
4276
c8cca39f
AC
4277# NOTE: Don't add -Wall or -Wunused, they both include
4278# -Wunused-parameter which reports bogus warnings.
4279# NOTE: If you add to this list, remember to update
4280# gdb/doc/gdbint.texinfo.
4281build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
4282-Wformat -Wparentheses -Wpointer-arith"
4283# GCC supports -Wuninitialized only with -O or -On, n != 0.
4284if test x${CFLAGS+set} = xset; then
4285 case "${CFLAGS}" in
4286 *"-O0"* ) ;;
4287 *"-O"* )
4288 build_warnings="${build_warnings} -Wuninitialized"
4289 ;;
4290 esac
4291else
4292 build_warnings="${build_warnings} -Wuninitialized"
4293fi
c8cca39f
AC
4294# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4295# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4296# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4297# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4298# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4299# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
4300# Check whether --enable-build-warnings or --disable-build-warnings was given.
4301if test "${enable_build_warnings+set}" = set; then
4302 enableval="$enable_build_warnings"
c8cca39f
AC
4303 case "${enableval}" in
4304 yes) ;;
4305 no) build_warnings="-w";;
4306 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4307 build_warnings="${build_warnings} ${t}";;
4308 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4309 build_warnings="${t} ${build_warnings}";;
4310 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4311esac
4312if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4313 echo "Setting compiler warning flags = $build_warnings" 6>&1
4314fi
b7026657 4315fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
4316if test "${enable_sim_build_warnings+set}" = set; then
4317 enableval="$enable_sim_build_warnings"
4318 case "${enableval}" in
c906108c
SS
4319 yes) ;;
4320 no) build_warnings="-w";;
4321 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4322 build_warnings="${build_warnings} ${t}";;
c906108c 4323 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4324 build_warnings="${t} ${build_warnings}";;
4325 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4326esac
4327if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4328 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4329fi
b7026657 4330fi; WARN_CFLAGS=""
d4f3574e
SS
4331WERROR_CFLAGS=""
4332if test "x${build_warnings}" != x -a "x$GCC" = xyes
4333then
b7026657
AC
4334 echo "$as_me:$LINENO: checking compiler warning flags" >&5
4335echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
4336 # Separate out the -Werror flag as some files just cannot be
4337 # compiled with it enabled.
4338 for w in ${build_warnings}; do
4339 case $w in
4340 -Werr*) WERROR_CFLAGS=-Werror ;;
4341 *) # Check that GCC accepts it
4342 saved_CFLAGS="$CFLAGS"
4343 CFLAGS="$CFLAGS $w"
b7026657
AC
4344 cat >conftest.$ac_ext <<_ACEOF
4345/* confdefs.h. */
4346_ACEOF
4347cat confdefs.h >>conftest.$ac_ext
4348cat >>conftest.$ac_ext <<_ACEOF
4349/* end confdefs.h. */
c8cca39f 4350
b7026657
AC
4351int
4352main ()
4353{
c8cca39f 4354
b7026657
AC
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
c8cca39f 4381 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 4382else
b7026657
AC
4383 echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
c8cca39f 4386fi
b7026657 4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4388 CFLAGS="$saved_CFLAGS"
4389 esac
4390 done
b7026657
AC
4391 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4392echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
4393fi
4394
4395
b7026657
AC
4396
4397for ac_header in unistd.h
c906108c 4398do
b7026657
AC
4399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405fi
4406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408else
4409 # Is the header compilable?
4410echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418$ac_includes_default
4419#include <$ac_header>
4420_ACEOF
4421rm -f conftest.$ac_objext
4422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444else
4445 echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448ac_header_compiler=no
4449fi
4450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454# Is the header present?
4455echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h. */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h. */
4463#include <$ac_header>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479else
4480 ac_cpp_err=yes
c906108c 4481fi
b7026657
AC
4482if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484else
4485 echo "$as_me: failed program was:" >&5
4486sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
c906108c 4489fi
b7026657
AC
4490rm -f conftest.err conftest.$ac_ext
4491echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494# So? What about this header?
4495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 (
4517 cat <<\_ASBOX
4518## ------------------------------------------ ##
4519## Report this to the AC_PACKAGE_NAME lists. ##
4520## ------------------------------------------ ##
4521_ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
4525esac
4526echo "$as_me:$LINENO: checking for $ac_header" >&5
4527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4530else
b7026657
AC
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532fi
4533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
c906108c 4536fi
b7026657
AC
4537if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540_ACEOF
4541
4542fi
4543
c906108c
SS
4544done
4545
4546
4547
4548
b7026657
AC
4549ac_sources="$sim_link_files"
4550ac_dests="$sim_link_links"
4551while test -n "$ac_sources"; do
4552 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4553 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4554 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
4555done
4556 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c 4557
379832de
HPN
4558cgen_breaks=""
4559if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
4560cgen_breaks="break cgen_rtx_error";
4561fi
4562
38f48d72
AC
4563 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
4564
4565 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
4566
4567 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
4568
4569 ac_config_commands="$ac_config_commands Makefile"
4570
4571 ac_config_commands="$ac_config_commands stamp-h"
4572
b7026657 4573cat >confcache <<\_ACEOF
c906108c
SS
4574# This file is a shell script that caches the results of configure
4575# tests run on this system so they can be shared between configure
b7026657
AC
4576# scripts and configure runs, see configure's option --config-cache.
4577# It is not useful on other systems. If it contains results you don't
4578# want to keep, you may remove or edit it.
c906108c 4579#
b7026657
AC
4580# config.status only pays attention to the cache file if you give it
4581# the --recheck option to rerun configure.
c906108c 4582#
b7026657
AC
4583# `ac_cv_env_foo' variables (set or unset) will be overridden when
4584# loading this file, other *unset* `ac_cv_foo' will be assigned the
4585# following values.
4586
4587_ACEOF
4588
c906108c
SS
4589# The following way of writing the cache mishandles newlines in values,
4590# but we know of no workaround that is simple, portable, and efficient.
4591# So, don't put newlines in cache variables' values.
4592# Ultrix sh set writes to stderr and can't be redirected directly,
4593# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
4594{
4595 (set) 2>&1 |
4596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4597 *ac_space=\ *)
4598 # `set' does not quote correctly, so add quotes (double-quote
4599 # substitution turns \\\\ into \\, and sed turns \\ into \).
4600 sed -n \
4601 "s/'/'\\\\''/g;
4602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4603 ;;
4604 *)
4605 # `set' quotes correctly as required by POSIX, so do not add quotes.
4606 sed -n \
4607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4608 ;;
4609 esac;
4610} |
4611 sed '
4612 t clear
4613 : clear
4614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4615 t end
4616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4617 : end' >>confcache
4618if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 4619 if test -w $cache_file; then
b7026657
AC
4620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4621 cat confcache >$cache_file
c906108c
SS
4622 else
4623 echo "not updating unwritable cache $cache_file"
4624 fi
4625fi
4626rm -f confcache
4627
c906108c
SS
4628test "x$prefix" = xNONE && prefix=$ac_default_prefix
4629# Let make expand exec_prefix.
4630test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4631
b7026657
AC
4632# VPATH may cause trouble with some makes, so we remove $(srcdir),
4633# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4634# trailing colons and then remove the whole line if VPATH becomes empty
4635# (actually we leave an empty line to preserve line numbers).
c906108c 4636if test "x$srcdir" = x.; then
b7026657
AC
4637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4638s/:*\$(srcdir):*/:/;
4639s/:*\${srcdir}:*/:/;
4640s/:*@srcdir@:*/:/;
4641s/^\([^=]*=[ ]*\):*/\1/;
4642s/:*$//;
4643s/^[^=]*=[ ]*$//;
4644}'
c906108c
SS
4645fi
4646
c906108c
SS
4647DEFS=-DHAVE_CONFIG_H
4648
b7026657
AC
4649ac_libobjs=
4650ac_ltlibobjs=
4651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4652 # 1. Remove the extension, and $U if already installed.
4653 ac_i=`echo "$ac_i" |
4654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4655 # 2. Add them.
4656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4658done
4659LIBOBJS=$ac_libobjs
c906108c 4660
b7026657
AC
4661LTLIBOBJS=$ac_ltlibobjs
4662
4663
4664
4665: ${CONFIG_STATUS=./config.status}
4666ac_clean_files_save=$ac_clean_files
4667ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4668{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4669echo "$as_me: creating $CONFIG_STATUS" >&6;}
4670cat >$CONFIG_STATUS <<_ACEOF
4671#! $SHELL
4672# Generated by $as_me.
c906108c 4673# Run this file to recreate the current configuration.
c906108c 4674# Compiler output produced by configure, useful for debugging
b7026657 4675# configure, is in config.log if it exists.
c906108c 4676
b7026657
AC
4677debug=false
4678ac_cs_recheck=false
4679ac_cs_silent=false
4680SHELL=\${CONFIG_SHELL-$SHELL}
4681_ACEOF
4682
4683cat >>$CONFIG_STATUS <<\_ACEOF
4684## --------------------- ##
4685## M4sh Initialization. ##
4686## --------------------- ##
4687
4688# Be Bourne compatible
4689if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4690 emulate sh
4691 NULLCMD=:
4692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4693 # is contrary to our usage. Disable this feature.
4694 alias -g '${1+"$@"}'='"$@"'
4695elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4696 set -o posix
4697fi
4698DUALCASE=1; export DUALCASE # for MKS sh
4699
4700# Support unset when possible.
4701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4702 as_unset=unset
4703else
4704 as_unset=false
4705fi
4706
4707
4708# Work around bugs in pre-3.0 UWIN ksh.
4709$as_unset ENV MAIL MAILPATH
4710PS1='$ '
4711PS2='> '
4712PS4='+ '
4713
4714# NLS nuisances.
4715for as_var in \
4716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4718 LC_TELEPHONE LC_TIME
c906108c 4719do
b7026657
AC
4720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4721 eval $as_var=C; export $as_var
4722 else
4723 $as_unset $as_var
4724 fi
c906108c
SS
4725done
4726
b7026657
AC
4727# Required to use basename.
4728if expr a : '\(a\)' >/dev/null 2>&1; then
4729 as_expr=expr
4730else
4731 as_expr=false
4732fi
4733
4734if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4735 as_basename=basename
4736else
4737 as_basename=false
4738fi
c906108c 4739
c906108c 4740
b7026657
AC
4741# Name of the executable.
4742as_me=`$as_basename "$0" ||
4743$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4744 X"$0" : 'X\(//\)$' \| \
4745 X"$0" : 'X\(/\)$' \| \
4746 . : '\(.\)' 2>/dev/null ||
4747echo X/"$0" |
4748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4749 /^X\/\(\/\/\)$/{ s//\1/; q; }
4750 /^X\/\(\/\).*/{ s//\1/; q; }
4751 s/.*/./; q'`
c906108c 4752
b7026657
AC
4753
4754# PATH needs CR, and LINENO needs CR and PATH.
4755# Avoid depending upon Character Ranges.
4756as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4757as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4758as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4759as_cr_digits='0123456789'
4760as_cr_alnum=$as_cr_Letters$as_cr_digits
4761
4762# The user is always right.
4763if test "${PATH_SEPARATOR+set}" != set; then
4764 echo "#! /bin/sh" >conf$$.sh
4765 echo "exit 0" >>conf$$.sh
4766 chmod +x conf$$.sh
4767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4768 PATH_SEPARATOR=';'
c906108c 4769 else
b7026657
AC
4770 PATH_SEPARATOR=:
4771 fi
4772 rm -f conf$$.sh
4773fi
4774
4775
4776 as_lineno_1=$LINENO
4777 as_lineno_2=$LINENO
4778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4779 test "x$as_lineno_1" != "x$as_lineno_2" &&
4780 test "x$as_lineno_3" = "x$as_lineno_2" || {
4781 # Find who we are. Look in the path if we contain no path at all
4782 # relative or not.
4783 case $0 in
4784 *[\\/]* ) as_myself=$0 ;;
4785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4791done
4792
4793 ;;
4794 esac
4795 # We did not find ourselves, most probably we were run as `sh COMMAND'
4796 # in which case we are not to be found in the path.
4797 if test "x$as_myself" = x; then
4798 as_myself=$0
4799 fi
4800 if test ! -f "$as_myself"; then
4801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4802echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4803 { (exit 1); exit 1; }; }
c906108c 4804 fi
b7026657
AC
4805 case $CONFIG_SHELL in
4806 '')
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for as_base in sh bash ksh sh5; do
4813 case $as_dir in
4814 /*)
4815 if ("$as_dir/$as_base" -c '
4816 as_lineno_1=$LINENO
4817 as_lineno_2=$LINENO
4818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4819 test "x$as_lineno_1" != "x$as_lineno_2" &&
4820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4821 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4822 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4823 CONFIG_SHELL=$as_dir/$as_base
4824 export CONFIG_SHELL
4825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4826 fi;;
4827 esac
4828 done
4829done
4830;;
4831 esac
4832
4833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4834 # uniformly replaced by the line number. The first 'sed' inserts a
4835 # line-number line before each line; the second 'sed' does the real
4836 # work. The second script uses 'N' to pair each line-number line
4837 # with the numbered line, and appends trailing '-' during
4838 # substitution so that $LINENO is not a special case at line end.
4839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4841 sed '=' <$as_myself |
4842 sed '
4843 N
4844 s,$,-,
4845 : loop
4846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4847 t loop
4848 s,-$,,
4849 s,^['$as_cr_digits']*\n,,
4850 ' >$as_me.lineno &&
4851 chmod +x $as_me.lineno ||
4852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4853echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4854 { (exit 1); exit 1; }; }
4855
4856 # Don't try to exec as it changes $[0], causing all sort of problems
4857 # (the dirname of $[0] is not the place where we might find the
4858 # original and so on. Autoconf is especially sensible to this).
4859 . ./$as_me.lineno
4860 # Exit status is that of the last command.
4861 exit
4862}
4863
4864
4865case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4866 *c*,-n*) ECHO_N= ECHO_C='
4867' ECHO_T=' ' ;;
4868 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4869 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4870esac
4871
4872if expr a : '\(a\)' >/dev/null 2>&1; then
4873 as_expr=expr
4874else
4875 as_expr=false
4876fi
4877
4878rm -f conf$$ conf$$.exe conf$$.file
4879echo >conf$$.file
4880if ln -s conf$$.file conf$$ 2>/dev/null; then
4881 # We could just check for DJGPP; but this test a) works b) is more generic
4882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4883 if test -f conf$$.exe; then
4884 # Don't use ln at all; we don't have any links
4885 as_ln_s='cp -p'
c906108c 4886 else
b7026657 4887 as_ln_s='ln -s'
c906108c 4888 fi
b7026657
AC
4889elif ln conf$$.file conf$$ 2>/dev/null; then
4890 as_ln_s=ln
4891else
4892 as_ln_s='cp -p'
4893fi
4894rm -f conf$$ conf$$.exe conf$$.file
4895
4896if mkdir -p . 2>/dev/null; then
4897 as_mkdir_p=:
4898else
4899 test -d ./-p && rmdir ./-p
4900 as_mkdir_p=false
4901fi
4902
4903as_executable_p="test -f"
4904
4905# Sed expression to map a string onto a valid CPP name.
4906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4907
4908# Sed expression to map a string onto a valid variable name.
4909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4910
4911
4912# IFS
4913# We need space, tab and new line, in precisely that order.
4914as_nl='
4915'
4916IFS=" $as_nl"
4917
4918# CDPATH.
4919$as_unset CDPATH
4920
4921exec 6>&1
4922
4923# Open the log real soon, to keep \$[0] and so on meaningful, and to
4924# report actual input values of CONFIG_FILES etc. instead of their
4925# values after options handling. Logging --version etc. is OK.
4926exec 5>>config.log
4927{
4928 echo
4929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4930## Running $as_me. ##
4931_ASBOX
4932} >&5
4933cat >&5 <<_CSEOF
4934
4935This file was extended by $as_me, which was
4936generated by GNU Autoconf 2.59. Invocation command line was
4937
4938 CONFIG_FILES = $CONFIG_FILES
4939 CONFIG_HEADERS = $CONFIG_HEADERS
4940 CONFIG_LINKS = $CONFIG_LINKS
4941 CONFIG_COMMANDS = $CONFIG_COMMANDS
4942 $ $0 $@
4943
4944_CSEOF
4945echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4946echo >&5
4947_ACEOF
4948
4949# Files that config.status was made for.
4950if test -n "$ac_config_files"; then
4951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4952fi
4953
4954if test -n "$ac_config_headers"; then
4955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4956fi
4957
4958if test -n "$ac_config_links"; then
4959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4960fi
4961
4962if test -n "$ac_config_commands"; then
4963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4964fi
4965
4966cat >>$CONFIG_STATUS <<\_ACEOF
4967
4968ac_cs_usage="\
4969\`$as_me' instantiates files from templates according to the
4970current configuration.
4971
4972Usage: $0 [OPTIONS] [FILE]...
4973
4974 -h, --help print this help, then exit
4975 -V, --version print version number, then exit
4976 -q, --quiet do not print progress messages
4977 -d, --debug don't remove temporary files
4978 --recheck update $as_me by reconfiguring in the same conditions
4979 --file=FILE[:TEMPLATE]
4980 instantiate the configuration file FILE
4981 --header=FILE[:TEMPLATE]
4982 instantiate the configuration header FILE
4983
4984Configuration files:
4985$config_files
4986
4987Configuration headers:
4988$config_headers
4989
4990Configuration links:
4991$config_links
4992
4993Configuration commands:
4994$config_commands
4995
4996Report bugs to <bug-autoconf@gnu.org>."
4997_ACEOF
4998
4999cat >>$CONFIG_STATUS <<_ACEOF
5000ac_cs_version="\\
5001config.status
5002configured by $0, generated by GNU Autoconf 2.59,
5003 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5004
5005Copyright (C) 2003 Free Software Foundation, Inc.
5006This config.status script is free software; the Free Software Foundation
5007gives unlimited permission to copy, distribute and modify it."
5008srcdir=$srcdir
5009INSTALL="$INSTALL"
5010_ACEOF
5011
5012cat >>$CONFIG_STATUS <<\_ACEOF
5013# If no file are specified by the user, then we need to provide default
5014# value. By we need to know if files were specified by the user.
5015ac_need_defaults=:
5016while test $# != 0
5017do
5018 case $1 in
5019 --*=*)
5020 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5021 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5022 ac_shift=:
5023 ;;
5024 -*)
5025 ac_option=$1
5026 ac_optarg=$2
5027 ac_shift=shift
5028 ;;
5029 *) # This is not an option, so the user has probably given explicit
5030 # arguments.
5031 ac_option=$1
5032 ac_need_defaults=false;;
5033 esac
5034
5035 case $ac_option in
5036 # Handling of the options.
5037_ACEOF
5038cat >>$CONFIG_STATUS <<\_ACEOF
5039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5040 ac_cs_recheck=: ;;
5041 --version | --vers* | -V )
5042 echo "$ac_cs_version"; exit 0 ;;
5043 --he | --h)
5044 # Conflict between --help and --header
5045 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5046Try \`$0 --help' for more information." >&5
5047echo "$as_me: error: ambiguous option: $1
5048Try \`$0 --help' for more information." >&2;}
5049 { (exit 1); exit 1; }; };;
5050 --help | --hel | -h )
5051 echo "$ac_cs_usage"; exit 0 ;;
5052 --debug | --d* | -d )
5053 debug=: ;;
5054 --file | --fil | --fi | --f )
5055 $ac_shift
5056 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5057 ac_need_defaults=false;;
5058 --header | --heade | --head | --hea )
5059 $ac_shift
5060 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5061 ac_need_defaults=false;;
5062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5064 ac_cs_silent=: ;;
5065
5066 # This is an error.
5067 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5068Try \`$0 --help' for more information." >&5
5069echo "$as_me: error: unrecognized option: $1
5070Try \`$0 --help' for more information." >&2;}
5071 { (exit 1); exit 1; }; } ;;
5072
5073 *) ac_config_targets="$ac_config_targets $1" ;;
5074
5075 esac
5076 shift
c906108c 5077done
b7026657
AC
5078
5079ac_configure_extra_args=
5080
5081if $ac_cs_silent; then
5082 exec 6>/dev/null
5083 ac_configure_extra_args="$ac_configure_extra_args --silent"
5084fi
5085
5086_ACEOF
5087cat >>$CONFIG_STATUS <<_ACEOF
5088if \$ac_cs_recheck; then
5089 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5090 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 5091fi
c906108c 5092
b7026657 5093_ACEOF
c906108c 5094
b7026657
AC
5095
5096
5097
5098
5099cat >>$CONFIG_STATUS <<\_ACEOF
5100for ac_config_target in $ac_config_targets
5101do
5102 case "$ac_config_target" in
5103 # Handling of arguments.
5104 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
5105 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
5106 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
5107 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
38f48d72
AC
5108 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
5109 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
b7026657
AC
5110 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5111 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5112echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5113 { (exit 1); exit 1; }; };;
c906108c 5114 esac
b7026657 5115done
c906108c 5116
b7026657
AC
5117# If the user did not use the arguments to specify the items to instantiate,
5118# then the envvar interface is used. Set only those that are not.
5119# We use the long form for the default assignment because of an extremely
5120# bizarre bug on SunOS 4.1.3.
5121if $ac_need_defaults; then
5122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5124 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5126fi
5127
5128# Have a temporary directory for convenience. Make it in the build tree
5129# simply because there is no reason to put it here, and in addition,
5130# creating and moving files from /tmp can sometimes cause problems.
5131# Create a temporary directory, and hook for its removal unless debugging.
5132$debug ||
5133{
5134 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5135 trap '{ (exit 1); exit 1; }' 1 2 13 15
5136}
c906108c 5137
b7026657
AC
5138# Create a (secure) tmp directory for tmp files.
5139
5140{
5141 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5142 test -n "$tmp" && test -d "$tmp"
5143} ||
5144{
5145 tmp=./confstat$$-$RANDOM
5146 (umask 077 && mkdir $tmp)
5147} ||
5148{
5149 echo "$me: cannot create a temporary directory in ." >&2
5150 { (exit 1); exit 1; }
5151}
5152
5153_ACEOF
5154
5155cat >>$CONFIG_STATUS <<_ACEOF
5156
5157#
5158# CONFIG_FILES section.
5159#
5160
5161# No need to generate the scripts if there are no CONFIG_FILES.
5162# This happens for instance when ./config.status config.h
5163if test -n "\$CONFIG_FILES"; then
5164 # Protect against being on the right side of a sed subst in config.status.
5165 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5166 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
b7026657
AC
5167s,@SHELL@,$SHELL,;t t
5168s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5169s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5170s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5171s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5172s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5173s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5174s,@exec_prefix@,$exec_prefix,;t t
5175s,@prefix@,$prefix,;t t
5176s,@program_transform_name@,$program_transform_name,;t t
5177s,@bindir@,$bindir,;t t
5178s,@sbindir@,$sbindir,;t t
5179s,@libexecdir@,$libexecdir,;t t
5180s,@datadir@,$datadir,;t t
5181s,@sysconfdir@,$sysconfdir,;t t
5182s,@sharedstatedir@,$sharedstatedir,;t t
5183s,@localstatedir@,$localstatedir,;t t
5184s,@libdir@,$libdir,;t t
5185s,@includedir@,$includedir,;t t
5186s,@oldincludedir@,$oldincludedir,;t t
5187s,@infodir@,$infodir,;t t
5188s,@mandir@,$mandir,;t t
5189s,@build_alias@,$build_alias,;t t
5190s,@host_alias@,$host_alias,;t t
5191s,@target_alias@,$target_alias,;t t
5192s,@DEFS@,$DEFS,;t t
5193s,@ECHO_C@,$ECHO_C,;t t
5194s,@ECHO_N@,$ECHO_N,;t t
5195s,@ECHO_T@,$ECHO_T,;t t
5196s,@LIBS@,$LIBS,;t t
35695fd6
AC
5197s,@sim_environment@,$sim_environment,;t t
5198s,@sim_alignment@,$sim_alignment,;t t
5199s,@sim_assert@,$sim_assert,;t t
5200s,@sim_bitsize@,$sim_bitsize,;t t
5201s,@sim_endian@,$sim_endian,;t t
5202s,@sim_hostendian@,$sim_hostendian,;t t
5203s,@sim_float@,$sim_float,;t t
5204s,@sim_scache@,$sim_scache,;t t
5205s,@sim_default_model@,$sim_default_model,;t t
5206s,@sim_hw_cflags@,$sim_hw_cflags,;t t
5207s,@sim_hw_objs@,$sim_hw_objs,;t t
5208s,@sim_hw@,$sim_hw,;t t
5209s,@sim_inline@,$sim_inline,;t t
5210s,@sim_packages@,$sim_packages,;t t
5211s,@sim_regparm@,$sim_regparm,;t t
5212s,@sim_reserved_bits@,$sim_reserved_bits,;t t
5213s,@sim_smp@,$sim_smp,;t t
5214s,@sim_stdcall@,$sim_stdcall,;t t
5215s,@sim_xor_endian@,$sim_xor_endian,;t t
5216s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
5217s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
b7026657
AC
5218s,@build@,$build,;t t
5219s,@build_cpu@,$build_cpu,;t t
5220s,@build_vendor@,$build_vendor,;t t
5221s,@build_os@,$build_os,;t t
5222s,@host@,$host,;t t
5223s,@host_cpu@,$host_cpu,;t t
5224s,@host_vendor@,$host_vendor,;t t
5225s,@host_os@,$host_os,;t t
5226s,@target@,$target,;t t
5227s,@target_cpu@,$target_cpu,;t t
5228s,@target_vendor@,$target_vendor,;t t
5229s,@target_os@,$target_os,;t t
5230s,@CC@,$CC,;t t
5231s,@CFLAGS@,$CFLAGS,;t t
5232s,@LDFLAGS@,$LDFLAGS,;t t
5233s,@CPPFLAGS@,$CPPFLAGS,;t t
5234s,@ac_ct_CC@,$ac_ct_CC,;t t
5235s,@EXEEXT@,$EXEEXT,;t t
5236s,@OBJEXT@,$OBJEXT,;t t
5237s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5238s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5239s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5240s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
5241s,@HDEFINES@,$HDEFINES,;t t
5242s,@AR@,$AR,;t t
5243s,@RANLIB@,$RANLIB,;t t
5244s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b7026657
AC
5245s,@CPP@,$CPP,;t t
5246s,@EGREP@,$EGREP,;t t
b7026657
AC
5247s,@MAINT@,$MAINT,;t t
5248s,@sim_bswap@,$sim_bswap,;t t
5249s,@sim_cflags@,$sim_cflags,;t t
5250s,@sim_debug@,$sim_debug,;t t
5251s,@sim_stdio@,$sim_stdio,;t t
5252s,@sim_trace@,$sim_trace,;t t
5253s,@sim_profile@,$sim_profile,;t t
5254s,@cgen_breaks@,$cgen_breaks,;t t
5255s,@LIBOBJS@,$LIBOBJS,;t t
5256s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5257CEOF
5258
5259_ACEOF
5260
5261 cat >>$CONFIG_STATUS <<\_ACEOF
5262 # Split the substitutions into bite-sized pieces for seds with
5263 # small command number limits, like on Digital OSF/1 and HP-UX.
5264 ac_max_sed_lines=48
5265 ac_sed_frag=1 # Number of current file.
5266 ac_beg=1 # First line for current file.
5267 ac_end=$ac_max_sed_lines # Line after last line for current file.
5268 ac_more_lines=:
5269 ac_sed_cmds=
5270 while $ac_more_lines; do
5271 if test $ac_beg -gt 1; then
5272 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5273 else
5274 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5275 fi
5276 if test ! -s $tmp/subs.frag; then
5277 ac_more_lines=false
5278 else
5279 # The purpose of the label and of the branching condition is to
5280 # speed up the sed processing (if there are no `@' at all, there
5281 # is no need to browse any of the substitutions).
5282 # These are the two extra sed commands mentioned above.
5283 (echo ':t
5284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5285 if test -z "$ac_sed_cmds"; then
5286 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5287 else
5288 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5289 fi
5290 ac_sed_frag=`expr $ac_sed_frag + 1`
5291 ac_beg=$ac_end
5292 ac_end=`expr $ac_end + $ac_max_sed_lines`
5293 fi
5294 done
5295 if test -z "$ac_sed_cmds"; then
5296 ac_sed_cmds=cat
c906108c 5297 fi
b7026657 5298fi # test -n "$CONFIG_FILES"
c906108c 5299
b7026657
AC
5300_ACEOF
5301cat >>$CONFIG_STATUS <<\_ACEOF
5302for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5303 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5304 case $ac_file in
5305 - | *:- | *:-:* ) # input from stdin
5306 cat >$tmp/stdin
5307 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5309 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5311 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
5312 esac
5313
b7026657
AC
5314 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5317 X"$ac_file" : 'X\(//\)[^/]' \| \
5318 X"$ac_file" : 'X\(//\)$' \| \
5319 X"$ac_file" : 'X\(/\)' \| \
5320 . : '\(.\)' 2>/dev/null ||
5321echo X"$ac_file" |
5322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5324 /^X\(\/\/\)$/{ s//\1/; q; }
5325 /^X\(\/\).*/{ s//\1/; q; }
5326 s/.*/./; q'`
5327 { if $as_mkdir_p; then
5328 mkdir -p "$ac_dir"
5329 else
5330 as_dir="$ac_dir"
5331 as_dirs=
5332 while test ! -d "$as_dir"; do
5333 as_dirs="$as_dir $as_dirs"
5334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5336 X"$as_dir" : 'X\(//\)[^/]' \| \
5337 X"$as_dir" : 'X\(//\)$' \| \
5338 X"$as_dir" : 'X\(/\)' \| \
5339 . : '\(.\)' 2>/dev/null ||
5340echo X"$as_dir" |
5341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5343 /^X\(\/\/\)$/{ s//\1/; q; }
5344 /^X\(\/\).*/{ s//\1/; q; }
5345 s/.*/./; q'`
5346 done
5347 test ! -n "$as_dirs" || mkdir $as_dirs
5348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5349echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5350 { (exit 1); exit 1; }; }; }
c906108c 5351
b7026657
AC
5352 ac_builddir=.
5353
5354if test "$ac_dir" != .; then
5355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5356 # A "../" for each directory in $ac_dir_suffix.
5357 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5358else
5359 ac_dir_suffix= ac_top_builddir=
5360fi
5361
5362case $srcdir in
5363 .) # No --srcdir option. We are building in place.
5364 ac_srcdir=.
5365 if test -z "$ac_top_builddir"; then
5366 ac_top_srcdir=.
5367 else
5368 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5369 fi ;;
5370 [\\/]* | ?:[\\/]* ) # Absolute path.
5371 ac_srcdir=$srcdir$ac_dir_suffix;
5372 ac_top_srcdir=$srcdir ;;
5373 *) # Relative path.
5374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5375 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5376esac
5377
5378# Do not use `cd foo && pwd` to compute absolute paths, because
5379# the directories may not exist.
5380case `pwd` in
5381.) ac_abs_builddir="$ac_dir";;
5382*)
5383 case "$ac_dir" in
5384 .) ac_abs_builddir=`pwd`;;
5385 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5386 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5387 esac;;
5388esac
5389case $ac_abs_builddir in
5390.) ac_abs_top_builddir=${ac_top_builddir}.;;
5391*)
5392 case ${ac_top_builddir}. in
5393 .) ac_abs_top_builddir=$ac_abs_builddir;;
5394 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5395 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5396 esac;;
5397esac
5398case $ac_abs_builddir in
5399.) ac_abs_srcdir=$ac_srcdir;;
5400*)
5401 case $ac_srcdir in
5402 .) ac_abs_srcdir=$ac_abs_builddir;;
5403 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5404 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5405 esac;;
5406esac
5407case $ac_abs_builddir in
5408.) ac_abs_top_srcdir=$ac_top_srcdir;;
5409*)
5410 case $ac_top_srcdir in
5411 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5412 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5413 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5414 esac;;
5415esac
5416
5417
5418 case $INSTALL in
5419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5420 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
5421 esac
5422
b7026657
AC
5423 if test x"$ac_file" != x-; then
5424 { echo "$as_me:$LINENO: creating $ac_file" >&5
5425echo "$as_me: creating $ac_file" >&6;}
5426 rm -f "$ac_file"
5427 fi
5428 # Let's still pretend it is `configure' which instantiates (i.e., don't
5429 # use $as_me), people would be surprised to read:
5430 # /* config.h. Generated by config.status. */
5431 if test x"$ac_file" = x-; then
5432 configure_input=
5433 else
5434 configure_input="$ac_file. "
5435 fi
5436 configure_input=$configure_input"Generated from `echo $ac_file_in |
5437 sed 's,.*/,,'` by configure."
5438
5439 # First look for the input files in the build tree, otherwise in the
5440 # src tree.
5441 ac_file_inputs=`IFS=:
5442 for f in $ac_file_in; do
5443 case $f in
5444 -) echo $tmp/stdin ;;
5445 [\\/$]*)
5446 # Absolute (can't be DOS-style, as IFS=:)
5447 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5448echo "$as_me: error: cannot find input file: $f" >&2;}
5449 { (exit 1); exit 1; }; }
5450 echo "$f";;
5451 *) # Relative
5452 if test -f "$f"; then
5453 # Build tree
5454 echo "$f"
5455 elif test -f "$srcdir/$f"; then
5456 # Source tree
5457 echo "$srcdir/$f"
5458 else
5459 # /dev/null tree
5460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5461echo "$as_me: error: cannot find input file: $f" >&2;}
5462 { (exit 1); exit 1; }; }
5463 fi;;
5464 esac
5465 done` || { (exit 1); exit 1; }
5466_ACEOF
5467cat >>$CONFIG_STATUS <<_ACEOF
5468 sed "$ac_vpsub
5469$extrasub
5470_ACEOF
5471cat >>$CONFIG_STATUS <<\_ACEOF
5472:t
5473/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5474s,@configure_input@,$configure_input,;t t
5475s,@srcdir@,$ac_srcdir,;t t
5476s,@abs_srcdir@,$ac_abs_srcdir,;t t
5477s,@top_srcdir@,$ac_top_srcdir,;t t
5478s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5479s,@builddir@,$ac_builddir,;t t
5480s,@abs_builddir@,$ac_abs_builddir,;t t
5481s,@top_builddir@,$ac_top_builddir,;t t
5482s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5483s,@INSTALL@,$ac_INSTALL,;t t
5484" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5485 rm -f $tmp/stdin
5486 if test x"$ac_file" != x-; then
5487 mv $tmp/out $ac_file
5488 else
5489 cat $tmp/out
5490 rm -f $tmp/out
5491 fi
5492
5493done
5494_ACEOF
5495cat >>$CONFIG_STATUS <<\_ACEOF
5496
5497#
5498# CONFIG_HEADER section.
5499#
c906108c
SS
5500
5501# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5502# NAME is the cpp macro being defined and VALUE is the value it is being given.
5503#
5504# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
5505ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5506ac_dB='[ ].*$,\1#\2'
5507ac_dC=' '
5508ac_dD=',;t'
5509# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5510ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5511ac_uB='$,\1#\2define\3'
c906108c 5512ac_uC=' '
b7026657
AC
5513ac_uD=',;t'
5514
5515for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 5516 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
5517 case $ac_file in
5518 - | *:- | *:-:* ) # input from stdin
5519 cat >$tmp/stdin
5520 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5521 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5522 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5524 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
5525 esac
5526
b7026657
AC
5527 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5528echo "$as_me: creating $ac_file" >&6;}
5529
5530 # First look for the input files in the build tree, otherwise in the
5531 # src tree.
5532 ac_file_inputs=`IFS=:
5533 for f in $ac_file_in; do
5534 case $f in
5535 -) echo $tmp/stdin ;;
5536 [\\/$]*)
5537 # Absolute (can't be DOS-style, as IFS=:)
5538 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5539echo "$as_me: error: cannot find input file: $f" >&2;}
5540 { (exit 1); exit 1; }; }
5541 # Do quote $f, to prevent DOS paths from being IFS'd.
5542 echo "$f";;
5543 *) # Relative
5544 if test -f "$f"; then
5545 # Build tree
5546 echo "$f"
5547 elif test -f "$srcdir/$f"; then
5548 # Source tree
5549 echo "$srcdir/$f"
5550 else
5551 # /dev/null tree
5552 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5553echo "$as_me: error: cannot find input file: $f" >&2;}
5554 { (exit 1); exit 1; }; }
5555 fi;;
5556 esac
5557 done` || { (exit 1); exit 1; }
5558 # Remove the trailing spaces.
5559 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5560
5561_ACEOF
5562
5563# Transform confdefs.h into two sed scripts, `conftest.defines' and
5564# `conftest.undefs', that substitutes the proper values into
5565# config.h.in to produce config.h. The first handles `#define'
5566# templates, and the second `#undef' templates.
5567# And first: Protect against being on the right side of a sed subst in
5568# config.status. Protect against being in an unquoted here document
5569# in config.status.
5570rm -f conftest.defines conftest.undefs
5571# Using a here document instead of a string reduces the quoting nightmare.
5572# Putting comments in sed scripts is not portable.
5573#
5574# `end' is used to avoid that the second main sed command (meant for
5575# 0-ary CPP macros) applies to n-ary macro definitions.
5576# See the Autoconf documentation for `clear'.
5577cat >confdef2sed.sed <<\_ACEOF
5578s/[\\&,]/\\&/g
5579s,[\\$`],\\&,g
5580t clear
5581: clear
5582s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5583t end
5584s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5585: end
5586_ACEOF
5587# If some macros were called several times there might be several times
5588# the same #defines, which is useless. Nevertheless, we may not want to
5589# sort them, since we want the *last* AC-DEFINE to be honored.
5590uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5591sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5592rm -f confdef2sed.sed
c906108c
SS
5593
5594# This sed command replaces #undef with comments. This is necessary, for
5595# example, in the case of _POSIX_SOURCE, which is predefined and required
5596# on some systems where configure will not decide to define it.
b7026657
AC
5597cat >>conftest.undefs <<\_ACEOF
5598s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5599_ACEOF
5600
5601# Break up conftest.defines because some shells have a limit on the size
5602# of here documents, and old seds have small limits too (100 cmds).
5603echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5604echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5605echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5606echo ' :' >>$CONFIG_STATUS
5607rm -f conftest.tail
5608while grep . conftest.defines >/dev/null
5609do
5610 # Write a limited-size here document to $tmp/defines.sed.
5611 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5612 # Speed up: don't consider the non `#define' lines.
5613 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5614 # Work around the forget-to-reset-the-flag bug.
5615 echo 't clr' >>$CONFIG_STATUS
5616 echo ': clr' >>$CONFIG_STATUS
5617 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5618 echo 'CEOF
5619 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5620 rm -f $tmp/in
5621 mv $tmp/out $tmp/in
5622' >>$CONFIG_STATUS
5623 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5624 rm -f conftest.defines
5625 mv conftest.tail conftest.defines
5626done
5627rm -f conftest.defines
5628echo ' fi # grep' >>$CONFIG_STATUS
5629echo >>$CONFIG_STATUS
c906108c 5630
b7026657
AC
5631# Break up conftest.undefs because some shells have a limit on the size
5632# of here documents, and old seds have small limits too (100 cmds).
5633echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 5634rm -f conftest.tail
b7026657 5635while grep . conftest.undefs >/dev/null
c906108c 5636do
b7026657
AC
5637 # Write a limited-size here document to $tmp/undefs.sed.
5638 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5639 # Speed up: don't consider the non `#undef'
5640 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5641 # Work around the forget-to-reset-the-flag bug.
5642 echo 't clr' >>$CONFIG_STATUS
5643 echo ': clr' >>$CONFIG_STATUS
5644 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 5645 echo 'CEOF
b7026657
AC
5646 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5647 rm -f $tmp/in
5648 mv $tmp/out $tmp/in
5649' >>$CONFIG_STATUS
5650 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5651 rm -f conftest.undefs
5652 mv conftest.tail conftest.undefs
c906108c 5653done
b7026657
AC
5654rm -f conftest.undefs
5655
5656cat >>$CONFIG_STATUS <<\_ACEOF
5657 # Let's still pretend it is `configure' which instantiates (i.e., don't
5658 # use $as_me), people would be surprised to read:
5659 # /* config.h. Generated by config.status. */
5660 if test x"$ac_file" = x-; then
5661 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 5662 else
b7026657 5663 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 5664 fi
b7026657
AC
5665 cat $tmp/in >>$tmp/config.h
5666 rm -f $tmp/in
5667 if test x"$ac_file" != x-; then
5668 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5669 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5670echo "$as_me: $ac_file is unchanged" >&6;}
5671 else
5672 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5673$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5674 X"$ac_file" : 'X\(//\)[^/]' \| \
5675 X"$ac_file" : 'X\(//\)$' \| \
5676 X"$ac_file" : 'X\(/\)' \| \
5677 . : '\(.\)' 2>/dev/null ||
5678echo X"$ac_file" |
5679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5681 /^X\(\/\/\)$/{ s//\1/; q; }
5682 /^X\(\/\).*/{ s//\1/; q; }
5683 s/.*/./; q'`
5684 { if $as_mkdir_p; then
5685 mkdir -p "$ac_dir"
5686 else
5687 as_dir="$ac_dir"
5688 as_dirs=
5689 while test ! -d "$as_dir"; do
5690 as_dirs="$as_dir $as_dirs"
5691 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5692$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5693 X"$as_dir" : 'X\(//\)[^/]' \| \
5694 X"$as_dir" : 'X\(//\)$' \| \
5695 X"$as_dir" : 'X\(/\)' \| \
5696 . : '\(.\)' 2>/dev/null ||
5697echo X"$as_dir" |
5698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5700 /^X\(\/\/\)$/{ s//\1/; q; }
5701 /^X\(\/\).*/{ s//\1/; q; }
5702 s/.*/./; q'`
5703 done
5704 test ! -n "$as_dirs" || mkdir $as_dirs
5705 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5706echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5707 { (exit 1); exit 1; }; }; }
c906108c 5708
b7026657
AC
5709 rm -f $ac_file
5710 mv $tmp/config.h $ac_file
5711 fi
5712 else
5713 cat $tmp/config.h
5714 rm -f $tmp/config.h
5715 fi
5716done
5717_ACEOF
5718cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 5719
b7026657
AC
5720#
5721# CONFIG_LINKS section.
5722#
c906108c 5723
b7026657
AC
5724for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
5725 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5726 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 5727
b7026657
AC
5728 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
5729echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
5730
5731 if test ! -r $srcdir/$ac_source; then
b7026657
AC
5732 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
5733echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
5734 { (exit 1); exit 1; }; }
c906108c
SS
5735 fi
5736 rm -f $ac_dest
5737
5738 # Make relative symlinks.
b7026657
AC
5739 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
5740$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5741 X"$ac_dest" : 'X\(//\)[^/]' \| \
5742 X"$ac_dest" : 'X\(//\)$' \| \
5743 X"$ac_dest" : 'X\(/\)' \| \
5744 . : '\(.\)' 2>/dev/null ||
5745echo X"$ac_dest" |
5746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5748 /^X\(\/\/\)$/{ s//\1/; q; }
5749 /^X\(\/\).*/{ s//\1/; q; }
5750 s/.*/./; q'`
5751 { if $as_mkdir_p; then
5752 mkdir -p "$ac_dest_dir"
c906108c 5753 else
b7026657
AC
5754 as_dir="$ac_dest_dir"
5755 as_dirs=
5756 while test ! -d "$as_dir"; do
5757 as_dirs="$as_dir $as_dirs"
5758 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5760 X"$as_dir" : 'X\(//\)[^/]' \| \
5761 X"$as_dir" : 'X\(//\)$' \| \
5762 X"$as_dir" : 'X\(/\)' \| \
5763 . : '\(.\)' 2>/dev/null ||
5764echo X"$as_dir" |
5765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5766 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5767 /^X\(\/\/\)$/{ s//\1/; q; }
5768 /^X\(\/\).*/{ s//\1/; q; }
5769 s/.*/./; q'`
5770 done
5771 test ! -n "$as_dirs" || mkdir $as_dirs
5772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
5773echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
5774 { (exit 1); exit 1; }; }; }
5775
5776 ac_builddir=.
5777
5778if test "$ac_dest_dir" != .; then
5779 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
5780 # A "../" for each directory in $ac_dir_suffix.
5781 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5782else
5783 ac_dir_suffix= ac_top_builddir=
5784fi
5785
5786case $srcdir in
5787 .) # No --srcdir option. We are building in place.
5788 ac_srcdir=.
5789 if test -z "$ac_top_builddir"; then
5790 ac_top_srcdir=.
5791 else
5792 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5793 fi ;;
5794 [\\/]* | ?:[\\/]* ) # Absolute path.
5795 ac_srcdir=$srcdir$ac_dir_suffix;
5796 ac_top_srcdir=$srcdir ;;
5797 *) # Relative path.
5798 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5799 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5800esac
5801
5802# Do not use `cd foo && pwd` to compute absolute paths, because
5803# the directories may not exist.
5804case `pwd` in
5805.) ac_abs_builddir="$ac_dest_dir";;
5806*)
5807 case "$ac_dest_dir" in
5808 .) ac_abs_builddir=`pwd`;;
5809 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
5810 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
5811 esac;;
5812esac
5813case $ac_abs_builddir in
5814.) ac_abs_top_builddir=${ac_top_builddir}.;;
5815*)
5816 case ${ac_top_builddir}. in
5817 .) ac_abs_top_builddir=$ac_abs_builddir;;
5818 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5819 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5820 esac;;
5821esac
5822case $ac_abs_builddir in
5823.) ac_abs_srcdir=$ac_srcdir;;
5824*)
5825 case $ac_srcdir in
5826 .) ac_abs_srcdir=$ac_abs_builddir;;
5827 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5828 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5829 esac;;
5830esac
5831case $ac_abs_builddir in
5832.) ac_abs_top_srcdir=$ac_top_srcdir;;
5833*)
5834 case $ac_top_srcdir in
5835 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5836 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5837 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5838 esac;;
5839esac
c906108c 5840
b7026657
AC
5841
5842 case $srcdir in
5843 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
5844 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
5845 esac
5846
b7026657
AC
5847 # Try a symlink, then a hard link, then a copy.
5848 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5849 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
5850 cp -p $srcdir/$ac_source $ac_dest ||
5851 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
5852echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
5853 { (exit 1); exit 1; }; }
c906108c 5854done
b7026657
AC
5855_ACEOF
5856cat >>$CONFIG_STATUS <<\_ACEOF
5857
5858#
5859# CONFIG_COMMANDS section.
5860#
5861for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5862 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5863 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5864 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5865$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5866 X"$ac_dest" : 'X\(//\)[^/]' \| \
5867 X"$ac_dest" : 'X\(//\)$' \| \
5868 X"$ac_dest" : 'X\(/\)' \| \
5869 . : '\(.\)' 2>/dev/null ||
5870echo X"$ac_dest" |
5871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5873 /^X\(\/\/\)$/{ s//\1/; q; }
5874 /^X\(\/\).*/{ s//\1/; q; }
5875 s/.*/./; q'`
5876 { if $as_mkdir_p; then
5877 mkdir -p "$ac_dir"
5878 else
5879 as_dir="$ac_dir"
5880 as_dirs=
5881 while test ! -d "$as_dir"; do
5882 as_dirs="$as_dir $as_dirs"
5883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5884$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5885 X"$as_dir" : 'X\(//\)[^/]' \| \
5886 X"$as_dir" : 'X\(//\)$' \| \
5887 X"$as_dir" : 'X\(/\)' \| \
5888 . : '\(.\)' 2>/dev/null ||
5889echo X"$as_dir" |
5890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5892 /^X\(\/\/\)$/{ s//\1/; q; }
5893 /^X\(\/\).*/{ s//\1/; q; }
5894 s/.*/./; q'`
5895 done
5896 test ! -n "$as_dirs" || mkdir $as_dirs
5897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5898echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5899 { (exit 1); exit 1; }; }; }
5900
5901 ac_builddir=.
5902
5903if test "$ac_dir" != .; then
5904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5905 # A "../" for each directory in $ac_dir_suffix.
5906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5907else
5908 ac_dir_suffix= ac_top_builddir=
5909fi
c906108c 5910
b7026657
AC
5911case $srcdir in
5912 .) # No --srcdir option. We are building in place.
5913 ac_srcdir=.
5914 if test -z "$ac_top_builddir"; then
5915 ac_top_srcdir=.
5916 else
5917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5918 fi ;;
5919 [\\/]* | ?:[\\/]* ) # Absolute path.
5920 ac_srcdir=$srcdir$ac_dir_suffix;
5921 ac_top_srcdir=$srcdir ;;
5922 *) # Relative path.
5923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5925esac
5926
5927# Do not use `cd foo && pwd` to compute absolute paths, because
5928# the directories may not exist.
5929case `pwd` in
5930.) ac_abs_builddir="$ac_dir";;
5931*)
5932 case "$ac_dir" in
5933 .) ac_abs_builddir=`pwd`;;
5934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5936 esac;;
5937esac
5938case $ac_abs_builddir in
5939.) ac_abs_top_builddir=${ac_top_builddir}.;;
5940*)
5941 case ${ac_top_builddir}. in
5942 .) ac_abs_top_builddir=$ac_abs_builddir;;
5943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5945 esac;;
5946esac
5947case $ac_abs_builddir in
5948.) ac_abs_srcdir=$ac_srcdir;;
5949*)
5950 case $ac_srcdir in
5951 .) ac_abs_srcdir=$ac_abs_builddir;;
5952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5954 esac;;
5955esac
5956case $ac_abs_builddir in
5957.) ac_abs_top_srcdir=$ac_top_srcdir;;
5958*)
5959 case $ac_top_srcdir in
5960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5963 esac;;
5964esac
5965
5966
5967 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5968echo "$as_me: executing $ac_dest commands" >&6;}
5969 case $ac_dest in
38f48d72
AC
5970 Makefile ) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
5971 rm -f Makesim1.tmp Makesim2.tmp Makefile
5972 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
5973 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
5974 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
5975 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
5976 <Makefile.sim >Makefile
38f48d72 5977 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 5978 ;;
38f48d72 5979 stamp-h ) echo > stamp-h ;;
b7026657
AC
5980 esac
5981done
5982_ACEOF
c906108c 5983
b7026657
AC
5984cat >>$CONFIG_STATUS <<\_ACEOF
5985
5986{ (exit 0); exit 0; }
5987_ACEOF
c906108c 5988chmod +x $CONFIG_STATUS
b7026657
AC
5989ac_clean_files=$ac_clean_files_save
5990
5991
5992# configure is writing to config.log, and then calls config.status.
5993# config.status does its own redirection, appending to config.log.
5994# Unfortunately, on DOS this fails, as config.log is still kept open
5995# by configure, so config.status won't be able to write to it; its
5996# output is simply discarded. So we exec the FD to /dev/null,
5997# effectively closing config.log, so it can be properly (re)opened and
5998# appended to by config.status. When coming back to configure, we
5999# need to make the FD available again.
6000if test "$no_create" != yes; then
6001 ac_cs_success=:
6002 ac_config_status_args=
6003 test "$silent" = yes &&
6004 ac_config_status_args="$ac_config_status_args --quiet"
6005 exec 5>/dev/null
6006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6007 exec 5>>config.log
6008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6009 # would make configure fail if this is the last instruction.
6010 $ac_cs_success || { (exit 1); exit 1; }
6011fi
c906108c
SS
6012
6013