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