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