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