Index: arm/ChangeLog
[deliverable/binutils-gdb.git] / sim / mips / 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
b7026657
AC
312ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile SIM_SUBTARGET sim_igen_flags sim_m16_flags sim_gen sim_multi_flags sim_multi_igen_configs sim_multi_src sim_multi_obj mips_extra_objs mips_igen_engine mips_extra_libs cgen_breaks LIBOBJS LTLIBOBJS'
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 ;;
e514a9d6 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
839X features:
840 --x-includes=DIR X include files are in DIR
841 --x-libraries=DIR X library files are in DIR
842
843System types:
844 --build=BUILD configure for building on BUILD [guessed]
845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 --target=TARGET configure for building compilers for TARGET [HOST]
847_ACEOF
c906108c 848fi
b7026657
AC
849
850if test -n "$ac_init_help"; then
851
852 cat <<\_ACEOF
853
854Optional Features:
855 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
856 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
857 --disable-nls do not use Native Language Support
858 --enable-maintainer-mode Enable developer functionality.
859 --enable-sim-bswap Use Host specific BSWAP instruction.
860 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
861 --enable-sim-debug=opts Enable debugging flags
862 --enable-sim-stdio Specify whether to use stdio for console input/output.
863 --enable-sim-trace=opts Enable tracing flags
864 --enable-sim-profile=opts Enable profiling flags
865 --enable-sim-inline=inlines Specify which functions should be inlined.
866 --enable-sim-alignment=align Specify strict, nonstrict or forced alignment of memory accesses.
867 --enable-sim-hostendian=end Specify host byte endian orientation.
868 --enable-build-warnings Enable build-time compiler warnings if gcc is used
869 --enable-gdb-build-warnings Enable SIM specific build-time compiler warnings if gcc is used
870 --enable-sim-reserved-bits Specify whether to check reserved bits in instruction.
871 --enable-sim-endian=endian Specify target byte endian orientation.
872 --enable-sim-bitsize=N Specify target bitsize (32 or 64).
873 --enable-sim-float Specify that the target processor has floating point hardware.
874 --enable-sim-smp=n Specify number of processors to configure for (default ${default_sim_smp}).
875 --enable-sim-hardware=LIST Specify the hardware to be included in the build.
876
877Optional Packages:
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-included-gettext use the GNU gettext library included here
881 --with-x use the X Window System
882
883Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
890 CPP C preprocessor
891
892Use these variables to override the choices made by `configure' or to help
893it to find libraries and programs with nonstandard names/locations.
894
895_ACEOF
c906108c
SS
896fi
897
b7026657
AC
898if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
900 ac_popdir=`pwd`
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
903 ac_builddir=.
c906108c 904
b7026657
AC
905if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 909else
b7026657 910 ac_dir_suffix= ac_top_builddir=
c906108c
SS
911fi
912
b7026657
AC
913case $srcdir in
914 .) # No --srcdir option. We are building in place.
915 ac_srcdir=.
916 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=.
918 else
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 fi ;;
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
924 *) # Relative path.
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927esac
928
929# Do not use `cd foo && pwd` to compute absolute paths, because
930# the directories may not exist.
931case `pwd` in
932.) ac_abs_builddir="$ac_dir";;
933*)
934 case "$ac_dir" in
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_top_builddir=${ac_top_builddir}.;;
942*)
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_srcdir=$ac_srcdir;;
951*)
952 case $ac_srcdir in
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
956 esac;;
957esac
958case $ac_abs_builddir in
959.) ac_abs_top_srcdir=$ac_top_srcdir;;
960*)
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
965 esac;;
966esac
967
968 cd $ac_dir
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
971 echo
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
974 echo
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
978 echo
979 $ac_configure --help
980 else
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982 fi
983 cd $ac_popdir
984 done
985fi
986
987test -n "$ac_init_help" && exit 0
988if $ac_init_version; then
989 cat <<\_ACEOF
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994_ACEOF
995 exit 0
996fi
997exec 5>config.log
998cat >&5 <<_ACEOF
999This file contains any messages produced by compilers while
1000running configure, to aid debugging if configure makes a mistake.
1001
1002It was created by $as_me, which was
1003generated by GNU Autoconf 2.59. Invocation command line was
1004
1005 $ $0 $@
1006
1007_ACEOF
1008{
1009cat <<_ASUNAME
1010## --------- ##
1011## Platform. ##
1012## --------- ##
1013
1014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019
1020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022
1023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030
1031_ASUNAME
1032
1033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034for as_dir in $PATH
1035do
1036 IFS=$as_save_IFS
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1039done
1040
1041} >&5
1042
1043cat >&5 <<_ACEOF
1044
1045
1046## ----------- ##
1047## Core tests. ##
1048## ----------- ##
1049
1050_ACEOF
1051
1052
1053# Keep a trace of the command line.
1054# Strip out --no-create and --no-recursion so they do not pile up.
1055# Strip out --silent because we don't want to record it for future runs.
1056# Also quote any args containing shell meta-characters.
1057# Make two passes to allow for proper duplicate-argument suppression.
1058ac_configure_args=
1059ac_configure_args0=
1060ac_configure_args1=
1061ac_sep=
1062ac_must_keep_next=false
1063for ac_pass in 1 2
1064do
1065 for ac_arg
1066 do
1067 case $ac_arg in
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 continue ;;
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1074 esac
1075 case $ac_pass in
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 2)
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1081 else
1082 case $ac_arg in
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1089 esac
1090 ;;
1091 -* ) ac_must_keep_next=true ;;
1092 esac
1093 fi
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1096 ac_sep=" "
1097 ;;
1098 esac
1099 done
1100done
1101$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103
1104# When interrupted or exit'd, cleanup temporary files, and complete
1105# config.log. We remove comments because anyway the quotes in there
1106# would cause problems or look ugly.
1107# WARNING: Be sure not to use single quotes in there, as some shells,
1108# such as our DU 5.0 friend, will then `close' the trap.
1109trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1111 {
1112 echo
1113
1114 cat <<\_ASBOX
1115## ---------------- ##
1116## Cache variables. ##
1117## ---------------- ##
1118_ASBOX
1119 echo
1120 # The following way of writing the cache mishandles newlines in values,
1121{
1122 (set) 2>&1 |
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1124 *ac_space=\ *)
1125 sed -n \
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1128 ;;
1129 *)
1130 sed -n \
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ;;
1133 esac;
1134}
1135 echo
1136
1137 cat <<\_ASBOX
1138## ----------------- ##
1139## Output variables. ##
1140## ----------------- ##
1141_ASBOX
1142 echo
1143 for ac_var in $ac_subst_vars
1144 do
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1147 done | sort
1148 echo
1149
1150 if test -n "$ac_subst_files"; then
1151 cat <<\_ASBOX
1152## ------------- ##
1153## Output files. ##
1154## ------------- ##
1155_ASBOX
1156 echo
1157 for ac_var in $ac_subst_files
1158 do
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1161 done | sort
1162 echo
1163 fi
1164
1165 if test -s confdefs.h; then
1166 cat <<\_ASBOX
1167## ----------- ##
1168## confdefs.h. ##
1169## ----------- ##
1170_ASBOX
1171 echo
1172 sed "/^$/d" confdefs.h | sort
1173 echo
1174 fi
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1178 } >&5
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1181 exit $exit_status
1182 ' 0
1183for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1185done
1186ac_signal=0
1187
1188# confdefs.h avoids OS command line length limits that DEFS can exceed.
1189rm -rf conftest* confdefs.h
1190# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1191echo >confdefs.h
1192
1193# Predefined preprocessor variables.
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_NAME "$PACKAGE_NAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_VERSION "$PACKAGE_VERSION"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_STRING "$PACKAGE_STRING"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1217_ACEOF
1218
1219
1220# Let the site file select an alternate cache file if it wants to.
1221# Prefer explicitly selected file to automatically selected ones.
1222if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 else
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1227 fi
1228fi
1229for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1234 . "$ac_site_file"
1235 fi
1236done
1237
1238if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243echo "$as_me: loading cache $cache_file" >&6;}
1244 case $cache_file in
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1247 esac
1248 fi
c906108c 1249else
b7026657
AC
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251echo "$as_me: creating cache $cache_file" >&6;}
1252 >$cache_file
1253fi
1254
1255# Check that the precious variables saved in the cache have kept the same
1256# value.
1257ac_cache_corrupted=false
1258for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1265 set,)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,set)
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1273 ,);;
1274 *)
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1283 fi;;
1284 esac
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1287 case $ac_new_val in
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1291 esac
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1295 esac
1296 fi
1297done
1298if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
c906108c 1304fi
b7026657
AC
1305
1306ac_ext=c
1307ac_cpp='$CPP $CPPFLAGS'
1308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331# Make sure we can run config.sub.
1332$ac_config_sub sun4 >/dev/null 2>&1 ||
1333 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1334echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1335 { (exit 1); exit 1; }; }
1336
1337echo "$as_me:$LINENO: checking build system type" >&5
1338echo $ECHO_N "checking build system type... $ECHO_C" >&6
1339if test "${ac_cv_build+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1341else
1342 ac_cv_build_alias=$build_alias
1343test -z "$ac_cv_build_alias" &&
1344 ac_cv_build_alias=`$ac_config_guess`
1345test -z "$ac_cv_build_alias" &&
1346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1347echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1348 { (exit 1); exit 1; }; }
1349ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1351echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354fi
1355echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1356echo "${ECHO_T}$ac_cv_build" >&6
1357build=$ac_cv_build
1358build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363echo "$as_me:$LINENO: checking host system type" >&5
1364echo $ECHO_N "checking host system type... $ECHO_C" >&6
1365if test "${ac_cv_host+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1367else
1368 ac_cv_host_alias=$host_alias
1369test -z "$ac_cv_host_alias" &&
1370 ac_cv_host_alias=$ac_cv_build_alias
1371ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1378echo "${ECHO_T}$ac_cv_host" >&6
1379host=$ac_cv_host
1380host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1386echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1387set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1388if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 cat >conftest.make <<\_ACEOF
1392all:
1393 @echo 'ac_maketemp="$(MAKE)"'
1394_ACEOF
1395# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1396eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1397if test -n "$ac_maketemp"; then
1398 eval ac_cv_prog_make_${ac_make}_set=yes
1399else
1400 eval ac_cv_prog_make_${ac_make}_set=no
1401fi
1402rm -f conftest.make
1403fi
1404if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1405 echo "$as_me:$LINENO: result: yes" >&5
1406echo "${ECHO_T}yes" >&6
1407 SET_MAKE=
1408else
1409 echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
1411 SET_MAKE="MAKE=${MAKE-make}"
1412fi
1413
1414
1415echo "$as_me:$LINENO: checking for library containing strerror" >&5
1416echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1417if test "${ac_cv_search_strerror+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419else
1420 ac_func_search_save_LIBS=$LIBS
1421ac_cv_search_strerror=no
1422cat >conftest.$ac_ext <<_ACEOF
1423/* confdefs.h. */
1424_ACEOF
1425cat confdefs.h >>conftest.$ac_ext
1426cat >>conftest.$ac_ext <<_ACEOF
1427/* end confdefs.h. */
1428
1429/* Override any gcc2 internal prototype to avoid an error. */
1430#ifdef __cplusplus
1431extern "C"
1432#endif
1433/* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435char strerror ();
1436int
1437main ()
1438{
1439strerror ();
1440 ;
1441 return 0;
1442}
1443_ACEOF
1444rm -f conftest.$ac_objext conftest$ac_exeext
1445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1446 (eval $ac_link) 2>conftest.er1
1447 ac_status=$?
1448 grep -v '^ *+' conftest.er1 >conftest.err
1449 rm -f conftest.er1
1450 cat conftest.err >&5
1451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1452 (exit $ac_status); } &&
1453 { ac_try='test -z "$ac_c_werror_flag"
1454 || test ! -s conftest.err'
1455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1456 (eval $ac_try) 2>&5
1457 ac_status=$?
1458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1459 (exit $ac_status); }; } &&
1460 { ac_try='test -s conftest$ac_exeext'
1461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1462 (eval $ac_try) 2>&5
1463 ac_status=$?
1464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1465 (exit $ac_status); }; }; then
1466 ac_cv_search_strerror="none required"
1467else
1468 echo "$as_me: failed program was:" >&5
1469sed 's/^/| /' conftest.$ac_ext >&5
1470
1471fi
1472rm -f conftest.err conftest.$ac_objext \
1473 conftest$ac_exeext conftest.$ac_ext
1474if test "$ac_cv_search_strerror" = no; then
1475 for ac_lib in cposix; do
1476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1477 cat >conftest.$ac_ext <<_ACEOF
1478/* confdefs.h. */
1479_ACEOF
1480cat confdefs.h >>conftest.$ac_ext
1481cat >>conftest.$ac_ext <<_ACEOF
1482/* end confdefs.h. */
1483
1484/* Override any gcc2 internal prototype to avoid an error. */
1485#ifdef __cplusplus
1486extern "C"
1487#endif
1488/* We use char because int might match the return type of a gcc2
1489 builtin and then its argument prototype would still apply. */
1490char strerror ();
1491int
1492main ()
1493{
1494strerror ();
1495 ;
1496 return 0;
1497}
1498_ACEOF
1499rm -f conftest.$ac_objext conftest$ac_exeext
1500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1501 (eval $ac_link) 2>conftest.er1
1502 ac_status=$?
1503 grep -v '^ *+' conftest.er1 >conftest.err
1504 rm -f conftest.er1
1505 cat conftest.err >&5
1506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1507 (exit $ac_status); } &&
1508 { ac_try='test -z "$ac_c_werror_flag"
1509 || test ! -s conftest.err'
1510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1511 (eval $ac_try) 2>&5
1512 ac_status=$?
1513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1514 (exit $ac_status); }; } &&
1515 { ac_try='test -s conftest$ac_exeext'
1516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1517 (eval $ac_try) 2>&5
1518 ac_status=$?
1519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520 (exit $ac_status); }; }; then
1521 ac_cv_search_strerror="-l$ac_lib"
1522break
1523else
1524 echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527fi
1528rm -f conftest.err conftest.$ac_objext \
1529 conftest$ac_exeext conftest.$ac_ext
1530 done
1531fi
1532LIBS=$ac_func_search_save_LIBS
1533fi
1534echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1535echo "${ECHO_T}$ac_cv_search_strerror" >&6
1536if test "$ac_cv_search_strerror" != no; then
1537 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1538
1539fi
1540
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1548# On Suns, sometimes $CPP names a directory.
1549if test -n "$CPP" && test -d "$CPP"; then
1550 CPP=
1551fi
1552if test -z "$CPP"; then
1553 if test "${ac_cv_prog_CPP+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 # Double quotes because CPP needs to be expanded
1557 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1558 do
1559 ac_preproc_ok=false
1560for ac_c_preproc_warn_flag in '' yes
1561do
1562 # Use a header file that comes with gcc, so configuring glibc
1563 # with a fresh cross-compiler works.
1564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1565 # <limits.h> exists even on freestanding compilers.
1566 # On the NeXT, cc -E runs the code through the compiler's parser,
1567 # not just through cpp. "Syntax error" is here to catch this case.
1568 cat >conftest.$ac_ext <<_ACEOF
1569/* confdefs.h. */
1570_ACEOF
1571cat confdefs.h >>conftest.$ac_ext
1572cat >>conftest.$ac_ext <<_ACEOF
1573/* end confdefs.h. */
1574#ifdef __STDC__
1575# include <limits.h>
1576#else
1577# include <assert.h>
1578#endif
1579 Syntax error
1580_ACEOF
1581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1583 ac_status=$?
1584 grep -v '^ *+' conftest.er1 >conftest.err
1585 rm -f conftest.er1
1586 cat conftest.err >&5
1587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1588 (exit $ac_status); } >/dev/null; then
1589 if test -s conftest.err; then
1590 ac_cpp_err=$ac_c_preproc_warn_flag
1591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1592 else
1593 ac_cpp_err=
1594 fi
1595else
1596 ac_cpp_err=yes
1597fi
1598if test -z "$ac_cpp_err"; then
1599 :
1600else
1601 echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 # Broken: fails on valid input.
1605continue
1606fi
1607rm -f conftest.err conftest.$ac_ext
1608
1609 # OK, works on sane cases. Now check whether non-existent headers
1610 # can be detected and how.
1611 cat >conftest.$ac_ext <<_ACEOF
1612/* confdefs.h. */
1613_ACEOF
1614cat confdefs.h >>conftest.$ac_ext
1615cat >>conftest.$ac_ext <<_ACEOF
1616/* end confdefs.h. */
1617#include <ac_nonexistent.h>
1618_ACEOF
1619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1621 ac_status=$?
1622 grep -v '^ *+' conftest.er1 >conftest.err
1623 rm -f conftest.er1
1624 cat conftest.err >&5
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); } >/dev/null; then
1627 if test -s conftest.err; then
1628 ac_cpp_err=$ac_c_preproc_warn_flag
1629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1630 else
1631 ac_cpp_err=
1632 fi
1633else
1634 ac_cpp_err=yes
1635fi
1636if test -z "$ac_cpp_err"; then
1637 # Broken: success on invalid input.
1638continue
1639else
1640 echo "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 # Passes both tests.
1644ac_preproc_ok=:
1645break
1646fi
1647rm -f conftest.err conftest.$ac_ext
1648
1649done
1650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1651rm -f conftest.err conftest.$ac_ext
1652if $ac_preproc_ok; then
1653 break
1654fi
1655
1656 done
1657 ac_cv_prog_CPP=$CPP
1658
1659fi
1660 CPP=$ac_cv_prog_CPP
1661else
1662 ac_cv_prog_CPP=$CPP
1663fi
1664echo "$as_me:$LINENO: result: $CPP" >&5
1665echo "${ECHO_T}$CPP" >&6
1666ac_preproc_ok=false
1667for ac_c_preproc_warn_flag in '' yes
1668do
1669 # Use a header file that comes with gcc, so configuring glibc
1670 # with a fresh cross-compiler works.
1671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1672 # <limits.h> exists even on freestanding compilers.
1673 # On the NeXT, cc -E runs the code through the compiler's parser,
1674 # not just through cpp. "Syntax error" is here to catch this case.
1675 cat >conftest.$ac_ext <<_ACEOF
1676/* confdefs.h. */
1677_ACEOF
1678cat confdefs.h >>conftest.$ac_ext
1679cat >>conftest.$ac_ext <<_ACEOF
1680/* end confdefs.h. */
1681#ifdef __STDC__
1682# include <limits.h>
1683#else
1684# include <assert.h>
1685#endif
1686 Syntax error
1687_ACEOF
1688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1690 ac_status=$?
1691 grep -v '^ *+' conftest.er1 >conftest.err
1692 rm -f conftest.er1
1693 cat conftest.err >&5
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); } >/dev/null; then
1696 if test -s conftest.err; then
1697 ac_cpp_err=$ac_c_preproc_warn_flag
1698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1699 else
1700 ac_cpp_err=
1701 fi
1702else
1703 ac_cpp_err=yes
1704fi
1705if test -z "$ac_cpp_err"; then
1706 :
1707else
1708 echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 # Broken: fails on valid input.
1712continue
1713fi
1714rm -f conftest.err conftest.$ac_ext
1715
1716 # OK, works on sane cases. Now check whether non-existent headers
1717 # can be detected and how.
1718 cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h. */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h. */
1724#include <ac_nonexistent.h>
1725_ACEOF
1726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1728 ac_status=$?
1729 grep -v '^ *+' conftest.er1 >conftest.err
1730 rm -f conftest.er1
1731 cat conftest.err >&5
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); } >/dev/null; then
1734 if test -s conftest.err; then
1735 ac_cpp_err=$ac_c_preproc_warn_flag
1736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1737 else
1738 ac_cpp_err=
1739 fi
1740else
1741 ac_cpp_err=yes
1742fi
1743if test -z "$ac_cpp_err"; then
1744 # Broken: success on invalid input.
1745continue
1746else
1747 echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 # Passes both tests.
1751ac_preproc_ok=:
1752break
1753fi
1754rm -f conftest.err conftest.$ac_ext
1755
1756done
1757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1758rm -f conftest.err conftest.$ac_ext
1759if $ac_preproc_ok; then
1760 :
1761else
1762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1763See \`config.log' for more details." >&5
1764echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1765See \`config.log' for more details." >&2;}
1766 { (exit 1); exit 1; }; }
1767fi
1768
1769ac_ext=c
1770ac_cpp='$CPP $CPPFLAGS'
1771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1773ac_compiler_gnu=$ac_cv_c_compiler_gnu
1774
1775
1776echo "$as_me:$LINENO: checking for egrep" >&5
1777echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1778if test "${ac_cv_prog_egrep+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1782 then ac_cv_prog_egrep='grep -E'
1783 else ac_cv_prog_egrep='egrep'
1784 fi
1785fi
1786echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1787echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1788 EGREP=$ac_cv_prog_egrep
1789
1790
1791echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1792echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1793if test "${ac_cv_header_stdc+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 cat >conftest.$ac_ext <<_ACEOF
1797/* confdefs.h. */
1798_ACEOF
1799cat confdefs.h >>conftest.$ac_ext
1800cat >>conftest.$ac_ext <<_ACEOF
1801/* end confdefs.h. */
1802#include <stdlib.h>
1803#include <stdarg.h>
1804#include <string.h>
1805#include <float.h>
1806
1807int
1808main ()
1809{
1810
1811 ;
1812 return 0;
1813}
1814_ACEOF
1815rm -f conftest.$ac_objext
1816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817 (eval $ac_compile) 2>conftest.er1
1818 ac_status=$?
1819 grep -v '^ *+' conftest.er1 >conftest.err
1820 rm -f conftest.er1
1821 cat conftest.err >&5
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); } &&
1824 { ac_try='test -z "$ac_c_werror_flag"
1825 || test ! -s conftest.err'
1826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827 (eval $ac_try) 2>&5
1828 ac_status=$?
1829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830 (exit $ac_status); }; } &&
1831 { ac_try='test -s conftest.$ac_objext'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 (eval $ac_try) 2>&5
1834 ac_status=$?
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; }; then
1837 ac_cv_header_stdc=yes
1838else
1839 echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842ac_cv_header_stdc=no
1843fi
1844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
1845
1846if test $ac_cv_header_stdc = yes; then
1847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
b7026657
AC
1848 cat >conftest.$ac_ext <<_ACEOF
1849/* confdefs.h. */
1850_ACEOF
1851cat confdefs.h >>conftest.$ac_ext
1852cat >>conftest.$ac_ext <<_ACEOF
1853/* end confdefs.h. */
c906108c 1854#include <string.h>
b7026657
AC
1855
1856_ACEOF
c906108c 1857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 1858 $EGREP "memchr" >/dev/null 2>&1; then
c906108c
SS
1859 :
1860else
c906108c
SS
1861 ac_cv_header_stdc=no
1862fi
1863rm -f conftest*
1864
1865fi
1866
1867if test $ac_cv_header_stdc = yes; then
1868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
b7026657
AC
1869 cat >conftest.$ac_ext <<_ACEOF
1870/* confdefs.h. */
1871_ACEOF
1872cat confdefs.h >>conftest.$ac_ext
1873cat >>conftest.$ac_ext <<_ACEOF
1874/* end confdefs.h. */
c906108c 1875#include <stdlib.h>
b7026657
AC
1876
1877_ACEOF
c906108c 1878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 1879 $EGREP "free" >/dev/null 2>&1; then
c906108c
SS
1880 :
1881else
c906108c
SS
1882 ac_cv_header_stdc=no
1883fi
1884rm -f conftest*
1885
1886fi
1887
1888if test $ac_cv_header_stdc = yes; then
1889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
b7026657 1890 if test "$cross_compiling" = yes; then
c906108c
SS
1891 :
1892else
b7026657
AC
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
c906108c 1899#include <ctype.h>
b7026657
AC
1900#if ((' ' & 0x0FF) == 0x020)
1901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1903#else
1904# define ISLOWER(c) \
1905 (('a' <= (c) && (c) <= 'i') \
1906 || ('j' <= (c) && (c) <= 'r') \
1907 || ('s' <= (c) && (c) <= 'z'))
1908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1909#endif
c906108c 1910
b7026657
AC
1911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1912int
1913main ()
1914{
1915 int i;
1916 for (i = 0; i < 256; i++)
1917 if (XOR (islower (i), ISLOWER (i))
1918 || toupper (i) != TOUPPER (i))
1919 exit(2);
1920 exit (0);
1921}
1922_ACEOF
1923rm -f conftest$ac_exeext
1924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
c906108c
SS
1934 :
1935else
b7026657
AC
1936 echo "$as_me: program exited with status $ac_status" >&5
1937echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940( exit $ac_status )
1941ac_cv_header_stdc=no
c906108c 1942fi
b7026657 1943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 1944fi
c906108c
SS
1945fi
1946fi
b7026657
AC
1947echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1948echo "${ECHO_T}$ac_cv_header_stdc" >&6
c906108c 1949if test $ac_cv_header_stdc = yes; then
b7026657
AC
1950
1951cat >>confdefs.h <<\_ACEOF
c906108c 1952#define STDC_HEADERS 1
b7026657
AC
1953_ACEOF
1954
1955fi
c906108c 1956
b7026657
AC
1957echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1958echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
1959if test "${ac_cv_c_const+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962 cat >conftest.$ac_ext <<_ACEOF
1963/* confdefs.h. */
1964_ACEOF
1965cat confdefs.h >>conftest.$ac_ext
1966cat >>conftest.$ac_ext <<_ACEOF
1967/* end confdefs.h. */
1968
1969int
1970main ()
1971{
1972/* FIXME: Include the comments suggested by Paul. */
1973#ifndef __cplusplus
1974 /* Ultrix mips cc rejects this. */
1975 typedef int charset[2];
1976 const charset x;
1977 /* SunOS 4.1.1 cc rejects this. */
1978 char const *const *ccp;
1979 char **p;
1980 /* NEC SVR4.0.2 mips cc rejects this. */
1981 struct point {int x, y;};
1982 static struct point const zero = {0,0};
1983 /* AIX XL C 1.02.0.0 rejects this.
1984 It does not let you subtract one const X* pointer from another in
1985 an arm of an if-expression whose if-part is not a constant
1986 expression */
1987 const char *g = "string";
1988 ccp = &g + (g ? g-g : 0);
1989 /* HPUX 7.0 cc rejects these. */
1990 ++ccp;
1991 p = (char**) ccp;
1992 ccp = (char const *const *) p;
1993 { /* SCO 3.2v4 cc rejects this. */
1994 char *t;
1995 char const *s = 0 ? (char *) 0 : (char const *) 0;
1996
1997 *t++ = 0;
1998 }
1999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2000 int x[] = {25, 17};
2001 const int *foo = &x[0];
2002 ++foo;
2003 }
2004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2005 typedef const int *iptr;
2006 iptr p = 0;
2007 ++p;
2008 }
2009 { /* AIX XL C 1.02.0.0 rejects this saying
2010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2011 struct s { int j; const int *ap[3]; };
2012 struct s *b; b->j = 5;
2013 }
2014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2015 const int foo = 10;
2016 }
2017#endif
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023rm -f conftest.$ac_objext
2024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
c906108c
SS
2045 ac_cv_c_const=yes
2046else
b7026657
AC
2047 echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050ac_cv_c_const=no
c906108c 2051fi
b7026657 2052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2053fi
b7026657
AC
2054echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2055echo "${ECHO_T}$ac_cv_c_const" >&6
c906108c 2056if test $ac_cv_c_const = no; then
b7026657
AC
2057
2058cat >>confdefs.h <<\_ACEOF
2059#define const
2060_ACEOF
c906108c
SS
2061
2062fi
2063
b7026657
AC
2064echo "$as_me:$LINENO: checking for inline" >&5
2065echo $ECHO_N "checking for inline... $ECHO_C" >&6
2066if test "${ac_cv_c_inline+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2068else
2069 ac_cv_c_inline=no
2070for ac_kw in inline __inline__ __inline; do
b7026657
AC
2071 cat >conftest.$ac_ext <<_ACEOF
2072/* confdefs.h. */
2073_ACEOF
2074cat confdefs.h >>conftest.$ac_ext
2075cat >>conftest.$ac_ext <<_ACEOF
2076/* end confdefs.h. */
2077#ifndef __cplusplus
2078typedef int foo_t;
2079static $ac_kw foo_t static_foo () {return 0; }
2080$ac_kw foo_t foo () {return 0; }
2081#endif
2082
2083_ACEOF
2084rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag"
2094 || test ! -s conftest.err'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 (eval $ac_try) 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
c906108c
SS
2106 ac_cv_c_inline=$ac_kw; break
2107else
b7026657
AC
2108 echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
c906108c 2111fi
b7026657 2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
2113done
2114
2115fi
b7026657
AC
2116echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2117echo "${ECHO_T}$ac_cv_c_inline" >&6
2118
c906108c 2119
b7026657 2120case $ac_cv_c_inline in
c906108c 2121 inline | yes) ;;
b7026657
AC
2122 *)
2123 case $ac_cv_c_inline in
2124 no) ac_val=;;
2125 *) ac_val=$ac_cv_c_inline;;
2126 esac
2127 cat >>confdefs.h <<_ACEOF
2128#ifndef __cplusplus
2129#define inline $ac_val
2130#endif
2131_ACEOF
2132 ;;
c906108c
SS
2133esac
2134
b7026657
AC
2135# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2146 inttypes.h stdint.h unistd.h
2147do
2148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2149echo "$as_me:$LINENO: checking for $ac_header" >&5
2150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2151if eval "test \"\${$as_ac_Header+set}\" = set"; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154 cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
2160$ac_includes_default
2161
2162#include <$ac_header>
2163_ACEOF
2164rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 eval "$as_ac_Header=yes"
2187else
2188 echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191eval "$as_ac_Header=no"
2192fi
2193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2197if test `eval echo '${'$as_ac_Header'}'` = yes; then
2198 cat >>confdefs.h <<_ACEOF
2199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2200_ACEOF
2201
2202fi
2203
2204done
2205
2206
2207echo "$as_me:$LINENO: checking for off_t" >&5
2208echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2209if test "${ac_cv_type_off_t+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2211else
b7026657
AC
2212 cat >conftest.$ac_ext <<_ACEOF
2213/* confdefs.h. */
2214_ACEOF
2215cat confdefs.h >>conftest.$ac_ext
2216cat >>conftest.$ac_ext <<_ACEOF
2217/* end confdefs.h. */
2218$ac_includes_default
2219int
2220main ()
2221{
2222if ((off_t *) 0)
2223 return 0;
2224if (sizeof (off_t))
2225 return 0;
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230rm -f conftest.$ac_objext
2231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2233 ac_status=$?
2234 grep -v '^ *+' conftest.er1 >conftest.err
2235 rm -f conftest.er1
2236 cat conftest.err >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try='test -z "$ac_c_werror_flag"
2240 || test ! -s conftest.err'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 (eval $ac_try) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
c906108c
SS
2252 ac_cv_type_off_t=yes
2253else
b7026657
AC
2254 echo "$as_me: failed program was:" >&5
2255sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2256
b7026657
AC
2257ac_cv_type_off_t=no
2258fi
2259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2260fi
b7026657
AC
2261echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
2262echo "${ECHO_T}$ac_cv_type_off_t" >&6
2263if test $ac_cv_type_off_t = yes; then
2264 :
2265else
2266
2267cat >>confdefs.h <<_ACEOF
c906108c 2268#define off_t long
b7026657 2269_ACEOF
c906108c
SS
2270
2271fi
2272
b7026657
AC
2273echo "$as_me:$LINENO: checking for size_t" >&5
2274echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2275if test "${ac_cv_type_size_t+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2277else
b7026657
AC
2278 cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h. */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h. */
2284$ac_includes_default
2285int
2286main ()
2287{
2288if ((size_t *) 0)
2289 return 0;
2290if (sizeof (size_t))
2291 return 0;
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
c906108c
SS
2318 ac_cv_type_size_t=yes
2319else
b7026657
AC
2320 echo "$as_me: failed program was:" >&5
2321sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2322
b7026657
AC
2323ac_cv_type_size_t=no
2324fi
2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2326fi
b7026657
AC
2327echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2328echo "${ECHO_T}$ac_cv_type_size_t" >&6
2329if test $ac_cv_type_size_t = yes; then
2330 :
2331else
2332
2333cat >>confdefs.h <<_ACEOF
c906108c 2334#define size_t unsigned
b7026657 2335_ACEOF
c906108c
SS
2336
2337fi
2338
2339# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2340# for constant arguments. Useless!
b7026657
AC
2341echo "$as_me:$LINENO: checking for working alloca.h" >&5
2342echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2343if test "${ac_cv_working_alloca_h+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346 cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h. */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h. */
c906108c 2352#include <alloca.h>
b7026657
AC
2353int
2354main ()
2355{
2356char *p = (char *) alloca (2 * sizeof (int));
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext conftest$ac_exeext
2362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2363 (eval $ac_link) 2>conftest.er1
2364 ac_status=$?
2365 grep -v '^ *+' conftest.er1 >conftest.err
2366 rm -f conftest.er1
2367 cat conftest.err >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -z "$ac_c_werror_flag"
2371 || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest$ac_exeext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_cv_working_alloca_h=yes
2384else
2385 echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388ac_cv_working_alloca_h=no
2389fi
2390rm -f conftest.err conftest.$ac_objext \
2391 conftest$ac_exeext conftest.$ac_ext
2392fi
2393echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2394echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2395if test $ac_cv_working_alloca_h = yes; then
2396
2397cat >>confdefs.h <<\_ACEOF
c906108c 2398#define HAVE_ALLOCA_H 1
b7026657 2399_ACEOF
c906108c
SS
2400
2401fi
2402
b7026657
AC
2403echo "$as_me:$LINENO: checking for alloca" >&5
2404echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2405if test "${ac_cv_func_alloca_works+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2407else
b7026657
AC
2408 cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h. */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h. */
c906108c
SS
2414#ifdef __GNUC__
2415# define alloca __builtin_alloca
2416#else
2417# ifdef _MSC_VER
2418# include <malloc.h>
2419# define alloca _alloca
2420# else
2421# if HAVE_ALLOCA_H
2422# include <alloca.h>
2423# else
2424# ifdef _AIX
2425 #pragma alloca
2426# else
2427# ifndef alloca /* predefined by HP cc +Olibcalls */
2428char *alloca ();
2429# endif
2430# endif
2431# endif
2432# endif
2433#endif
2434
b7026657
AC
2435int
2436main ()
2437{
2438char *p = (char *) alloca (1);
2439 ;
2440 return 0;
2441}
2442_ACEOF
2443rm -f conftest.$ac_objext conftest$ac_exeext
2444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445 (eval $ac_link) 2>conftest.er1
2446 ac_status=$?
2447 grep -v '^ *+' conftest.er1 >conftest.err
2448 rm -f conftest.er1
2449 cat conftest.err >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); } &&
2452 { ac_try='test -z "$ac_c_werror_flag"
2453 || test ! -s conftest.err'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; } &&
2459 { ac_try='test -s conftest$ac_exeext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
c906108c
SS
2465 ac_cv_func_alloca_works=yes
2466else
b7026657
AC
2467 echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470ac_cv_func_alloca_works=no
c906108c 2471fi
b7026657
AC
2472rm -f conftest.err conftest.$ac_objext \
2473 conftest$ac_exeext conftest.$ac_ext
c906108c 2474fi
b7026657
AC
2475echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2476echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
c906108c 2477
c906108c 2478if test $ac_cv_func_alloca_works = yes; then
c906108c 2479
b7026657
AC
2480cat >>confdefs.h <<\_ACEOF
2481#define HAVE_ALLOCA 1
2482_ACEOF
c906108c 2483
b7026657 2484else
c906108c 2485 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
b7026657
AC
2486# that cause trouble. Some versions do not even contain alloca or
2487# contain a buggy version. If you still want to use their alloca,
2488# use ar to extract alloca.o from them instead of compiling alloca.c.
2489
2490ALLOCA=alloca.$ac_objext
2491
2492cat >>confdefs.h <<\_ACEOF
c906108c 2493#define C_ALLOCA 1
b7026657 2494_ACEOF
c906108c
SS
2495
2496
b7026657
AC
2497echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2498echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2499if test "${ac_cv_os_cray+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2501else
b7026657
AC
2502 cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
c906108c
SS
2508#if defined(CRAY) && ! defined(CRAY2)
2509webecray
2510#else
2511wenotbecray
2512#endif
2513
b7026657 2514_ACEOF
c906108c 2515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
b7026657 2516 $EGREP "webecray" >/dev/null 2>&1; then
c906108c
SS
2517 ac_cv_os_cray=yes
2518else
c906108c
SS
2519 ac_cv_os_cray=no
2520fi
2521rm -f conftest*
2522
2523fi
b7026657
AC
2524echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2525echo "${ECHO_T}$ac_cv_os_cray" >&6
c906108c 2526if test $ac_cv_os_cray = yes; then
b7026657
AC
2527 for ac_func in _getb67 GETB67 getb67; do
2528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2529echo "$as_me:$LINENO: checking for $ac_func" >&5
2530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2531if eval "test \"\${$as_ac_var+set}\" = set"; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
2540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2542#define $ac_func innocuous_$ac_func
2543
c906108c 2544/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
2545 which can conflict with char $ac_func (); below.
2546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2547 <limits.h> exists even on freestanding compilers. */
c906108c 2548
b7026657
AC
2549#ifdef __STDC__
2550# include <limits.h>
2551#else
2552# include <assert.h>
2553#endif
c906108c 2554
b7026657
AC
2555#undef $ac_func
2556
2557/* Override any gcc2 internal prototype to avoid an error. */
2558#ifdef __cplusplus
2559extern "C"
2560{
2561#endif
2562/* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2564char $ac_func ();
c906108c
SS
2565/* The GNU C library defines this for functions which it implements
2566 to always fail with ENOSYS. Some functions are actually named
2567 something starting with __ and the normal name is an alias. */
2568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2569choke me
2570#else
b7026657
AC
2571char (*f) () = $ac_func;
2572#endif
2573#ifdef __cplusplus
2574}
c906108c
SS
2575#endif
2576
b7026657
AC
2577int
2578main ()
2579{
2580return f != $ac_func;
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext conftest$ac_exeext
2586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2587 (eval $ac_link) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_c_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest$ac_exeext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 (eval $ac_try) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2607 eval "$as_ac_var=yes"
2608else
2609 echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612eval "$as_ac_var=no"
2613fi
2614rm -f conftest.err conftest.$ac_objext \
2615 conftest$ac_exeext conftest.$ac_ext
2616fi
2617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2619if test `eval echo '${'$as_ac_var'}'` = yes; then
2620
2621cat >>confdefs.h <<_ACEOF
c906108c 2622#define CRAY_STACKSEG_END $ac_func
b7026657 2623_ACEOF
c906108c 2624
b7026657 2625 break
c906108c
SS
2626fi
2627
b7026657 2628 done
c906108c
SS
2629fi
2630
b7026657
AC
2631echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2632echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2633if test "${ac_cv_c_stack_direction+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2635else
2636 if test "$cross_compiling" = yes; then
2637 ac_cv_c_stack_direction=0
2638else
b7026657
AC
2639 cat >conftest.$ac_ext <<_ACEOF
2640/* confdefs.h. */
2641_ACEOF
2642cat confdefs.h >>conftest.$ac_ext
2643cat >>conftest.$ac_ext <<_ACEOF
2644/* end confdefs.h. */
2645int
c906108c
SS
2646find_stack_direction ()
2647{
2648 static char *addr = 0;
2649 auto char dummy;
2650 if (addr == 0)
2651 {
2652 addr = &dummy;
2653 return find_stack_direction ();
2654 }
2655 else
2656 return (&dummy > addr) ? 1 : -1;
2657}
b7026657
AC
2658
2659int
c906108c
SS
2660main ()
2661{
b7026657 2662 exit (find_stack_direction () < 0);
c906108c 2663}
b7026657
AC
2664_ACEOF
2665rm -f conftest$ac_exeext
2666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
c906108c
SS
2676 ac_cv_c_stack_direction=1
2677else
b7026657
AC
2678 echo "$as_me: program exited with status $ac_status" >&5
2679echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682( exit $ac_status )
2683ac_cv_c_stack_direction=-1
c906108c 2684fi
b7026657 2685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 2686fi
c906108c 2687fi
b7026657
AC
2688echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2689echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
c906108c 2690
b7026657 2691cat >>confdefs.h <<_ACEOF
c906108c 2692#define STACK_DIRECTION $ac_cv_c_stack_direction
b7026657
AC
2693_ACEOF
2694
c906108c
SS
2695
2696fi
2697
b7026657
AC
2698
2699
2700for ac_header in stdlib.h unistd.h
c906108c 2701do
b7026657
AC
2702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2703if eval "test \"\${$as_ac_Header+set}\" = set"; then
2704 echo "$as_me:$LINENO: checking for $ac_header" >&5
2705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2706if eval "test \"\${$as_ac_Header+set}\" = set"; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708fi
2709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2711else
2712 # Is the header compilable?
2713echo "$as_me:$LINENO: checking $ac_header usability" >&5
2714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2715cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h. */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h. */
2721$ac_includes_default
2722#include <$ac_header>
2723_ACEOF
2724rm -f conftest.$ac_objext
2725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2727 ac_status=$?
2728 grep -v '^ *+' conftest.er1 >conftest.err
2729 rm -f conftest.er1
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_c_werror_flag"
2734 || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 (eval $ac_try) 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 (eval $ac_try) 2>&5
2743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2746 ac_header_compiler=yes
2747else
2748 echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751ac_header_compiler=no
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2755echo "${ECHO_T}$ac_header_compiler" >&6
2756
2757# Is the header present?
2758echo "$as_me:$LINENO: checking $ac_header presence" >&5
2759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2760cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766#include <$ac_header>
2767_ACEOF
2768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } >/dev/null; then
2776 if test -s conftest.err; then
2777 ac_cpp_err=$ac_c_preproc_warn_flag
2778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2779 else
2780 ac_cpp_err=
2781 fi
2782else
2783 ac_cpp_err=yes
c906108c 2784fi
b7026657
AC
2785if test -z "$ac_cpp_err"; then
2786 ac_header_preproc=yes
2787else
2788 echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 ac_header_preproc=no
c906108c 2792fi
b7026657
AC
2793rm -f conftest.err conftest.$ac_ext
2794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2795echo "${ECHO_T}$ac_header_preproc" >&6
2796
2797# So? What about this header?
2798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2799 yes:no: )
2800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2804 ac_header_preproc=yes
2805 ;;
2806 no:yes:* )
2807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2819 (
2820 cat <<\_ASBOX
2821## ------------------------------------------ ##
2822## Report this to the AC_PACKAGE_NAME lists. ##
2823## ------------------------------------------ ##
2824_ASBOX
2825 ) |
2826 sed "s/^/$as_me: WARNING: /" >&2
2827 ;;
2828esac
2829echo "$as_me:$LINENO: checking for $ac_header" >&5
2830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2831if eval "test \"\${$as_ac_Header+set}\" = set"; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2833else
b7026657 2834 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 2835fi
b7026657
AC
2836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2838
2839fi
2840if test `eval echo '${'$as_ac_Header'}'` = yes; then
2841 cat >>confdefs.h <<_ACEOF
2842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2843_ACEOF
2844
2845fi
2846
c906108c
SS
2847done
2848
b7026657 2849
c906108c
SS
2850for ac_func in getpagesize
2851do
b7026657
AC
2852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2853echo "$as_me:$LINENO: checking for $ac_func" >&5
2854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2855if eval "test \"\${$as_ac_var+set}\" = set"; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 cat >conftest.$ac_ext <<_ACEOF
2859/* confdefs.h. */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h. */
2864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2866#define $ac_func innocuous_$ac_func
2867
c906108c 2868/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
2869 which can conflict with char $ac_func (); below.
2870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 <limits.h> exists even on freestanding compilers. */
2872
2873#ifdef __STDC__
2874# include <limits.h>
2875#else
2876# include <assert.h>
2877#endif
c906108c 2878
b7026657 2879#undef $ac_func
c906108c 2880
b7026657
AC
2881/* Override any gcc2 internal prototype to avoid an error. */
2882#ifdef __cplusplus
2883extern "C"
2884{
2885#endif
2886/* We use char because int might match the return type of a gcc2
2887 builtin and then its argument prototype would still apply. */
2888char $ac_func ();
c906108c
SS
2889/* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2893choke me
2894#else
b7026657
AC
2895char (*f) () = $ac_func;
2896#endif
2897#ifdef __cplusplus
2898}
c906108c
SS
2899#endif
2900
b7026657
AC
2901int
2902main ()
2903{
2904return f != $ac_func;
2905 ;
2906 return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911 (eval $ac_link) 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } &&
2918 { ac_try='test -z "$ac_c_werror_flag"
2919 || test ! -s conftest.err'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; } &&
2925 { ac_try='test -s conftest$ac_exeext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927 (eval $ac_try) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 eval "$as_ac_var=yes"
2932else
2933 echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936eval "$as_ac_var=no"
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939 conftest$ac_exeext conftest.$ac_ext
2940fi
2941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2943if test `eval echo '${'$as_ac_var'}'` = yes; then
2944 cat >>confdefs.h <<_ACEOF
2945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2946_ACEOF
c906108c 2947
c906108c
SS
2948fi
2949done
2950
b7026657
AC
2951echo "$as_me:$LINENO: checking for working mmap" >&5
2952echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
2953if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
2955else
2956 if test "$cross_compiling" = yes; then
2957 ac_cv_func_mmap_fixed_mapped=no
2958else
b7026657
AC
2959 cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h. */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h. */
2965$ac_includes_default
2966/* malloc might have been renamed as rpl_malloc. */
2967#undef malloc
c906108c
SS
2968
2969/* Thanks to Mike Haertel and Jim Avera for this test.
2970 Here is a matrix of mmap possibilities:
2971 mmap private not fixed
2972 mmap private fixed at somewhere currently unmapped
2973 mmap private fixed at somewhere already mapped
2974 mmap shared not fixed
2975 mmap shared fixed at somewhere currently unmapped
2976 mmap shared fixed at somewhere already mapped
2977 For private mappings, we should verify that changes cannot be read()
2978 back from the file, nor mmap's back from the file at a different
2979 address. (There have been systems where private was not correctly
2980 implemented like the infamous i386 svr4.0, and systems where the
b7026657 2981 VM page cache was not coherent with the file system buffer cache
c906108c
SS
2982 like early versions of FreeBSD and possibly contemporary NetBSD.)
2983 For shared mappings, we should conversely verify that changes get
b7026657 2984 propagated back to all the places they're supposed to be.
c906108c
SS
2985
2986 Grep wants private fixed already mapped.
2987 The main things grep needs to know about mmap are:
2988 * does it exist and is it safe to write into the mmap'd area
2989 * how to use it (BSD variants) */
b7026657 2990
c906108c
SS
2991#include <fcntl.h>
2992#include <sys/mman.h>
2993
b7026657
AC
2994#if !STDC_HEADERS && !HAVE_STDLIB_H
2995char *malloc ();
2996#endif
c906108c 2997
b7026657
AC
2998/* This mess was copied from the GNU getpagesize.h. */
2999#if !HAVE_GETPAGESIZE
c906108c 3000/* Assume that all systems that can run configure have sys/param.h. */
b7026657 3001# if !HAVE_SYS_PARAM_H
c906108c
SS
3002# define HAVE_SYS_PARAM_H 1
3003# endif
3004
3005# ifdef _SC_PAGESIZE
3006# define getpagesize() sysconf(_SC_PAGESIZE)
3007# else /* no _SC_PAGESIZE */
b7026657 3008# if HAVE_SYS_PARAM_H
c906108c
SS
3009# include <sys/param.h>
3010# ifdef EXEC_PAGESIZE
3011# define getpagesize() EXEC_PAGESIZE
3012# else /* no EXEC_PAGESIZE */
3013# ifdef NBPG
3014# define getpagesize() NBPG * CLSIZE
3015# ifndef CLSIZE
3016# define CLSIZE 1
3017# endif /* no CLSIZE */
3018# else /* no NBPG */
3019# ifdef NBPC
3020# define getpagesize() NBPC
3021# else /* no NBPC */
3022# ifdef PAGESIZE
3023# define getpagesize() PAGESIZE
3024# endif /* PAGESIZE */
3025# endif /* no NBPC */
3026# endif /* no NBPG */
3027# endif /* no EXEC_PAGESIZE */
3028# else /* no HAVE_SYS_PARAM_H */
3029# define getpagesize() 8192 /* punt totally */
3030# endif /* no HAVE_SYS_PARAM_H */
3031# endif /* no _SC_PAGESIZE */
3032
3033#endif /* no HAVE_GETPAGESIZE */
3034
c906108c 3035int
b7026657 3036main ()
c906108c 3037{
b7026657
AC
3038 char *data, *data2, *data3;
3039 int i, pagesize;
3040 int fd;
3041
3042 pagesize = getpagesize ();
3043
3044 /* First, make a file with some known garbage in it. */
3045 data = (char *) malloc (pagesize);
3046 if (!data)
3047 exit (1);
3048 for (i = 0; i < pagesize; ++i)
3049 *(data + i) = rand ();
3050 umask (0);
3051 fd = creat ("conftest.mmap", 0600);
3052 if (fd < 0)
3053 exit (1);
3054 if (write (fd, data, pagesize) != pagesize)
3055 exit (1);
3056 close (fd);
3057
3058 /* Next, try to mmap the file at a fixed address which already has
3059 something else allocated at it. If we can, also make sure that
3060 we see the same garbage. */
3061 fd = open ("conftest.mmap", O_RDWR);
3062 if (fd < 0)
3063 exit (1);
3064 data2 = (char *) malloc (2 * pagesize);
3065 if (!data2)
3066 exit (1);
3067 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3068 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3069 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3070 exit (1);
3071 for (i = 0; i < pagesize; ++i)
3072 if (*(data + i) != *(data2 + i))
3073 exit (1);
3074
3075 /* Finally, make sure that changes to the mapped area do not
3076 percolate back to the file as seen by read(). (This is a bug on
3077 some variants of i386 svr4.0.) */
3078 for (i = 0; i < pagesize; ++i)
3079 *(data2 + i) = *(data2 + i) + 1;
3080 data3 = (char *) malloc (pagesize);
3081 if (!data3)
3082 exit (1);
3083 if (read (fd, data3, pagesize) != pagesize)
3084 exit (1);
3085 for (i = 0; i < pagesize; ++i)
3086 if (*(data + i) != *(data3 + i))
3087 exit (1);
3088 close (fd);
3089 exit (0);
c906108c 3090}
b7026657
AC
3091_ACEOF
3092rm -f conftest$ac_exeext
3093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
c906108c
SS
3103 ac_cv_func_mmap_fixed_mapped=yes
3104else
b7026657
AC
3105 echo "$as_me: program exited with status $ac_status" >&5
3106echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3108
b7026657
AC
3109( exit $ac_status )
3110ac_cv_func_mmap_fixed_mapped=no
c906108c 3111fi
b7026657 3112rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
cd0fc7c3 3113fi
cd0fc7c3 3114fi
b7026657
AC
3115echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3116echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3117if test $ac_cv_func_mmap_fixed_mapped = yes; then
cd0fc7c3 3118
b7026657
AC
3119cat >>confdefs.h <<\_ACEOF
3120#define HAVE_MMAP 1
3121_ACEOF
cd0fc7c3 3122
cd0fc7c3 3123fi
b7026657 3124rm -f conftest.mmap
cd0fc7c3 3125
c906108c
SS
3126
3127# autoconf.info says this should be called right after AC_INIT.
b7026657 3128 ac_config_headers="$ac_config_headers config.h:config.in"
c906108c
SS
3129
3130
3131ac_aux_dir=
3132for ac_dir in `cd $srcdir;pwd`/../.. $srcdir/`cd $srcdir;pwd`/../..; do
3133 if test -f $ac_dir/install-sh; then
3134 ac_aux_dir=$ac_dir
3135 ac_install_sh="$ac_aux_dir/install-sh -c"
3136 break
3137 elif test -f $ac_dir/install.sh; then
3138 ac_aux_dir=$ac_dir
3139 ac_install_sh="$ac_aux_dir/install.sh -c"
3140 break
b7026657
AC
3141 elif test -f $ac_dir/shtool; then
3142 ac_aux_dir=$ac_dir
3143 ac_install_sh="$ac_aux_dir/shtool install -c"
3144 break
c906108c
SS
3145 fi
3146done
3147if test -z "$ac_aux_dir"; then
b7026657
AC
3148 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&5
3149echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../.. $srcdir/\`cd $srcdir;pwd\`/../.." >&2;}
3150 { (exit 1); exit 1; }; }
c906108c 3151fi
b7026657
AC
3152ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3153ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3154ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 3155
b7026657
AC
3156echo "$as_me:$LINENO: checking target system type" >&5
3157echo $ECHO_N "checking target system type... $ECHO_C" >&6
3158if test "${ac_cv_target+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161 ac_cv_target_alias=$target_alias
3162test "x$ac_cv_target_alias" = "x" &&
3163 ac_cv_target_alias=$ac_cv_host_alias
3164ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3165 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3166echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3167 { (exit 1); exit 1; }; }
c906108c 3168
c906108c 3169fi
b7026657
AC
3170echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3171echo "${ECHO_T}$ac_cv_target" >&6
3172target=$ac_cv_target
3173target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3174target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3175target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 3176
c906108c 3177
b7026657
AC
3178# The aliases save the names the user supplied, while $host etc.
3179# will get canonicalized.
3180test -n "$target_alias" &&
c906108c
SS
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
c906108c 3184test "$program_prefix" != NONE &&
b7026657 3185 program_transform_name="s,^,$program_prefix,;$program_transform_name"
c906108c
SS
3186# Use a double $ so make ignores it.
3187test "$program_suffix" != NONE &&
b7026657
AC
3188 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3189# Double any \ or $. echo might interpret backslashes.
3190# By default was `s,x,x', remove it if useless.
3191cat <<\_ACEOF >conftest.sed
3192s/[\\$]/&&/g;s/;s,x,x,$//
3193_ACEOF
3194program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3195rm conftest.sed
c906108c 3196
b7026657
AC
3197ac_ext=c
3198ac_cpp='$CPP $CPPFLAGS'
3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3204set dummy ${ac_tool_prefix}gcc; ac_word=$2
3205echo "$as_me:$LINENO: checking for $ac_word" >&5
3206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207if test "${ac_cv_prog_CC+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224done
3225done
3226
3227fi
3228fi
3229CC=$ac_cv_prog_CC
3230if test -n "$CC"; then
3231 echo "$as_me:$LINENO: result: $CC" >&5
3232echo "${ECHO_T}$CC" >&6
3233else
3234 echo "$as_me:$LINENO: result: no" >&5
3235echo "${ECHO_T}no" >&6
3236fi
c906108c 3237
b7026657
AC
3238fi
3239if test -z "$ac_cv_prog_CC"; then
3240 ac_ct_CC=$CC
3241 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 3242set dummy gcc; ac_word=$2
b7026657
AC
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC="gcc"
3259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263done
3264
3265fi
3266fi
3267ac_ct_CC=$ac_cv_prog_ac_ct_CC
3268if test -n "$ac_ct_CC"; then
3269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270echo "${ECHO_T}$ac_ct_CC" >&6
3271else
3272 echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274fi
3275
3276 CC=$ac_ct_CC
3277else
3278 CC="$ac_cv_prog_CC"
3279fi
3280
3281if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284set dummy ${ac_tool_prefix}cc; ac_word=$2
3285echo "$as_me:$LINENO: checking for $ac_word" >&5
3286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3289else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292else
b7026657
AC
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304done
3305done
3306
c906108c
SS
3307fi
3308fi
b7026657 3309CC=$ac_cv_prog_CC
c906108c 3310if test -n "$CC"; then
b7026657
AC
3311 echo "$as_me:$LINENO: result: $CC" >&5
3312echo "${ECHO_T}$CC" >&6
3313else
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316fi
3317
3318fi
3319if test -z "$ac_cv_prog_CC"; then
3320 ac_ct_CC=$CC
3321 # Extract the first word of "cc", so it can be a program name with args.
3322set dummy cc; ac_word=$2
3323echo "$as_me:$LINENO: checking for $ac_word" >&5
3324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3325if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327else
3328 if test -n "$ac_ct_CC"; then
3329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_ac_ct_CC="cc"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3341 fi
3342done
3343done
3344
3345fi
3346fi
3347ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348if test -n "$ac_ct_CC"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350echo "${ECHO_T}$ac_ct_CC" >&6
3351else
3352 echo "$as_me:$LINENO: result: no" >&5
3353echo "${ECHO_T}no" >&6
3354fi
3355
3356 CC=$ac_ct_CC
c906108c 3357else
b7026657 3358 CC="$ac_cv_prog_CC"
c906108c
SS
3359fi
3360
b7026657 3361fi
c906108c
SS
3362if test -z "$CC"; then
3363 # Extract the first word of "cc", so it can be a program name with args.
3364set dummy cc; ac_word=$2
b7026657
AC
3365echo "$as_me:$LINENO: checking for $ac_word" >&5
3366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367if test "${ac_cv_prog_CC+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3369else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372else
c906108c 3373 ac_prog_rejected=no
b7026657
AC
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3382 ac_prog_rejected=yes
3383 continue
3384 fi
3385 ac_cv_prog_CC="cc"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389done
3390done
3391
c906108c
SS
3392if test $ac_prog_rejected = yes; then
3393 # We found a bogon in the path, so make sure we never use it.
3394 set dummy $ac_cv_prog_CC
3395 shift
b7026657 3396 if test $# != 0; then
c906108c
SS
3397 # We chose a different compiler from the bogus one.
3398 # However, it has the same basename, so the bogon will be chosen
3399 # first if we set CC to just the basename; use the full file name.
3400 shift
b7026657 3401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
3402 fi
3403fi
3404fi
3405fi
b7026657 3406CC=$ac_cv_prog_CC
c906108c 3407if test -n "$CC"; then
b7026657
AC
3408 echo "$as_me:$LINENO: result: $CC" >&5
3409echo "${ECHO_T}$CC" >&6
c906108c 3410else
b7026657
AC
3411 echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
c906108c
SS
3413fi
3414
b7026657
AC
3415fi
3416if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog in cl
3419 do
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422echo "$as_me:$LINENO: checking for $ac_word" >&5
3423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
3426else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
b7026657
AC
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441done
3442done
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448 echo "$as_me:$LINENO: result: $CC" >&5
3449echo "${ECHO_T}$CC" >&6
3450else
3451 echo "$as_me:$LINENO: result: no" >&5
3452echo "${ECHO_T}no" >&6
3453fi
3454
3455 test -n "$CC" && break
3456 done
3457fi
3458if test -z "$CC"; then
3459 ac_ct_CC=$CC
3460 for ac_prog in cl
3461do
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463set dummy $ac_prog; ac_word=$2
3464echo "$as_me:$LINENO: checking for $ac_word" >&5
3465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471else
3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473for as_dir in $PATH
3474do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483done
3484done
3485
3486fi
3487fi
3488ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489if test -n "$ac_ct_CC"; then
3490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3491echo "${ECHO_T}$ac_ct_CC" >&6
3492else
3493 echo "$as_me:$LINENO: result: no" >&5
3494echo "${ECHO_T}no" >&6
3495fi
3496
3497 test -n "$ac_ct_CC" && break
3498done
3499
3500 CC=$ac_ct_CC
3501fi
3502
3503fi
3504
3505
3506test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3507See \`config.log' for more details." >&5
3508echo "$as_me: error: no acceptable C compiler found in \$PATH
3509See \`config.log' for more details." >&2;}
3510 { (exit 1); exit 1; }; }
3511
3512# Provide some information about the compiler.
3513echo "$as_me:$LINENO:" \
3514 "checking for C compiler version" >&5
3515ac_compiler=`set X $ac_compile; echo $2`
3516{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3517 (eval $ac_compiler --version </dev/null >&5) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }
3521{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3522 (eval $ac_compiler -v </dev/null >&5) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3527 (eval $ac_compiler -V </dev/null >&5) 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }
3531
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
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
3547ac_clean_files_save=$ac_clean_files
3548ac_clean_files="$ac_clean_files a.out a.exe b.out"
3549# Try to create an executable without -o first, disregard a.out.
3550# It will help us diagnose broken compilers, and finding out an intuition
3551# of exeext.
3552echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3553echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3554ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3556 (eval $ac_link_default) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; then
3560 # Find the output, starting from the most likely. This scheme is
3561# not robust to junk in `.', hence go to wildcards (a.*) only as a last
3562# resort.
3563
3564# Be careful to initialize this variable, since it used to be cached.
3565# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3566ac_cv_exeext=
3567# b.out is created by i960 compilers.
3568for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3569do
3570 test -f "$ac_file" || continue
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3573 ;;
3574 conftest.$ac_ext )
3575 # This is the source file.
3576 ;;
3577 [ab].out )
3578 # We found the default executable, but exeext='' is most
3579 # certainly right.
3580 break;;
3581 *.* )
3582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 # FIXME: I believe we export ac_cv_exeext for Libtool,
3584 # but it would be cool to find out if it's true. Does anybody
3585 # maintain Libtool? --akim.
3586 export ac_cv_exeext
3587 break;;
3588 * )
3589 break;;
3590 esac
3591done
3592else
3593 echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3597See \`config.log' for more details." >&5
3598echo "$as_me: error: C compiler cannot create executables
3599See \`config.log' for more details." >&2;}
3600 { (exit 77); exit 77; }; }
3601fi
3602
3603ac_exeext=$ac_cv_exeext
3604echo "$as_me:$LINENO: result: $ac_file" >&5
3605echo "${ECHO_T}$ac_file" >&6
3606
3607# Check the compiler produces executables we can run. If not, either
3608# the compiler is broken, or we cross compile.
3609echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3610echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3611# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3612# If not cross compiling, check that we can run a simple program.
3613if test "$cross_compiling" != yes; then
3614 if { ac_try='./$ac_file'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 cross_compiling=no
3621 else
3622 if test "$cross_compiling" = maybe; then
3623 cross_compiling=yes
3624 else
3625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3626If you meant to cross compile, use \`--host'.
3627See \`config.log' for more details." >&5
3628echo "$as_me: error: cannot run C compiled programs.
3629If you meant to cross compile, use \`--host'.
3630See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }
c906108c 3632 fi
b7026657 3633 fi
c906108c 3634fi
b7026657
AC
3635echo "$as_me:$LINENO: result: yes" >&5
3636echo "${ECHO_T}yes" >&6
3637
3638rm -f a.out a.exe conftest$ac_cv_exeext b.out
3639ac_clean_files=$ac_clean_files_save
3640# Check the compiler produces executables we can run. If not, either
3641# the compiler is broken, or we cross compile.
3642echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3643echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3644echo "$as_me:$LINENO: result: $cross_compiling" >&5
3645echo "${ECHO_T}$cross_compiling" >&6
3646
3647echo "$as_me:$LINENO: checking for suffix of executables" >&5
3648echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3650 (eval $ac_link) 2>&5
3651 ac_status=$?
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3655# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3656# work properly (i.e., refer to `conftest.exe'), while it won't with
3657# `rm'.
3658for ac_file in conftest.exe conftest conftest.*; do
3659 test -f "$ac_file" || continue
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 export ac_cv_exeext
3664 break;;
3665 * ) break;;
3666 esac
3667done
c906108c 3668else
b7026657
AC
3669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3670See \`config.log' for more details." >&5
3671echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3672See \`config.log' for more details." >&2;}
3673 { (exit 1); exit 1; }; }
c906108c
SS
3674fi
3675
b7026657
AC
3676rm -f conftest$ac_cv_exeext
3677echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3678echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 3679
b7026657
AC
3680rm -f conftest.$ac_ext
3681EXEEXT=$ac_cv_exeext
3682ac_exeext=$EXEEXT
3683echo "$as_me:$LINENO: checking for suffix of object files" >&5
3684echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3685if test "${ac_cv_objext+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688 cat >conftest.$ac_ext <<_ACEOF
3689/* confdefs.h. */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h. */
3694
3695int
3696main ()
3697{
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
3703rm -f conftest.o conftest.obj
3704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713 break;;
3714 esac
3715done
c906108c 3716else
b7026657
AC
3717 echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3719
b7026657
AC
3720{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3721See \`config.log' for more details." >&5
3722echo "$as_me: error: cannot compute suffix of object files: cannot compile
3723See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
c906108c 3725fi
c906108c 3726
b7026657
AC
3727rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728fi
3729echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3730echo "${ECHO_T}$ac_cv_objext" >&6
3731OBJEXT=$ac_cv_objext
3732ac_objext=$OBJEXT
3733echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3734echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3735if test "${ac_cv_c_compiler_gnu+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3737else
b7026657
AC
3738 cat >conftest.$ac_ext <<_ACEOF
3739/* confdefs.h. */
3740_ACEOF
3741cat confdefs.h >>conftest.$ac_ext
3742cat >>conftest.$ac_ext <<_ACEOF
3743/* end confdefs.h. */
3744
3745int
3746main ()
3747{
3748#ifndef __GNUC__
3749 choke me
c906108c 3750#endif
c906108c 3751
b7026657
AC
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756rm -f conftest.$ac_objext
3757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
3759 ac_status=$?
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_c_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 ac_compiler_gnu=yes
3779else
3780 echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783ac_compiler_gnu=no
3784fi
3785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786ac_cv_c_compiler_gnu=$ac_compiler_gnu
3787
3788fi
3789echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3791GCC=`test $ac_compiler_gnu = yes && echo yes`
3792ac_test_CFLAGS=${CFLAGS+set}
3793ac_save_CFLAGS=$CFLAGS
3794CFLAGS="-g"
3795echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3796echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3797if test "${ac_cv_prog_cc_g+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
3800 cat >conftest.$ac_ext <<_ACEOF
3801/* confdefs.h. */
3802_ACEOF
3803cat confdefs.h >>conftest.$ac_ext
3804cat >>conftest.$ac_ext <<_ACEOF
3805/* end confdefs.h. */
c906108c 3806
b7026657
AC
3807int
3808main ()
3809{
c906108c 3810
b7026657
AC
3811 ;
3812 return 0;
3813}
3814_ACEOF
3815rm -f conftest.$ac_objext
3816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 (eval $ac_try) 2>&5
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
c906108c
SS
3837 ac_cv_prog_cc_g=yes
3838else
b7026657
AC
3839 echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3841
b7026657 3842ac_cv_prog_cc_g=no
c906108c 3843fi
b7026657
AC
3844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845fi
3846echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3847echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 3848if test "$ac_test_CFLAGS" = set; then
b7026657 3849 CFLAGS=$ac_save_CFLAGS
c906108c
SS
3850elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3852 CFLAGS="-g -O2"
3853 else
3854 CFLAGS="-g"
3855 fi
3856else
3857 if test "$GCC" = yes; then
3858 CFLAGS="-O2"
3859 else
3860 CFLAGS=
3861 fi
3862fi
b7026657
AC
3863echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3864echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3865if test "${ac_cv_prog_cc_stdc+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 ac_cv_prog_cc_stdc=no
3869ac_save_CC=$CC
3870cat >conftest.$ac_ext <<_ACEOF
3871/* confdefs.h. */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
3876#include <stdarg.h>
3877#include <stdio.h>
3878#include <sys/types.h>
3879#include <sys/stat.h>
3880/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881struct buf { int x; };
3882FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883static char *e (p, i)
3884 char **p;
3885 int i;
3886{
3887 return p[i];
3888}
3889static char *f (char * (*g) (char **, int), char **p, ...)
3890{
3891 char *s;
3892 va_list v;
3893 va_start (v,p);
3894 s = g (p, va_arg (v,int));
3895 va_end (v);
3896 return s;
3897}
3898
3899/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std1 is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std1. */
3906int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908int test (int i, double x);
3909struct s1 {int (*f) (int a);};
3910struct s2 {int (*f) (double a);};
3911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912int argc;
3913char **argv;
3914int
3915main ()
3916{
3917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922# Don't try gcc -ansi; that turns off useful extensions and
3923# breaks some systems' header files.
3924# AIX -qlanglvl=ansi
3925# Ultrix and OSF/1 -std1
3926# HP-UX 10.20 and later -Ae
3927# HP-UX older versions -Aa -D_HPUX_SOURCE
3928# SVR4 -Xc -D__EXTENSIONS__
3929for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930do
3931 CC="$ac_save_CC $ac_arg"
3932 rm -f conftest.$ac_objext
3933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -z "$ac_c_werror_flag"
3942 || test ! -s conftest.err'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3944 (eval $ac_try) 2>&5
3945 ac_status=$?
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; } &&
3948 { ac_try='test -s conftest.$ac_objext'
3949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950 (eval $ac_try) 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 ac_cv_prog_cc_stdc=$ac_arg
3955break
3956else
3957 echo "$as_me: failed program was:" >&5
3958sed 's/^/| /' conftest.$ac_ext >&5
3959
3960fi
3961rm -f conftest.err conftest.$ac_objext
3962done
3963rm -f conftest.$ac_ext conftest.$ac_objext
3964CC=$ac_save_CC
3965
3966fi
3967
3968case "x$ac_cv_prog_cc_stdc" in
3969 x|xno)
3970 echo "$as_me:$LINENO: result: none needed" >&5
3971echo "${ECHO_T}none needed" >&6 ;;
3972 *)
3973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3974echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3975 CC="$CC $ac_cv_prog_cc_stdc" ;;
3976esac
3977
3978# Some people use a C++ compiler to compile C. Since we use `exit',
3979# in C++ we need to declare it. In case someone uses the same compiler
3980# for both compiling C and C++ we need to have the C++ compiler decide
3981# the declaration of exit, since it's the most demanding environment.
3982cat >conftest.$ac_ext <<_ACEOF
3983#ifndef __cplusplus
3984 choke me
3985#endif
3986_ACEOF
3987rm -f conftest.$ac_objext
3988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 { ac_try='test -z "$ac_c_werror_flag"
3997 || test ! -s conftest.err'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; } &&
4003 { ac_try='test -s conftest.$ac_objext'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 for ac_declaration in \
4010 '' \
4011 'extern "C" void std::exit (int) throw (); using std::exit;' \
4012 'extern "C" void std::exit (int); using std::exit;' \
4013 'extern "C" void exit (int) throw ();' \
4014 'extern "C" void exit (int);' \
4015 'void exit (int);'
4016do
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_declaration
4024#include <stdlib.h>
4025int
4026main ()
4027{
4028exit (42);
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag"
4043 || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest.$ac_objext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 :
4056else
4057 echo "$as_me: failed program was:" >&5
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
4060continue
4061fi
4062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069$ac_declaration
4070int
4071main ()
4072{
4073exit (42);
4074 ;
4075 return 0;
4076}
4077_ACEOF
4078rm -f conftest.$ac_objext
4079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080 (eval $ac_compile) 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag"
4088 || test ! -s conftest.err'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 break
4101else
4102 echo "$as_me: failed program was:" >&5
4103sed 's/^/| /' conftest.$ac_ext >&5
4104
4105fi
4106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107done
4108rm -f conftest*
4109if test -n "$ac_declaration"; then
4110 echo '#ifdef __cplusplus' >>confdefs.h
4111 echo $ac_declaration >>confdefs.h
4112 echo '#endif' >>confdefs.h
4113fi
4114
4115else
4116 echo "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119fi
4120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
4126
4127# Find a good install program. We prefer a C program (faster),
4128# so one script is as good as another. But avoid the broken or
4129# incompatible versions:
4130# SysV /etc/install, /usr/sbin/install
4131# SunOS /usr/etc/install
4132# IRIX /sbin/install
4133# AIX /bin/install
b7026657 4134# AmigaOS /C/install, which installs bootblocks on floppy discs
c906108c
SS
4135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4136# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b7026657 4138# OS/2's system install, which has a completely different semantic
c906108c 4139# ./install, which can be erroneously created by make from ./install.sh.
b7026657
AC
4140echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4141echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
c906108c 4142if test -z "$INSTALL"; then
b7026657
AC
4143if test "${ac_cv_path_install+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4145else
b7026657
AC
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH
4148do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 # Account for people who put trailing slashes in PATH elements.
4152case $as_dir/ in
4153 ./ | .// | /cC/* | \
4154 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4155 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4156 /usr/ucb/* ) ;;
4157 *)
4158 # OSF1 and SCO ODT 3.0 have their own names for install.
4159 # Don't use installbsd from OSF since it installs stuff as root
4160 # by default.
4161 for ac_prog in ginstall scoinst install; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
c906108c 4164 if test $ac_prog = install &&
b7026657 4165 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
c906108c
SS
4166 # AIX install. It has an incompatible calling convention.
4167 :
b7026657
AC
4168 elif test $ac_prog = install &&
4169 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170 # program-specific install script used by HP pwplus--don't use.
4171 :
c906108c 4172 else
b7026657
AC
4173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4174 break 3
c906108c
SS
4175 fi
4176 fi
4177 done
b7026657
AC
4178 done
4179 ;;
4180esac
4181done
4182
c906108c
SS
4183
4184fi
4185 if test "${ac_cv_path_install+set}" = set; then
b7026657 4186 INSTALL=$ac_cv_path_install
c906108c
SS
4187 else
4188 # As a last resort, use the slow shell script. We don't cache a
4189 # path for INSTALL within a source directory, because that will
4190 # break other packages using the cache if that directory is
4191 # removed, or if the path is relative.
b7026657 4192 INSTALL=$ac_install_sh
c906108c
SS
4193 fi
4194fi
b7026657
AC
4195echo "$as_me:$LINENO: result: $INSTALL" >&5
4196echo "${ECHO_T}$INSTALL" >&6
c906108c
SS
4197
4198# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4199# It thinks the first close brace ends the variable substitution.
4200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4201
b7026657 4202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7a292a7a 4203
c906108c
SS
4204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4205
4206
4207# Put a plausible default for CC_FOR_BUILD in Makefile.
4208if test "x$cross_compiling" = "xno"; then
4209 CC_FOR_BUILD='$(CC)'
4210else
4211 CC_FOR_BUILD=gcc
4212fi
4213
4214
4215
4216
4217AR=${AR-ar}
4218
b7026657
AC
4219if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4221set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224if test "${ac_cv_prog_RANLIB+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
4226else
4227 if test -n "$RANLIB"; then
4228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4229else
b7026657
AC
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241done
4242done
4243
c906108c
SS
4244fi
4245fi
b7026657 4246RANLIB=$ac_cv_prog_RANLIB
c906108c 4247if test -n "$RANLIB"; then
b7026657
AC
4248 echo "$as_me:$LINENO: result: $RANLIB" >&5
4249echo "${ECHO_T}$RANLIB" >&6
c906108c 4250else
b7026657
AC
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255fi
4256if test -z "$ac_cv_prog_RANLIB"; then
4257 ac_ct_RANLIB=$RANLIB
4258 # Extract the first word of "ranlib", so it can be a program name with args.
4259set dummy ranlib; ac_word=$2
4260echo "$as_me:$LINENO: checking for $ac_word" >&5
4261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265 if test -n "$ac_ct_RANLIB"; then
4266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4267else
4268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269for as_dir in $PATH
4270do
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_RANLIB="ranlib"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4278 fi
4279done
4280done
4281
4282 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4283fi
4284fi
4285ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4286if test -n "$ac_ct_RANLIB"; then
4287 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4288echo "${ECHO_T}$ac_ct_RANLIB" >&6
4289else
4290 echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
4292fi
4293
4294 RANLIB=$ac_ct_RANLIB
4295else
4296 RANLIB="$ac_cv_prog_RANLIB"
c906108c
SS
4297fi
4298
4299
4300ALL_LINGUAS=
b7026657
AC
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
c906108c
SS
4312unistd.h values.h sys/param.h
4313do
b7026657
AC
4314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4315if eval "test \"\${$as_ac_Header+set}\" = set"; then
4316 echo "$as_me:$LINENO: checking for $ac_header" >&5
4317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4318if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320fi
4321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4323else
4324 # Is the header compilable?
4325echo "$as_me:$LINENO: checking $ac_header usability" >&5
4326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4327cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333$ac_includes_default
4334#include <$ac_header>
4335_ACEOF
4336rm -f conftest.$ac_objext
4337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_header_compiler=yes
4359else
4360 echo "$as_me: failed program was:" >&5
4361sed 's/^/| /' conftest.$ac_ext >&5
4362
4363ac_header_compiler=no
4364fi
4365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4367echo "${ECHO_T}$ac_header_compiler" >&6
4368
4369# Is the header present?
4370echo "$as_me:$LINENO: checking $ac_header presence" >&5
4371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
4378#include <$ac_header>
4379_ACEOF
4380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4391 else
4392 ac_cpp_err=
4393 fi
4394else
4395 ac_cpp_err=yes
c906108c 4396fi
b7026657
AC
4397if test -z "$ac_cpp_err"; then
4398 ac_header_preproc=yes
4399else
4400 echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 ac_header_preproc=no
c906108c 4404fi
b7026657
AC
4405rm -f conftest.err conftest.$ac_ext
4406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4407echo "${ECHO_T}$ac_header_preproc" >&6
4408
4409# So? What about this header?
4410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4411 yes:no: )
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4416 ac_header_preproc=yes
4417 ;;
4418 no:yes:* )
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4431 (
4432 cat <<\_ASBOX
4433## ------------------------------------------ ##
4434## Report this to the AC_PACKAGE_NAME lists. ##
4435## ------------------------------------------ ##
4436_ASBOX
4437 ) |
4438 sed "s/^/$as_me: WARNING: /" >&2
4439 ;;
4440esac
4441echo "$as_me:$LINENO: checking for $ac_header" >&5
4442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4443if eval "test \"\${$as_ac_Header+set}\" = set"; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4445else
b7026657
AC
4446 eval "$as_ac_Header=\$ac_header_preproc"
4447fi
4448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4450
4451fi
4452if test `eval echo '${'$as_ac_Header'}'` = yes; then
4453 cat >>confdefs.h <<_ACEOF
4454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4455_ACEOF
4456
c906108c 4457fi
b7026657 4458
c906108c
SS
4459done
4460
b7026657
AC
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
c906108c
SS
4472__argz_count __argz_stringify __argz_next
4473do
b7026657
AC
4474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4475echo "$as_me:$LINENO: checking for $ac_func" >&5
4476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4477if eval "test \"\${$as_ac_var+set}\" = set"; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 cat >conftest.$ac_ext <<_ACEOF
4481/* confdefs.h. */
4482_ACEOF
4483cat confdefs.h >>conftest.$ac_ext
4484cat >>conftest.$ac_ext <<_ACEOF
4485/* end confdefs.h. */
4486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4488#define $ac_func innocuous_$ac_func
4489
c906108c 4490/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4491 which can conflict with char $ac_func (); below.
4492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4493 <limits.h> exists even on freestanding compilers. */
4494
4495#ifdef __STDC__
4496# include <limits.h>
4497#else
4498# include <assert.h>
4499#endif
c906108c 4500
b7026657 4501#undef $ac_func
c906108c 4502
b7026657
AC
4503/* Override any gcc2 internal prototype to avoid an error. */
4504#ifdef __cplusplus
4505extern "C"
4506{
4507#endif
4508/* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510char $ac_func ();
c906108c
SS
4511/* The GNU C library defines this for functions which it implements
4512 to always fail with ENOSYS. Some functions are actually named
4513 something starting with __ and the normal name is an alias. */
4514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4515choke me
4516#else
b7026657
AC
4517char (*f) () = $ac_func;
4518#endif
4519#ifdef __cplusplus
4520}
c906108c
SS
4521#endif
4522
b7026657
AC
4523int
4524main ()
4525{
4526return f != $ac_func;
4527 ;
4528 return 0;
4529}
4530_ACEOF
4531rm -f conftest.$ac_objext conftest$ac_exeext
4532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4533 (eval $ac_link) 2>conftest.er1
4534 ac_status=$?
4535 grep -v '^ *+' conftest.er1 >conftest.err
4536 rm -f conftest.er1
4537 cat conftest.err >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); } &&
4540 { ac_try='test -z "$ac_c_werror_flag"
4541 || test ! -s conftest.err'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 eval "$as_ac_var=yes"
4554else
4555 echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558eval "$as_ac_var=no"
4559fi
4560rm -f conftest.err conftest.$ac_objext \
4561 conftest$ac_exeext conftest.$ac_ext
4562fi
4563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4565if test `eval echo '${'$as_ac_var'}'` = yes; then
4566 cat >>confdefs.h <<_ACEOF
4567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4568_ACEOF
c906108c 4569
c906108c
SS
4570fi
4571done
4572
4573
4574 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b7026657
AC
4575
4576for ac_func in stpcpy
c906108c 4577do
b7026657
AC
4578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4579echo "$as_me:$LINENO: checking for $ac_func" >&5
4580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4581if eval "test \"\${$as_ac_var+set}\" = set"; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4592#define $ac_func innocuous_$ac_func
4593
c906108c 4594/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4595 which can conflict with char $ac_func (); below.
4596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 <limits.h> exists even on freestanding compilers. */
4598
4599#ifdef __STDC__
4600# include <limits.h>
4601#else
4602# include <assert.h>
4603#endif
c906108c 4604
b7026657 4605#undef $ac_func
c906108c 4606
b7026657
AC
4607/* Override any gcc2 internal prototype to avoid an error. */
4608#ifdef __cplusplus
4609extern "C"
4610{
4611#endif
4612/* We use char because int might match the return type of a gcc2
4613 builtin and then its argument prototype would still apply. */
4614char $ac_func ();
c906108c
SS
4615/* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619choke me
4620#else
b7026657
AC
4621char (*f) () = $ac_func;
4622#endif
4623#ifdef __cplusplus
4624}
c906108c
SS
4625#endif
4626
b7026657
AC
4627int
4628main ()
4629{
4630return f != $ac_func;
4631 ;
4632 return 0;
4633}
4634_ACEOF
4635rm -f conftest.$ac_objext conftest$ac_exeext
4636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 eval "$as_ac_var=yes"
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662eval "$as_ac_var=no"
4663fi
4664rm -f conftest.err conftest.$ac_objext \
4665 conftest$ac_exeext conftest.$ac_ext
4666fi
4667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4669if test `eval echo '${'$as_ac_var'}'` = yes; then
4670 cat >>confdefs.h <<_ACEOF
4671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4672_ACEOF
c906108c 4673
c906108c
SS
4674fi
4675done
4676
4677 fi
4678 if test "${ac_cv_func_stpcpy}" = "yes"; then
b7026657 4679 cat >>confdefs.h <<\_ACEOF
c906108c 4680#define HAVE_STPCPY 1
b7026657 4681_ACEOF
c906108c
SS
4682
4683 fi
4684
4685 if test $ac_cv_header_locale_h = yes; then
b7026657
AC
4686 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4687echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4688if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691 cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h. */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h. */
c906108c 4697#include <locale.h>
b7026657
AC
4698int
4699main ()
4700{
c906108c 4701return LC_MESSAGES
b7026657
AC
4702 ;
4703 return 0;
4704}
4705_ACEOF
4706rm -f conftest.$ac_objext conftest$ac_exeext
4707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4708 (eval $ac_link) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag"
4716 || test ! -s conftest.err'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; } &&
4722 { ac_try='test -s conftest$ac_exeext'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 (eval $ac_try) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; }; then
c906108c
SS
4728 am_cv_val_LC_MESSAGES=yes
4729else
b7026657
AC
4730 echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733am_cv_val_LC_MESSAGES=no
c906108c 4734fi
b7026657
AC
4735rm -f conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
c906108c 4737fi
b7026657
AC
4738echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4739echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c906108c 4740 if test $am_cv_val_LC_MESSAGES = yes; then
b7026657 4741 cat >>confdefs.h <<\_ACEOF
c906108c 4742#define HAVE_LC_MESSAGES 1
b7026657 4743_ACEOF
c906108c
SS
4744
4745 fi
4746 fi
b7026657
AC
4747 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4748echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
c906108c
SS
4749 # Check whether --enable-nls or --disable-nls was given.
4750if test "${enable_nls+set}" = set; then
4751 enableval="$enable_nls"
4752 USE_NLS=$enableval
4753else
4754 USE_NLS=yes
b7026657
AC
4755fi;
4756 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4757echo "${ECHO_T}$USE_NLS" >&6
c906108c 4758
c906108c
SS
4759
4760 USE_INCLUDED_LIBINTL=no
4761
4762 if test "$USE_NLS" = "yes"; then
b7026657 4763 cat >>confdefs.h <<\_ACEOF
c906108c 4764#define ENABLE_NLS 1
b7026657
AC
4765_ACEOF
4766
4767 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4768echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
c906108c 4769
b7026657 4770# Check whether --with-included-gettext or --without-included-gettext was given.
c906108c
SS
4771if test "${with_included_gettext+set}" = set; then
4772 withval="$with_included_gettext"
4773 nls_cv_force_use_gnu_gettext=$withval
4774else
4775 nls_cv_force_use_gnu_gettext=no
b7026657
AC
4776fi;
4777 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4778echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
c906108c
SS
4779
4780 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4781 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4782 nls_cv_header_intl=
4783 nls_cv_header_libgt=
4784 CATOBJEXT=NONE
4785
b7026657
AC
4786 if test "${ac_cv_header_libintl_h+set}" = set; then
4787 echo "$as_me:$LINENO: checking for libintl.h" >&5
4788echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4789if test "${ac_cv_header_libintl_h+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791fi
4792echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4793echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4794else
4795 # Is the header compilable?
4796echo "$as_me:$LINENO: checking libintl.h usability" >&5
4797echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4798cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h. */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h. */
4804$ac_includes_default
4805#include <libintl.h>
4806_ACEOF
4807rm -f conftest.$ac_objext
4808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_header_compiler=yes
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834ac_header_compiler=no
4835fi
4836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4838echo "${ECHO_T}$ac_header_compiler" >&6
4839
4840# Is the header present?
4841echo "$as_me:$LINENO: checking libintl.h presence" >&5
4842echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4843cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h. */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h. */
c906108c 4849#include <libintl.h>
b7026657
AC
4850_ACEOF
4851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4853 ac_status=$?
4854 grep -v '^ *+' conftest.er1 >conftest.err
4855 rm -f conftest.er1
4856 cat conftest.err >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } >/dev/null; then
4859 if test -s conftest.err; then
4860 ac_cpp_err=$ac_c_preproc_warn_flag
4861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4862 else
4863 ac_cpp_err=
4864 fi
4865else
4866 ac_cpp_err=yes
c906108c 4867fi
b7026657
AC
4868if test -z "$ac_cpp_err"; then
4869 ac_header_preproc=yes
4870else
4871 echo "$as_me: failed program was:" >&5
4872sed 's/^/| /' conftest.$ac_ext >&5
4873
4874 ac_header_preproc=no
4875fi
4876rm -f conftest.err conftest.$ac_ext
4877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4878echo "${ECHO_T}$ac_header_preproc" >&6
4879
4880# So? What about this header?
4881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4882 yes:no: )
4883 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4884echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4886echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4887 ac_header_preproc=yes
4888 ;;
4889 no:yes:* )
4890 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4891echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4893echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4894 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4895echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4896 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4897echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4898 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4899echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4900 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4901echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4902 (
4903 cat <<\_ASBOX
4904## ------------------------------------------ ##
4905## Report this to the AC_PACKAGE_NAME lists. ##
4906## ------------------------------------------ ##
4907_ASBOX
4908 ) |
4909 sed "s/^/$as_me: WARNING: /" >&2
4910 ;;
4911esac
4912echo "$as_me:$LINENO: checking for libintl.h" >&5
4913echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4914if test "${ac_cv_header_libintl_h+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916else
4917 ac_cv_header_libintl_h=$ac_header_preproc
c906108c 4918fi
b7026657
AC
4919echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4920echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4921
4922fi
4923if test $ac_cv_header_libintl_h = yes; then
4924 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4925echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4926if test "${gt_cv_func_gettext_libc+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4928else
b7026657
AC
4929 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
c906108c 4935#include <libintl.h>
b7026657
AC
4936int
4937main ()
4938{
c906108c 4939return (int) gettext ("")
b7026657
AC
4940 ;
4941 return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 (eval $ac_try) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 (eval $ac_try) 2>&5
4963 ac_status=$?
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
c906108c
SS
4966 gt_cv_func_gettext_libc=yes
4967else
b7026657
AC
4968 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971gt_cv_func_gettext_libc=no
c906108c 4972fi
b7026657
AC
4973rm -f conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
c906108c 4975fi
b7026657
AC
4976echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4977echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
c906108c
SS
4978
4979 if test "$gt_cv_func_gettext_libc" != "yes"; then
b7026657
AC
4980 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4981echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4982if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4984else
b7026657 4985 ac_check_lib_save_LIBS=$LIBS
c906108c 4986LIBS="-lintl $LIBS"
b7026657
AC
4987cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h. */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h. */
4993
c906108c 4994/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4995#ifdef __cplusplus
4996extern "C"
4997#endif
c906108c 4998/* We use char because int might match the return type of a gcc2
b7026657
AC
4999 builtin and then its argument prototype would still apply. */
5000char bindtextdomain ();
5001int
5002main ()
5003{
5004bindtextdomain ();
5005 ;
5006 return 0;
5007}
5008_ACEOF
5009rm -f conftest.$ac_objext conftest$ac_exeext
5010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
5018 { ac_try='test -z "$ac_c_werror_flag"
5019 || test ! -s conftest.err'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 (eval $ac_try) 2>&5
5022 ac_status=$?
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; } &&
5025 { ac_try='test -s conftest$ac_exeext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_lib_intl_bindtextdomain=yes
5032else
5033 echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036ac_cv_lib_intl_bindtextdomain=no
5037fi
5038rm -f conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040LIBS=$ac_check_lib_save_LIBS
5041fi
5042echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5043echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5044if test $ac_cv_lib_intl_bindtextdomain = yes; then
5045 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5046echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5047if test "${gt_cv_func_gettext_libintl+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
5050 cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h. */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h. */
c906108c 5056
b7026657
AC
5057int
5058main ()
5059{
c906108c 5060return (int) gettext ("")
b7026657
AC
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext conftest$ac_exeext
5066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5067 (eval $ac_link) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest$ac_exeext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 (eval $ac_try) 2>&5
5084 ac_status=$?
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
c906108c
SS
5087 gt_cv_func_gettext_libintl=yes
5088else
b7026657
AC
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092gt_cv_func_gettext_libintl=no
c906108c 5093fi
b7026657
AC
5094rm -f conftest.err conftest.$ac_objext \
5095 conftest$ac_exeext conftest.$ac_ext
c906108c 5096fi
b7026657
AC
5097echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5098echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
c906108c
SS
5099fi
5100
5101 fi
5102
5103 if test "$gt_cv_func_gettext_libc" = "yes" \
5104 || test "$gt_cv_func_gettext_libintl" = "yes"; then
b7026657 5105 cat >>confdefs.h <<\_ACEOF
c906108c 5106#define HAVE_GETTEXT 1
b7026657 5107_ACEOF
c906108c
SS
5108
5109 # Extract the first word of "msgfmt", so it can be a program name with args.
5110set dummy msgfmt; ac_word=$2
b7026657
AC
5111echo "$as_me:$LINENO: checking for $ac_word" >&5
5112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5113if test "${ac_cv_path_MSGFMT+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5115else
5116 case "$MSGFMT" in
5117 /*)
5118 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5119 ;;
5120 *)
5121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5122 for ac_dir in $PATH; do
5123 test -z "$ac_dir" && ac_dir=.
5124 if test -f $ac_dir/$ac_word; then
5125 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5126 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5127 break
5128 fi
5129 fi
5130 done
5131 IFS="$ac_save_ifs"
5132 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5133 ;;
5134esac
5135fi
5136MSGFMT="$ac_cv_path_MSGFMT"
5137if test -n "$MSGFMT"; then
b7026657
AC
5138 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5139echo "${ECHO_T}$MSGFMT" >&6
c906108c 5140else
b7026657
AC
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
c906108c
SS
5143fi
5144 if test "$MSGFMT" != "no"; then
b7026657
AC
5145
5146for ac_func in dcgettext
c906108c 5147do
b7026657
AC
5148as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5149echo "$as_me:$LINENO: checking for $ac_func" >&5
5150echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5151if eval "test \"\${$as_ac_var+set}\" = set"; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
5160/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5162#define $ac_func innocuous_$ac_func
5163
c906108c 5164/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5165 which can conflict with char $ac_func (); below.
5166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167 <limits.h> exists even on freestanding compilers. */
5168
5169#ifdef __STDC__
5170# include <limits.h>
5171#else
5172# include <assert.h>
5173#endif
c906108c 5174
b7026657 5175#undef $ac_func
c906108c 5176
b7026657
AC
5177/* Override any gcc2 internal prototype to avoid an error. */
5178#ifdef __cplusplus
5179extern "C"
5180{
5181#endif
5182/* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184char $ac_func ();
c906108c
SS
5185/* The GNU C library defines this for functions which it implements
5186 to always fail with ENOSYS. Some functions are actually named
5187 something starting with __ and the normal name is an alias. */
5188#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189choke me
5190#else
b7026657
AC
5191char (*f) () = $ac_func;
5192#endif
5193#ifdef __cplusplus
5194}
c906108c
SS
5195#endif
5196
b7026657
AC
5197int
5198main ()
5199{
5200return f != $ac_func;
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205rm -f conftest.$ac_objext conftest$ac_exeext
5206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5227 eval "$as_ac_var=yes"
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232eval "$as_ac_var=no"
5233fi
5234rm -f conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5236fi
5237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5239if test `eval echo '${'$as_ac_var'}'` = yes; then
5240 cat >>confdefs.h <<_ACEOF
5241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5242_ACEOF
c906108c 5243
c906108c
SS
5244fi
5245done
5246
5247 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5248set dummy gmsgfmt; ac_word=$2
b7026657
AC
5249echo "$as_me:$LINENO: checking for $ac_word" >&5
5250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251if test "${ac_cv_path_GMSGFMT+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5253else
b7026657
AC
5254 case $GMSGFMT in
5255 [\\/]* | ?:[\\/]*)
c906108c
SS
5256 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5257 ;;
c906108c 5258 *)
b7026657
AC
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 break 2
5269 fi
5270done
5271done
5272
c906108c
SS
5273 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5274 ;;
5275esac
5276fi
b7026657
AC
5277GMSGFMT=$ac_cv_path_GMSGFMT
5278
c906108c 5279if test -n "$GMSGFMT"; then
b7026657
AC
5280 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5281echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5282else
b7026657
AC
5283 echo "$as_me:$LINENO: result: no" >&5
5284echo "${ECHO_T}no" >&6
c906108c
SS
5285fi
5286
5287 # Extract the first word of "xgettext", so it can be a program name with args.
5288set dummy xgettext; ac_word=$2
b7026657
AC
5289echo "$as_me:$LINENO: checking for $ac_word" >&5
5290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291if test "${ac_cv_path_XGETTEXT+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5293else
5294 case "$XGETTEXT" in
5295 /*)
5296 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5297 ;;
5298 *)
5299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5300 for ac_dir in $PATH; do
5301 test -z "$ac_dir" && ac_dir=.
5302 if test -f $ac_dir/$ac_word; then
5303 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5304 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5305 break
5306 fi
5307 fi
5308 done
5309 IFS="$ac_save_ifs"
5310 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5311 ;;
5312esac
5313fi
5314XGETTEXT="$ac_cv_path_XGETTEXT"
5315if test -n "$XGETTEXT"; then
b7026657
AC
5316 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5317echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5318else
b7026657
AC
5319 echo "$as_me:$LINENO: result: no" >&5
5320echo "${ECHO_T}no" >&6
c906108c
SS
5321fi
5322
b7026657
AC
5323 cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
c906108c 5329
b7026657
AC
5330int
5331main ()
5332{
c906108c
SS
5333extern int _nl_msg_cat_cntr;
5334 return _nl_msg_cat_cntr
b7026657
AC
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext conftest$ac_exeext
5340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5341 (eval $ac_link) 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_c_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
c906108c
SS
5361 CATOBJEXT=.gmo
5362 DATADIRNAME=share
5363else
b7026657
AC
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367CATOBJEXT=.mo
c906108c
SS
5368 DATADIRNAME=lib
5369fi
b7026657
AC
5370rm -f conftest.err conftest.$ac_objext \
5371 conftest$ac_exeext conftest.$ac_ext
c906108c
SS
5372 INSTOBJEXT=.mo
5373 fi
5374 fi
b7026657 5375
c906108c
SS
5376fi
5377
5378
b7026657
AC
5379
5380
c906108c
SS
5381 if test "$CATOBJEXT" = "NONE"; then
5382 nls_cv_use_gnu_gettext=yes
5383 fi
5384 fi
5385
5386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5387 INTLOBJS="\$(GETTOBJS)"
5388 # Extract the first word of "msgfmt", so it can be a program name with args.
5389set dummy msgfmt; ac_word=$2
b7026657
AC
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_path_MSGFMT+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5394else
5395 case "$MSGFMT" in
5396 /*)
5397 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5398 ;;
5399 *)
5400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5401 for ac_dir in $PATH; do
5402 test -z "$ac_dir" && ac_dir=.
5403 if test -f $ac_dir/$ac_word; then
5404 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5405 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5406 break
5407 fi
5408 fi
5409 done
5410 IFS="$ac_save_ifs"
5411 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5412 ;;
5413esac
5414fi
5415MSGFMT="$ac_cv_path_MSGFMT"
5416if test -n "$MSGFMT"; then
b7026657
AC
5417 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5418echo "${ECHO_T}$MSGFMT" >&6
c906108c 5419else
b7026657
AC
5420 echo "$as_me:$LINENO: result: no" >&5
5421echo "${ECHO_T}no" >&6
c906108c
SS
5422fi
5423
5424 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5425set dummy gmsgfmt; ac_word=$2
b7026657
AC
5426echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5428if test "${ac_cv_path_GMSGFMT+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5430else
b7026657
AC
5431 case $GMSGFMT in
5432 [\\/]* | ?:[\\/]*)
c906108c
SS
5433 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5434 ;;
c906108c 5435 *)
b7026657
AC
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
5447done
5448done
5449
c906108c
SS
5450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5451 ;;
5452esac
5453fi
b7026657
AC
5454GMSGFMT=$ac_cv_path_GMSGFMT
5455
c906108c 5456if test -n "$GMSGFMT"; then
b7026657
AC
5457 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5458echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5459else
b7026657
AC
5460 echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
c906108c
SS
5462fi
5463
5464 # Extract the first word of "xgettext", so it can be a program name with args.
5465set dummy xgettext; ac_word=$2
b7026657
AC
5466echo "$as_me:$LINENO: checking for $ac_word" >&5
5467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5468if test "${ac_cv_path_XGETTEXT+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5470else
5471 case "$XGETTEXT" in
5472 /*)
5473 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5474 ;;
5475 *)
5476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5477 for ac_dir in $PATH; do
5478 test -z "$ac_dir" && ac_dir=.
5479 if test -f $ac_dir/$ac_word; then
5480 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5481 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5482 break
5483 fi
5484 fi
5485 done
5486 IFS="$ac_save_ifs"
5487 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5488 ;;
5489esac
5490fi
5491XGETTEXT="$ac_cv_path_XGETTEXT"
5492if test -n "$XGETTEXT"; then
b7026657
AC
5493 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5494echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5495else
b7026657
AC
5496 echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
c906108c
SS
5498fi
5499
b7026657 5500
c906108c
SS
5501 USE_INCLUDED_LIBINTL=yes
5502 CATOBJEXT=.gmo
5503 INSTOBJEXT=.mo
5504 DATADIRNAME=share
5505 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5506 INTLLIBS=$INTLDEPS
5507 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5508 nls_cv_header_intl=libintl.h
5509 nls_cv_header_libgt=libgettext.h
5510 fi
5511
5512 if test "$XGETTEXT" != ":"; then
5513 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5514 : ;
5515 else
b7026657
AC
5516 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5517echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
c906108c
SS
5518 XGETTEXT=":"
5519 fi
5520 fi
5521
5522 # We need to process the po/ directory.
5523 POSUB=po
5524 else
5525 DATADIRNAME=share
5526 nls_cv_header_intl=libintl.h
5527 nls_cv_header_libgt=libgettext.h
5528 fi
5529
5530 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5531 # because some of the sources are only built for this goal.
5532 if test "$PACKAGE" = gettext; then
5533 USE_NLS=yes
5534 USE_INCLUDED_LIBINTL=yes
5535 fi
5536
5537 for lang in $ALL_LINGUAS; do
5538 GMOFILES="$GMOFILES $lang.gmo"
5539 POFILES="$POFILES $lang.po"
5540 done
5541
b7026657
AC
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
c906108c
SS
5554
5555 if test "x$CATOBJEXT" != "x"; then
5556 if test "x$ALL_LINGUAS" = "x"; then
5557 LINGUAS=
5558 else
b7026657
AC
5559 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5560echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
c906108c
SS
5561 NEW_LINGUAS=
5562 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5563 case "$ALL_LINGUAS" in
5564 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5565 esac
5566 done
5567 LINGUAS=$NEW_LINGUAS
b7026657
AC
5568 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5569echo "${ECHO_T}$LINGUAS" >&6
c906108c
SS
5570 fi
5571
5572 if test -n "$LINGUAS"; then
5573 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5574 fi
5575 fi
5576
5577 if test $ac_cv_header_locale_h = yes; then
5578 INCLUDE_LOCALE_H="#include <locale.h>"
5579 else
5580 INCLUDE_LOCALE_H="\
5581/* The system does not provide the header <locale.h>. Take care yourself. */"
5582 fi
b7026657 5583
c906108c
SS
5584
5585 if test -f $srcdir/po2tbl.sed.in; then
5586 if test "$CATOBJEXT" = ".cat"; then
b7026657
AC
5587 if test "${ac_cv_header_linux_version_h+set}" = set; then
5588 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5589echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5590if test "${ac_cv_header_linux_version_h+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592fi
5593echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5594echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5595else
5596 # Is the header compilable?
5597echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5598echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5599cat >conftest.$ac_ext <<_ACEOF
5600/* confdefs.h. */
5601_ACEOF
5602cat confdefs.h >>conftest.$ac_ext
5603cat >>conftest.$ac_ext <<_ACEOF
5604/* end confdefs.h. */
5605$ac_includes_default
5606#include <linux/version.h>
5607_ACEOF
5608rm -f conftest.$ac_objext
5609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5610 (eval $ac_compile) 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_c_werror_flag"
5618 || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_header_compiler=yes
5631else
5632 echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635ac_header_compiler=no
5636fi
5637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5639echo "${ECHO_T}$ac_header_compiler" >&6
5640
5641# Is the header present?
5642echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5643echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5644cat >conftest.$ac_ext <<_ACEOF
5645/* confdefs.h. */
5646_ACEOF
5647cat confdefs.h >>conftest.$ac_ext
5648cat >>conftest.$ac_ext <<_ACEOF
5649/* end confdefs.h. */
c906108c 5650#include <linux/version.h>
b7026657
AC
5651_ACEOF
5652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654 ac_status=$?
5655 grep -v '^ *+' conftest.er1 >conftest.err
5656 rm -f conftest.er1
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } >/dev/null; then
5660 if test -s conftest.err; then
5661 ac_cpp_err=$ac_c_preproc_warn_flag
5662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5663 else
5664 ac_cpp_err=
5665 fi
5666else
5667 ac_cpp_err=yes
c906108c 5668fi
b7026657
AC
5669if test -z "$ac_cpp_err"; then
5670 ac_header_preproc=yes
5671else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 ac_header_preproc=no
5676fi
5677rm -f conftest.err conftest.$ac_ext
5678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679echo "${ECHO_T}$ac_header_preproc" >&6
5680
5681# So? What about this header?
5682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5683 yes:no: )
5684 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5685echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5687echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5689 ;;
5690 no:yes:* )
5691 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5692echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5694echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5696echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5698echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5700echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5702echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5703 (
5704 cat <<\_ASBOX
5705## ------------------------------------------ ##
5706## Report this to the AC_PACKAGE_NAME lists. ##
5707## ------------------------------------------ ##
5708_ASBOX
5709 ) |
5710 sed "s/^/$as_me: WARNING: /" >&2
5711 ;;
5712esac
5713echo "$as_me:$LINENO: checking for linux/version.h" >&5
5714echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5715if test "${ac_cv_header_linux_version_h+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 ac_cv_header_linux_version_h=$ac_header_preproc
c906108c 5719fi
b7026657
AC
5720echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5721echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5722
5723fi
5724if test $ac_cv_header_linux_version_h = yes; then
c906108c
SS
5725 msgformat=linux
5726else
b7026657 5727 msgformat=xopen
c906108c
SS
5728fi
5729
5730
b7026657 5731
c906108c
SS
5732 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5733 fi
5734 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5735 $srcdir/po2tbl.sed.in > po2tbl.sed
5736 fi
5737
5738 if test "$PACKAGE" = "gettext"; then
5739 GT_NO="#NO#"
5740 GT_YES=
5741 else
5742 GT_NO=
5743 GT_YES="#YES#"
5744 fi
b7026657
AC
5745
5746
c906108c
SS
5747
5748 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
b7026657 5749
c906108c
SS
5750
5751 l=
b7026657 5752
c906108c
SS
5753
5754 if test -d $srcdir/po; then
5755 test -d po || mkdir po
5756 if test "x$srcdir" != "x."; then
5757 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5758 posrcprefix="$srcdir/"
5759 else
5760 posrcprefix="../$srcdir/"
5761 fi
5762 else
5763 posrcprefix="../"
5764 fi
5765 rm -f po/POTFILES
5766 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5767 < $srcdir/po/POTFILES.in > po/POTFILES
5768 fi
b7026657 5769
c906108c
SS
5770
5771# Check for common headers.
5772# FIXME: Seems to me this can cause problems for i386-windows hosts.
5773# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5774
5775
5776
5777
5778
5779for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 5780do
b7026657
AC
5781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782if eval "test \"\${$as_ac_Header+set}\" = set"; then
5783 echo "$as_me:$LINENO: checking for $ac_header" >&5
5784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5785if eval "test \"\${$as_ac_Header+set}\" = set"; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787fi
5788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790else
5791 # Is the header compilable?
5792echo "$as_me:$LINENO: checking $ac_header usability" >&5
5793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5794cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
5800$ac_includes_default
5801#include <$ac_header>
5802_ACEOF
5803rm -f conftest.$ac_objext
5804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805 (eval $ac_compile) 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } &&
5812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
5825 ac_header_compiler=yes
5826else
5827 echo "$as_me: failed program was:" >&5
5828sed 's/^/| /' conftest.$ac_ext >&5
5829
5830ac_header_compiler=no
5831fi
5832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5834echo "${ECHO_T}$ac_header_compiler" >&6
5835
5836# Is the header present?
5837echo "$as_me:$LINENO: checking $ac_header presence" >&5
5838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5839cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
5845#include <$ac_header>
5846_ACEOF
5847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } >/dev/null; then
5855 if test -s conftest.err; then
5856 ac_cpp_err=$ac_c_preproc_warn_flag
5857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5858 else
5859 ac_cpp_err=
5860 fi
5861else
5862 ac_cpp_err=yes
c906108c 5863fi
b7026657
AC
5864if test -z "$ac_cpp_err"; then
5865 ac_header_preproc=yes
5866else
5867 echo "$as_me: failed program was:" >&5
5868sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_header_preproc=no
c906108c 5871fi
b7026657
AC
5872rm -f conftest.err conftest.$ac_ext
5873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5874echo "${ECHO_T}$ac_header_preproc" >&6
5875
5876# So? What about this header?
5877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5878 yes:no: )
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5883 ac_header_preproc=yes
5884 ;;
5885 no:yes:* )
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5898 (
5899 cat <<\_ASBOX
5900## ------------------------------------------ ##
5901## Report this to the AC_PACKAGE_NAME lists. ##
5902## ------------------------------------------ ##
5903_ASBOX
5904 ) |
5905 sed "s/^/$as_me: WARNING: /" >&2
5906 ;;
5907esac
5908echo "$as_me:$LINENO: checking for $ac_header" >&5
5909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5912else
b7026657
AC
5913 eval "$as_ac_Header=\$ac_header_preproc"
5914fi
5915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917
5918fi
5919if test `eval echo '${'$as_ac_Header'}'` = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922_ACEOF
5923
c906108c 5924fi
b7026657 5925
c906108c
SS
5926done
5927
b7026657
AC
5928
5929
5930for ac_header in sys/time.h sys/resource.h
c906108c 5931do
b7026657
AC
5932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933if eval "test \"\${$as_ac_Header+set}\" = set"; then
5934 echo "$as_me:$LINENO: checking for $ac_header" >&5
5935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5936if eval "test \"\${$as_ac_Header+set}\" = set"; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938fi
5939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941else
5942 # Is the header compilable?
5943echo "$as_me:$LINENO: checking $ac_header usability" >&5
5944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5945cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
5951$ac_includes_default
5952#include <$ac_header>
5953_ACEOF
5954rm -f conftest.$ac_objext
5955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956 (eval $ac_compile) 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag"
5964 || test ! -s conftest.err'
5965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 (eval $ac_try) 2>&5
5967 ac_status=$?
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; } &&
5970 { ac_try='test -s conftest.$ac_objext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_header_compiler=yes
5977else
5978 echo "$as_me: failed program was:" >&5
5979sed 's/^/| /' conftest.$ac_ext >&5
5980
5981ac_header_compiler=no
5982fi
5983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5985echo "${ECHO_T}$ac_header_compiler" >&6
5986
5987# Is the header present?
5988echo "$as_me:$LINENO: checking $ac_header presence" >&5
5989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5990cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
5996#include <$ac_header>
5997_ACEOF
5998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } >/dev/null; then
6006 if test -s conftest.err; then
6007 ac_cpp_err=$ac_c_preproc_warn_flag
6008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009 else
6010 ac_cpp_err=
6011 fi
6012else
6013 ac_cpp_err=yes
c906108c 6014fi
b7026657
AC
6015if test -z "$ac_cpp_err"; then
6016 ac_header_preproc=yes
6017else
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ac_header_preproc=no
c906108c 6022fi
b7026657
AC
6023rm -f conftest.err conftest.$ac_ext
6024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6025echo "${ECHO_T}$ac_header_preproc" >&6
6026
6027# So? What about this header?
6028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6029 yes:no: )
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6034 ac_header_preproc=yes
6035 ;;
6036 no:yes:* )
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6049 (
6050 cat <<\_ASBOX
6051## ------------------------------------------ ##
6052## Report this to the AC_PACKAGE_NAME lists. ##
6053## ------------------------------------------ ##
6054_ASBOX
6055 ) |
6056 sed "s/^/$as_me: WARNING: /" >&2
6057 ;;
6058esac
6059echo "$as_me:$LINENO: checking for $ac_header" >&5
6060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6061if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6063else
b7026657 6064 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 6065fi
b7026657
AC
6066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068
6069fi
6070if test `eval echo '${'$as_ac_Header'}'` = yes; then
6071 cat >>confdefs.h <<_ACEOF
6072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6073_ACEOF
6074
6075fi
6076
c906108c
SS
6077done
6078
b7026657
AC
6079
6080
6081for ac_header in fcntl.h fpu_control.h
c906108c 6082do
b7026657
AC
6083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084if eval "test \"\${$as_ac_Header+set}\" = set"; then
6085 echo "$as_me:$LINENO: checking for $ac_header" >&5
6086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6087if eval "test \"\${$as_ac_Header+set}\" = set"; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089fi
6090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092else
6093 # Is the header compilable?
6094echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102$ac_includes_default
6103#include <$ac_header>
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6128else
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132ac_header_compiler=no
6133fi
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136echo "${ECHO_T}$ac_header_compiler" >&6
6137
6138# Is the header present?
6139echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147#include <$ac_header>
6148_ACEOF
6149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160 else
6161 ac_cpp_err=
6162 fi
6163else
6164 ac_cpp_err=yes
c906108c 6165fi
b7026657
AC
6166if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
c906108c 6173fi
b7026657
AC
6174rm -f conftest.err conftest.$ac_ext
6175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176echo "${ECHO_T}$ac_header_preproc" >&6
6177
6178# So? What about this header?
6179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180 yes:no: )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6186 ;;
6187 no:yes:* )
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6200 (
6201 cat <<\_ASBOX
6202## ------------------------------------------ ##
6203## Report this to the AC_PACKAGE_NAME lists. ##
6204## ------------------------------------------ ##
6205_ASBOX
6206 ) |
6207 sed "s/^/$as_me: WARNING: /" >&2
6208 ;;
6209esac
6210echo "$as_me:$LINENO: checking for $ac_header" >&5
6211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212if eval "test \"\${$as_ac_Header+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6214else
b7026657
AC
6215 eval "$as_ac_Header=\$ac_header_preproc"
6216fi
6217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6219
6220fi
6221if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224_ACEOF
6225
c906108c 6226fi
b7026657 6227
c906108c
SS
6228done
6229
b7026657
AC
6230
6231
6232
6233for ac_header in dlfcn.h errno.h sys/stat.h
c906108c 6234do
b7026657
AC
6235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6236if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo "$as_me:$LINENO: checking for $ac_header" >&5
6238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6239if eval "test \"\${$as_ac_Header+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241fi
6242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6244else
6245 # Is the header compilable?
6246echo "$as_me:$LINENO: checking $ac_header usability" >&5
6247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6248cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
6254$ac_includes_default
6255#include <$ac_header>
6256_ACEOF
6257rm -f conftest.$ac_objext
6258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 ac_header_compiler=yes
6280else
6281 echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284ac_header_compiler=no
6285fi
6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6288echo "${ECHO_T}$ac_header_compiler" >&6
6289
6290# Is the header present?
6291echo "$as_me:$LINENO: checking $ac_header presence" >&5
6292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6293cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h. */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h. */
6299#include <$ac_header>
6300_ACEOF
6301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null; then
6309 if test -s conftest.err; then
6310 ac_cpp_err=$ac_c_preproc_warn_flag
6311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6312 else
6313 ac_cpp_err=
6314 fi
6315else
6316 ac_cpp_err=yes
c906108c 6317fi
b7026657
AC
6318if test -z "$ac_cpp_err"; then
6319 ac_header_preproc=yes
6320else
6321 echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_header_preproc=no
c906108c 6325fi
b7026657
AC
6326rm -f conftest.err conftest.$ac_ext
6327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6328echo "${ECHO_T}$ac_header_preproc" >&6
6329
6330# So? What about this header?
6331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6332 yes:no: )
6333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6337 ac_header_preproc=yes
6338 ;;
6339 no:yes:* )
6340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6352 (
6353 cat <<\_ASBOX
6354## ------------------------------------------ ##
6355## Report this to the AC_PACKAGE_NAME lists. ##
6356## ------------------------------------------ ##
6357_ASBOX
6358 ) |
6359 sed "s/^/$as_me: WARNING: /" >&2
6360 ;;
6361esac
6362echo "$as_me:$LINENO: checking for $ac_header" >&5
6363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6364if eval "test \"\${$as_ac_Header+set}\" = set"; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6366else
b7026657
AC
6367 eval "$as_ac_Header=\$ac_header_preproc"
6368fi
6369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6371
6372fi
6373if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374 cat >>confdefs.h <<_ACEOF
6375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376_ACEOF
6377
c906108c 6378fi
b7026657 6379
c906108c
SS
6380done
6381
b7026657
AC
6382
6383
6384
6385
c906108c
SS
6386for ac_func in getrusage time sigaction __setfpucw
6387do
b7026657
AC
6388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6389echo "$as_me:$LINENO: checking for $ac_func" >&5
6390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6391if eval "test \"\${$as_ac_var+set}\" = set"; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 cat >conftest.$ac_ext <<_ACEOF
6395/* confdefs.h. */
6396_ACEOF
6397cat confdefs.h >>conftest.$ac_ext
6398cat >>conftest.$ac_ext <<_ACEOF
6399/* end confdefs.h. */
6400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6402#define $ac_func innocuous_$ac_func
6403
c906108c 6404/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6405 which can conflict with char $ac_func (); below.
6406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6407 <limits.h> exists even on freestanding compilers. */
6408
6409#ifdef __STDC__
6410# include <limits.h>
6411#else
6412# include <assert.h>
6413#endif
c906108c 6414
b7026657 6415#undef $ac_func
c906108c 6416
b7026657
AC
6417/* Override any gcc2 internal prototype to avoid an error. */
6418#ifdef __cplusplus
6419extern "C"
6420{
6421#endif
6422/* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6424char $ac_func ();
c906108c
SS
6425/* The GNU C library defines this for functions which it implements
6426 to always fail with ENOSYS. Some functions are actually named
6427 something starting with __ and the normal name is an alias. */
6428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429choke me
6430#else
b7026657
AC
6431char (*f) () = $ac_func;
6432#endif
6433#ifdef __cplusplus
6434}
c906108c
SS
6435#endif
6436
b7026657
AC
6437int
6438main ()
6439{
6440return f != $ac_func;
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447 (eval $ac_link) 2>conftest.er1
6448 ac_status=$?
6449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -z "$ac_c_werror_flag"
6455 || test ! -s conftest.err'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; } &&
6461 { ac_try='test -s conftest$ac_exeext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6467 eval "$as_ac_var=yes"
6468else
6469 echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472eval "$as_ac_var=no"
6473fi
6474rm -f conftest.err conftest.$ac_objext \
6475 conftest$ac_exeext conftest.$ac_ext
6476fi
6477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6479if test `eval echo '${'$as_ac_var'}'` = yes; then
6480 cat >>confdefs.h <<_ACEOF
6481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6482_ACEOF
c906108c 6483
c906108c
SS
6484fi
6485done
6486
6487
6488# Check for socket libraries
b7026657
AC
6489
6490echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6491echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6492if test "${ac_cv_lib_socket_bind+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6494else
b7026657 6495 ac_check_lib_save_LIBS=$LIBS
c906108c 6496LIBS="-lsocket $LIBS"
b7026657
AC
6497cat >conftest.$ac_ext <<_ACEOF
6498/* confdefs.h. */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h. */
6503
c906108c 6504/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6505#ifdef __cplusplus
6506extern "C"
6507#endif
c906108c 6508/* We use char because int might match the return type of a gcc2
b7026657
AC
6509 builtin and then its argument prototype would still apply. */
6510char bind ();
6511int
6512main ()
6513{
6514bind ();
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext conftest$ac_exeext
6520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6521 (eval $ac_link) 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try='test -z "$ac_c_werror_flag"
6529 || test ! -s conftest.err'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest$ac_exeext'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_lib_socket_bind=yes
6542else
6543 echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546ac_cv_lib_socket_bind=no
6547fi
6548rm -f conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550LIBS=$ac_check_lib_save_LIBS
6551fi
6552echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6553echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6554if test $ac_cv_lib_socket_bind = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556#define HAVE_LIBSOCKET 1
6557_ACEOF
c906108c
SS
6558
6559 LIBS="-lsocket $LIBS"
6560
c906108c
SS
6561fi
6562
b7026657
AC
6563
6564echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6565echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6566if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6568else
b7026657 6569 ac_check_lib_save_LIBS=$LIBS
c906108c 6570LIBS="-lnsl $LIBS"
b7026657
AC
6571cat >conftest.$ac_ext <<_ACEOF
6572/* confdefs.h. */
6573_ACEOF
6574cat confdefs.h >>conftest.$ac_ext
6575cat >>conftest.$ac_ext <<_ACEOF
6576/* end confdefs.h. */
6577
c906108c 6578/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6579#ifdef __cplusplus
6580extern "C"
6581#endif
c906108c 6582/* We use char because int might match the return type of a gcc2
b7026657
AC
6583 builtin and then its argument prototype would still apply. */
6584char gethostbyname ();
6585int
6586main ()
6587{
6588gethostbyname ();
6589 ;
6590 return 0;
6591}
6592_ACEOF
6593rm -f conftest.$ac_objext conftest$ac_exeext
6594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_lib_nsl_gethostbyname=yes
6616else
6617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_cv_lib_nsl_gethostbyname=no
6621fi
6622rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
6624LIBS=$ac_check_lib_save_LIBS
6625fi
6626echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6627echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6628if test $ac_cv_lib_nsl_gethostbyname = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630#define HAVE_LIBNSL 1
6631_ACEOF
c906108c
SS
6632
6633 LIBS="-lnsl $LIBS"
6634
c906108c
SS
6635fi
6636
6637
6638. ${srcdir}/../../bfd/configure.host
6639
6640
6641
6642USE_MAINTAINER_MODE=no
6643# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6644if test "${enable_maintainer_mode+set}" = set; then
6645 enableval="$enable_maintainer_mode"
6646 case "${enableval}" in
6647 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6648 no) MAINT="#" ;;
b7026657
AC
6649 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6650echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6651 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
6652esac
6653if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6654 echo "Setting maintainer mode" 6>&1
6655fi
6656else
6657 MAINT="#"
b7026657 6658fi;
c906108c
SS
6659
6660
6661# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6662if test "${enable_sim_bswap+set}" = set; then
6663 enableval="$enable_sim_bswap"
6664 case "${enableval}" in
6665 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6666 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6667 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6668echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6669 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
6670esac
6671if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6672 echo "Setting bswap flags = $sim_bswap" 6>&1
6673fi
6674else
6675 sim_bswap=""
b7026657 6676fi;
c906108c
SS
6677
6678
6679# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6680if test "${enable_sim_cflags+set}" = set; then
6681 enableval="$enable_sim_cflags"
6682 case "${enableval}" in
6683 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6684 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6685echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6686 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
6687 no) sim_cflags="";;
6688 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6689esac
6690if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6691 echo "Setting sim cflags = $sim_cflags" 6>&1
6692fi
6693else
6694 sim_cflags=""
b7026657 6695fi;
c906108c
SS
6696
6697
6698# Check whether --enable-sim-debug or --disable-sim-debug was given.
6699if test "${enable_sim_debug+set}" = set; then
6700 enableval="$enable_sim_debug"
6701 case "${enableval}" in
6702 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6703 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6704 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6705esac
6706if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6707 echo "Setting sim debug = $sim_debug" 6>&1
6708fi
6709else
6710 sim_debug=""
b7026657 6711fi;
c906108c
SS
6712
6713
6714# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6715if test "${enable_sim_stdio+set}" = set; then
6716 enableval="$enable_sim_stdio"
6717 case "${enableval}" in
6718 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6719 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6720 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6721echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6722 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6723esac
6724if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6725 echo "Setting stdio flags = $sim_stdio" 6>&1
6726fi
6727else
b7026657
AC
6728 sim_stdio=""
6729fi;
c906108c
SS
6730
6731
6732# Check whether --enable-sim-trace or --disable-sim-trace was given.
6733if test "${enable_sim_trace+set}" = set; then
6734 enableval="$enable_sim_trace"
6735 case "${enableval}" in
6736 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6737 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6738 [-0-9]*)
6739 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6740 [a-z]*)
6741 sim_trace=""
6742 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6743 if test x"$sim_trace" = x; then
6744 sim_trace="-DWITH_TRACE='(TRACE_$x"
6745 else
6746 sim_trace="${sim_trace}|TRACE_$x"
6747 fi
6748 done
6749 sim_trace="$sim_trace)'" ;;
6750esac
6751if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6752 echo "Setting sim trace = $sim_trace" 6>&1
6753fi
6754else
6755 sim_trace=""
b7026657 6756fi;
c906108c
SS
6757
6758
6759# Check whether --enable-sim-profile or --disable-sim-profile was given.
6760if test "${enable_sim_profile+set}" = set; then
6761 enableval="$enable_sim_profile"
6762 case "${enableval}" in
6763 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6764 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6765 [-0-9]*)
6766 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6767 [a-z]*)
6768 sim_profile=""
6769 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6770 if test x"$sim_profile" = x; then
6771 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6772 else
6773 sim_profile="${sim_profile}|PROFILE_$x"
6774 fi
6775 done
6776 sim_profile="$sim_profile)'" ;;
6777esac
6778if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6779 echo "Setting sim profile = $sim_profile" 6>&1
6780fi
6781else
eb2d80b4 6782 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6783fi;
c906108c
SS
6784
6785
b7026657
AC
6786echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6787echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6788if test "${ac_cv_type_signal+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6790else
b7026657
AC
6791 cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h. */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h. */
c906108c
SS
6797#include <sys/types.h>
6798#include <signal.h>
6799#ifdef signal
b7026657 6800# undef signal
c906108c
SS
6801#endif
6802#ifdef __cplusplus
6803extern "C" void (*signal (int, void (*)(int)))(int);
6804#else
6805void (*signal ()) ();
6806#endif
6807
b7026657
AC
6808int
6809main ()
6810{
c906108c 6811int i;
b7026657
AC
6812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext
6817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
c906108c
SS
6838 ac_cv_type_signal=void
6839else
b7026657
AC
6840 echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843ac_cv_type_signal=int
c906108c 6844fi
b7026657 6845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6846fi
b7026657
AC
6847echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6848echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 6849
b7026657 6850cat >>confdefs.h <<_ACEOF
c906108c 6851#define RETSIGTYPE $ac_cv_type_signal
b7026657 6852_ACEOF
c906108c
SS
6853
6854
cd0fc7c3
SS
6855
6856
c906108c
SS
6857
6858sim_link_files=
6859sim_link_links=
6860
6861sim_link_links=tconfig.h
6862if test -f ${srcdir}/tconfig.in
6863then
6864 sim_link_files=tconfig.in
6865else
6866 sim_link_files=../common/tconfig.in
6867fi
6868
6869# targ-vals.def points to the libc macro description file.
6870case "${target}" in
6871*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6872esac
6873sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6874sim_link_links="${sim_link_links} targ-vals.def"
6875
6876
6877
6878
6879default_sim_inline=""
6880# Check whether --enable-sim-inline or --disable-sim-inline was given.
6881if test "${enable_sim_inline+set}" = set; then
6882 enableval="$enable_sim_inline"
6883 sim_inline=""
6884case "$enableval" in
6885 no) sim_inline="-DDEFAULT_INLINE=0";;
6886 0) sim_inline="-DDEFAULT_INLINE=0";;
6887 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
6888 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
6889 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6890 new_flag=""
6891 case "$x" in
6892 *_INLINE=*) new_flag="-D$x";;
6893 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6894 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
6895 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
6896 esac
6897 if test x"$sim_inline" = x""; then
6898 sim_inline="$new_flag"
6899 else
6900 sim_inline="$sim_inline $new_flag"
6901 fi
6902 done;;
6903esac
6904if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6905 echo "Setting inline flags = $sim_inline" 6>&1
6906fi
6907else
b7026657 6908
c906108c
SS
6909if test "x$cross_compiling" = "xno"; then
6910 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
6911 sim_inline="${default_sim_inline}"
6912 if test x"$silent" != x"yes"; then
6913 echo "Setting inline flags = $sim_inline" 6>&1
6914 fi
6915 else
6916 sim_inline=""
6917 fi
6918else
6919 sim_inline="-DDEFAULT_INLINE=0"
6920fi
b7026657 6921fi;
c906108c
SS
6922wire_alignment="NONSTRICT_ALIGNMENT"
6923default_alignment=""
6924
6925# Check whether --enable-sim-alignment or --disable-sim-alignment was given.
6926if test "${enable_sim_alignment+set}" = set; then
6927 enableval="$enable_sim_alignment"
6928 case "${enableval}" in
6929 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
6930 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
6931 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
6932 yes) if test x"$wire_alignment" != x; then
6933 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6934 else
6935 if test x"$default_alignment" != x; then
6936 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
6937 else
6938 echo "No hard-wired alignment for target $target" 1>&6
6939 sim_alignment="-DWITH_ALIGNMENT=0"
6940 fi
6941 fi;;
6942 no) if test x"$default_alignment" != x; then
6943 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6944 else
6945 if test x"$wire_alignment" != x; then
6946 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
6947 else
6948 echo "No default alignment for target $target" 1>&6
6949 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
6950 fi
6951 fi;;
b7026657
AC
6952 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5
6953echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;}
6954 { (exit 1); exit 1; }; }; sim_alignment="";;
c906108c
SS
6955esac
6956if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
6957 echo "Setting alignment flags = $sim_alignment" 6>&1
6958fi
6959else
6960 if test x"$default_alignment" != x; then
6961 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
6962else
6963 if test x"$wire_alignment" != x; then
6964 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
6965 else
6966 sim_alignment=
6967 fi
6968fi
b7026657 6969fi;
c906108c
SS
6970
6971# Check whether --enable-sim-hostendian or --disable-sim-hostendian was given.
6972if test "${enable_sim_hostendian+set}" = set; then
6973 enableval="$enable_sim_hostendian"
6974 case "${enableval}" in
6975 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6976 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6977 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
b7026657
AC
6978 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5
6979echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;}
6980 { (exit 1); exit 1; }; }; sim_hostendian="";;
c906108c
SS
6981esac
6982if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6983 echo "Setting hostendian flags = $sim_hostendian" 6>&1
6984fi
6985else
b7026657 6986
c906108c 6987if test "x$cross_compiling" = "xno"; then
b7026657
AC
6988 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6989echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6990if test "${ac_cv_c_bigendian+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 # See if sys/param.h defines the BYTE_ORDER macro.
6994cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h. */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h. */
c906108c
SS
7000#include <sys/types.h>
7001#include <sys/param.h>
c906108c 7002
b7026657
AC
7003int
7004main ()
7005{
c906108c
SS
7006#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7007 bogus endian macros
7008#endif
b7026657
AC
7009
7010 ;
7011 return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016 (eval $ac_compile) 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -z "$ac_c_werror_flag"
7024 || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
c906108c 7036 # It does; now see whether it defined to BIG_ENDIAN or not.
b7026657
AC
7037cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */
7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
c906108c
SS
7043#include <sys/types.h>
7044#include <sys/param.h>
c906108c 7045
b7026657
AC
7046int
7047main ()
7048{
c906108c
SS
7049#if BYTE_ORDER != BIG_ENDIAN
7050 not big endian
7051#endif
b7026657
AC
7052
7053 ;
7054 return 0;
7055}
7056_ACEOF
7057rm -f conftest.$ac_objext
7058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
c906108c
SS
7079 ac_cv_c_bigendian=yes
7080else
b7026657
AC
7081 echo "$as_me: failed program was:" >&5
7082sed 's/^/| /' conftest.$ac_ext >&5
7083
7084ac_cv_c_bigendian=no
c906108c 7085fi
b7026657 7086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7087else
b7026657
AC
7088 echo "$as_me: failed program was:" >&5
7089sed 's/^/| /' conftest.$ac_ext >&5
7090
7091# It does not; compile a test program.
c906108c 7092if test "$cross_compiling" = yes; then
b7026657
AC
7093 # try to guess the endianness by grepping values into an object file
7094 ac_cv_c_bigendian=unknown
7095 cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h. */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h. */
7101short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7102short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7103void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7104short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7105short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7106void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7107int
7108main ()
7109{
7110 _ascii (); _ebcdic ();
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115rm -f conftest.$ac_objext
7116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7138 ac_cv_c_bigendian=yes
7139fi
7140if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7141 if test "$ac_cv_c_bigendian" = unknown; then
7142 ac_cv_c_bigendian=no
7143 else
7144 # finding both strings is unlikely to happen, but who knows?
7145 ac_cv_c_bigendian=unknown
7146 fi
7147fi
7148else
7149 echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152fi
7153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7154else
b7026657
AC
7155 cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
7161int
7162main ()
7163{
c906108c
SS
7164 /* Are we little or big endian? From Harbison&Steele. */
7165 union
7166 {
7167 long l;
7168 char c[sizeof (long)];
7169 } u;
7170 u.l = 1;
7171 exit (u.c[sizeof (long) - 1] == 1);
7172}
b7026657
AC
7173_ACEOF
7174rm -f conftest$ac_exeext
7175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
c906108c
SS
7185 ac_cv_c_bigendian=no
7186else
b7026657
AC
7187 echo "$as_me: program exited with status $ac_status" >&5
7188echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191( exit $ac_status )
7192ac_cv_c_bigendian=yes
c906108c 7193fi
b7026657 7194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7195fi
c906108c 7196fi
b7026657 7197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7198fi
b7026657
AC
7199echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7200echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7201case $ac_cv_c_bigendian in
7202 yes)
c906108c 7203
b7026657 7204cat >>confdefs.h <<\_ACEOF
c906108c 7205#define WORDS_BIGENDIAN 1
b7026657
AC
7206_ACEOF
7207 ;;
7208 no)
7209 ;;
7210 *)
7211 { { echo "$as_me:$LINENO: error: unknown endianness
7212presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7213echo "$as_me: error: unknown endianness
7214presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7215 { (exit 1); exit 1; }; } ;;
7216esac
c906108c
SS
7217
7218 if test $ac_cv_c_bigendian = yes; then
7219 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
7220 else
7221 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
7222 fi
7223else
7224 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
7225fi
b7026657 7226fi;
c906108c 7227
c8cca39f
AC
7228# NOTE: Don't add -Wall or -Wunused, they both include
7229# -Wunused-parameter which reports bogus warnings.
7230# NOTE: If you add to this list, remember to update
7231# gdb/doc/gdbint.texinfo.
7232build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
7233-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
7234# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
7235# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
7236# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
7237# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
7238# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
7239# -Woverloaded-virtual -Winline -Werror"
c906108c
SS
7240# Check whether --enable-build-warnings or --disable-build-warnings was given.
7241if test "${enable_build_warnings+set}" = set; then
7242 enableval="$enable_build_warnings"
c8cca39f
AC
7243 case "${enableval}" in
7244 yes) ;;
7245 no) build_warnings="-w";;
7246 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7247 build_warnings="${build_warnings} ${t}";;
7248 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
7249 build_warnings="${t} ${build_warnings}";;
7250 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
7251esac
7252if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
7253 echo "Setting compiler warning flags = $build_warnings" 6>&1
7254fi
b7026657 7255fi; # Check whether --enable-sim-build-warnings or --disable-sim-build-warnings was given.
c8cca39f
AC
7256if test "${enable_sim_build_warnings+set}" = set; then
7257 enableval="$enable_sim_build_warnings"
7258 case "${enableval}" in
c906108c
SS
7259 yes) ;;
7260 no) build_warnings="-w";;
7261 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 7262 build_warnings="${build_warnings} ${t}";;
c906108c 7263 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
7264 build_warnings="${t} ${build_warnings}";;
7265 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
7266esac
7267if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
7268 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
7269fi
b7026657 7270fi; WARN_CFLAGS=""
d4f3574e
SS
7271WERROR_CFLAGS=""
7272if test "x${build_warnings}" != x -a "x$GCC" = xyes
7273then
b7026657
AC
7274 echo "$as_me:$LINENO: checking compiler warning flags" >&5
7275echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
c8cca39f
AC
7276 # Separate out the -Werror flag as some files just cannot be
7277 # compiled with it enabled.
7278 for w in ${build_warnings}; do
7279 case $w in
7280 -Werr*) WERROR_CFLAGS=-Werror ;;
7281 *) # Check that GCC accepts it
7282 saved_CFLAGS="$CFLAGS"
7283 CFLAGS="$CFLAGS $w"
b7026657
AC
7284 cat >conftest.$ac_ext <<_ACEOF
7285/* confdefs.h. */
7286_ACEOF
7287cat confdefs.h >>conftest.$ac_ext
7288cat >>conftest.$ac_ext <<_ACEOF
7289/* end confdefs.h. */
c8cca39f 7290
b7026657
AC
7291int
7292main ()
7293{
c8cca39f 7294
b7026657
AC
7295 ;
7296 return 0;
7297}
7298_ACEOF
7299rm -f conftest.$ac_objext
7300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7301 (eval $ac_compile) 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
7308 { ac_try='test -z "$ac_c_werror_flag"
7309 || test ! -s conftest.err'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 (eval $ac_try) 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
c8cca39f 7321 WARN_CFLAGS="${WARN_CFLAGS} $w"
c906108c 7322else
b7026657
AC
7323 echo "$as_me: failed program was:" >&5
7324sed 's/^/| /' conftest.$ac_ext >&5
7325
c8cca39f 7326fi
b7026657 7327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
7328 CFLAGS="$saved_CFLAGS"
7329 esac
7330 done
b7026657
AC
7331 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
7332echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
c906108c
SS
7333fi
7334
7335
e6c674b8
CD
7336default_sim_reserved_bits="1"
7337# Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given.
7338if test "${enable_sim_reserved_bits+set}" = set; then
7339 enableval="$enable_sim_reserved_bits"
7340 case "${enableval}" in
7341 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
7342 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
b7026657
AC
7343 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5
7344echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;}
7345 { (exit 1); exit 1; }; }; sim_reserved_bits="";;
e6c674b8
CD
7346esac
7347if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
7348 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
7349fi
7350else
7351 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
b7026657 7352fi;
e6c674b8 7353
c906108c
SS
7354# DEPRECATED
7355#
7356# Instead of defining a `subtarget' macro, code should be checking
7357# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
7358# in question.
7359#
7360case "${target}" in
4c54fc26 7361 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 7362 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
1e799e28
CD
7363 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
7364 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
7365 *) SIM_SUBTARGET="";;
7366esac
7367
7368
7369
7370
7371#
7372# Select the byte order of the target
7373#
7374mips_endian=
7375default_endian=
7376case "${target}" in
7377 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7a292a7a 7378 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
c906108c
SS
7379 mips64*-*-*) default_endian=BIG_ENDIAN ;;
7380 mips16*-*-*) default_endian=BIG_ENDIAN ;;
1e799e28
CD
7381 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
7382 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
c906108c
SS
7383 mips*-*-*) default_endian=BIG_ENDIAN ;;
7384 *) default_endian=BIG_ENDIAN ;;
7385esac
7386
7387wire_endian="$mips_endian"
7388default_endian="$default_endian"
7389# Check whether --enable-sim-endian or --disable-sim-endian was given.
7390if test "${enable_sim_endian+set}" = set; then
7391 enableval="$enable_sim_endian"
7392 case "${enableval}" in
7393 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
7394 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
7395 yes) if test x"$wire_endian" != x; then
7396 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7397 else
7398 if test x"$default_endian" != x; then
7399 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
7400 else
7401 echo "No hard-wired endian for target $target" 1>&6
7402 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
7403 fi
7404 fi;;
7405 no) if test x"$default_endian" != x; then
7406 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7407 else
7408 if test x"$wire_endian" != x; then
7409 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
7410 else
7411 echo "No default endian for target $target" 1>&6
7412 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
7413 fi
7414 fi;;
b7026657
AC
7415 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5
7416echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;}
7417 { (exit 1); exit 1; }; }; sim_endian="";;
c906108c
SS
7418esac
7419if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
7420 echo "Setting endian flags = $sim_endian" 6>&1
7421fi
7422else
7423 if test x"$default_endian" != x; then
7424 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
7425else
7426 if test x"$wire_endian" != x; then
7427 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
7428 else
7429 sim_endian=
7430 fi
7431fi
b7026657 7432fi;
c906108c
SS
7433
7434
7435
7436#
7437# Select the bitsize of the target
7438#
7439mips_addr_bitsize=
7440case "${target}" in
7441 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
7442 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
7443 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7444 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
7445 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
7446 *) mips_bitsize=64 ; mips_msb=63 ;;
7447esac
7448wire_word_bitsize="$mips_bitsize"
7449wire_word_msb="$mips_msb"
7450wire_address_bitsize="$mips_addr_bitsize"
7451wire_cell_bitsize=""
7452# Check whether --enable-sim-bitsize or --disable-sim-bitsize was given.
7453if test "${enable_sim_bitsize+set}" = set; then
7454 enableval="$enable_sim_bitsize"
7455 sim_bitsize=
7456case "${enableval}" in
7457 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
7458 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
7459 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7460 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
7461 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7462 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
7463 else
7464 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
7465 fi ;;
7466 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
7467 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
7468 else
7469 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
7470 fi ;;
b7026657
AC
7471 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5
7472echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;}
7473 { (exit 1); exit 1; }; } ;;
c906108c
SS
7474esac
7475# address bitsize
7476tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
7477case x"${tmp}" in
7478 x ) ;;
7479 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
7480 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
b7026657
AC
7481 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&5
7482echo "$as_me: error: \"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" >&2;}
7483 { (exit 1); exit 1; }; } ;;
c906108c
SS
7484esac
7485# cell bitsize
7486tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
7487case x"${tmp}" in
7488 x ) ;;
7489 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
7490 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
b7026657
AC
7491 * ) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&5
7492echo "$as_me: error: \"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" >&2;}
7493 { (exit 1); exit 1; }; } ;;
c906108c
SS
7494esac
7495if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
7496 echo "Setting bitsize flags = $sim_bitsize" 6>&1
7497fi
7498else
7499 sim_bitsize=""
7500if test x"$wire_word_bitsize" != x; then
7501 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
7502fi
7503if test x"$wire_word_msb" != x; then
7504 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
7505fi
7506if test x"$wire_address_bitsize" != x; then
7507 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
7508fi
7509if test x"$wire_cell_bitsize" != x; then
7510 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
7511fi
b7026657 7512fi;
c906108c
SS
7513
7514
7515
7516#
7517# Select the floating hardware support of the target
7518#
7519mips_fpu=HARDWARE_FLOATING_POINT
7520mips_fpu_bitsize=
7521case "${target}" in
7522 mips*tx39*) mips_fpu=HARD_FLOATING_POINT
7523 mips_fpu_bitsize=32
7524 ;;
7525 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
7526 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
7527 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
7528 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
7529 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
7530 *) mips_fpu=HARD_FLOATING_POINT ;;
7531esac
7532
7533default_sim_float="$mips_fpu"
7534default_sim_float_bitsize="$mips_fpu_bitsize"
7535# Check whether --enable-sim-float or --disable-sim-float was given.
7536if test "${enable_sim_float+set}" = set; then
7537 enableval="$enable_sim_float"
7538 case "${enableval}" in
7539 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
7540 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
7541 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
7542 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
b7026657
AC
7543 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5
7544echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;}
7545 { (exit 1); exit 1; }; }; sim_float="";;
c906108c
SS
7546esac
7547if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
7548 echo "Setting float flags = $sim_float" 6>&1
7549fi
7550else
b7026657 7551
c906108c
SS
7552sim_float=
7553if test x"${default_sim_float}" != x""; then
7554 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
7555fi
7556if test x"${default_sim_float_bitsize}" != x""; then
7557 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
7558fi
7559
b7026657 7560fi;
c906108c
SS
7561
7562
7563
7564#
7565# Select the level of SMP support
7566#
7567case "${target}" in
7568 *) mips_smp=0 ;;
7569esac
7570
7571default_sim_smp="$mips_smp"
7572# Check whether --enable-sim-smp or --disable-sim-smp was given.
7573if test "${enable_sim_smp+set}" = set; then
7574 enableval="$enable_sim_smp"
7575 case "${enableval}" in
7576 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
7577 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
7578 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
7579esac
7580if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
7581 echo "Setting smp flags = $sim_smp" 6>&1
7582fi
7583else
7584 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
7585if test x"$silent" != x"yes"; then
7586 echo "Setting smp flags = $sim_smp" 6>&1
7587fi
b7026657 7588fi;
c906108c
SS
7589
7590
7591
7592#
7593# Select the IGEN architecture
7594#
7595sim_gen=IGEN
7596sim_igen_machine="-M mipsIV"
139181c8 7597sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
7598sim_igen_filter="32,64,f"
7599sim_m16_filter="16"
4c54fc26
CD
7600sim_mach_default="mips8000"
7601
c906108c
SS
7602case "${target}" in
7603 mips*tx39*) sim_gen=IGEN
7604 sim_igen_filter="32,f"
7605 sim_igen_machine="-M r3900"
7606 ;;
7607 mips64vr43*-*-*) sim_gen=IGEN
7608 sim_igen_machine="-M mipsIV"
4c54fc26 7609 sim_mach_default="mips8000"
c906108c
SS
7610 ;;
7611 mips64vr5*-*-*) sim_gen=IGEN
7612 sim_igen_machine="-M vr5000"
4c54fc26 7613 sim_mach_default="mips5000"
c906108c
SS
7614 ;;
7615 mips64vr41*) sim_gen=M16
7616 sim_igen_machine="-M vr4100"
7617 sim_m16_machine="-M vr4100"
7618 sim_igen_filter="32,64,f"
7619 sim_m16_filter="16"
4c54fc26 7620 sim_mach_default="mips4100"
c906108c 7621 ;;
4c54fc26
CD
7622 mips64vr-*-* | mips64vrel-*-*)
7623 sim_gen=MULTI
7624 sim_multi_configs="\
7625 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
7626 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
7627 vr5000:mipsIV:32,64,f:mips4300,mips5000\
7628 vr5400:mipsIV,vr5400:32,64,f:mips5400\
7629 vr5500:mipsIV,vr5500:32,64,f:mips5500"
7630 sim_multi_default=mips5000
7631 ;;
c906108c
SS
7632 mips64*-*-*) sim_igen_filter="32,64,f"
7633 sim_gen=IGEN
7634 ;;
7635 mips16*-*-*) sim_gen=M16
7636 sim_igen_filter="32,64,f"
7637 sim_m16_filter="16"
7638 ;;
1e799e28
CD
7639 mipsisa32*-*-*) sim_gen=IGEN
7640 sim_igen_machine="-M mips32"
7641 sim_igen_filter="32,f"
4c54fc26 7642 sim_mach_default="mipsisa32"
1e799e28 7643 ;;
7cbea089 7644 mipsisa64sb1*-*-*) sim_gen=IGEN
e5da76ec 7645 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 7646 sim_igen_filter="32,64,f"
4c54fc26 7647 sim_mach_default="mips_sb1"
7cbea089 7648 ;;
1e799e28 7649 mipsisa64*-*-*) sim_gen=IGEN
e7e81181 7650 sim_igen_machine="-M mips64,mips3d"
1e799e28 7651 sim_igen_filter="32,64,f"
4c54fc26 7652 sim_mach_default="mipsisa64"
1e799e28 7653 ;;
c906108c
SS
7654 mips*lsi*) sim_gen=M16
7655 sim_igen_machine="-M mipsIII,mips16"
7656 sim_m16_machine="-M mips16,mipsIII"
7657 sim_igen_filter="32,f"
7658 sim_m16_filter="16"
4c54fc26 7659 sim_mach_default="mips4000"
c906108c
SS
7660 ;;
7661 mips*-*-*) sim_gen=IGEN
7662 sim_igen_filter="32,f"
7663 ;;
7664esac
4c54fc26
CD
7665
7666# The MULTI generator can combine several simulation engines into one.
7667# executable. A configuration which uses the MULTI should set two
7668# variables: ${sim_multi_configs} and ${sim_multi_default}.
7669#
7670# ${sim_multi_configs} is the list of engines to build. Each
7671# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
7672# where:
7673#
7674# - NAME is a C-compatible prefix for the engine,
7675# - MACHINE is a -M argument,
7676# - FILTER is a -F argument, and
7677# - BFDMACHS is a comma-separated list of bfd machines that the
7678# simulator can run.
7679#
7680# Each entry will have a separate simulation engine whose prefix is
7681# m32<NAME>. If the machine list includes "mips16", there will also
7682# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
7683# generated using the same machine list as the 32-bit version,
7684# but the filter will be "16" instead of FILTER.
7685#
7686# The simulator compares the bfd mach against BFDMACHS to decide
7687# which engine to use. Entries in BFDMACHS should be bfd_mach
7688# values with "bfd_mach_" removed. ${sim_multi_default} says
7689# which entry should be the default.
7690if test ${sim_gen} = MULTI; then
7691
7692 # Simple sanity check.
7693 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
b7026657
AC
7694 { { echo "$as_me:$LINENO: error: Error in configure.in: MULTI simulator not set up correctly" >&5
7695echo "$as_me: error: Error in configure.in: MULTI simulator not set up correctly" >&2;}
7696 { (exit 1); exit 1; }; }
4c54fc26
CD
7697 fi
7698
7699 # Start in a known state.
7700 rm -f multi-include.h multi-run.c
7701 sim_multi_flags=
7702 sim_multi_src=
7703 sim_multi_obj=multi-run.o
7704 sim_multi_igen_configs=
7705 sim_seen_default=no
7706
7707 cat << __EOF__ > multi-run.c
7708/* Main entry point for MULTI simulators.
7709 Copyright (C) 2003 Free Software Foundation, Inc.
7710
7711 This program is free software; you can redistribute it and/or modify
7712 it under the terms of the GNU General Public License as published by
7713 the Free Software Foundation; either version 2 of the License, or
7714 (at your option) any later version.
7715
7716 This program is distributed in the hope that it will be useful,
7717 but WITHOUT ANY WARRANTY; without even the implied warranty of
7718 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7719 GNU General Public License for more details.
7720
7721 You should have received a copy of the GNU General Public License
7722 along with this program; if not, write to the Free Software
7723 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7724
7725 --
7726
7727 This file was generated by sim/mips/configure. */
7728
7729#include "sim-main.h"
7730#include "multi-include.h"
7731
7732#define SD sd
7733#define CPU cpu
7734
7735void
7736sim_engine_run (SIM_DESC sd,
7737 int next_cpu_nr,
7738 int nr_cpus,
7739 int signal) /* ignore */
7740{
7741 int mach;
7742
7743 if (STATE_ARCHITECTURE (sd) == NULL)
7744 mach = bfd_mach_${sim_multi_default};
7745 else
7746 mach = STATE_ARCHITECTURE (SD)->mach;
7747
7748 switch (mach)
7749 {
7750__EOF__
7751
7752 for fc in ${sim_multi_configs}; do
7753
7754 # Split up the entry. ${c} contains the first three elements.
7755 # Note: outer sqaure brackets are m4 quotes.
7756 c=`echo ${fc} | sed 's/:[^:]*$//'`
7757 bfdmachs=`echo ${fc} | sed 's/.*://'`
7758 name=`echo ${c} | sed 's/:.*//'`
7759 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
7760 filter=`echo ${c} | sed 's/.*://'`
7761
7762 # Build the following lists:
7763 #
7764 # sim_multi_flags: all -M and -F flags used by the simulator
7765 # sim_multi_src: all makefile-generated source files
7766 # sim_multi_obj: the objects for ${sim_multi_src}
7767 # sim_multi_igen_configs: igen configuration strings.
7768 #
7769 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
7770 # or m16) followed by the NAME, MACHINE and FILTER part of
7771 # the ${sim_multi_configs} entry.
7772 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
7773
7774 # Check whether mips16 handling is needed.
7775 case ${c} in
7776 *:*mips16*:*)
7777 # Run igen twice, once for normal mode and once for mips16.
7778 ws="m32 m16"
7779
7780 # The top-level function for the mips16 simulator is
7781 # in a file m16${name}_run.c, generated by the
7782 # tmp-run-multi Makefile rule.
7783 sim_multi_src="${sim_multi_src} m16${name}_run.c"
7784 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
7785 sim_multi_flags="${sim_multi_flags} -F 16"
7786 ;;
7787 *)
7788 ws=m32
7789 ;;
7790 esac
7791
7792 # Now add the list of igen-generated files to ${sim_multi_src}
7793 # and ${sim_multi_obj}.
7794 for w in ${ws}; do
7795 for base in engine icache idecode model semantics support; do
7796 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
7797 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
7798 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
7799 done
7800 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
7801 done
7802
7803 # Add an include for the engine.h file. This file declares the
7804 # top-level foo_engine_run() function.
7805 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
7806
7807 # Add case statements for this engine to sim_engine_run().
7808 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7809 echo " case bfd_mach_${mach}:" >> multi-run.c
7810 if test ${mach} = ${sim_multi_default}; then
7811 echo " default:" >> multi-run.c
7812 sim_seen_default=yes
7813 fi
7814 done
7815 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
7816 >> multi-run.c
7817 echo " break;" >> multi-run.c
7818 done
7819
7820 # Check whether we added a 'default:' label.
7821 if test ${sim_seen_default} = no; then
b7026657
AC
7822 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&5
7823echo "$as_me: error: Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" >&2;}
7824 { (exit 1); exit 1; }; }
4c54fc26
CD
7825 fi
7826
7827 cat << __EOF__ >> multi-run.c
7828 }
7829}
7830
7831int
7832mips_mach_multi (SIM_DESC sd)
7833{
7834 if (STATE_ARCHITECTURE (sd) == NULL)
7835 return bfd_mach_${sim_multi_default};
7836
7837 switch (STATE_ARCHITECTURE (SD)->mach)
7838 {
7839__EOF__
7840
7841 # Add case statements for this engine to mips_mach_multi().
7842 for fc in ${sim_multi_configs}; do
7843
7844 # Split up the entry. ${c} contains the first three elements.
7845 # Note: outer sqaure brackets are m4 quotes.
7846 c=`echo ${fc} | sed 's/:[^:]*$//'`
7847 bfdmachs=`echo ${fc} | sed 's/.*://'`
7848
7849 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
7850 echo " case bfd_mach_${mach}:" >> multi-run.c
7851 done
7852 done
7853
7854 cat << __EOF__ >> multi-run.c
7855 return (STATE_ARCHITECTURE (SD)->mach);
7856 default:
7857 return bfd_mach_${sim_multi_default};
7858 }
7859}
7860__EOF__
7861
7862 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
7863else
7864 # For clean-extra
7865 sim_multi_src=doesnt-exist.c
7866
7867 if test x"${sim_mach_default}" = x""; then
b7026657
AC
7868 { { echo "$as_me:$LINENO: error: Error in configure.in: \${sim_mach_default} not defined" >&5
7869echo "$as_me: error: Error in configure.in: \${sim_mach_default} not defined" >&2;}
7870 { (exit 1); exit 1; }; }
4c54fc26
CD
7871 fi
7872 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
7873fi
c906108c
SS
7874sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
7875sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
7876
7877
7878
7879
7880
4c54fc26
CD
7881
7882
7883
7884
c906108c
SS
7885#
7886# Add simulated hardware devices
7887#
7888hw_enabled=no
7889case "${target}" in
7890 mips*tx39*)
7891 hw_enabled=yes
b7026657 7892 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
7893 mips_extra_objs="dv-sockser.o"
7894 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
7895 ;;
7896 *)
b7026657 7897 mips_extra_objs=""
c906108c
SS
7898 ;;
7899esac
7900
7901if test x"$hw_enabled" = x"yes"; then
7902 sim_hw_p=yes
7903else
7904 sim_hw_p=no
7905fi
7906if test "$hw_devices"; then
7907 hardware="core pal glue"
7908else
7909 hardware="core pal glue $hw_extra_devices"
7910fi
7911sim_hw_cflags="-DWITH_HW=1"
7912sim_hw="$hardware"
7913sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
7914# Check whether --enable-sim-hardware or --disable-sim-hardware was given.
7915if test "${enable_sim_hardware+set}" = set; then
7916 enableval="$enable_sim_hardware"
b7026657 7917
c906108c
SS
7918case "${enableval}" in
7919 yes) sim_hw_p=yes;;
7920 no) sim_hw_p=no;;
7921 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
7922 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
7923 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
7924esac
7925if test "$sim_hw_p" != yes; then
7926 sim_hw_objs=
7927 sim_hw_cflags="-DWITH_HW=0"
7928 sim_hw=
7929else
7930 sim_hw_cflags="-DWITH_HW=1"
7931 # remove duplicates
7932 sim_hw=""
7933 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
7934 for i in x $hardware ; do
7935 case " $f " in
7936 x) ;;
7937 *" $i "*) ;;
7938 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
7939 esac
7940 done
7941fi
7942if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
7943 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7944fi
7945else
b7026657 7946
c906108c
SS
7947if test "$sim_hw_p" != yes; then
7948 sim_hw_objs=
7949 sim_hw_cflags="-DWITH_HW=0"
7950 sim_hw=
7951fi
7952if test x"$silent" != x"yes"; then
7953 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
7954fi
b7026657 7955fi;
c906108c
SS
7956
7957
7958
7959# Choose simulator engine
7960case "${target}" in
7961 *) mips_igen_engine="engine.o"
7962 ;;
7963esac
7964
7965
7966
b7026657
AC
7967echo "$as_me:$LINENO: checking for X" >&5
7968echo $ECHO_N "checking for X... $ECHO_C" >&6
7969
c906108c
SS
7970
7971# Check whether --with-x or --without-x was given.
7972if test "${with_x+set}" = set; then
7973 withval="$with_x"
c906108c 7974
b7026657 7975fi;
c906108c
SS
7976# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7977if test "x$with_x" = xno; then
7978 # The user explicitly disabled X.
7979 have_x=disabled
7980else
7981 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7982 # Both variables are already set.
7983 have_x=yes
7984 else
b7026657
AC
7985 if test "${ac_cv_have_x+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
7987else
7988 # One or both of the vars are not set, and there is no cached value.
b7026657
AC
7989ac_x_includes=no ac_x_libraries=no
7990rm -fr conftest.dir
7991if mkdir conftest.dir; then
7992 cd conftest.dir
c906108c 7993 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
b7026657 7994 cat >Imakefile <<'_ACEOF'
c906108c
SS
7995acfindx:
7996 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
b7026657 7997_ACEOF
c906108c
SS
7998 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7999 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8000 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8001 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8002 for ac_extension in a so sl; do
8003 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
b7026657
AC
8004 test -f $ac_im_libdir/libX11.$ac_extension; then
8005 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
8006 fi
8007 done
8008 # Screen out bogus values from the imake configuration. They are
8009 # bogus both because they are the default anyway, and because
8010 # using them would break gcc on systems where it needs fixed includes.
b7026657 8011 case $ac_im_incroot in
c906108c 8012 /usr/include) ;;
b7026657 8013 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 8014 esac
b7026657 8015 case $ac_im_usrlibdir in
c906108c 8016 /usr/lib | /lib) ;;
b7026657 8017 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
8018 esac
8019 fi
8020 cd ..
b7026657 8021 rm -fr conftest.dir
c906108c
SS
8022fi
8023
b7026657
AC
8024# Standard set of common directories for X headers.
8025# Check X11 before X11Rn because it is often a symlink to the current release.
8026ac_x_header_dirs='
8027/usr/X11/include
8028/usr/X11R6/include
8029/usr/X11R5/include
8030/usr/X11R4/include
8031
8032/usr/include/X11
8033/usr/include/X11R6
8034/usr/include/X11R5
8035/usr/include/X11R4
8036
8037/usr/local/X11/include
8038/usr/local/X11R6/include
8039/usr/local/X11R5/include
8040/usr/local/X11R4/include
8041
8042/usr/local/include/X11
8043/usr/local/include/X11R6
8044/usr/local/include/X11R5
8045/usr/local/include/X11R4
8046
8047/usr/X386/include
8048/usr/x386/include
8049/usr/XFree86/include/X11
8050
8051/usr/include
8052/usr/local/include
8053/usr/unsupported/include
8054/usr/athena/include
8055/usr/local/x11r5/include
8056/usr/lpp/Xamples/include
8057
8058/usr/openwin/include
8059/usr/openwin/share/include'
8060
8061if test "$ac_x_includes" = no; then
8062 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 8063 # First, try using that file with no special directory specified.
b7026657
AC
8064 cat >conftest.$ac_ext <<_ACEOF
8065/* confdefs.h. */
8066_ACEOF
8067cat confdefs.h >>conftest.$ac_ext
8068cat >>conftest.$ac_ext <<_ACEOF
8069/* end confdefs.h. */
8070#include <X11/Intrinsic.h>
8071_ACEOF
8072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } >/dev/null; then
8080 if test -s conftest.err; then
8081 ac_cpp_err=$ac_c_preproc_warn_flag
8082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8083 else
8084 ac_cpp_err=
8085 fi
8086else
8087 ac_cpp_err=yes
8088fi
8089if test -z "$ac_cpp_err"; then
c906108c
SS
8090 # We can compile using X headers with no special include directory.
8091ac_x_includes=
8092else
b7026657
AC
8093 echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 for ac_dir in $ac_x_header_dirs; do
8097 if test -r "$ac_dir/X11/Intrinsic.h"; then
8098 ac_x_includes=$ac_dir
8099 break
8100 fi
8101done
c906108c 8102fi
b7026657
AC
8103rm -f conftest.err conftest.$ac_ext
8104fi # $ac_x_includes = no
c906108c 8105
b7026657 8106if test "$ac_x_libraries" = no; then
c906108c 8107 # Check for the libraries.
c906108c
SS
8108 # See if we find them without any special options.
8109 # Don't add to $LIBS permanently.
b7026657
AC
8110 ac_save_LIBS=$LIBS
8111 LIBS="-lXt $LIBS"
8112 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
8118#include <X11/Intrinsic.h>
8119int
8120main ()
8121{
8122XtMalloc (0)
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext conftest$ac_exeext
8128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest$ac_exeext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 LIBS=$ac_save_LIBS
c906108c
SS
8150# We can link X programs with no special library path.
8151ac_x_libraries=
8152else
b7026657
AC
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156LIBS=$ac_save_LIBS
8157for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 8158do
b7026657 8159 # Don't even attempt the hair of trying to link an X program!
c906108c 8160 for ac_extension in a so sl; do
b7026657 8161 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
8162 ac_x_libraries=$ac_dir
8163 break 2
8164 fi
8165 done
8166done
8167fi
b7026657
AC
8168rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170fi # $ac_x_libraries = no
c906108c 8171
b7026657 8172if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
8173 # Didn't find X anywhere. Cache the known absence of X.
8174 ac_cv_have_x="have_x=no"
8175else
8176 # Record where we found X for the cache.
8177 ac_cv_have_x="have_x=yes \
b7026657 8178 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
8179fi
8180fi
b7026657 8181
c906108c
SS
8182 fi
8183 eval "$ac_cv_have_x"
8184fi # $with_x != no
8185
8186if test "$have_x" != yes; then
b7026657
AC
8187 echo "$as_me:$LINENO: result: $have_x" >&5
8188echo "${ECHO_T}$have_x" >&6
c906108c
SS
8189 no_x=yes
8190else
8191 # If each of the values was on the command line, it overrides each guess.
8192 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8193 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8194 # Update the cache value to reflect the command line values.
8195 ac_cv_have_x="have_x=yes \
8196 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b7026657
AC
8197 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8198echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8199fi
8200
8201mips_extra_libs=""
8202
8203
8204
8205
8206
8207
8208for ac_header in string.h strings.h stdlib.h stdlib.h
8209do
8210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8211if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212 echo "$as_me:$LINENO: checking for $ac_header" >&5
8213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216fi
8217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219else
8220 # Is the header compilable?
8221echo "$as_me:$LINENO: checking $ac_header usability" >&5
8222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8223cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229$ac_includes_default
8230#include <$ac_header>
8231_ACEOF
8232rm -f conftest.$ac_objext
8233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8235 ac_status=$?
8236 grep -v '^ *+' conftest.er1 >conftest.err
8237 rm -f conftest.er1
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_c_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8250 (eval $ac_try) 2>&5
8251 ac_status=$?
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_header_compiler=yes
8255else
8256 echo "$as_me: failed program was:" >&5
8257sed 's/^/| /' conftest.$ac_ext >&5
8258
8259ac_header_compiler=no
8260fi
8261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8263echo "${ECHO_T}$ac_header_compiler" >&6
8264
8265# Is the header present?
8266echo "$as_me:$LINENO: checking $ac_header presence" >&5
8267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8268cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
8274#include <$ac_header>
8275_ACEOF
8276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } >/dev/null; then
8284 if test -s conftest.err; then
8285 ac_cpp_err=$ac_c_preproc_warn_flag
8286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8287 else
8288 ac_cpp_err=
8289 fi
8290else
8291 ac_cpp_err=yes
8292fi
8293if test -z "$ac_cpp_err"; then
8294 ac_header_preproc=yes
8295else
8296 echo "$as_me: failed program was:" >&5
8297sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 ac_header_preproc=no
8300fi
8301rm -f conftest.err conftest.$ac_ext
8302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303echo "${ECHO_T}$ac_header_preproc" >&6
8304
8305# So? What about this header?
8306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8307 yes:no: )
8308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8312 ac_header_preproc=yes
8313 ;;
8314 no:yes:* )
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8327 (
8328 cat <<\_ASBOX
8329## ------------------------------------------ ##
8330## Report this to the AC_PACKAGE_NAME lists. ##
8331## ------------------------------------------ ##
8332_ASBOX
8333 ) |
8334 sed "s/^/$as_me: WARNING: /" >&2
8335 ;;
8336esac
8337echo "$as_me:$LINENO: checking for $ac_header" >&5
8338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8339if eval "test \"\${$as_ac_Header+set}\" = set"; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 eval "$as_ac_Header=\$ac_header_preproc"
8343fi
8344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8346
8347fi
8348if test `eval echo '${'$as_ac_Header'}'` = yes; then
8349 cat >>confdefs.h <<_ACEOF
8350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8351_ACEOF
8352
8353fi
8354
8355done
8356
8357
8358echo "$as_me:$LINENO: checking for fabs in -lm" >&5
8359echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
8360if test "${ac_cv_lib_m_fabs+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363 ac_check_lib_save_LIBS=$LIBS
8364LIBS="-lm $LIBS"
8365cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371
8372/* Override any gcc2 internal prototype to avoid an error. */
8373#ifdef __cplusplus
8374extern "C"
8375#endif
8376/* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8378char fabs ();
8379int
8380main ()
8381{
8382fabs ();
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext conftest$ac_exeext
8388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389 (eval $ac_link) 2>conftest.er1
8390 ac_status=$?
8391 grep -v '^ *+' conftest.er1 >conftest.err
8392 rm -f conftest.er1
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -z "$ac_c_werror_flag"
8397 || test ! -s conftest.err'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_lib_m_fabs=yes
8410else
8411 echo "$as_me: failed program was:" >&5
8412sed 's/^/| /' conftest.$ac_ext >&5
8413
8414ac_cv_lib_m_fabs=no
8415fi
8416rm -f conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418LIBS=$ac_check_lib_save_LIBS
8419fi
8420echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
8421echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
8422if test $ac_cv_lib_m_fabs = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424#define HAVE_LIBM 1
8425_ACEOF
8426
8427 LIBS="-lm $LIBS"
8428
8429fi
8430
8431
8432
8433
8434for ac_func in aint anint sqrt
8435do
8436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8437echo "$as_me:$LINENO: checking for $ac_func" >&5
8438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8439if eval "test \"\${$as_ac_var+set}\" = set"; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441else
8442 cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h. */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */
8448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8450#define $ac_func innocuous_$ac_func
8451
8452/* System header to define __stub macros and hopefully few prototypes,
8453 which can conflict with char $ac_func (); below.
8454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455 <limits.h> exists even on freestanding compilers. */
8456
8457#ifdef __STDC__
8458# include <limits.h>
8459#else
8460# include <assert.h>
8461#endif
8462
8463#undef $ac_func
8464
8465/* Override any gcc2 internal prototype to avoid an error. */
8466#ifdef __cplusplus
8467extern "C"
8468{
8469#endif
8470/* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8472char $ac_func ();
8473/* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8477choke me
8478#else
8479char (*f) () = $ac_func;
8480#endif
8481#ifdef __cplusplus
8482}
8483#endif
8484
8485int
8486main ()
8487{
8488return f != $ac_func;
8489 ;
8490 return 0;
8491}
8492_ACEOF
8493rm -f conftest.$ac_objext conftest$ac_exeext
8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495 (eval $ac_link) 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } &&
8502 { ac_try='test -z "$ac_c_werror_flag"
8503 || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 eval "$as_ac_var=yes"
8516else
8517 echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520eval "$as_ac_var=no"
8521fi
8522rm -f conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524fi
8525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8527if test `eval echo '${'$as_ac_var'}'` = yes; then
8528 cat >>confdefs.h <<_ACEOF
8529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8530_ACEOF
8531
8532fi
8533done
8534
8535
8536
8537ac_sources="$sim_link_files"
8538ac_dests="$sim_link_links"
8539while test -n "$ac_sources"; do
8540 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8541 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8542 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
8543done
8544 ac_config_links="$ac_config_links $ac_config_links_1"
8545
8546cgen_breaks=""
8547if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
8548cgen_breaks="break cgen_rtx_error";
8549fi
8550
8551 ac_config_files="$ac_config_files Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in"
8552 ac_config_commands="$ac_config_commands default"
8553cat >confcache <<\_ACEOF
8554# This file is a shell script that caches the results of configure
8555# tests run on this system so they can be shared between configure
8556# scripts and configure runs, see configure's option --config-cache.
8557# It is not useful on other systems. If it contains results you don't
8558# want to keep, you may remove or edit it.
8559#
8560# config.status only pays attention to the cache file if you give it
8561# the --recheck option to rerun configure.
8562#
8563# `ac_cv_env_foo' variables (set or unset) will be overridden when
8564# loading this file, other *unset* `ac_cv_foo' will be assigned the
8565# following values.
8566
8567_ACEOF
8568
8569# The following way of writing the cache mishandles newlines in values,
8570# but we know of no workaround that is simple, portable, and efficient.
8571# So, don't put newlines in cache variables' values.
8572# Ultrix sh set writes to stderr and can't be redirected directly,
8573# and sets the high bit in the cache file unless we assign to the vars.
8574{
8575 (set) 2>&1 |
8576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8577 *ac_space=\ *)
8578 # `set' does not quote correctly, so add quotes (double-quote
8579 # substitution turns \\\\ into \\, and sed turns \\ into \).
8580 sed -n \
8581 "s/'/'\\\\''/g;
8582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8583 ;;
8584 *)
8585 # `set' quotes correctly as required by POSIX, so do not add quotes.
8586 sed -n \
8587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8588 ;;
8589 esac;
8590} |
8591 sed '
8592 t clear
8593 : clear
8594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8595 t end
8596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8597 : end' >>confcache
8598if diff $cache_file confcache >/dev/null 2>&1; then :; else
8599 if test -w $cache_file; then
8600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8601 cat confcache >$cache_file
8602 else
8603 echo "not updating unwritable cache $cache_file"
8604 fi
8605fi
8606rm -f confcache
8607
8608test "x$prefix" = xNONE && prefix=$ac_default_prefix
8609# Let make expand exec_prefix.
8610test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8611
8612# VPATH may cause trouble with some makes, so we remove $(srcdir),
8613# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8614# trailing colons and then remove the whole line if VPATH becomes empty
8615# (actually we leave an empty line to preserve line numbers).
8616if test "x$srcdir" = x.; then
8617 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8618s/:*\$(srcdir):*/:/;
8619s/:*\${srcdir}:*/:/;
8620s/:*@srcdir@:*/:/;
8621s/^\([^=]*=[ ]*\):*/\1/;
8622s/:*$//;
8623s/^[^=]*=[ ]*$//;
8624}'
c906108c
SS
8625fi
8626
b7026657
AC
8627DEFS=-DHAVE_CONFIG_H
8628
8629ac_libobjs=
8630ac_ltlibobjs=
8631for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8632 # 1. Remove the extension, and $U if already installed.
8633 ac_i=`echo "$ac_i" |
8634 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8635 # 2. Add them.
8636 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8637 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8638done
8639LIBOBJS=$ac_libobjs
8640
8641LTLIBOBJS=$ac_ltlibobjs
8642
8643
8644
8645: ${CONFIG_STATUS=./config.status}
8646ac_clean_files_save=$ac_clean_files
8647ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8648{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8649echo "$as_me: creating $CONFIG_STATUS" >&6;}
8650cat >$CONFIG_STATUS <<_ACEOF
8651#! $SHELL
8652# Generated by $as_me.
8653# Run this file to recreate the current configuration.
8654# Compiler output produced by configure, useful for debugging
8655# configure, is in config.log if it exists.
c906108c 8656
b7026657
AC
8657debug=false
8658ac_cs_recheck=false
8659ac_cs_silent=false
8660SHELL=\${CONFIG_SHELL-$SHELL}
8661_ACEOF
c906108c 8662
b7026657
AC
8663cat >>$CONFIG_STATUS <<\_ACEOF
8664## --------------------- ##
8665## M4sh Initialization. ##
8666## --------------------- ##
8667
8668# Be Bourne compatible
8669if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8670 emulate sh
8671 NULLCMD=:
8672 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8673 # is contrary to our usage. Disable this feature.
8674 alias -g '${1+"$@"}'='"$@"'
8675elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8676 set -o posix
c906108c 8677fi
b7026657
AC
8678DUALCASE=1; export DUALCASE # for MKS sh
8679
8680# Support unset when possible.
8681if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8682 as_unset=unset
c906108c 8683else
b7026657 8684 as_unset=false
c906108c 8685fi
b7026657
AC
8686
8687
8688# Work around bugs in pre-3.0 UWIN ksh.
8689$as_unset ENV MAIL MAILPATH
8690PS1='$ '
8691PS2='> '
8692PS4='+ '
8693
8694# NLS nuisances.
8695for as_var in \
8696 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8697 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8698 LC_TELEPHONE LC_TIME
8699do
8700 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8701 eval $as_var=C; export $as_var
8702 else
8703 $as_unset $as_var
8704 fi
c906108c
SS
8705done
8706
b7026657
AC
8707# Required to use basename.
8708if expr a : '\(a\)' >/dev/null 2>&1; then
8709 as_expr=expr
c906108c 8710else
b7026657 8711 as_expr=false
c906108c 8712fi
c906108c 8713
b7026657
AC
8714if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8715 as_basename=basename
8716else
8717 as_basename=false
c906108c 8718fi
c906108c 8719
c906108c 8720
b7026657
AC
8721# Name of the executable.
8722as_me=`$as_basename "$0" ||
8723$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8724 X"$0" : 'X\(//\)$' \| \
8725 X"$0" : 'X\(/\)$' \| \
8726 . : '\(.\)' 2>/dev/null ||
8727echo X/"$0" |
8728 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8729 /^X\/\(\/\/\)$/{ s//\1/; q; }
8730 /^X\/\(\/\).*/{ s//\1/; q; }
8731 s/.*/./; q'`
8732
8733
8734# PATH needs CR, and LINENO needs CR and PATH.
8735# Avoid depending upon Character Ranges.
8736as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8737as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8738as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8739as_cr_digits='0123456789'
8740as_cr_alnum=$as_cr_Letters$as_cr_digits
8741
8742# The user is always right.
8743if test "${PATH_SEPARATOR+set}" != set; then
8744 echo "#! /bin/sh" >conf$$.sh
8745 echo "exit 0" >>conf$$.sh
8746 chmod +x conf$$.sh
8747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8748 PATH_SEPARATOR=';'
8749 else
8750 PATH_SEPARATOR=:
8751 fi
8752 rm -f conf$$.sh
c906108c
SS
8753fi
8754
b7026657
AC
8755
8756 as_lineno_1=$LINENO
8757 as_lineno_2=$LINENO
8758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8759 test "x$as_lineno_1" != "x$as_lineno_2" &&
8760 test "x$as_lineno_3" = "x$as_lineno_2" || {
8761 # Find who we are. Look in the path if we contain no path at all
8762 # relative or not.
8763 case $0 in
8764 *[\\/]* ) as_myself=$0 ;;
8765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
c906108c 8767do
b7026657
AC
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8771done
c906108c 8772
b7026657
AC
8773 ;;
8774 esac
8775 # We did not find ourselves, most probably we were run as `sh COMMAND'
8776 # in which case we are not to be found in the path.
8777 if test "x$as_myself" = x; then
8778 as_myself=$0
8779 fi
8780 if test ! -f "$as_myself"; then
8781 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8782echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8783 { (exit 1); exit 1; }; }
8784 fi
8785 case $CONFIG_SHELL in
8786 '')
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8788for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8789do
8790 IFS=$as_save_IFS
8791 test -z "$as_dir" && as_dir=.
8792 for as_base in sh bash ksh sh5; do
8793 case $as_dir in
8794 /*)
8795 if ("$as_dir/$as_base" -c '
8796 as_lineno_1=$LINENO
8797 as_lineno_2=$LINENO
8798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8799 test "x$as_lineno_1" != "x$as_lineno_2" &&
8800 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8801 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8802 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8803 CONFIG_SHELL=$as_dir/$as_base
8804 export CONFIG_SHELL
8805 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8806 fi;;
8807 esac
8808 done
8809done
8810;;
8811 esac
c906108c 8812
b7026657
AC
8813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8814 # uniformly replaced by the line number. The first 'sed' inserts a
8815 # line-number line before each line; the second 'sed' does the real
8816 # work. The second script uses 'N' to pair each line-number line
8817 # with the numbered line, and appends trailing '-' during
8818 # substitution so that $LINENO is not a special case at line end.
8819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8820 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8821 sed '=' <$as_myself |
8822 sed '
8823 N
8824 s,$,-,
8825 : loop
8826 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8827 t loop
8828 s,-$,,
8829 s,^['$as_cr_digits']*\n,,
8830 ' >$as_me.lineno &&
8831 chmod +x $as_me.lineno ||
8832 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8833echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8834 { (exit 1); exit 1; }; }
8835
8836 # Don't try to exec as it changes $[0], causing all sort of problems
8837 # (the dirname of $[0] is not the place where we might find the
8838 # original and so on. Autoconf is especially sensible to this).
8839 . ./$as_me.lineno
8840 # Exit status is that of the last command.
8841 exit
8842}
8843
8844
8845case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8846 *c*,-n*) ECHO_N= ECHO_C='
8847' ECHO_T=' ' ;;
8848 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8849 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8850esac
c906108c 8851
b7026657
AC
8852if expr a : '\(a\)' >/dev/null 2>&1; then
8853 as_expr=expr
c906108c 8854else
b7026657 8855 as_expr=false
c906108c 8856fi
b7026657
AC
8857
8858rm -f conf$$ conf$$.exe conf$$.file
8859echo >conf$$.file
8860if ln -s conf$$.file conf$$ 2>/dev/null; then
8861 # We could just check for DJGPP; but this test a) works b) is more generic
8862 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8863 if test -f conf$$.exe; then
8864 # Don't use ln at all; we don't have any links
8865 as_ln_s='cp -p'
8866 else
8867 as_ln_s='ln -s'
8868 fi
8869elif ln conf$$.file conf$$ 2>/dev/null; then
8870 as_ln_s=ln
8871else
8872 as_ln_s='cp -p'
c906108c 8873fi
b7026657 8874rm -f conf$$ conf$$.exe conf$$.file
c906108c 8875
b7026657
AC
8876if mkdir -p . 2>/dev/null; then
8877 as_mkdir_p=:
c906108c 8878else
b7026657
AC
8879 test -d ./-p && rmdir ./-p
8880 as_mkdir_p=false
c906108c 8881fi
c906108c 8882
b7026657 8883as_executable_p="test -f"
c906108c 8884
b7026657
AC
8885# Sed expression to map a string onto a valid CPP name.
8886as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 8887
b7026657
AC
8888# Sed expression to map a string onto a valid variable name.
8889as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 8890
b7026657
AC
8891
8892# IFS
8893# We need space, tab and new line, in precisely that order.
8894as_nl='
8895'
8896IFS=" $as_nl"
8897
8898# CDPATH.
8899$as_unset CDPATH
8900
8901exec 6>&1
8902
8903# Open the log real soon, to keep \$[0] and so on meaningful, and to
8904# report actual input values of CONFIG_FILES etc. instead of their
8905# values after options handling. Logging --version etc. is OK.
8906exec 5>>config.log
8907{
8908 echo
8909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8910## Running $as_me. ##
8911_ASBOX
8912} >&5
8913cat >&5 <<_CSEOF
8914
8915This file was extended by $as_me, which was
8916generated by GNU Autoconf 2.59. Invocation command line was
8917
8918 CONFIG_FILES = $CONFIG_FILES
8919 CONFIG_HEADERS = $CONFIG_HEADERS
8920 CONFIG_LINKS = $CONFIG_LINKS
8921 CONFIG_COMMANDS = $CONFIG_COMMANDS
8922 $ $0 $@
8923
8924_CSEOF
8925echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8926echo >&5
8927_ACEOF
8928
8929# Files that config.status was made for.
8930if test -n "$ac_config_files"; then
8931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
379832de
HPN
8932fi
8933
b7026657
AC
8934if test -n "$ac_config_headers"; then
8935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8936fi
8937
8938if test -n "$ac_config_links"; then
8939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8940fi
8941
8942if test -n "$ac_config_commands"; then
8943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8944fi
8945
8946cat >>$CONFIG_STATUS <<\_ACEOF
8947
8948ac_cs_usage="\
8949\`$as_me' instantiates files from templates according to the
8950current configuration.
8951
8952Usage: $0 [OPTIONS] [FILE]...
8953
8954 -h, --help print this help, then exit
8955 -V, --version print version number, then exit
8956 -q, --quiet do not print progress messages
8957 -d, --debug don't remove temporary files
8958 --recheck update $as_me by reconfiguring in the same conditions
8959 --file=FILE[:TEMPLATE]
8960 instantiate the configuration file FILE
8961 --header=FILE[:TEMPLATE]
8962 instantiate the configuration header FILE
8963
8964Configuration files:
8965$config_files
8966
8967Configuration headers:
8968$config_headers
8969
8970Configuration links:
8971$config_links
8972
8973Configuration commands:
8974$config_commands
8975
8976Report bugs to <bug-autoconf@gnu.org>."
8977_ACEOF
8978
8979cat >>$CONFIG_STATUS <<_ACEOF
8980ac_cs_version="\\
8981config.status
8982configured by $0, generated by GNU Autoconf 2.59,
8983 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8984
8985Copyright (C) 2003 Free Software Foundation, Inc.
8986This config.status script is free software; the Free Software Foundation
8987gives unlimited permission to copy, distribute and modify it."
8988srcdir=$srcdir
8989INSTALL="$INSTALL"
8990_ACEOF
8991
8992cat >>$CONFIG_STATUS <<\_ACEOF
8993# If no file are specified by the user, then we need to provide default
8994# value. By we need to know if files were specified by the user.
8995ac_need_defaults=:
8996while test $# != 0
8997do
8998 case $1 in
8999 --*=*)
9000 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9001 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9002 ac_shift=:
c906108c 9003 ;;
b7026657
AC
9004 -*)
9005 ac_option=$1
9006 ac_optarg=$2
9007 ac_shift=shift
c906108c 9008 ;;
b7026657
AC
9009 *) # This is not an option, so the user has probably given explicit
9010 # arguments.
9011 ac_option=$1
9012 ac_need_defaults=false;;
9013 esac
c906108c 9014
b7026657
AC
9015 case $ac_option in
9016 # Handling of the options.
9017_ACEOF
9018cat >>$CONFIG_STATUS <<\_ACEOF
9019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9020 ac_cs_recheck=: ;;
9021 --version | --vers* | -V )
9022 echo "$ac_cs_version"; exit 0 ;;
9023 --he | --h)
9024 # Conflict between --help and --header
9025 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9026Try \`$0 --help' for more information." >&5
9027echo "$as_me: error: ambiguous option: $1
9028Try \`$0 --help' for more information." >&2;}
9029 { (exit 1); exit 1; }; };;
9030 --help | --hel | -h )
9031 echo "$ac_cs_usage"; exit 0 ;;
9032 --debug | --d* | -d )
9033 debug=: ;;
9034 --file | --fil | --fi | --f )
9035 $ac_shift
9036 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9037 ac_need_defaults=false;;
9038 --header | --heade | --head | --hea )
9039 $ac_shift
9040 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9041 ac_need_defaults=false;;
9042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9043 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9044 ac_cs_silent=: ;;
c906108c 9045
b7026657
AC
9046 # This is an error.
9047 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9048Try \`$0 --help' for more information." >&5
9049echo "$as_me: error: unrecognized option: $1
9050Try \`$0 --help' for more information." >&2;}
9051 { (exit 1); exit 1; }; } ;;
c906108c 9052
b7026657
AC
9053 *) ac_config_targets="$ac_config_targets $1" ;;
9054
9055 esac
9056 shift
9057done
9058
9059ac_configure_extra_args=
9060
9061if $ac_cs_silent; then
9062 exec 6>/dev/null
9063 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
9064fi
9065
b7026657
AC
9066_ACEOF
9067cat >>$CONFIG_STATUS <<_ACEOF
9068if \$ac_cs_recheck; then
9069 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9070 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9071fi
c906108c 9072
b7026657 9073_ACEOF
c906108c 9074
c906108c 9075
c906108c 9076
b7026657
AC
9077
9078
9079cat >>$CONFIG_STATUS <<\_ACEOF
9080for ac_config_target in $ac_config_targets
c906108c 9081do
b7026657
AC
9082 case "$ac_config_target" in
9083 # Handling of arguments.
9084 "Makefile.sim" ) CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
9085 "Make-common.sim" ) CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
9086 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
9087 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
9088 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9089 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9091echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9092 { (exit 1); exit 1; }; };;
c906108c
SS
9093 esac
9094done
9095
b7026657
AC
9096# If the user did not use the arguments to specify the items to instantiate,
9097# then the envvar interface is used. Set only those that are not.
9098# We use the long form for the default assignment because of an extremely
9099# bizarre bug on SunOS 4.1.3.
9100if $ac_need_defaults; then
9101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9103 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9105fi
9106
9107# Have a temporary directory for convenience. Make it in the build tree
9108# simply because there is no reason to put it here, and in addition,
9109# creating and moving files from /tmp can sometimes cause problems.
9110# Create a temporary directory, and hook for its removal unless debugging.
9111$debug ||
9112{
9113 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9114 trap '{ (exit 1); exit 1; }' 1 2 13 15
9115}
c906108c 9116
b7026657 9117# Create a (secure) tmp directory for tmp files.
c906108c 9118
b7026657
AC
9119{
9120 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9121 test -n "$tmp" && test -d "$tmp"
9122} ||
9123{
9124 tmp=./confstat$$-$RANDOM
9125 (umask 077 && mkdir $tmp)
9126} ||
9127{
9128 echo "$me: cannot create a temporary directory in ." >&2
9129 { (exit 1); exit 1; }
9130}
9131
9132_ACEOF
9133
9134cat >>$CONFIG_STATUS <<_ACEOF
9135
9136#
9137# CONFIG_FILES section.
9138#
c906108c 9139
b7026657
AC
9140# No need to generate the scripts if there are no CONFIG_FILES.
9141# This happens for instance when ./config.status config.h
9142if test -n "\$CONFIG_FILES"; then
9143 # Protect against being on the right side of a sed subst in config.status.
9144 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9145 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9146s,@sim_environment@,$sim_environment,;t t
9147s,@sim_alignment@,$sim_alignment,;t t
9148s,@sim_assert@,$sim_assert,;t t
9149s,@sim_bitsize@,$sim_bitsize,;t t
9150s,@sim_endian@,$sim_endian,;t t
9151s,@sim_hostendian@,$sim_hostendian,;t t
9152s,@sim_float@,$sim_float,;t t
9153s,@sim_scache@,$sim_scache,;t t
9154s,@sim_default_model@,$sim_default_model,;t t
9155s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9156s,@sim_hw_objs@,$sim_hw_objs,;t t
9157s,@sim_hw@,$sim_hw,;t t
9158s,@sim_inline@,$sim_inline,;t t
9159s,@sim_packages@,$sim_packages,;t t
9160s,@sim_regparm@,$sim_regparm,;t t
9161s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9162s,@sim_smp@,$sim_smp,;t t
9163s,@sim_stdcall@,$sim_stdcall,;t t
9164s,@sim_xor_endian@,$sim_xor_endian,;t t
9165s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9166s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9167s,@SHELL@,$SHELL,;t t
9168s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9169s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9170s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9171s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9172s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9173s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9174s,@exec_prefix@,$exec_prefix,;t t
9175s,@prefix@,$prefix,;t t
9176s,@program_transform_name@,$program_transform_name,;t t
9177s,@bindir@,$bindir,;t t
9178s,@sbindir@,$sbindir,;t t
9179s,@libexecdir@,$libexecdir,;t t
9180s,@datadir@,$datadir,;t t
9181s,@sysconfdir@,$sysconfdir,;t t
9182s,@sharedstatedir@,$sharedstatedir,;t t
9183s,@localstatedir@,$localstatedir,;t t
9184s,@libdir@,$libdir,;t t
9185s,@includedir@,$includedir,;t t
9186s,@oldincludedir@,$oldincludedir,;t t
9187s,@infodir@,$infodir,;t t
9188s,@mandir@,$mandir,;t t
9189s,@build_alias@,$build_alias,;t t
9190s,@host_alias@,$host_alias,;t t
9191s,@target_alias@,$target_alias,;t t
9192s,@DEFS@,$DEFS,;t t
9193s,@ECHO_C@,$ECHO_C,;t t
9194s,@ECHO_N@,$ECHO_N,;t t
9195s,@ECHO_T@,$ECHO_T,;t t
9196s,@LIBS@,$LIBS,;t t
9197s,@build@,$build,;t t
9198s,@build_cpu@,$build_cpu,;t t
9199s,@build_vendor@,$build_vendor,;t t
9200s,@build_os@,$build_os,;t t
9201s,@host@,$host,;t t
9202s,@host_cpu@,$host_cpu,;t t
9203s,@host_vendor@,$host_vendor,;t t
9204s,@host_os@,$host_os,;t t
9205s,@target@,$target,;t t
9206s,@target_cpu@,$target_cpu,;t t
9207s,@target_vendor@,$target_vendor,;t t
9208s,@target_os@,$target_os,;t t
9209s,@CC@,$CC,;t t
9210s,@CFLAGS@,$CFLAGS,;t t
9211s,@LDFLAGS@,$LDFLAGS,;t t
9212s,@CPPFLAGS@,$CPPFLAGS,;t t
9213s,@ac_ct_CC@,$ac_ct_CC,;t t
9214s,@EXEEXT@,$EXEEXT,;t t
9215s,@OBJEXT@,$OBJEXT,;t t
9216s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9217s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9218s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9219s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9220s,@HDEFINES@,$HDEFINES,;t t
9221s,@AR@,$AR,;t t
9222s,@RANLIB@,$RANLIB,;t t
9223s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9224s,@SET_MAKE@,$SET_MAKE,;t t
9225s,@CPP@,$CPP,;t t
9226s,@EGREP@,$EGREP,;t t
9227s,@ALLOCA@,$ALLOCA,;t t
9228s,@USE_NLS@,$USE_NLS,;t t
9229s,@MSGFMT@,$MSGFMT,;t t
9230s,@GMSGFMT@,$GMSGFMT,;t t
9231s,@XGETTEXT@,$XGETTEXT,;t t
9232s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9233s,@CATALOGS@,$CATALOGS,;t t
9234s,@CATOBJEXT@,$CATOBJEXT,;t t
9235s,@DATADIRNAME@,$DATADIRNAME,;t t
9236s,@GMOFILES@,$GMOFILES,;t t
9237s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9238s,@INTLDEPS@,$INTLDEPS,;t t
9239s,@INTLLIBS@,$INTLLIBS,;t t
9240s,@INTLOBJS@,$INTLOBJS,;t t
9241s,@POFILES@,$POFILES,;t t
9242s,@POSUB@,$POSUB,;t t
9243s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9244s,@GT_NO@,$GT_NO,;t t
9245s,@GT_YES@,$GT_YES,;t t
9246s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9247s,@l@,$l,;t t
9248s,@MAINT@,$MAINT,;t t
9249s,@sim_bswap@,$sim_bswap,;t t
9250s,@sim_cflags@,$sim_cflags,;t t
9251s,@sim_debug@,$sim_debug,;t t
9252s,@sim_stdio@,$sim_stdio,;t t
9253s,@sim_trace@,$sim_trace,;t t
9254s,@sim_profile@,$sim_profile,;t t
9255s,@SIM_SUBTARGET@,$SIM_SUBTARGET,;t t
9256s,@sim_igen_flags@,$sim_igen_flags,;t t
9257s,@sim_m16_flags@,$sim_m16_flags,;t t
9258s,@sim_gen@,$sim_gen,;t t
9259s,@sim_multi_flags@,$sim_multi_flags,;t t
9260s,@sim_multi_igen_configs@,$sim_multi_igen_configs,;t t
9261s,@sim_multi_src@,$sim_multi_src,;t t
9262s,@sim_multi_obj@,$sim_multi_obj,;t t
9263s,@mips_extra_objs@,$mips_extra_objs,;t t
9264s,@mips_igen_engine@,$mips_igen_engine,;t t
9265s,@mips_extra_libs@,$mips_extra_libs,;t t
9266s,@cgen_breaks@,$cgen_breaks,;t t
9267s,@LIBOBJS@,$LIBOBJS,;t t
9268s,@LTLIBOBJS@,$LTLIBOBJS,;t t
c906108c 9269CEOF
b7026657
AC
9270
9271_ACEOF
9272
9273 cat >>$CONFIG_STATUS <<\_ACEOF
9274 # Split the substitutions into bite-sized pieces for seds with
9275 # small command number limits, like on Digital OSF/1 and HP-UX.
9276 ac_max_sed_lines=48
9277 ac_sed_frag=1 # Number of current file.
9278 ac_beg=1 # First line for current file.
9279 ac_end=$ac_max_sed_lines # Line after last line for current file.
9280 ac_more_lines=:
9281 ac_sed_cmds=
9282 while $ac_more_lines; do
9283 if test $ac_beg -gt 1; then
9284 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
c906108c 9285 else
b7026657
AC
9286 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9287 fi
9288 if test ! -s $tmp/subs.frag; then
9289 ac_more_lines=false
9290 else
9291 # The purpose of the label and of the branching condition is to
9292 # speed up the sed processing (if there are no `@' at all, there
9293 # is no need to browse any of the substitutions).
9294 # These are the two extra sed commands mentioned above.
9295 (echo ':t
9296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9297 if test -z "$ac_sed_cmds"; then
9298 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9299 else
9300 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9301 fi
9302 ac_sed_frag=`expr $ac_sed_frag + 1`
9303 ac_beg=$ac_end
9304 ac_end=`expr $ac_end + $ac_max_sed_lines`
c906108c 9305 fi
b7026657
AC
9306 done
9307 if test -z "$ac_sed_cmds"; then
9308 ac_sed_cmds=cat
c906108c 9309 fi
b7026657 9310fi # test -n "$CONFIG_FILES"
c906108c 9311
b7026657
AC
9312_ACEOF
9313cat >>$CONFIG_STATUS <<\_ACEOF
9314for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
c906108c 9315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
9316 case $ac_file in
9317 - | *:- | *:-:* ) # input from stdin
9318 cat >$tmp/stdin
9319 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9321 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9322 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9323 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9324 esac
9325
b7026657
AC
9326 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9327 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9328$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9329 X"$ac_file" : 'X\(//\)[^/]' \| \
9330 X"$ac_file" : 'X\(//\)$' \| \
9331 X"$ac_file" : 'X\(/\)' \| \
9332 . : '\(.\)' 2>/dev/null ||
9333echo X"$ac_file" |
9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9336 /^X\(\/\/\)$/{ s//\1/; q; }
9337 /^X\(\/\).*/{ s//\1/; q; }
9338 s/.*/./; q'`
9339 { if $as_mkdir_p; then
9340 mkdir -p "$ac_dir"
c906108c 9341 else
b7026657
AC
9342 as_dir="$ac_dir"
9343 as_dirs=
9344 while test ! -d "$as_dir"; do
9345 as_dirs="$as_dir $as_dirs"
9346 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9348 X"$as_dir" : 'X\(//\)[^/]' \| \
9349 X"$as_dir" : 'X\(//\)$' \| \
9350 X"$as_dir" : 'X\(/\)' \| \
9351 . : '\(.\)' 2>/dev/null ||
9352echo X"$as_dir" |
9353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9355 /^X\(\/\/\)$/{ s//\1/; q; }
9356 /^X\(\/\).*/{ s//\1/; q; }
9357 s/.*/./; q'`
9358 done
9359 test ! -n "$as_dirs" || mkdir $as_dirs
9360 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9361echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9362 { (exit 1); exit 1; }; }; }
9363
9364 ac_builddir=.
c906108c 9365
b7026657
AC
9366if test "$ac_dir" != .; then
9367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9368 # A "../" for each directory in $ac_dir_suffix.
9369 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9370else
9371 ac_dir_suffix= ac_top_builddir=
9372fi
9373
9374case $srcdir in
9375 .) # No --srcdir option. We are building in place.
9376 ac_srcdir=.
9377 if test -z "$ac_top_builddir"; then
9378 ac_top_srcdir=.
9379 else
9380 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9381 fi ;;
9382 [\\/]* | ?:[\\/]* ) # Absolute path.
9383 ac_srcdir=$srcdir$ac_dir_suffix;
9384 ac_top_srcdir=$srcdir ;;
c906108c 9385 *) # Relative path.
b7026657
AC
9386 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9387 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9388esac
c906108c 9389
b7026657
AC
9390# Do not use `cd foo && pwd` to compute absolute paths, because
9391# the directories may not exist.
9392case `pwd` in
9393.) ac_abs_builddir="$ac_dir";;
9394*)
9395 case "$ac_dir" in
9396 .) ac_abs_builddir=`pwd`;;
9397 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9398 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9399 esac;;
9400esac
9401case $ac_abs_builddir in
9402.) ac_abs_top_builddir=${ac_top_builddir}.;;
9403*)
9404 case ${ac_top_builddir}. in
9405 .) ac_abs_top_builddir=$ac_abs_builddir;;
9406 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9407 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9408 esac;;
9409esac
9410case $ac_abs_builddir in
9411.) ac_abs_srcdir=$ac_srcdir;;
9412*)
9413 case $ac_srcdir in
9414 .) ac_abs_srcdir=$ac_abs_builddir;;
9415 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9416 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9417 esac;;
9418esac
9419case $ac_abs_builddir in
9420.) ac_abs_top_srcdir=$ac_top_srcdir;;
9421*)
9422 case $ac_top_srcdir in
9423 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9424 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9425 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9426 esac;;
9427esac
c906108c 9428
b7026657
AC
9429
9430 case $INSTALL in
9431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9432 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
9433 esac
9434
b7026657
AC
9435 if test x"$ac_file" != x-; then
9436 { echo "$as_me:$LINENO: creating $ac_file" >&5
9437echo "$as_me: creating $ac_file" >&6;}
9438 rm -f "$ac_file"
9439 fi
9440 # Let's still pretend it is `configure' which instantiates (i.e., don't
9441 # use $as_me), people would be surprised to read:
9442 # /* config.h. Generated by config.status. */
9443 if test x"$ac_file" = x-; then
9444 configure_input=
9445 else
9446 configure_input="$ac_file. "
9447 fi
9448 configure_input=$configure_input"Generated from `echo $ac_file_in |
9449 sed 's,.*/,,'` by configure."
9450
9451 # First look for the input files in the build tree, otherwise in the
9452 # src tree.
9453 ac_file_inputs=`IFS=:
9454 for f in $ac_file_in; do
9455 case $f in
9456 -) echo $tmp/stdin ;;
9457 [\\/$]*)
9458 # Absolute (can't be DOS-style, as IFS=:)
9459 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9460echo "$as_me: error: cannot find input file: $f" >&2;}
9461 { (exit 1); exit 1; }; }
9462 echo "$f";;
9463 *) # Relative
9464 if test -f "$f"; then
9465 # Build tree
9466 echo "$f"
9467 elif test -f "$srcdir/$f"; then
9468 # Source tree
9469 echo "$srcdir/$f"
9470 else
9471 # /dev/null tree
9472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9473echo "$as_me: error: cannot find input file: $f" >&2;}
9474 { (exit 1); exit 1; }; }
9475 fi;;
9476 esac
9477 done` || { (exit 1); exit 1; }
9478_ACEOF
9479cat >>$CONFIG_STATUS <<_ACEOF
9480 sed "$ac_vpsub
9481$extrasub
9482_ACEOF
9483cat >>$CONFIG_STATUS <<\_ACEOF
9484:t
9485/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9486s,@configure_input@,$configure_input,;t t
9487s,@srcdir@,$ac_srcdir,;t t
9488s,@abs_srcdir@,$ac_abs_srcdir,;t t
9489s,@top_srcdir@,$ac_top_srcdir,;t t
9490s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9491s,@builddir@,$ac_builddir,;t t
9492s,@abs_builddir@,$ac_abs_builddir,;t t
9493s,@top_builddir@,$ac_top_builddir,;t t
9494s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9495s,@INSTALL@,$ac_INSTALL,;t t
9496" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9497 rm -f $tmp/stdin
9498 if test x"$ac_file" != x-; then
9499 mv $tmp/out $ac_file
9500 else
9501 cat $tmp/out
9502 rm -f $tmp/out
9503 fi
9504
9505done
9506_ACEOF
9507cat >>$CONFIG_STATUS <<\_ACEOF
9508
9509#
9510# CONFIG_HEADER section.
9511#
c906108c
SS
9512
9513# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9514# NAME is the cpp macro being defined and VALUE is the value it is being given.
9515#
9516# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
9517ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9518ac_dB='[ ].*$,\1#\2'
9519ac_dC=' '
9520ac_dD=',;t'
9521# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9522ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9523ac_uB='$,\1#\2define\3'
c906108c 9524ac_uC=' '
b7026657
AC
9525ac_uD=',;t'
9526
9527for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 9528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
9529 case $ac_file in
9530 - | *:- | *:-:* ) # input from stdin
9531 cat >$tmp/stdin
9532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9536 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9537 esac
9538
b7026657
AC
9539 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9540echo "$as_me: creating $ac_file" >&6;}
9541
9542 # First look for the input files in the build tree, otherwise in the
9543 # src tree.
9544 ac_file_inputs=`IFS=:
9545 for f in $ac_file_in; do
9546 case $f in
9547 -) echo $tmp/stdin ;;
9548 [\\/$]*)
9549 # Absolute (can't be DOS-style, as IFS=:)
9550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9551echo "$as_me: error: cannot find input file: $f" >&2;}
9552 { (exit 1); exit 1; }; }
9553 # Do quote $f, to prevent DOS paths from being IFS'd.
9554 echo "$f";;
9555 *) # Relative
9556 if test -f "$f"; then
9557 # Build tree
9558 echo "$f"
9559 elif test -f "$srcdir/$f"; then
9560 # Source tree
9561 echo "$srcdir/$f"
9562 else
9563 # /dev/null tree
9564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9565echo "$as_me: error: cannot find input file: $f" >&2;}
9566 { (exit 1); exit 1; }; }
9567 fi;;
9568 esac
9569 done` || { (exit 1); exit 1; }
9570 # Remove the trailing spaces.
9571 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9572
9573_ACEOF
9574
9575# Transform confdefs.h into two sed scripts, `conftest.defines' and
9576# `conftest.undefs', that substitutes the proper values into
9577# config.h.in to produce config.h. The first handles `#define'
9578# templates, and the second `#undef' templates.
9579# And first: Protect against being on the right side of a sed subst in
9580# config.status. Protect against being in an unquoted here document
9581# in config.status.
9582rm -f conftest.defines conftest.undefs
9583# Using a here document instead of a string reduces the quoting nightmare.
9584# Putting comments in sed scripts is not portable.
9585#
9586# `end' is used to avoid that the second main sed command (meant for
9587# 0-ary CPP macros) applies to n-ary macro definitions.
9588# See the Autoconf documentation for `clear'.
9589cat >confdef2sed.sed <<\_ACEOF
9590s/[\\&,]/\\&/g
9591s,[\\$`],\\&,g
9592t clear
9593: clear
9594s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9595t end
9596s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9597: end
9598_ACEOF
9599# If some macros were called several times there might be several times
9600# the same #defines, which is useless. Nevertheless, we may not want to
9601# sort them, since we want the *last* AC-DEFINE to be honored.
9602uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9603sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9604rm -f confdef2sed.sed
c906108c
SS
9605
9606# This sed command replaces #undef with comments. This is necessary, for
9607# example, in the case of _POSIX_SOURCE, which is predefined and required
9608# on some systems where configure will not decide to define it.
b7026657
AC
9609cat >>conftest.undefs <<\_ACEOF
9610s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9611_ACEOF
9612
9613# Break up conftest.defines because some shells have a limit on the size
9614# of here documents, and old seds have small limits too (100 cmds).
9615echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9616echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9617echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9618echo ' :' >>$CONFIG_STATUS
9619rm -f conftest.tail
9620while grep . conftest.defines >/dev/null
9621do
9622 # Write a limited-size here document to $tmp/defines.sed.
9623 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9624 # Speed up: don't consider the non `#define' lines.
9625 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9626 # Work around the forget-to-reset-the-flag bug.
9627 echo 't clr' >>$CONFIG_STATUS
9628 echo ': clr' >>$CONFIG_STATUS
9629 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9630 echo 'CEOF
9631 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9632 rm -f $tmp/in
9633 mv $tmp/out $tmp/in
9634' >>$CONFIG_STATUS
9635 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9636 rm -f conftest.defines
9637 mv conftest.tail conftest.defines
9638done
9639rm -f conftest.defines
9640echo ' fi # grep' >>$CONFIG_STATUS
9641echo >>$CONFIG_STATUS
c906108c 9642
b7026657
AC
9643# Break up conftest.undefs because some shells have a limit on the size
9644# of here documents, and old seds have small limits too (100 cmds).
9645echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 9646rm -f conftest.tail
b7026657 9647while grep . conftest.undefs >/dev/null
c906108c 9648do
b7026657
AC
9649 # Write a limited-size here document to $tmp/undefs.sed.
9650 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9651 # Speed up: don't consider the non `#undef'
9652 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9653 # Work around the forget-to-reset-the-flag bug.
9654 echo 't clr' >>$CONFIG_STATUS
9655 echo ': clr' >>$CONFIG_STATUS
9656 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 9657 echo 'CEOF
b7026657
AC
9658 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9659 rm -f $tmp/in
9660 mv $tmp/out $tmp/in
9661' >>$CONFIG_STATUS
9662 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9663 rm -f conftest.undefs
9664 mv conftest.tail conftest.undefs
c906108c 9665done
b7026657
AC
9666rm -f conftest.undefs
9667
9668cat >>$CONFIG_STATUS <<\_ACEOF
9669 # Let's still pretend it is `configure' which instantiates (i.e., don't
9670 # use $as_me), people would be surprised to read:
9671 # /* config.h. Generated by config.status. */
9672 if test x"$ac_file" = x-; then
9673 echo "/* Generated by configure. */" >$tmp/config.h
c906108c 9674 else
b7026657 9675 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
c906108c 9676 fi
b7026657
AC
9677 cat $tmp/in >>$tmp/config.h
9678 rm -f $tmp/in
9679 if test x"$ac_file" != x-; then
9680 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9682echo "$as_me: $ac_file is unchanged" >&6;}
9683 else
9684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9686 X"$ac_file" : 'X\(//\)[^/]' \| \
9687 X"$ac_file" : 'X\(//\)$' \| \
9688 X"$ac_file" : 'X\(/\)' \| \
9689 . : '\(.\)' 2>/dev/null ||
9690echo X"$ac_file" |
9691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9693 /^X\(\/\/\)$/{ s//\1/; q; }
9694 /^X\(\/\).*/{ s//\1/; q; }
9695 s/.*/./; q'`
9696 { if $as_mkdir_p; then
9697 mkdir -p "$ac_dir"
9698 else
9699 as_dir="$ac_dir"
9700 as_dirs=
9701 while test ! -d "$as_dir"; do
9702 as_dirs="$as_dir $as_dirs"
9703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9705 X"$as_dir" : 'X\(//\)[^/]' \| \
9706 X"$as_dir" : 'X\(//\)$' \| \
9707 X"$as_dir" : 'X\(/\)' \| \
9708 . : '\(.\)' 2>/dev/null ||
9709echo X"$as_dir" |
9710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9712 /^X\(\/\/\)$/{ s//\1/; q; }
9713 /^X\(\/\).*/{ s//\1/; q; }
9714 s/.*/./; q'`
9715 done
9716 test ! -n "$as_dirs" || mkdir $as_dirs
9717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9718echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9719 { (exit 1); exit 1; }; }; }
c906108c 9720
b7026657
AC
9721 rm -f $ac_file
9722 mv $tmp/config.h $ac_file
9723 fi
9724 else
9725 cat $tmp/config.h
9726 rm -f $tmp/config.h
9727 fi
9728done
9729_ACEOF
9730cat >>$CONFIG_STATUS <<\_ACEOF
c906108c 9731
b7026657
AC
9732#
9733# CONFIG_LINKS section.
9734#
c906108c 9735
b7026657
AC
9736for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9737 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9738 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 9739
b7026657
AC
9740 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9741echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
9742
9743 if test ! -r $srcdir/$ac_source; then
b7026657
AC
9744 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9745echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9746 { (exit 1); exit 1; }; }
c906108c
SS
9747 fi
9748 rm -f $ac_dest
9749
9750 # Make relative symlinks.
b7026657
AC
9751 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9752$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9753 X"$ac_dest" : 'X\(//\)[^/]' \| \
9754 X"$ac_dest" : 'X\(//\)$' \| \
9755 X"$ac_dest" : 'X\(/\)' \| \
9756 . : '\(.\)' 2>/dev/null ||
9757echo X"$ac_dest" |
9758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9760 /^X\(\/\/\)$/{ s//\1/; q; }
9761 /^X\(\/\).*/{ s//\1/; q; }
9762 s/.*/./; q'`
9763 { if $as_mkdir_p; then
9764 mkdir -p "$ac_dest_dir"
c906108c 9765 else
b7026657
AC
9766 as_dir="$ac_dest_dir"
9767 as_dirs=
9768 while test ! -d "$as_dir"; do
9769 as_dirs="$as_dir $as_dirs"
9770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9771$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9772 X"$as_dir" : 'X\(//\)[^/]' \| \
9773 X"$as_dir" : 'X\(//\)$' \| \
9774 X"$as_dir" : 'X\(/\)' \| \
9775 . : '\(.\)' 2>/dev/null ||
9776echo X"$as_dir" |
9777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9779 /^X\(\/\/\)$/{ s//\1/; q; }
9780 /^X\(\/\).*/{ s//\1/; q; }
9781 s/.*/./; q'`
9782 done
9783 test ! -n "$as_dirs" || mkdir $as_dirs
9784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9785echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9786 { (exit 1); exit 1; }; }; }
9787
9788 ac_builddir=.
9789
9790if test "$ac_dest_dir" != .; then
9791 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9792 # A "../" for each directory in $ac_dir_suffix.
9793 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9794else
9795 ac_dir_suffix= ac_top_builddir=
9796fi
9797
9798case $srcdir in
9799 .) # No --srcdir option. We are building in place.
9800 ac_srcdir=.
9801 if test -z "$ac_top_builddir"; then
9802 ac_top_srcdir=.
9803 else
9804 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9805 fi ;;
9806 [\\/]* | ?:[\\/]* ) # Absolute path.
9807 ac_srcdir=$srcdir$ac_dir_suffix;
9808 ac_top_srcdir=$srcdir ;;
9809 *) # Relative path.
9810 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9811 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9812esac
9813
9814# Do not use `cd foo && pwd` to compute absolute paths, because
9815# the directories may not exist.
9816case `pwd` in
9817.) ac_abs_builddir="$ac_dest_dir";;
9818*)
9819 case "$ac_dest_dir" in
9820 .) ac_abs_builddir=`pwd`;;
9821 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9822 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9823 esac;;
9824esac
9825case $ac_abs_builddir in
9826.) ac_abs_top_builddir=${ac_top_builddir}.;;
9827*)
9828 case ${ac_top_builddir}. in
9829 .) ac_abs_top_builddir=$ac_abs_builddir;;
9830 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9831 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9832 esac;;
9833esac
9834case $ac_abs_builddir in
9835.) ac_abs_srcdir=$ac_srcdir;;
9836*)
9837 case $ac_srcdir in
9838 .) ac_abs_srcdir=$ac_abs_builddir;;
9839 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9840 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9841 esac;;
9842esac
9843case $ac_abs_builddir in
9844.) ac_abs_top_srcdir=$ac_top_srcdir;;
9845*)
9846 case $ac_top_srcdir in
9847 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9848 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9849 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9850 esac;;
9851esac
c906108c 9852
b7026657
AC
9853
9854 case $srcdir in
9855 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9856 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c
SS
9857 esac
9858
b7026657
AC
9859 # Try a symlink, then a hard link, then a copy.
9860 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9861 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9862 cp -p $srcdir/$ac_source $ac_dest ||
9863 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9864echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9865 { (exit 1); exit 1; }; }
c906108c 9866done
b7026657
AC
9867_ACEOF
9868cat >>$CONFIG_STATUS <<\_ACEOF
9869
9870#
9871# CONFIG_COMMANDS section.
9872#
9873for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9874 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9875 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9876 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9877$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9878 X"$ac_dest" : 'X\(//\)[^/]' \| \
9879 X"$ac_dest" : 'X\(//\)$' \| \
9880 X"$ac_dest" : 'X\(/\)' \| \
9881 . : '\(.\)' 2>/dev/null ||
9882echo X"$ac_dest" |
9883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9885 /^X\(\/\/\)$/{ s//\1/; q; }
9886 /^X\(\/\).*/{ s//\1/; q; }
9887 s/.*/./; q'`
9888 { if $as_mkdir_p; then
9889 mkdir -p "$ac_dir"
9890 else
9891 as_dir="$ac_dir"
9892 as_dirs=
9893 while test ! -d "$as_dir"; do
9894 as_dirs="$as_dir $as_dirs"
9895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9897 X"$as_dir" : 'X\(//\)[^/]' \| \
9898 X"$as_dir" : 'X\(//\)$' \| \
9899 X"$as_dir" : 'X\(/\)' \| \
9900 . : '\(.\)' 2>/dev/null ||
9901echo X"$as_dir" |
9902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9904 /^X\(\/\/\)$/{ s//\1/; q; }
9905 /^X\(\/\).*/{ s//\1/; q; }
9906 s/.*/./; q'`
9907 done
9908 test ! -n "$as_dirs" || mkdir $as_dirs
9909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9910echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9911 { (exit 1); exit 1; }; }; }
9912
9913 ac_builddir=.
9914
9915if test "$ac_dir" != .; then
9916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9917 # A "../" for each directory in $ac_dir_suffix.
9918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9919else
9920 ac_dir_suffix= ac_top_builddir=
9921fi
c906108c 9922
b7026657
AC
9923case $srcdir in
9924 .) # No --srcdir option. We are building in place.
9925 ac_srcdir=.
9926 if test -z "$ac_top_builddir"; then
9927 ac_top_srcdir=.
9928 else
9929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9930 fi ;;
9931 [\\/]* | ?:[\\/]* ) # Absolute path.
9932 ac_srcdir=$srcdir$ac_dir_suffix;
9933 ac_top_srcdir=$srcdir ;;
9934 *) # Relative path.
9935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9937esac
9938
9939# Do not use `cd foo && pwd` to compute absolute paths, because
9940# the directories may not exist.
9941case `pwd` in
9942.) ac_abs_builddir="$ac_dir";;
9943*)
9944 case "$ac_dir" in
9945 .) ac_abs_builddir=`pwd`;;
9946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9948 esac;;
9949esac
9950case $ac_abs_builddir in
9951.) ac_abs_top_builddir=${ac_top_builddir}.;;
9952*)
9953 case ${ac_top_builddir}. in
9954 .) ac_abs_top_builddir=$ac_abs_builddir;;
9955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9957 esac;;
9958esac
9959case $ac_abs_builddir in
9960.) ac_abs_srcdir=$ac_srcdir;;
9961*)
9962 case $ac_srcdir in
9963 .) ac_abs_srcdir=$ac_abs_builddir;;
9964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9966 esac;;
9967esac
9968case $ac_abs_builddir in
9969.) ac_abs_top_srcdir=$ac_top_srcdir;;
9970*)
9971 case $ac_top_srcdir in
9972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9975 esac;;
9976esac
9977
9978
9979 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9980echo "$as_me: executing $ac_dest commands" >&6;}
9981 case $ac_dest in
9982 default ) case "x$CONFIG_FILES" in
c906108c
SS
9983 xMakefile*)
9984 echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
9985 rm -f Makesim1.tmp Makesim2.tmp Makefile
9986 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
9987 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
9988 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
9989 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
9990 <Makefile.sim >Makefile
9991 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
9992 ;;
9993 esac
9994 case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac
b7026657
AC
9995 ;;
9996 esac
9997done
9998_ACEOF
c906108c 9999
b7026657
AC
10000cat >>$CONFIG_STATUS <<\_ACEOF
10001
10002{ (exit 0); exit 0; }
10003_ACEOF
c906108c 10004chmod +x $CONFIG_STATUS
b7026657
AC
10005ac_clean_files=$ac_clean_files_save
10006
10007
10008# configure is writing to config.log, and then calls config.status.
10009# config.status does its own redirection, appending to config.log.
10010# Unfortunately, on DOS this fails, as config.log is still kept open
10011# by configure, so config.status won't be able to write to it; its
10012# output is simply discarded. So we exec the FD to /dev/null,
10013# effectively closing config.log, so it can be properly (re)opened and
10014# appended to by config.status. When coming back to configure, we
10015# need to make the FD available again.
10016if test "$no_create" != yes; then
10017 ac_cs_success=:
10018 ac_config_status_args=
10019 test "$silent" = yes &&
10020 ac_config_status_args="$ac_config_status_args --quiet"
10021 exec 5>/dev/null
10022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10023 exec 5>>config.log
10024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10025 # would make configure fail if this is the last instruction.
10026 $ac_cs_success || { (exit 1); exit 1; }
10027fi
c906108c
SS
10028
10029
This page took 0.841716 seconds and 4 git commands to generate.