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