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