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