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