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