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