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