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