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