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