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