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