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