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