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