]> git.saurik.com Git - bison.git/blob - configure
* configure.in (WERROR_CFLAGS): Compute it.
[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.30j.
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.30j'
260 PACKAGE_STRING='GNU Bison 1.30j'
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.30j 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.30j:";;
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.30j
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.30j, 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.30j
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
5023
5024 for ac_func in mkstemp setlocale
5025 do
5026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5027 echo "$as_me:$LINENO: checking for $ac_func" >&5
5028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5029 if eval "test \"\${$as_ac_var+set}\" = set"; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032 cat >conftest.$ac_ext <<_ACEOF
5033 #line $LINENO "configure"
5034 #include "confdefs.h"
5035 /* System header to define __stub macros and hopefully few prototypes,
5036 which can conflict with char $ac_func (); below. */
5037 #include <assert.h>
5038 /* Override any gcc2 internal prototype to avoid an error. */
5039 #ifdef __cplusplus
5040 extern "C"
5041 #endif
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5044 char $ac_func ();
5045 char (*f) ();
5046
5047 #ifdef F77_DUMMY_MAIN
5048 # ifdef __cplusplus
5049 extern "C"
5050 # endif
5051 int F77_DUMMY_MAIN() { return 1; }
5052 #endif
5053 int
5054 main ()
5055 {
5056 /* The GNU C library defines this for functions which it implements
5057 to always fail with ENOSYS. Some functions are actually named
5058 something starting with __ and the normal name is an alias. */
5059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5060 choke me
5061 #else
5062 f = $ac_func;
5063 #endif
5064
5065 ;
5066 return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext conftest$ac_exeext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5071 (eval $ac_link) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 eval "$as_ac_var=yes"
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5085 eval "$as_ac_var=no"
5086 fi
5087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088 fi
5089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5091 if test `eval echo '${'$as_ac_var'}'` = yes; then
5092 cat >>confdefs.h <<_ACEOF
5093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5094 _ACEOF
5095
5096 fi
5097 done
5098
5099 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5100 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5101 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104 cat >conftest.$ac_ext <<_ACEOF
5105 #line $LINENO "configure"
5106 #include "confdefs.h"
5107 $ac_includes_default
5108 #ifdef F77_DUMMY_MAIN
5109 # ifdef __cplusplus
5110 extern "C"
5111 # endif
5112 int F77_DUMMY_MAIN() { return 1; }
5113 #endif
5114 int
5115 main ()
5116 {
5117 #ifndef stpcpy
5118 char *p = (char *) stpcpy;
5119 #endif
5120
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest.$ac_objext'
5132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_have_decl_stpcpy=yes
5138 else
5139 echo "$as_me: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5141 ac_cv_have_decl_stpcpy=no
5142 fi
5143 rm -f conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5146 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5147 if test $ac_cv_have_decl_stpcpy = yes; then
5148
5149 cat >>confdefs.h <<_ACEOF
5150 #define HAVE_DECL_STPCPY 1
5151 _ACEOF
5152
5153
5154 else
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_DECL_STPCPY 0
5157 _ACEOF
5158
5159
5160 fi
5161 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5162 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5163 if test "${ac_cv_have_decl_strchr+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 cat >conftest.$ac_ext <<_ACEOF
5167 #line $LINENO "configure"
5168 #include "confdefs.h"
5169 $ac_includes_default
5170 #ifdef F77_DUMMY_MAIN
5171 # ifdef __cplusplus
5172 extern "C"
5173 # endif
5174 int F77_DUMMY_MAIN() { return 1; }
5175 #endif
5176 int
5177 main ()
5178 {
5179 #ifndef strchr
5180 char *p = (char *) strchr;
5181 #endif
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_have_decl_strchr=yes
5200 else
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 ac_cv_have_decl_strchr=no
5204 fi
5205 rm -f conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5208 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5209 if test $ac_cv_have_decl_strchr = yes; then
5210
5211 cat >>confdefs.h <<_ACEOF
5212 #define HAVE_DECL_STRCHR 1
5213 _ACEOF
5214
5215
5216 else
5217 cat >>confdefs.h <<_ACEOF
5218 #define HAVE_DECL_STRCHR 0
5219 _ACEOF
5220
5221
5222 fi
5223 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5224 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5225 if test "${ac_cv_have_decl_strspn+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 cat >conftest.$ac_ext <<_ACEOF
5229 #line $LINENO "configure"
5230 #include "confdefs.h"
5231 $ac_includes_default
5232 #ifdef F77_DUMMY_MAIN
5233 # ifdef __cplusplus
5234 extern "C"
5235 # endif
5236 int F77_DUMMY_MAIN() { return 1; }
5237 #endif
5238 int
5239 main ()
5240 {
5241 #ifndef strspn
5242 char *p = (char *) strspn;
5243 #endif
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_have_decl_strspn=yes
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_have_decl_strspn=no
5266 fi
5267 rm -f conftest.$ac_objext conftest.$ac_ext
5268 fi
5269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5270 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5271 if test $ac_cv_have_decl_strspn = yes; then
5272
5273 cat >>confdefs.h <<_ACEOF
5274 #define HAVE_DECL_STRSPN 1
5275 _ACEOF
5276
5277
5278 else
5279 cat >>confdefs.h <<_ACEOF
5280 #define HAVE_DECL_STRSPN 0
5281 _ACEOF
5282
5283
5284 fi
5285 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5286 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5287 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5293 $ac_includes_default
5294 #ifdef F77_DUMMY_MAIN
5295 # ifdef __cplusplus
5296 extern "C"
5297 # endif
5298 int F77_DUMMY_MAIN() { return 1; }
5299 #endif
5300 int
5301 main ()
5302 {
5303 #ifndef strnlen
5304 char *p = (char *) strnlen;
5305 #endif
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_have_decl_strnlen=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 cat conftest.$ac_ext >&5
5327 ac_cv_have_decl_strnlen=no
5328 fi
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5330 fi
5331 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5332 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5333 if test $ac_cv_have_decl_strnlen = yes; then
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define HAVE_DECL_STRNLEN 1
5337 _ACEOF
5338
5339
5340 else
5341 cat >>confdefs.h <<_ACEOF
5342 #define HAVE_DECL_STRNLEN 0
5343 _ACEOF
5344
5345
5346 fi
5347 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5348 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5349 if test "${ac_cv_have_decl_memchr+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5354 #include "confdefs.h"
5355 $ac_includes_default
5356 #ifdef F77_DUMMY_MAIN
5357 # ifdef __cplusplus
5358 extern "C"
5359 # endif
5360 int F77_DUMMY_MAIN() { return 1; }
5361 #endif
5362 int
5363 main ()
5364 {
5365 #ifndef memchr
5366 char *p = (char *) memchr;
5367 #endif
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 rm -f conftest.$ac_objext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5375 (eval $ac_compile) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 (eval $ac_try) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5385 ac_cv_have_decl_memchr=yes
5386 else
5387 echo "$as_me: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5389 ac_cv_have_decl_memchr=no
5390 fi
5391 rm -f conftest.$ac_objext conftest.$ac_ext
5392 fi
5393 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5394 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5395 if test $ac_cv_have_decl_memchr = yes; then
5396
5397 cat >>confdefs.h <<_ACEOF
5398 #define HAVE_DECL_MEMCHR 1
5399 _ACEOF
5400
5401
5402 else
5403 cat >>confdefs.h <<_ACEOF
5404 #define HAVE_DECL_MEMCHR 0
5405 _ACEOF
5406
5407
5408 fi
5409 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5410 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5411 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #line $LINENO "configure"
5416 #include "confdefs.h"
5417 $ac_includes_default
5418 #ifdef F77_DUMMY_MAIN
5419 # ifdef __cplusplus
5420 extern "C"
5421 # endif
5422 int F77_DUMMY_MAIN() { return 1; }
5423 #endif
5424 int
5425 main ()
5426 {
5427 #ifndef memrchr
5428 char *p = (char *) memrchr;
5429 #endif
5430
5431 ;
5432 return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437 (eval $ac_compile) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 ac_cv_have_decl_memrchr=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 ac_cv_have_decl_memrchr=no
5452 fi
5453 rm -f conftest.$ac_objext conftest.$ac_ext
5454 fi
5455 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5456 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5457 if test $ac_cv_have_decl_memrchr = yes; then
5458
5459 cat >>confdefs.h <<_ACEOF
5460 #define HAVE_DECL_MEMRCHR 1
5461 _ACEOF
5462
5463
5464 else
5465 cat >>confdefs.h <<_ACEOF
5466 #define HAVE_DECL_MEMRCHR 0
5467 _ACEOF
5468
5469
5470 fi
5471
5472
5473
5474
5475
5476
5477
5478
5479 for ac_func in stpcpy strchr strnlen strspn memchr memrchr
5480 do
5481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5482 echo "$as_me:$LINENO: checking for $ac_func" >&5
5483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5484 if eval "test \"\${$as_ac_var+set}\" = set"; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 else
5487 cat >conftest.$ac_ext <<_ACEOF
5488 #line $LINENO "configure"
5489 #include "confdefs.h"
5490 /* System header to define __stub macros and hopefully few prototypes,
5491 which can conflict with char $ac_func (); below. */
5492 #include <assert.h>
5493 /* Override any gcc2 internal prototype to avoid an error. */
5494 #ifdef __cplusplus
5495 extern "C"
5496 #endif
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5499 char $ac_func ();
5500 char (*f) ();
5501
5502 #ifdef F77_DUMMY_MAIN
5503 # ifdef __cplusplus
5504 extern "C"
5505 # endif
5506 int F77_DUMMY_MAIN() { return 1; }
5507 #endif
5508 int
5509 main ()
5510 {
5511 /* The GNU C library defines this for functions which it implements
5512 to always fail with ENOSYS. Some functions are actually named
5513 something starting with __ and the normal name is an alias. */
5514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 choke me
5516 #else
5517 f = $ac_func;
5518 #endif
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 eval "$as_ac_var=yes"
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 eval "$as_ac_var=no"
5541 fi
5542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543 fi
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5546 if test `eval echo '${'$as_ac_var'}'` = yes; then
5547 cat >>confdefs.h <<_ACEOF
5548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5549 _ACEOF
5550
5551 else
5552 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5553 fi
5554 done
5555
5556
5557
5558
5559 cat >>confdefs.h <<\_ACEOF
5560 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5561 _ACEOF
5562
5563
5564 echo "$as_me:$LINENO: checking for working malloc" >&5
5565 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5566 if test "${jm_cv_func_working_malloc+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 if test "$cross_compiling" = yes; then
5570 jm_cv_func_working_malloc=no
5571 else
5572 cat >conftest.$ac_ext <<_ACEOF
5573 #line $LINENO "configure"
5574 #include "confdefs.h"
5575
5576 char *malloc ();
5577 int
5578 main ()
5579 {
5580 exit (malloc (0) ? 0 : 1);
5581 }
5582
5583 _ACEOF
5584 rm -f conftest$ac_exeext
5585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5586 (eval $ac_link) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 jm_cv_func_working_malloc=yes
5596 else
5597 echo "$as_me: program exited with status $ac_status" >&5
5598 echo "$as_me: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5600 ( exit $ac_status )
5601 jm_cv_func_working_malloc=no
5602 fi
5603 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5604 fi
5605
5606 fi
5607 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5608 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5609 if test $jm_cv_func_working_malloc = no; then
5610 LIBOBJS="$LIBOBJS malloc.$ac_objext"
5611
5612 cat >>confdefs.h <<\_ACEOF
5613 #define malloc rpl_malloc
5614 _ACEOF
5615
5616 fi
5617
5618
5619
5620 cat >>confdefs.h <<\_ACEOF
5621 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5622 _ACEOF
5623
5624
5625 echo "$as_me:$LINENO: checking for working realloc" >&5
5626 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5627 if test "${jm_cv_func_working_realloc+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if test "$cross_compiling" = yes; then
5631 jm_cv_func_working_realloc=no
5632 else
5633 cat >conftest.$ac_ext <<_ACEOF
5634 #line $LINENO "configure"
5635 #include "confdefs.h"
5636
5637 char *realloc ();
5638 int
5639 main ()
5640 {
5641 exit (realloc (0, 0) ? 0 : 1);
5642 }
5643
5644 _ACEOF
5645 rm -f conftest$ac_exeext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 jm_cv_func_working_realloc=yes
5657 else
5658 echo "$as_me: program exited with status $ac_status" >&5
5659 echo "$as_me: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5661 ( exit $ac_status )
5662 jm_cv_func_working_realloc=no
5663 fi
5664 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5665 fi
5666
5667 fi
5668 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5669 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5670 if test $jm_cv_func_working_realloc = no; then
5671 LIBOBJS="$LIBOBJS realloc.$ac_objext"
5672
5673 cat >>confdefs.h <<\_ACEOF
5674 #define realloc rpl_realloc
5675 _ACEOF
5676
5677 fi
5678
5679
5680
5681
5682
5683 for ac_func in isascii iswprint mbsinit
5684 do
5685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5686 echo "$as_me:$LINENO: checking for $ac_func" >&5
5687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5688 if eval "test \"\${$as_ac_var+set}\" = set"; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5694 /* System header to define __stub macros and hopefully few prototypes,
5695 which can conflict with char $ac_func (); below. */
5696 #include <assert.h>
5697 /* Override any gcc2 internal prototype to avoid an error. */
5698 #ifdef __cplusplus
5699 extern "C"
5700 #endif
5701 /* We use char because int might match the return type of a gcc2
5702 builtin and then its argument prototype would still apply. */
5703 char $ac_func ();
5704 char (*f) ();
5705
5706 #ifdef F77_DUMMY_MAIN
5707 # ifdef __cplusplus
5708 extern "C"
5709 # endif
5710 int F77_DUMMY_MAIN() { return 1; }
5711 #endif
5712 int
5713 main ()
5714 {
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719 choke me
5720 #else
5721 f = $ac_func;
5722 #endif
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext conftest$ac_exeext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730 (eval $ac_link) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest$ac_exeext'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 eval "$as_ac_var=yes"
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5744 eval "$as_ac_var=no"
5745 fi
5746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 fi
5748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5750 if test `eval echo '${'$as_ac_var'}'` = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5753 _ACEOF
5754
5755 fi
5756 done
5757
5758
5759 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5760 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5761 if test "${jm_cv_func_mbrtowc+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line $LINENO "configure"
5766 #include "confdefs.h"
5767 #include <wchar.h>
5768 #ifdef F77_DUMMY_MAIN
5769 # ifdef __cplusplus
5770 extern "C"
5771 # endif
5772 int F77_DUMMY_MAIN() { return 1; }
5773 #endif
5774 int
5775 main ()
5776 {
5777 mbstate_t state; return ! (sizeof state && mbrtowc);
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 (eval $ac_try) 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 jm_cv_func_mbrtowc=yes
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 jm_cv_func_mbrtowc=no
5799 fi
5800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801 fi
5802 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5803 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5804 if test $jm_cv_func_mbrtowc = yes; then
5805
5806 cat >>confdefs.h <<\_ACEOF
5807 #define HAVE_MBRTOWC 1
5808 _ACEOF
5809
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5819 do
5820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo "$as_me:$LINENO: checking for $ac_header" >&5
5823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 fi
5827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5829 else
5830 # Is the header compilable?
5831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5834 #line $LINENO "configure"
5835 #include "confdefs.h"
5836 $ac_includes_default
5837 #include <$ac_header>
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_header_compiler=yes
5852 else
5853 echo "$as_me: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5855 ac_header_compiler=no
5856 fi
5857 rm -f conftest.$ac_objext conftest.$ac_ext
5858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5859 echo "${ECHO_T}$ac_header_compiler" >&6
5860
5861 # Is the header present?
5862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line $LINENO "configure"
5866 #include "confdefs.h"
5867 #include <$ac_header>
5868 _ACEOF
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5871 ac_status=$?
5872 egrep -v '^ *\+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev/null; then
5877 if test -s conftest.err; then
5878 ac_cpp_err=$ac_c_preproc_warn_flag
5879 else
5880 ac_cpp_err=
5881 fi
5882 else
5883 ac_cpp_err=yes
5884 fi
5885 if test -z "$ac_cpp_err"; then
5886 ac_header_preproc=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5890 ac_header_preproc=no
5891 fi
5892 rm -f conftest.err conftest.$ac_ext
5893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5894 echo "${ECHO_T}$ac_header_preproc" >&6
5895
5896 # So? What about this header?
5897 case $ac_header_compiler:$ac_header_preproc in
5898 yes:no )
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5903 no:yes )
5904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5910 esac
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 else
5916 eval "$as_ac_Header=$ac_header_preproc"
5917 fi
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920
5921 fi
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5925 _ACEOF
5926
5927 fi
5928
5929 done
5930
5931 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5932 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5933 if test "${ac_cv_header_stdc+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 cat >conftest.$ac_ext <<_ACEOF
5937 #line $LINENO "configure"
5938 #include "confdefs.h"
5939 #include <stdlib.h>
5940 #include <stdarg.h>
5941 #include <string.h>
5942 #include <float.h>
5943
5944 _ACEOF
5945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947 ac_status=$?
5948 egrep -v '^ *\+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } >/dev/null; then
5953 if test -s conftest.err; then
5954 ac_cpp_err=$ac_c_preproc_warn_flag
5955 else
5956 ac_cpp_err=
5957 fi
5958 else
5959 ac_cpp_err=yes
5960 fi
5961 if test -z "$ac_cpp_err"; then
5962 ac_cv_header_stdc=yes
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5966 ac_cv_header_stdc=no
5967 fi
5968 rm -f conftest.err conftest.$ac_ext
5969
5970 if test $ac_cv_header_stdc = yes; then
5971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5975 #include <string.h>
5976
5977 _ACEOF
5978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5979 egrep "memchr" >/dev/null 2>&1; then
5980 :
5981 else
5982 ac_cv_header_stdc=no
5983 fi
5984 rm -f conftest*
5985
5986 fi
5987
5988 if test $ac_cv_header_stdc = yes; then
5989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5993 #include <stdlib.h>
5994
5995 _ACEOF
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997 egrep "free" >/dev/null 2>&1; then
5998 :
5999 else
6000 ac_cv_header_stdc=no
6001 fi
6002 rm -f conftest*
6003
6004 fi
6005
6006 if test $ac_cv_header_stdc = yes; then
6007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6008 if test "$cross_compiling" = yes; then
6009 :
6010 else
6011 cat >conftest.$ac_ext <<_ACEOF
6012 #line $LINENO "configure"
6013 #include "confdefs.h"
6014 #include <ctype.h>
6015 #if ((' ' & 0x0FF) == 0x020)
6016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6018 #else
6019 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6020 || ('j' <= (c) && (c) <= 'r') \
6021 || ('s' <= (c) && (c) <= 'z'))
6022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6023 #endif
6024
6025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6026 int
6027 main ()
6028 {
6029 int i;
6030 for (i = 0; i < 256; i++)
6031 if (XOR (islower (i), ISLOWER (i))
6032 || toupper (i) != TOUPPER (i))
6033 exit(2);
6034 exit (0);
6035 }
6036 _ACEOF
6037 rm -f conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 :
6049 else
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6053 ( exit $ac_status )
6054 ac_cv_header_stdc=no
6055 fi
6056 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 fi
6059 fi
6060 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6061 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6062 if test $ac_cv_header_stdc = yes; then
6063
6064 cat >>confdefs.h <<\_ACEOF
6065 #define STDC_HEADERS 1
6066 _ACEOF
6067
6068 fi
6069
6070
6071 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6072 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6073 if test "${ac_cv_c_backslash_a+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6078 #include "confdefs.h"
6079
6080 #ifdef F77_DUMMY_MAIN
6081 # ifdef __cplusplus
6082 extern "C"
6083 # endif
6084 int F77_DUMMY_MAIN() { return 1; }
6085 #endif
6086 int
6087 main ()
6088 {
6089
6090 #if '\a' == 'a'
6091 syntax error;
6092 #endif
6093 char buf['\a' == 'a' ? -1 : 1];
6094 buf[0] = '\a';
6095 return buf[0] != "\a"[0];
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 (eval $ac_compile) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_c_backslash_a=yes
6114 else
6115 echo "$as_me: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 ac_cv_c_backslash_a=no
6118 fi
6119 rm -f conftest.$ac_objext conftest.$ac_ext
6120 fi
6121 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6122 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6123 if test $ac_cv_c_backslash_a = yes; then
6124
6125 cat >>confdefs.h <<\_ACEOF
6126 #define HAVE_C_BACKSLASH_A 1
6127 _ACEOF
6128
6129 fi
6130
6131
6132
6133 for ac_header in stdlib.h
6134 do
6135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6137 echo "$as_me:$LINENO: checking for $ac_header" >&5
6138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 fi
6142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6144 else
6145 # Is the header compilable?
6146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6148 cat >conftest.$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6150 #include "confdefs.h"
6151 $ac_includes_default
6152 #include <$ac_header>
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5
6163 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_header_compiler=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 ac_header_compiler=no
6171 fi
6172 rm -f conftest.$ac_objext conftest.$ac_ext
6173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6174 echo "${ECHO_T}$ac_header_compiler" >&6
6175
6176 # Is the header present?
6177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line $LINENO "configure"
6181 #include "confdefs.h"
6182 #include <$ac_header>
6183 _ACEOF
6184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6186 ac_status=$?
6187 egrep -v '^ *\+' conftest.er1 >conftest.err
6188 rm -f conftest.er1
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } >/dev/null; then
6192 if test -s conftest.err; then
6193 ac_cpp_err=$ac_c_preproc_warn_flag
6194 else
6195 ac_cpp_err=
6196 fi
6197 else
6198 ac_cpp_err=yes
6199 fi
6200 if test -z "$ac_cpp_err"; then
6201 ac_header_preproc=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6205 ac_header_preproc=no
6206 fi
6207 rm -f conftest.err conftest.$ac_ext
6208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6
6210
6211 # So? What about this header?
6212 case $ac_header_compiler:$ac_header_preproc in
6213 yes:no )
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6218 no:yes )
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6225 esac
6226 echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 eval "$as_ac_Header=$ac_header_preproc"
6232 fi
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235
6236 fi
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6240 _ACEOF
6241
6242 fi
6243
6244 done
6245
6246
6247 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6248 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6249 if test "${ac_cv_type_mbstate_t+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat >conftest.$ac_ext <<_ACEOF
6253 #line $LINENO "configure"
6254 #include "confdefs.h"
6255
6256 #if HAVE_STDLIB_H
6257 # include <stdlib.h>
6258 #endif
6259 #include <wchar.h>
6260 #ifdef F77_DUMMY_MAIN
6261 # ifdef __cplusplus
6262 extern "C"
6263 # endif
6264 int F77_DUMMY_MAIN() { return 1; }
6265 #endif
6266 int
6267 main ()
6268 {
6269 mbstate_t x; return sizeof x;
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 (eval $ac_try) 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_type_mbstate_t=yes
6287 else
6288 echo "$as_me: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6290 ac_cv_type_mbstate_t=no
6291 fi
6292 rm -f conftest.$ac_objext conftest.$ac_ext
6293 fi
6294 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6295 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6296 if test $ac_cv_type_mbstate_t = no; then
6297
6298 cat >>confdefs.h <<\_ACEOF
6299 #define mbstate_t int
6300 _ACEOF
6301
6302 fi
6303
6304
6305 echo "$as_me:$LINENO: checking for function prototypes" >&5
6306 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6307 if test "$am_cv_prog_cc_stdc" != no; then
6308 echo "$as_me:$LINENO: result: yes" >&5
6309 echo "${ECHO_T}yes" >&6
6310
6311 cat >>confdefs.h <<\_ACEOF
6312 #define PROTOTYPES 1
6313 _ACEOF
6314
6315 U= ANSI2KNR=
6316 else
6317 echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6319 U=_ ANSI2KNR=./ansi2knr
6320 fi
6321 # Ensure some checks needed by ansi2knr itself.
6322 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6324 if test "${ac_cv_header_stdc+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 #include "confdefs.h"
6330 #include <stdlib.h>
6331 #include <stdarg.h>
6332 #include <string.h>
6333 #include <float.h>
6334
6335 _ACEOF
6336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338 ac_status=$?
6339 egrep -v '^ *\+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_c_preproc_warn_flag
6346 else
6347 ac_cpp_err=
6348 fi
6349 else
6350 ac_cpp_err=yes
6351 fi
6352 if test -z "$ac_cpp_err"; then
6353 ac_cv_header_stdc=yes
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6357 ac_cv_header_stdc=no
6358 fi
6359 rm -f conftest.err conftest.$ac_ext
6360
6361 if test $ac_cv_header_stdc = yes; then
6362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line $LINENO "configure"
6365 #include "confdefs.h"
6366 #include <string.h>
6367
6368 _ACEOF
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 egrep "memchr" >/dev/null 2>&1; then
6371 :
6372 else
6373 ac_cv_header_stdc=no
6374 fi
6375 rm -f conftest*
6376
6377 fi
6378
6379 if test $ac_cv_header_stdc = yes; then
6380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6381 cat >conftest.$ac_ext <<_ACEOF
6382 #line $LINENO "configure"
6383 #include "confdefs.h"
6384 #include <stdlib.h>
6385
6386 _ACEOF
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 egrep "free" >/dev/null 2>&1; then
6389 :
6390 else
6391 ac_cv_header_stdc=no
6392 fi
6393 rm -f conftest*
6394
6395 fi
6396
6397 if test $ac_cv_header_stdc = yes; then
6398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6399 if test "$cross_compiling" = yes; then
6400 :
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #line $LINENO "configure"
6404 #include "confdefs.h"
6405 #include <ctype.h>
6406 #if ((' ' & 0x0FF) == 0x020)
6407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6409 #else
6410 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6411 || ('j' <= (c) && (c) <= 'r') \
6412 || ('s' <= (c) && (c) <= 'z'))
6413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6414 #endif
6415
6416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6417 int
6418 main ()
6419 {
6420 int i;
6421 for (i = 0; i < 256; i++)
6422 if (XOR (islower (i), ISLOWER (i))
6423 || toupper (i) != TOUPPER (i))
6424 exit(2);
6425 exit (0);
6426 }
6427 _ACEOF
6428 rm -f conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 :
6440 else
6441 echo "$as_me: program exited with status $ac_status" >&5
6442 echo "$as_me: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6444 ( exit $ac_status )
6445 ac_cv_header_stdc=no
6446 fi
6447 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6448 fi
6449 fi
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6452 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6453 if test $ac_cv_header_stdc = yes; then
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define STDC_HEADERS 1
6457 _ACEOF
6458
6459 fi
6460
6461
6462 for ac_header in string.h
6463 do
6464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 fi
6471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6473 else
6474 # Is the header compilable?
6475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6478 #line $LINENO "configure"
6479 #include "confdefs.h"
6480 $ac_includes_default
6481 #include <$ac_header>
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_header_compiler=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 ac_header_compiler=no
6500 fi
6501 rm -f conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6504
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line $LINENO "configure"
6510 #include "confdefs.h"
6511 #include <$ac_header>
6512 _ACEOF
6513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515 ac_status=$?
6516 egrep -v '^ *\+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } >/dev/null; then
6521 if test -s conftest.err; then
6522 ac_cpp_err=$ac_c_preproc_warn_flag
6523 else
6524 ac_cpp_err=
6525 fi
6526 else
6527 ac_cpp_err=yes
6528 fi
6529 if test -z "$ac_cpp_err"; then
6530 ac_header_preproc=yes
6531 else
6532 echo "$as_me: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 ac_header_preproc=no
6535 fi
6536 rm -f conftest.err conftest.$ac_ext
6537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6538 echo "${ECHO_T}$ac_header_preproc" >&6
6539
6540 # So? What about this header?
6541 case $ac_header_compiler:$ac_header_preproc in
6542 yes:no )
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6547 no:yes )
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6554 esac
6555 echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 eval "$as_ac_Header=$ac_header_preproc"
6561 fi
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564
6565 fi
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567 cat >>confdefs.h <<_ACEOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6570
6571 fi
6572
6573 done
6574
6575
6576
6577
6578
6579
6580
6581 for ac_func in strerror vprintf doprnt
6582 do
6583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6584 echo "$as_me:$LINENO: checking for $ac_func" >&5
6585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6586 if eval "test \"\${$as_ac_var+set}\" = set"; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 cat >conftest.$ac_ext <<_ACEOF
6590 #line $LINENO "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func (); below. */
6594 #include <assert.h>
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 #ifdef __cplusplus
6597 extern "C"
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6601 char $ac_func ();
6602 char (*f) ();
6603
6604 #ifdef F77_DUMMY_MAIN
6605 # ifdef __cplusplus
6606 extern "C"
6607 # endif
6608 int F77_DUMMY_MAIN() { return 1; }
6609 #endif
6610 int
6611 main ()
6612 {
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 choke me
6618 #else
6619 f = $ac_func;
6620 #endif
6621
6622 ;
6623 return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext conftest$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -s conftest$ac_exeext'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; }; then
6638 eval "$as_ac_var=yes"
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 cat conftest.$ac_ext >&5
6642 eval "$as_ac_var=no"
6643 fi
6644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6645 fi
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6648 if test `eval echo '${'$as_ac_var'}'` = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6651 _ACEOF
6652
6653 fi
6654 done
6655
6656 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6657 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6658 if test "${ac_cv_have_decl_strerror+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661 cat >conftest.$ac_ext <<_ACEOF
6662 #line $LINENO "configure"
6663 #include "confdefs.h"
6664 $ac_includes_default
6665 #ifdef F77_DUMMY_MAIN
6666 # ifdef __cplusplus
6667 extern "C"
6668 # endif
6669 int F77_DUMMY_MAIN() { return 1; }
6670 #endif
6671 int
6672 main ()
6673 {
6674 #ifndef strerror
6675 char *p = (char *) strerror;
6676 #endif
6677
6678 ;
6679 return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -s conftest.$ac_objext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_have_decl_strerror=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 ac_cv_have_decl_strerror=no
6699 fi
6700 rm -f conftest.$ac_objext conftest.$ac_ext
6701 fi
6702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6703 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6704 if test $ac_cv_have_decl_strerror = yes; then
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_DECL_STRERROR 1
6708 _ACEOF
6709
6710
6711 else
6712 cat >>confdefs.h <<_ACEOF
6713 #define HAVE_DECL_STRERROR 0
6714 _ACEOF
6715
6716
6717 fi
6718
6719
6720 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6721 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6722 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725 cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
6727 #include "confdefs.h"
6728 $ac_includes_default
6729 #ifdef F77_DUMMY_MAIN
6730 # ifdef __cplusplus
6731 extern "C"
6732 # endif
6733 int F77_DUMMY_MAIN() { return 1; }
6734 #endif
6735 int
6736 main ()
6737 {
6738 #ifndef strerror_r
6739 char *p = (char *) strerror_r;
6740 #endif
6741
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748 (eval $ac_compile) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_have_decl_strerror_r=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6762 ac_cv_have_decl_strerror_r=no
6763 fi
6764 rm -f conftest.$ac_objext conftest.$ac_ext
6765 fi
6766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6767 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6768 if test $ac_cv_have_decl_strerror_r = yes; then
6769
6770 cat >>confdefs.h <<_ACEOF
6771 #define HAVE_DECL_STRERROR_R 1
6772 _ACEOF
6773
6774
6775 else
6776 cat >>confdefs.h <<_ACEOF
6777 #define HAVE_DECL_STRERROR_R 0
6778 _ACEOF
6779
6780
6781 fi
6782
6783
6784
6785 for ac_func in strerror_r
6786 do
6787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 echo "$as_me:$LINENO: checking for $ac_func" >&5
6789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6790 if eval "test \"\${$as_ac_var+set}\" = set"; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 cat >conftest.$ac_ext <<_ACEOF
6794 #line $LINENO "configure"
6795 #include "confdefs.h"
6796 /* System header to define __stub macros and hopefully few prototypes,
6797 which can conflict with char $ac_func (); below. */
6798 #include <assert.h>
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 #ifdef __cplusplus
6801 extern "C"
6802 #endif
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6805 char $ac_func ();
6806 char (*f) ();
6807
6808 #ifdef F77_DUMMY_MAIN
6809 # ifdef __cplusplus
6810 extern "C"
6811 # endif
6812 int F77_DUMMY_MAIN() { return 1; }
6813 #endif
6814 int
6815 main ()
6816 {
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6821 choke me
6822 #else
6823 f = $ac_func;
6824 #endif
6825
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 eval "$as_ac_var=yes"
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 eval "$as_ac_var=no"
6847 fi
6848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6849 fi
6850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6852 if test `eval echo '${'$as_ac_var'}'` = yes; then
6853 cat >>confdefs.h <<_ACEOF
6854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6855 _ACEOF
6856
6857 fi
6858 done
6859
6860 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6861 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6862 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865
6866 ac_cv_func_strerror_r_char_p=no
6867 if test $ac_cv_have_decl_strerror_r = yes; then
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line $LINENO "configure"
6870 #include "confdefs.h"
6871 $ac_includes_default
6872 #ifdef F77_DUMMY_MAIN
6873 # ifdef __cplusplus
6874 extern "C"
6875 # endif
6876 int F77_DUMMY_MAIN() { return 1; }
6877 #endif
6878 int
6879 main ()
6880 {
6881
6882 char buf[100];
6883 char x = *strerror_r (0, buf, sizeof buf);
6884 char *p = strerror_r (0, buf, sizeof buf);
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -s conftest.$ac_objext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6898 (eval $ac_try) 2>&5
6899 ac_status=$?
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 ac_cv_func_strerror_r_char_p=yes
6903 else
6904 echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6906 fi
6907 rm -f conftest.$ac_objext conftest.$ac_ext
6908 else
6909 # strerror_r is not declared. Choose between
6910 # systems that have relatively inaccessible declarations for the
6911 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6912 # former has a strerror_r that returns char*, while the latter
6913 # has a strerror_r that returns `int'.
6914 # This test should segfault on the DEC system.
6915 if test "$cross_compiling" = yes; then
6916 :
6917 else
6918 cat >conftest.$ac_ext <<_ACEOF
6919 #line $LINENO "configure"
6920 #include "confdefs.h"
6921 $ac_includes_default
6922 extern char *strerror_r ();
6923 #ifdef F77_DUMMY_MAIN
6924 # ifdef __cplusplus
6925 extern "C"
6926 # endif
6927 int F77_DUMMY_MAIN() { return 1; }
6928 #endif
6929 int
6930 main ()
6931 {
6932 char buf[100];
6933 char x = *strerror_r (0, buf, sizeof buf);
6934 exit (!isalpha (x));
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 rm -f conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6942 ac_status=$?
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_cv_func_strerror_r_char_p=yes
6951 else
6952 echo "$as_me: program exited with status $ac_status" >&5
6953 echo "$as_me: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6955 fi
6956 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 fi
6959
6960 fi
6961 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6962 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6963 if test $ac_cv_func_strerror_r_char_p = yes; then
6964
6965 cat >>confdefs.h <<\_ACEOF
6966 #define STRERROR_R_CHAR_P 1
6967 _ACEOF
6968
6969 fi
6970
6971 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6972 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6973 if test "${ac_cv_header_stdc+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 cat >conftest.$ac_ext <<_ACEOF
6977 #line $LINENO "configure"
6978 #include "confdefs.h"
6979 #include <stdlib.h>
6980 #include <stdarg.h>
6981 #include <string.h>
6982 #include <float.h>
6983
6984 _ACEOF
6985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6987 ac_status=$?
6988 egrep -v '^ *\+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } >/dev/null; then
6993 if test -s conftest.err; then
6994 ac_cpp_err=$ac_c_preproc_warn_flag
6995 else
6996 ac_cpp_err=
6997 fi
6998 else
6999 ac_cpp_err=yes
7000 fi
7001 if test -z "$ac_cpp_err"; then
7002 ac_cv_header_stdc=yes
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7006 ac_cv_header_stdc=no
7007 fi
7008 rm -f conftest.err conftest.$ac_ext
7009
7010 if test $ac_cv_header_stdc = yes; then
7011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7012 cat >conftest.$ac_ext <<_ACEOF
7013 #line $LINENO "configure"
7014 #include "confdefs.h"
7015 #include <string.h>
7016
7017 _ACEOF
7018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7019 egrep "memchr" >/dev/null 2>&1; then
7020 :
7021 else
7022 ac_cv_header_stdc=no
7023 fi
7024 rm -f conftest*
7025
7026 fi
7027
7028 if test $ac_cv_header_stdc = yes; then
7029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 #include "confdefs.h"
7033 #include <stdlib.h>
7034
7035 _ACEOF
7036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 egrep "free" >/dev/null 2>&1; then
7038 :
7039 else
7040 ac_cv_header_stdc=no
7041 fi
7042 rm -f conftest*
7043
7044 fi
7045
7046 if test $ac_cv_header_stdc = yes; then
7047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7048 if test "$cross_compiling" = yes; then
7049 :
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7053 #include "confdefs.h"
7054 #include <ctype.h>
7055 #if ((' ' & 0x0FF) == 0x020)
7056 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7057 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7058 #else
7059 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7060 || ('j' <= (c) && (c) <= 'r') \
7061 || ('s' <= (c) && (c) <= 'z'))
7062 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7063 #endif
7064
7065 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7066 int
7067 main ()
7068 {
7069 int i;
7070 for (i = 0; i < 256; i++)
7071 if (XOR (islower (i), ISLOWER (i))
7072 || toupper (i) != TOUPPER (i))
7073 exit(2);
7074 exit (0);
7075 }
7076 _ACEOF
7077 rm -f conftest$ac_exeext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7080 ac_status=$?
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 :
7089 else
7090 echo "$as_me: program exited with status $ac_status" >&5
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7093 ( exit $ac_status )
7094 ac_cv_header_stdc=no
7095 fi
7096 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 fi
7099 fi
7100 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7101 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7102 if test $ac_cv_header_stdc = yes; then
7103
7104 cat >>confdefs.h <<\_ACEOF
7105 #define STDC_HEADERS 1
7106 _ACEOF
7107
7108 fi
7109
7110
7111 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7112 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7113
7114 # Check whether --with-dmalloc or --without-dmalloc was given.
7115 if test "${with_dmalloc+set}" = set; then
7116 withval="$with_dmalloc"
7117 if test "$withval" = yes; then
7118 echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define WITH_DMALLOC 1
7123 _ACEOF
7124
7125 LIBS="$LIBS -ldmalloc"
7126 LDFLAGS="$LDFLAGS -g"
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6
7130 fi
7131 else
7132 echo "$as_me:$LINENO: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7134 fi;
7135
7136
7137 ALL_LINGUAS="de es et fr ja nl ru sv tr"
7138 # Make sure we can run config.sub.
7139 $ac_config_sub sun4 >/dev/null 2>&1 ||
7140 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7141 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7142 { (exit 1); exit 1; }; }
7143
7144 echo "$as_me:$LINENO: checking build system type" >&5
7145 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7146 if test "${ac_cv_build+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 ac_cv_build_alias=$build_alias
7150 test -z "$ac_cv_build_alias" &&
7151 ac_cv_build_alias=`$ac_config_guess`
7152 test -z "$ac_cv_build_alias" &&
7153 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7154 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7155 { (exit 1); exit 1; }; }
7156 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7157 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7158 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7159 { (exit 1); exit 1; }; }
7160
7161 fi
7162 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7163 echo "${ECHO_T}$ac_cv_build" >&6
7164 build=$ac_cv_build
7165 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7166 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7167 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7168
7169
7170 echo "$as_me:$LINENO: checking host system type" >&5
7171 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7172 if test "${ac_cv_host+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 ac_cv_host_alias=$host_alias
7176 test -z "$ac_cv_host_alias" &&
7177 ac_cv_host_alias=$ac_cv_build_alias
7178 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7179 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7180 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7181 { (exit 1); exit 1; }; }
7182
7183 fi
7184 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7185 echo "${ECHO_T}$ac_cv_host" >&6
7186 host=$ac_cv_host
7187 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7188 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7189 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7190
7191
7192 echo "$as_me:$LINENO: checking for off_t" >&5
7193 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7194 if test "${ac_cv_type_off_t+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 $ac_includes_default
7201 #ifdef F77_DUMMY_MAIN
7202 # ifdef __cplusplus
7203 extern "C"
7204 # endif
7205 int F77_DUMMY_MAIN() { return 1; }
7206 #endif
7207 int
7208 main ()
7209 {
7210 if ((off_t *) 0)
7211 return 0;
7212 if (sizeof (off_t))
7213 return 0;
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_type_off_t=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_type_off_t=no
7235 fi
7236 rm -f conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7239 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7240 if test $ac_cv_type_off_t = yes; then
7241 :
7242 else
7243
7244 cat >>confdefs.h <<_ACEOF
7245 #define off_t long
7246 _ACEOF
7247
7248 fi
7249
7250 echo "$as_me:$LINENO: checking for size_t" >&5
7251 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7252 if test "${ac_cv_type_size_t+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line $LINENO "configure"
7257 #include "confdefs.h"
7258 $ac_includes_default
7259 #ifdef F77_DUMMY_MAIN
7260 # ifdef __cplusplus
7261 extern "C"
7262 # endif
7263 int F77_DUMMY_MAIN() { return 1; }
7264 #endif
7265 int
7266 main ()
7267 {
7268 if ((size_t *) 0)
7269 return 0;
7270 if (sizeof (size_t))
7271 return 0;
7272 ;
7273 return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest.$ac_objext
7277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7278 (eval $ac_compile) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_type_size_t=yes
7289 else
7290 echo "$as_me: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7292 ac_cv_type_size_t=no
7293 fi
7294 rm -f conftest.$ac_objext conftest.$ac_ext
7295 fi
7296 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7297 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7298 if test $ac_cv_type_size_t = yes; then
7299 :
7300 else
7301
7302 cat >>confdefs.h <<_ACEOF
7303 #define size_t unsigned
7304 _ACEOF
7305
7306 fi
7307
7308
7309
7310 for ac_header in stdlib.h unistd.h
7311 do
7312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314 echo "$as_me:$LINENO: checking for $ac_header" >&5
7315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 fi
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7321 else
7322 # Is the header compilable?
7323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7325 cat >conftest.$ac_ext <<_ACEOF
7326 #line $LINENO "configure"
7327 #include "confdefs.h"
7328 $ac_includes_default
7329 #include <$ac_header>
7330 _ACEOF
7331 rm -f conftest.$ac_objext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333 (eval $ac_compile) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try='test -s conftest.$ac_objext'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 (eval $ac_try) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; }; then
7343 ac_header_compiler=yes
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 ac_header_compiler=no
7348 fi
7349 rm -f conftest.$ac_objext conftest.$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7351 echo "${ECHO_T}$ac_header_compiler" >&6
7352
7353 # Is the header present?
7354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7356 cat >conftest.$ac_ext <<_ACEOF
7357 #line $LINENO "configure"
7358 #include "confdefs.h"
7359 #include <$ac_header>
7360 _ACEOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 egrep -v '^ *\+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 else
7372 ac_cpp_err=
7373 fi
7374 else
7375 ac_cpp_err=yes
7376 fi
7377 if test -z "$ac_cpp_err"; then
7378 ac_header_preproc=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7382 ac_header_preproc=no
7383 fi
7384 rm -f conftest.err conftest.$ac_ext
7385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7386 echo "${ECHO_T}$ac_header_preproc" >&6
7387
7388 # So? What about this header?
7389 case $ac_header_compiler:$ac_header_preproc in
7390 yes:no )
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7395 no:yes )
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7402 esac
7403 echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 eval "$as_ac_Header=$ac_header_preproc"
7409 fi
7410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412
7413 fi
7414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7415 cat >>confdefs.h <<_ACEOF
7416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417 _ACEOF
7418
7419 fi
7420
7421 done
7422
7423
7424 for ac_func in getpagesize
7425 do
7426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7427 echo "$as_me:$LINENO: checking for $ac_func" >&5
7428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7429 if eval "test \"\${$as_ac_var+set}\" = set"; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432 cat >conftest.$ac_ext <<_ACEOF
7433 #line $LINENO "configure"
7434 #include "confdefs.h"
7435 /* System header to define __stub macros and hopefully few prototypes,
7436 which can conflict with char $ac_func (); below. */
7437 #include <assert.h>
7438 /* Override any gcc2 internal prototype to avoid an error. */
7439 #ifdef __cplusplus
7440 extern "C"
7441 #endif
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444 char $ac_func ();
7445 char (*f) ();
7446
7447 #ifdef F77_DUMMY_MAIN
7448 # ifdef __cplusplus
7449 extern "C"
7450 # endif
7451 int F77_DUMMY_MAIN() { return 1; }
7452 #endif
7453 int
7454 main ()
7455 {
7456 /* The GNU C library defines this for functions which it implements
7457 to always fail with ENOSYS. Some functions are actually named
7458 something starting with __ and the normal name is an alias. */
7459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7460 choke me
7461 #else
7462 f = $ac_func;
7463 #endif
7464
7465 ;
7466 return 0;
7467 }
7468 _ACEOF
7469 rm -f conftest.$ac_objext conftest$ac_exeext
7470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7471 (eval $ac_link) 2>&5
7472 ac_status=$?
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 eval "$as_ac_var=yes"
7482 else
7483 echo "$as_me: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7485 eval "$as_ac_var=no"
7486 fi
7487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7488 fi
7489 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7490 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7491 if test `eval echo '${'$as_ac_var'}'` = yes; then
7492 cat >>confdefs.h <<_ACEOF
7493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7494 _ACEOF
7495
7496 fi
7497 done
7498
7499 echo "$as_me:$LINENO: checking for working mmap" >&5
7500 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7501 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 if test "$cross_compiling" = yes; then
7505 ac_cv_func_mmap_fixed_mapped=no
7506 else
7507 cat >conftest.$ac_ext <<_ACEOF
7508 #line $LINENO "configure"
7509 #include "confdefs.h"
7510 $ac_includes_default
7511 /* Thanks to Mike Haertel and Jim Avera for this test.
7512 Here is a matrix of mmap possibilities:
7513 mmap private not fixed
7514 mmap private fixed at somewhere currently unmapped
7515 mmap private fixed at somewhere already mapped
7516 mmap shared not fixed
7517 mmap shared fixed at somewhere currently unmapped
7518 mmap shared fixed at somewhere already mapped
7519 For private mappings, we should verify that changes cannot be read()
7520 back from the file, nor mmap's back from the file at a different
7521 address. (There have been systems where private was not correctly
7522 implemented like the infamous i386 svr4.0, and systems where the
7523 VM page cache was not coherent with the file system buffer cache
7524 like early versions of FreeBSD and possibly contemporary NetBSD.)
7525 For shared mappings, we should conversely verify that changes get
7526 propagated back to all the places they're supposed to be.
7527
7528 Grep wants private fixed already mapped.
7529 The main things grep needs to know about mmap are:
7530 * does it exist and is it safe to write into the mmap'd area
7531 * how to use it (BSD variants) */
7532
7533 #include <fcntl.h>
7534 #include <sys/mman.h>
7535
7536 #if !STDC_HEADERS && !HAVE_STDLIB_H
7537 char *malloc ();
7538 #endif
7539
7540 /* This mess was copied from the GNU getpagesize.h. */
7541 #if !HAVE_GETPAGESIZE
7542 /* Assume that all systems that can run configure have sys/param.h. */
7543 # if !HAVE_SYS_PARAM_H
7544 # define HAVE_SYS_PARAM_H 1
7545 # endif
7546
7547 # ifdef _SC_PAGESIZE
7548 # define getpagesize() sysconf(_SC_PAGESIZE)
7549 # else /* no _SC_PAGESIZE */
7550 # if HAVE_SYS_PARAM_H
7551 # include <sys/param.h>
7552 # ifdef EXEC_PAGESIZE
7553 # define getpagesize() EXEC_PAGESIZE
7554 # else /* no EXEC_PAGESIZE */
7555 # ifdef NBPG
7556 # define getpagesize() NBPG * CLSIZE
7557 # ifndef CLSIZE
7558 # define CLSIZE 1
7559 # endif /* no CLSIZE */
7560 # else /* no NBPG */
7561 # ifdef NBPC
7562 # define getpagesize() NBPC
7563 # else /* no NBPC */
7564 # ifdef PAGESIZE
7565 # define getpagesize() PAGESIZE
7566 # endif /* PAGESIZE */
7567 # endif /* no NBPC */
7568 # endif /* no NBPG */
7569 # endif /* no EXEC_PAGESIZE */
7570 # else /* no HAVE_SYS_PARAM_H */
7571 # define getpagesize() 8192 /* punt totally */
7572 # endif /* no HAVE_SYS_PARAM_H */
7573 # endif /* no _SC_PAGESIZE */
7574
7575 #endif /* no HAVE_GETPAGESIZE */
7576
7577 int
7578 main ()
7579 {
7580 char *data, *data2, *data3;
7581 int i, pagesize;
7582 int fd;
7583
7584 pagesize = getpagesize ();
7585
7586 /* First, make a file with some known garbage in it. */
7587 data = (char *) malloc (pagesize);
7588 if (!data)
7589 exit (1);
7590 for (i = 0; i < pagesize; ++i)
7591 *(data + i) = rand ();
7592 umask (0);
7593 fd = creat ("conftest.mmap", 0600);
7594 if (fd < 0)
7595 exit (1);
7596 if (write (fd, data, pagesize) != pagesize)
7597 exit (1);
7598 close (fd);
7599
7600 /* Next, try to mmap the file at a fixed address which already has
7601 something else allocated at it. If we can, also make sure that
7602 we see the same garbage. */
7603 fd = open ("conftest.mmap", O_RDWR);
7604 if (fd < 0)
7605 exit (1);
7606 data2 = (char *) malloc (2 * pagesize);
7607 if (!data2)
7608 exit (1);
7609 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7610 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7611 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7612 exit (1);
7613 for (i = 0; i < pagesize; ++i)
7614 if (*(data + i) != *(data2 + i))
7615 exit (1);
7616
7617 /* Finally, make sure that changes to the mapped area do not
7618 percolate back to the file as seen by read(). (This is a bug on
7619 some variants of i386 svr4.0.) */
7620 for (i = 0; i < pagesize; ++i)
7621 *(data2 + i) = *(data2 + i) + 1;
7622 data3 = (char *) malloc (pagesize);
7623 if (!data3)
7624 exit (1);
7625 if (read (fd, data3, pagesize) != pagesize)
7626 exit (1);
7627 for (i = 0; i < pagesize; ++i)
7628 if (*(data + i) != *(data3 + i))
7629 exit (1);
7630 close (fd);
7631 exit (0);
7632 }
7633 _ACEOF
7634 rm -f conftest$ac_exeext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636 (eval $ac_link) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 ac_cv_func_mmap_fixed_mapped=yes
7646 else
7647 echo "$as_me: program exited with status $ac_status" >&5
7648 echo "$as_me: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 ( exit $ac_status )
7651 ac_cv_func_mmap_fixed_mapped=no
7652 fi
7653 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 fi
7656 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7657 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7658 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7659
7660 cat >>confdefs.h <<\_ACEOF
7661 #define HAVE_MMAP 1
7662 _ACEOF
7663
7664 fi
7665 rm -f conftest.mmap
7666
7667
7668 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7669 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7670 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 #line $LINENO "configure"
7675 #include "confdefs.h"
7676
7677 #include <features.h>
7678 #ifdef __GNU_LIBRARY__
7679 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7680 Lucky GNU user
7681 #endif
7682 #endif
7683
7684 _ACEOF
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686 egrep "Lucky GNU user" >/dev/null 2>&1; then
7687 ac_cv_gnu_library_2_1=yes
7688 else
7689 ac_cv_gnu_library_2_1=no
7690 fi
7691 rm -f conftest*
7692
7693
7694
7695 fi
7696 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7697 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7698
7699 GLIBC21="$ac_cv_gnu_library_2_1"
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7714 stdlib.h string.h unistd.h sys/param.h
7715 do
7716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718 echo "$as_me:$LINENO: checking for $ac_header" >&5
7719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 fi
7723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725 else
7726 # Is the header compilable?
7727 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line $LINENO "configure"
7731 #include "confdefs.h"
7732 $ac_includes_default
7733 #include <$ac_header>
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } &&
7741 { ac_try='test -s conftest.$ac_objext'
7742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 (eval $ac_try) 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 ac_header_compiler=yes
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 ac_header_compiler=no
7752 fi
7753 rm -f conftest.$ac_objext conftest.$ac_ext
7754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7755 echo "${ECHO_T}$ac_header_compiler" >&6
7756
7757 # Is the header present?
7758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7760 cat >conftest.$ac_ext <<_ACEOF
7761 #line $LINENO "configure"
7762 #include "confdefs.h"
7763 #include <$ac_header>
7764 _ACEOF
7765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7767 ac_status=$?
7768 egrep -v '^ *\+' conftest.er1 >conftest.err
7769 rm -f conftest.er1
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } >/dev/null; then
7773 if test -s conftest.err; then
7774 ac_cpp_err=$ac_c_preproc_warn_flag
7775 else
7776 ac_cpp_err=
7777 fi
7778 else
7779 ac_cpp_err=yes
7780 fi
7781 if test -z "$ac_cpp_err"; then
7782 ac_header_preproc=yes
7783 else
7784 echo "$as_me: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7786 ac_header_preproc=no
7787 fi
7788 rm -f conftest.err conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7790 echo "${ECHO_T}$ac_header_preproc" >&6
7791
7792 # So? What about this header?
7793 case $ac_header_compiler:$ac_header_preproc in
7794 yes:no )
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7799 no:yes )
7800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7806 esac
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 eval "$as_ac_Header=$ac_header_preproc"
7813 fi
7814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7816
7817 fi
7818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7819 cat >>confdefs.h <<_ACEOF
7820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7821 _ACEOF
7822
7823 fi
7824
7825 done
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7849 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7850 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7851 do
7852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7853 echo "$as_me:$LINENO: checking for $ac_func" >&5
7854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7855 if eval "test \"\${$as_ac_var+set}\" = set"; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line $LINENO "configure"
7860 #include "confdefs.h"
7861 /* System header to define __stub macros and hopefully few prototypes,
7862 which can conflict with char $ac_func (); below. */
7863 #include <assert.h>
7864 /* Override any gcc2 internal prototype to avoid an error. */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 /* We use char because int might match the return type of a gcc2
7869 builtin and then its argument prototype would still apply. */
7870 char $ac_func ();
7871 char (*f) ();
7872
7873 #ifdef F77_DUMMY_MAIN
7874 # ifdef __cplusplus
7875 extern "C"
7876 # endif
7877 int F77_DUMMY_MAIN() { return 1; }
7878 #endif
7879 int
7880 main ()
7881 {
7882 /* The GNU C library defines this for functions which it implements
7883 to always fail with ENOSYS. Some functions are actually named
7884 something starting with __ and the normal name is an alias. */
7885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7886 choke me
7887 #else
7888 f = $ac_func;
7889 #endif
7890
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7897 (eval $ac_link) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7903 (eval $ac_try) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); }; }; then
7907 eval "$as_ac_var=yes"
7908 else
7909 echo "$as_me: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 eval "$as_ac_var=no"
7912 fi
7913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914 fi
7915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7917 if test `eval echo '${'$as_ac_var'}'` = yes; then
7918 cat >>confdefs.h <<_ACEOF
7919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7920 _ACEOF
7921
7922 fi
7923 done
7924
7925
7926
7927
7928
7929 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7930 if test "${with_libiconv_prefix+set}" = set; then
7931 withval="$with_libiconv_prefix"
7932
7933 for dir in `echo "$withval" | tr : ' '`; do
7934 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7935 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7936 done
7937
7938 fi;
7939
7940 echo "$as_me:$LINENO: checking for iconv" >&5
7941 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7942 if test "${am_cv_func_iconv+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945
7946 am_cv_func_iconv="no, consider installing GNU libiconv"
7947 am_cv_lib_iconv=no
7948 cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7950 #include "confdefs.h"
7951 #include <stdlib.h>
7952 #include <iconv.h>
7953 #ifdef F77_DUMMY_MAIN
7954 # ifdef __cplusplus
7955 extern "C"
7956 # endif
7957 int F77_DUMMY_MAIN() { return 1; }
7958 #endif
7959 int
7960 main ()
7961 {
7962 iconv_t cd = iconv_open("","");
7963 iconv(cd,NULL,NULL,NULL,NULL);
7964 iconv_close(cd);
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 (eval $ac_try) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 am_cv_func_iconv=yes
7982 else
7983 echo "$as_me: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7985 fi
7986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7987 if test "$am_cv_func_iconv" != yes; then
7988 am_save_LIBS="$LIBS"
7989 LIBS="$LIBS -liconv"
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line $LINENO "configure"
7992 #include "confdefs.h"
7993 #include <stdlib.h>
7994 #include <iconv.h>
7995 #ifdef F77_DUMMY_MAIN
7996 # ifdef __cplusplus
7997 extern "C"
7998 # endif
7999 int F77_DUMMY_MAIN() { return 1; }
8000 #endif
8001 int
8002 main ()
8003 {
8004 iconv_t cd = iconv_open("","");
8005 iconv(cd,NULL,NULL,NULL,NULL);
8006 iconv_close(cd);
8007 ;
8008 return 0;
8009 }
8010 _ACEOF
8011 rm -f conftest.$ac_objext conftest$ac_exeext
8012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8013 (eval $ac_link) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 am_cv_lib_iconv=yes
8024 am_cv_func_iconv=yes
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 fi
8029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8030 LIBS="$am_save_LIBS"
8031 fi
8032
8033 fi
8034 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8035 echo "${ECHO_T}$am_cv_func_iconv" >&6
8036 if test "$am_cv_func_iconv" = yes; then
8037
8038 cat >>confdefs.h <<\_ACEOF
8039 #define HAVE_ICONV 1
8040 _ACEOF
8041
8042 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8043 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8044 if test "${am_cv_proto_iconv+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line $LINENO "configure"
8050 #include "confdefs.h"
8051
8052 #include <stdlib.h>
8053 #include <iconv.h>
8054 extern
8055 #ifdef __cplusplus
8056 "C"
8057 #endif
8058 #if defined(__STDC__) || defined(__cplusplus)
8059 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8060 #else
8061 size_t iconv();
8062 #endif
8063
8064 #ifdef F77_DUMMY_MAIN
8065 # ifdef __cplusplus
8066 extern "C"
8067 # endif
8068 int F77_DUMMY_MAIN() { return 1; }
8069 #endif
8070 int
8071 main ()
8072 {
8073
8074 ;
8075 return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>&5
8081 ac_status=$?
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try='test -s conftest.$ac_objext'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 am_cv_proto_iconv_arg1=""
8091 else
8092 echo "$as_me: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 am_cv_proto_iconv_arg1="const"
8095 fi
8096 rm -f conftest.$ac_objext conftest.$ac_ext
8097 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);"
8098 fi
8099
8100 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8101 echo "$as_me:$LINENO: result: ${ac_t:-
8102 }$am_cv_proto_iconv" >&5
8103 echo "${ECHO_T}${ac_t:-
8104 }$am_cv_proto_iconv" >&6
8105
8106 cat >>confdefs.h <<_ACEOF
8107 #define ICONV_CONST $am_cv_proto_iconv_arg1
8108 _ACEOF
8109
8110 fi
8111 LIBICONV=
8112 if test "$am_cv_lib_iconv" = yes; then
8113 LIBICONV="-liconv"
8114 fi
8115
8116
8117
8118 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8119 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8120 if test "${am_cv_langinfo_codeset+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123 cat >conftest.$ac_ext <<_ACEOF
8124 #line $LINENO "configure"
8125 #include "confdefs.h"
8126 #include <langinfo.h>
8127 #ifdef F77_DUMMY_MAIN
8128 # ifdef __cplusplus
8129 extern "C"
8130 # endif
8131 int F77_DUMMY_MAIN() { return 1; }
8132 #endif
8133 int
8134 main ()
8135 {
8136 char* cs = nl_langinfo(CODESET);
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext conftest$ac_exeext
8142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 am_cv_langinfo_codeset=yes
8154 else
8155 echo "$as_me: failed program was:" >&5
8156 cat conftest.$ac_ext >&5
8157 am_cv_langinfo_codeset=no
8158 fi
8159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8160
8161 fi
8162 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8163 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8164 if test $am_cv_langinfo_codeset = yes; then
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_LANGINFO_CODESET 1
8168 _ACEOF
8169
8170 fi
8171
8172 if test $ac_cv_header_locale_h = yes; then
8173 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8174 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8175 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8180 #include "confdefs.h"
8181 #include <locale.h>
8182 #ifdef F77_DUMMY_MAIN
8183 # ifdef __cplusplus
8184 extern "C"
8185 # endif
8186 int F77_DUMMY_MAIN() { return 1; }
8187 #endif
8188 int
8189 main ()
8190 {
8191 return LC_MESSAGES
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 am_cv_val_LC_MESSAGES=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8212 am_cv_val_LC_MESSAGES=no
8213 fi
8214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8217 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8218 if test $am_cv_val_LC_MESSAGES = yes; then
8219
8220 cat >>confdefs.h <<\_ACEOF
8221 #define HAVE_LC_MESSAGES 1
8222 _ACEOF
8223
8224 fi
8225 fi
8226 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8227 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8228 # Check whether --enable-nls or --disable-nls was given.
8229 if test "${enable_nls+set}" = set; then
8230 enableval="$enable_nls"
8231 USE_NLS=$enableval
8232 else
8233 USE_NLS=yes
8234 fi;
8235 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8236 echo "${ECHO_T}$USE_NLS" >&6
8237
8238
8239 BUILD_INCLUDED_LIBINTL=no
8240 USE_INCLUDED_LIBINTL=no
8241 INTLLIBS=
8242
8243 if test "$USE_NLS" = "yes"; then
8244
8245 cat >>confdefs.h <<\_ACEOF
8246 #define ENABLE_NLS 1
8247 _ACEOF
8248
8249 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8250 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8251
8252 # Check whether --with-included-gettext or --without-included-gettext was given.
8253 if test "${with_included_gettext+set}" = set; then
8254 withval="$with_included_gettext"
8255 nls_cv_force_use_gnu_gettext=$withval
8256 else
8257 nls_cv_force_use_gnu_gettext=no
8258 fi;
8259 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8260 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8261
8262 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8263 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8264 CATOBJEXT=NONE
8265
8266
8267
8268
8269 if test "${ac_cv_header_libintl_h+set}" = set; then
8270 echo "$as_me:$LINENO: checking for libintl.h" >&5
8271 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8272 if test "${ac_cv_header_libintl_h+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 fi
8275 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8276 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8277 else
8278 # Is the header compilable?
8279 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8280 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8282 #line $LINENO "configure"
8283 #include "confdefs.h"
8284 $ac_includes_default
8285 #include <libintl.h>
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_header_compiler=yes
8300 else
8301 echo "$as_me: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 ac_header_compiler=no
8304 fi
8305 rm -f conftest.$ac_objext conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6
8308
8309 # Is the header present?
8310 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8311 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line $LINENO "configure"
8314 #include "confdefs.h"
8315 #include <libintl.h>
8316 _ACEOF
8317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 ac_status=$?
8320 egrep -v '^ *\+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev/null; then
8325 if test -s conftest.err; then
8326 ac_cpp_err=$ac_c_preproc_warn_flag
8327 else
8328 ac_cpp_err=
8329 fi
8330 else
8331 ac_cpp_err=yes
8332 fi
8333 if test -z "$ac_cpp_err"; then
8334 ac_header_preproc=yes
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8338 ac_header_preproc=no
8339 fi
8340 rm -f conftest.err conftest.$ac_ext
8341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8342 echo "${ECHO_T}$ac_header_preproc" >&6
8343
8344 # So? What about this header?
8345 case $ac_header_compiler:$ac_header_preproc in
8346 yes:no )
8347 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8348 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8350 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8351 no:yes )
8352 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8353 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8354 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8355 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8356 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8357 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8358 esac
8359 echo "$as_me:$LINENO: checking for libintl.h" >&5
8360 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8361 if test "${ac_cv_header_libintl_h+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 ac_cv_header_libintl_h=$ac_header_preproc
8365 fi
8366 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8367 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8368
8369 fi
8370 if test $ac_cv_header_libintl_h = yes; then
8371 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8372 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8373 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 #include "confdefs.h"
8379 #include <libintl.h>
8380 extern int _nl_msg_cat_cntr;
8381 #ifdef F77_DUMMY_MAIN
8382 # ifdef __cplusplus
8383 extern "C"
8384 # endif
8385 int F77_DUMMY_MAIN() { return 1; }
8386 #endif
8387 int
8388 main ()
8389 {
8390 bindtextdomain ("", "");
8391 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8392 ;
8393 return 0;
8394 }
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -s conftest$ac_exeext'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 gt_cv_func_gnugettext2_libc=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 gt_cv_func_gnugettext2_libc=no
8413 fi
8414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8415 fi
8416 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8417 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8418
8419 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8420 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8421 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8422 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 gt_save_LIBS="$LIBS"
8426 LIBS="$LIBS -lintl $LIBICONV"
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 #include "confdefs.h"
8430 #include <libintl.h>
8431 extern int _nl_msg_cat_cntr;
8432 #ifdef F77_DUMMY_MAIN
8433 # ifdef __cplusplus
8434 extern "C"
8435 # endif
8436 int F77_DUMMY_MAIN() { return 1; }
8437 #endif
8438 int
8439 main ()
8440 {
8441 bindtextdomain ("", "");
8442 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8443 ;
8444 return 0;
8445 }
8446 _ACEOF
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 gt_cv_func_gnugettext2_libintl=yes
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8463 gt_cv_func_gnugettext2_libintl=no
8464 fi
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 LIBS="$gt_save_LIBS"
8467 fi
8468 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8469 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8470 fi
8471
8472 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8473 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8474 && test "$PACKAGE" != gettext; }; then
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_GETTEXT 1
8478 _ACEOF
8479
8480
8481 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8482 INTLLIBS="-lintl $LIBICONV"
8483 fi
8484
8485 gt_save_LIBS="$LIBS"
8486 LIBS="$LIBS $INTLLIBS"
8487
8488 for ac_func in dcgettext
8489 do
8490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8491 echo "$as_me:$LINENO: checking for $ac_func" >&5
8492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8493 if eval "test \"\${$as_ac_var+set}\" = set"; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 /* System header to define __stub macros and hopefully few prototypes,
8500 which can conflict with char $ac_func (); below. */
8501 #include <assert.h>
8502 /* Override any gcc2 internal prototype to avoid an error. */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8508 char $ac_func ();
8509 char (*f) ();
8510
8511 #ifdef F77_DUMMY_MAIN
8512 # ifdef __cplusplus
8513 extern "C"
8514 # endif
8515 int F77_DUMMY_MAIN() { return 1; }
8516 #endif
8517 int
8518 main ()
8519 {
8520 /* The GNU C library defines this for functions which it implements
8521 to always fail with ENOSYS. Some functions are actually named
8522 something starting with __ and the normal name is an alias. */
8523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8524 choke me
8525 #else
8526 f = $ac_func;
8527 #endif
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 rm -f conftest.$ac_objext conftest$ac_exeext
8534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8535 (eval $ac_link) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -s conftest$ac_exeext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 eval "$as_ac_var=yes"
8546 else
8547 echo "$as_me: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8549 eval "$as_ac_var=no"
8550 fi
8551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8552 fi
8553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8555 if test `eval echo '${'$as_ac_var'}'` = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8558 _ACEOF
8559
8560 fi
8561 done
8562
8563 LIBS="$gt_save_LIBS"
8564
8565 # Extract the first word of "msgfmt", so it can be a program name with args.
8566 set dummy msgfmt; ac_word=$2
8567 echo "$as_me:$LINENO: checking for $ac_word" >&5
8568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8569 if test "${ac_cv_path_MSGFMT+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 case "$MSGFMT" in
8573 /*)
8574 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8575 ;;
8576 *)
8577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8578 for ac_dir in $PATH; do
8579 test -z "$ac_dir" && ac_dir=.
8580 if test -f $ac_dir/$ac_word; then
8581 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8582 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8583 break
8584 fi
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
8588 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8589 ;;
8590 esac
8591 fi
8592 MSGFMT="$ac_cv_path_MSGFMT"
8593 if test "$MSGFMT" != ":"; then
8594 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8595 echo "${ECHO_T}$MSGFMT" >&6
8596 else
8597 echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6
8599 fi
8600
8601 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8602 set dummy gmsgfmt; ac_word=$2
8603 echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8605 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 case $GMSGFMT in
8609 [\\/]* | ?:[\\/]*)
8610 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8611 ;;
8612 *)
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624 done
8625 done
8626
8627 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8628 ;;
8629 esac
8630 fi
8631 GMSGFMT=$ac_cv_path_GMSGFMT
8632
8633 if test -n "$GMSGFMT"; then
8634 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8635 echo "${ECHO_T}$GMSGFMT" >&6
8636 else
8637 echo "$as_me:$LINENO: result: no" >&5
8638 echo "${ECHO_T}no" >&6
8639 fi
8640
8641
8642 # Extract the first word of "xgettext", so it can be a program name with args.
8643 set dummy xgettext; ac_word=$2
8644 echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8646 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 case "$XGETTEXT" in
8650 /*)
8651 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8652 ;;
8653 *)
8654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8655 for ac_dir in $PATH; do
8656 test -z "$ac_dir" && ac_dir=.
8657 if test -f $ac_dir/$ac_word; then
8658 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8659 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8660 break
8661 fi
8662 fi
8663 done
8664 IFS="$ac_save_ifs"
8665 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8666 ;;
8667 esac
8668 fi
8669 XGETTEXT="$ac_cv_path_XGETTEXT"
8670 if test "$XGETTEXT" != ":"; then
8671 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8672 echo "${ECHO_T}$XGETTEXT" >&6
8673 else
8674 echo "$as_me:$LINENO: result: no" >&5
8675 echo "${ECHO_T}no" >&6
8676 fi
8677
8678
8679 CATOBJEXT=.gmo
8680 fi
8681
8682 fi
8683
8684
8685
8686 if test "$CATOBJEXT" = "NONE"; then
8687 nls_cv_use_gnu_gettext=yes
8688 fi
8689 fi
8690
8691 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8692 INTLOBJS="\$(GETTOBJS)"
8693 # Extract the first word of "msgfmt", so it can be a program name with args.
8694 set dummy msgfmt; ac_word=$2
8695 echo "$as_me:$LINENO: checking for $ac_word" >&5
8696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8697 if test "${ac_cv_path_MSGFMT+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700 case "$MSGFMT" in
8701 /*)
8702 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8703 ;;
8704 *)
8705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8706 for ac_dir in $PATH; do
8707 test -z "$ac_dir" && ac_dir=.
8708 if test -f $ac_dir/$ac_word; then
8709 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8710 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8711 break
8712 fi
8713 fi
8714 done
8715 IFS="$ac_save_ifs"
8716 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8717 ;;
8718 esac
8719 fi
8720 MSGFMT="$ac_cv_path_MSGFMT"
8721 if test "$MSGFMT" != ":"; then
8722 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8723 echo "${ECHO_T}$MSGFMT" >&6
8724 else
8725 echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6
8727 fi
8728
8729 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8730 set dummy gmsgfmt; ac_word=$2
8731 echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 case $GMSGFMT in
8737 [\\/]* | ?:[\\/]*)
8738 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8739 ;;
8740 *)
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8743 do
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8748 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8751 fi
8752 done
8753 done
8754
8755 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8756 ;;
8757 esac
8758 fi
8759 GMSGFMT=$ac_cv_path_GMSGFMT
8760
8761 if test -n "$GMSGFMT"; then
8762 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8763 echo "${ECHO_T}$GMSGFMT" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6
8767 fi
8768
8769 # Extract the first word of "xgettext", so it can be a program name with args.
8770 set dummy xgettext; ac_word=$2
8771 echo "$as_me:$LINENO: checking for $ac_word" >&5
8772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8773 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 case "$XGETTEXT" in
8777 /*)
8778 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8779 ;;
8780 *)
8781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8782 for ac_dir in $PATH; do
8783 test -z "$ac_dir" && ac_dir=.
8784 if test -f $ac_dir/$ac_word; then
8785 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8786 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8787 break
8788 fi
8789 fi
8790 done
8791 IFS="$ac_save_ifs"
8792 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8793 ;;
8794 esac
8795 fi
8796 XGETTEXT="$ac_cv_path_XGETTEXT"
8797 if test "$XGETTEXT" != ":"; then
8798 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8799 echo "${ECHO_T}$XGETTEXT" >&6
8800 else
8801 echo "$as_me:$LINENO: result: no" >&5
8802 echo "${ECHO_T}no" >&6
8803 fi
8804
8805
8806 BUILD_INCLUDED_LIBINTL=yes
8807 USE_INCLUDED_LIBINTL=yes
8808 CATOBJEXT=.gmo
8809 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8810 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8811 fi
8812
8813 if test "$GMSGFMT" != ":"; then
8814 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8815 : ;
8816 else
8817 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8818 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8819 GMSGFMT=":"
8820 fi
8821 fi
8822
8823 if test "$XGETTEXT" != ":"; then
8824 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8825 : ;
8826 else
8827 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8828 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8829 XGETTEXT=":"
8830 fi
8831 fi
8832
8833 POSUB=po
8834 fi
8835 ac_config_commands="$ac_config_commands default-1"
8836
8837
8838
8839 if test "$PACKAGE" = gettext; then
8840 BUILD_INCLUDED_LIBINTL=yes
8841 fi
8842
8843 for ac_prog in bison
8844 do
8845 # Extract the first word of "$ac_prog", so it can be a program name with args.
8846 set dummy $ac_prog; ac_word=$2
8847 echo "$as_me:$LINENO: checking for $ac_word" >&5
8848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8849 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852 if test -n "$INTLBISON"; then
8853 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8857 do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8862 ac_cv_prog_INTLBISON="$ac_prog"
8863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8865 fi
8866 done
8867 done
8868
8869 fi
8870 fi
8871 INTLBISON=$ac_cv_prog_INTLBISON
8872 if test -n "$INTLBISON"; then
8873 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8874 echo "${ECHO_T}$INTLBISON" >&6
8875 else
8876 echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6
8878 fi
8879
8880 test -n "$INTLBISON" && break
8881 done
8882
8883 if test -z "$INTLBISON"; then
8884 ac_verc_fail=yes
8885 else
8886 echo "$as_me:$LINENO: checking version of bison" >&5
8887 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8888 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8889 case $ac_prog_version in
8890 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8891 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8892 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8893 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8894 esac
8895 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8896 echo "${ECHO_T}$ac_prog_version" >&6
8897 fi
8898 if test $ac_verc_fail = yes; then
8899 INTLBISON=:
8900 fi
8901
8902 for lang in $ALL_LINGUAS; do
8903 GMOFILES="$GMOFILES $lang.gmo"
8904 POFILES="$POFILES $lang.po"
8905 done
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 nls_cv_header_intl=
8918 nls_cv_header_libgt=
8919
8920 DATADIRNAME=share
8921
8922
8923 INSTOBJEXT=.mo
8924
8925
8926 GENCAT=gencat
8927
8928
8929
8930 if test "x$CATOBJEXT" != "x"; then
8931 if test "x$ALL_LINGUAS" = "x"; then
8932 LINGUAS=
8933 else
8934 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8935 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8936 NEW_LINGUAS=
8937 for presentlang in $ALL_LINGUAS; do
8938 useit=no
8939 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8940 # Use the presentlang catalog if desiredlang is
8941 # a. equal to presentlang, or
8942 # b. a variant of presentlang (because in this case,
8943 # presentlang can be used as a fallback for messages
8944 # which are not translated in the desiredlang catalog).
8945 case "$desiredlang" in
8946 "$presentlang"*) useit=yes;;
8947 esac
8948 done
8949 if test $useit = yes; then
8950 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8951 fi
8952 done
8953 LINGUAS=$NEW_LINGUAS
8954 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8955 echo "${ECHO_T}$LINGUAS" >&6
8956 fi
8957
8958 if test -n "$LINGUAS"; then
8959 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8960 fi
8961 fi
8962
8963 MKINSTALLDIRS=
8964 if test -n "$ac_aux_dir"; then
8965 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8966 fi
8967 if test -z "$MKINSTALLDIRS"; then
8968 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8969 fi
8970
8971
8972 INTL_LIBTOOL_SUFFIX_PREFIX=
8973
8974
8975
8976 # This is necessary so that .o files in LIBOBJS are also built via
8977 # the ANSI2KNR-filtering rules.
8978 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8979
8980
8981 ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8982 cat >confcache <<\_ACEOF
8983 # This file is a shell script that caches the results of configure
8984 # tests run on this system so they can be shared between configure
8985 # scripts and configure runs, see configure's option --config-cache.
8986 # It is not useful on other systems. If it contains results you don't
8987 # want to keep, you may remove or edit it.
8988 #
8989 # config.status only pays attention to the cache file if you give it
8990 # the --recheck option to rerun configure.
8991 #
8992 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8994 # following values.
8995
8996 _ACEOF
8997
8998 # The following way of writing the cache mishandles newlines in values,
8999 # but we know of no workaround that is simple, portable, and efficient.
9000 # So, don't put newlines in cache variables' values.
9001 # Ultrix sh set writes to stderr and can't be redirected directly,
9002 # and sets the high bit in the cache file unless we assign to the vars.
9003 {
9004 (set) 2>&1 |
9005 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9006 *ac_space=\ *)
9007 # `set' does not quote correctly, so add quotes (double-quote
9008 # substitution turns \\\\ into \\, and sed turns \\ into \).
9009 sed -n \
9010 "s/'/'\\\\''/g;
9011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9012 ;;
9013 *)
9014 # `set' quotes correctly as required by POSIX, so do not add quotes.
9015 sed -n \
9016 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9017 ;;
9018 esac;
9019 } |
9020 sed '
9021 t clear
9022 : clear
9023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9024 t end
9025 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9026 : end' >>confcache
9027 if cmp -s $cache_file confcache; then :; else
9028 if test -w $cache_file; then
9029 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9030 cat confcache >$cache_file
9031 else
9032 echo "not updating unwritable cache $cache_file"
9033 fi
9034 fi
9035 rm -f confcache
9036
9037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9038 # Let make expand exec_prefix.
9039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9040
9041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9043 # trailing colons and then remove the whole line if VPATH becomes empty
9044 # (actually we leave an empty line to preserve line numbers).
9045 if test "x$srcdir" = x.; then
9046 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9047 s/:*\$(srcdir):*/:/;
9048 s/:*\${srcdir}:*/:/;
9049 s/:*@srcdir@:*/:/;
9050 s/^\([^=]*=[ ]*\):*/\1/;
9051 s/:*$//;
9052 s/^[^=]*=[ ]*$//;
9053 }'
9054 fi
9055
9056 DEFS=-DHAVE_CONFIG_H
9057
9058 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9059 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9060 Usually this means the macro was only invoked conditionally." >&5
9061 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9062 Usually this means the macro was only invoked conditionally." >&2;}
9063 { (exit 1); exit 1; }; }
9064 fi
9065
9066 : ${CONFIG_STATUS=./config.status}
9067 ac_clean_files_save=$ac_clean_files
9068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9071 cat >$CONFIG_STATUS <<_ACEOF
9072 #! $SHELL
9073 # Generated by $as_me.
9074 # Run this file to recreate the current configuration.
9075 # Compiler output produced by configure, useful for debugging
9076 # configure, is in config.log if it exists.
9077
9078 debug=false
9079 SHELL=\${CONFIG_SHELL-$SHELL}
9080 _ACEOF
9081
9082 cat >>$CONFIG_STATUS <<\_ACEOF
9083
9084 ## --------------------- ##
9085 ## M4sh Initialization. ##
9086 ## --------------------- ##
9087
9088 # Be Bourne compatible
9089 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9090 emulate sh
9091 NULLCMD=:
9092 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9093 set -o posix
9094 fi
9095
9096 # NLS nuisances.
9097 # Support unset when possible.
9098 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9099 as_unset=unset
9100 else
9101 as_unset=false
9102 fi
9103
9104 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9105 { $as_unset LANG || test "${LANG+set}" != set; } ||
9106 { LANG=C; export LANG; }
9107 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9108 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9109 { LC_ALL=C; export LC_ALL; }
9110 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9111 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9112 { LC_TIME=C; export LC_TIME; }
9113 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9114 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9115 { LC_CTYPE=C; export LC_CTYPE; }
9116 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9117 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9118 { LANGUAGE=C; export LANGUAGE; }
9119 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9120 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9121 { LC_COLLATE=C; export LC_COLLATE; }
9122 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9123 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9124 { LC_NUMERIC=C; export LC_NUMERIC; }
9125 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9126 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9127 { LC_MESSAGES=C; export LC_MESSAGES; }
9128
9129
9130 # Name of the executable.
9131 as_me=`(basename "$0") 2>/dev/null ||
9132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9133 X"$0" : 'X\(//\)$' \| \
9134 X"$0" : 'X\(/\)$' \| \
9135 . : '\(.\)' 2>/dev/null ||
9136 echo X/"$0" |
9137 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9138 /^X\/\(\/\/\)$/{ s//\1/; q; }
9139 /^X\/\(\/\).*/{ s//\1/; q; }
9140 s/.*/./; q'`
9141
9142 # PATH needs CR, and LINENO needs CR and PATH.
9143 # Avoid depending upon Character Ranges.
9144 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9145 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9146 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9147 as_cr_digits='0123456789'
9148 as_cr_alnum=$as_cr_Letters$as_cr_digits
9149
9150 # The user is always right.
9151 if test "${PATH_SEPARATOR+set}" != set; then
9152 echo "#! $SHELL" >conftest.sh
9153 echo "exit 0" >>conftest.sh
9154 chmod +x conftest.sh
9155 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9156 PATH_SEPARATOR=';'
9157 else
9158 PATH_SEPARATOR=:
9159 fi
9160 rm -f conftest.sh
9161 fi
9162
9163
9164 as_lineno_1=$LINENO
9165 as_lineno_2=$LINENO
9166 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9167 test "x$as_lineno_1" != "x$as_lineno_2" &&
9168 test "x$as_lineno_3" = "x$as_lineno_2" || {
9169 # Find who we are. Look in the path if we contain no path at all
9170 # relative or not.
9171 case $0 in
9172 *[\\/]* ) as_myself=$0 ;;
9173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174 for as_dir in $PATH
9175 do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
9178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9179 done
9180
9181 ;;
9182 esac
9183 # We did not find ourselves, most probably we were run as `sh COMMAND'
9184 # in which case we are not to be found in the path.
9185 if test "x$as_myself" = x; then
9186 as_myself=$0
9187 fi
9188 if test ! -f "$as_myself"; then
9189 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9190 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9191 { (exit 1); exit 1; }; }
9192 fi
9193 case $CONFIG_SHELL in
9194 '')
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in /bin:/usr/bin:$PATH
9197 do
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for as_base in sh bash ksh sh5; do
9201 case $as_dir in
9202 /*)
9203 if ("$as_dir/$as_base" -c '
9204 as_lineno_1=$LINENO
9205 as_lineno_2=$LINENO
9206 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9207 test "x$as_lineno_1" != "x$as_lineno_2" &&
9208 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9209 CONFIG_SHELL=$as_dir/$as_base
9210 export CONFIG_SHELL
9211 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9212 fi;;
9213 esac
9214 done
9215 done
9216 ;;
9217 esac
9218
9219 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9220 # uniformly replaced by the line number. The first 'sed' inserts a
9221 # line-number line before each line; the second 'sed' does the real
9222 # work. The second script uses 'N' to pair each line-number line
9223 # with the numbered line, and appends trailing '-' during
9224 # substitution so that $LINENO is not a special case at line end.
9225 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9226 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9227 sed '=' <$as_myself |
9228 sed '
9229 N
9230 s,$,-,
9231 : loop
9232 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9233 t loop
9234 s,-$,,
9235 s,^['$as_cr_digits']*\n,,
9236 ' >$as_me.lineno &&
9237 chmod +x $as_me.lineno ||
9238 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9239 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9240 { (exit 1); exit 1; }; }
9241
9242 # Don't try to exec as it changes $[0], causing all sort of problems
9243 # (the dirname of $[0] is not the place where we might find the
9244 # original and so on. Autoconf is especially sensible to this).
9245 . ./$as_me.lineno
9246 # Exit status is that of the last command.
9247 exit
9248 }
9249
9250
9251 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9252 *c*,-n*) ECHO_N= ECHO_C='
9253 ' ECHO_T=' ' ;;
9254 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9255 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9256 esac
9257
9258 if expr a : '\(a\)' >/dev/null 2>&1; then
9259 as_expr=expr
9260 else
9261 as_expr=false
9262 fi
9263
9264 rm -f conf$$ conf$$.exe conf$$.file
9265 echo >conf$$.file
9266 if ln -s conf$$.file conf$$ 2>/dev/null; then
9267 # We could just check for DJGPP; but this test a) works b) is more generic
9268 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9269 if test -f conf$$.exe; then
9270 # Don't use ln at all; we don't have any links
9271 as_ln_s='cp -p'
9272 else
9273 as_ln_s='ln -s'
9274 fi
9275 elif ln conf$$.file conf$$ 2>/dev/null; then
9276 as_ln_s=ln
9277 else
9278 as_ln_s='cp -p'
9279 fi
9280 rm -f conf$$ conf$$.exe conf$$.file
9281
9282 as_executable_p="test -f"
9283
9284 # Sed expression to map a string onto a valid CPP name.
9285 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9286
9287 # Sed expression to map a string onto a valid variable name.
9288 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9289
9290
9291 # IFS
9292 # We need space, tab and new line, in precisely that order.
9293 as_nl='
9294 '
9295 IFS=" $as_nl"
9296
9297 # CDPATH.
9298 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9299
9300 exec 6>&1
9301
9302 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9303 # report actual input values of CONFIG_FILES etc. instead of their
9304 # values after options handling. Logging --version etc. is OK.
9305 exec 5>>config.log
9306 {
9307 echo
9308 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9309 ## Running $as_me. ##
9310 _ASBOX
9311 } >&5
9312 cat >&5 <<_CSEOF
9313
9314 This file was extended by GNU Bison $as_me 1.30j, which was
9315 generated by GNU Autoconf 2.52g. Invocation command line was
9316
9317 CONFIG_FILES = $CONFIG_FILES
9318 CONFIG_HEADERS = $CONFIG_HEADERS
9319 CONFIG_LINKS = $CONFIG_LINKS
9320 CONFIG_COMMANDS = $CONFIG_COMMANDS
9321 $ $0 $@
9322
9323 _CSEOF
9324 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9325 echo >&5
9326 _ACEOF
9327
9328 # Files that config.status was made for.
9329 if test -n "$ac_config_files"; then
9330 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9331 fi
9332
9333 if test -n "$ac_config_headers"; then
9334 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9335 fi
9336
9337 if test -n "$ac_config_links"; then
9338 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9339 fi
9340
9341 if test -n "$ac_config_commands"; then
9342 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9343 fi
9344
9345 cat >>$CONFIG_STATUS <<\_ACEOF
9346
9347 ac_cs_usage="\
9348 \`$as_me' instantiates files from templates according to the
9349 current configuration.
9350
9351 Usage: $0 [OPTIONS] [FILE]...
9352
9353 -h, --help print this help, then exit
9354 -V, --version print version number, then exit
9355 -d, --debug don't remove temporary files
9356 --recheck update $as_me by reconfiguring in the same conditions
9357 --file=FILE[:TEMPLATE]
9358 instantiate the configuration file FILE
9359 --header=FILE[:TEMPLATE]
9360 instantiate the configuration header FILE
9361
9362 Configuration files:
9363 $config_files
9364
9365 Configuration headers:
9366 $config_headers
9367
9368 Configuration commands:
9369 $config_commands
9370
9371 Report bugs to <bug-autoconf@gnu.org>."
9372 _ACEOF
9373
9374 cat >>$CONFIG_STATUS <<_ACEOF
9375 ac_cs_version="\\
9376 GNU Bison config.status 1.30j
9377 configured by $0, generated by GNU Autoconf 2.52g,
9378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9379
9380 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9381 Free Software Foundation, Inc.
9382 This config.status script is free software; the Free Software Foundation
9383 gives unlimited permission to copy, distribute and modify it."
9384 srcdir=$srcdir
9385 INSTALL="$INSTALL"
9386 _ACEOF
9387
9388 cat >>$CONFIG_STATUS <<\_ACEOF
9389 # If no file are specified by the user, then we need to provide default
9390 # value. By we need to know if files were specified by the user.
9391 ac_need_defaults=:
9392 while test $# != 0
9393 do
9394 case $1 in
9395 --*=*)
9396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9398 shift
9399 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9400 shift
9401 ;;
9402 -*);;
9403 *) # This is not an option, so the user has probably given explicit
9404 # arguments.
9405 ac_need_defaults=false;;
9406 esac
9407
9408 case $1 in
9409 # Handling of the options.
9410 _ACEOF
9411 cat >>$CONFIG_STATUS <<_ACEOF
9412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9413 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9414 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9415 _ACEOF
9416 cat >>$CONFIG_STATUS <<\_ACEOF
9417 --version | --vers* | -V )
9418 echo "$ac_cs_version"; exit 0 ;;
9419 --he | --h)
9420 # Conflict between --help and --header
9421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9422 Try \`$0 --help' for more information." >&5
9423 echo "$as_me: error: ambiguous option: $1
9424 Try \`$0 --help' for more information." >&2;}
9425 { (exit 1); exit 1; }; };;
9426 --help | --hel | -h )
9427 echo "$ac_cs_usage"; exit 0 ;;
9428 --debug | --d* | -d )
9429 debug=: ;;
9430 --file | --fil | --fi | --f )
9431 shift
9432 CONFIG_FILES="$CONFIG_FILES $1"
9433 ac_need_defaults=false;;
9434 --header | --heade | --head | --hea )
9435 shift
9436 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9437 ac_need_defaults=false;;
9438
9439 # This is an error.
9440 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9441 Try \`$0 --help' for more information." >&5
9442 echo "$as_me: error: unrecognized option: $1
9443 Try \`$0 --help' for more information." >&2;}
9444 { (exit 1); exit 1; }; } ;;
9445
9446 *) ac_config_targets="$ac_config_targets $1" ;;
9447
9448 esac
9449 shift
9450 done
9451
9452 _ACEOF
9453
9454 cat >>$CONFIG_STATUS <<_ACEOF
9455 #
9456 # INIT-COMMANDS section.
9457 #
9458
9459 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9460
9461
9462 _ACEOF
9463
9464
9465
9466 cat >>$CONFIG_STATUS <<\_ACEOF
9467 for ac_config_target in $ac_config_targets
9468 do
9469 case "$ac_config_target" in
9470 # Handling of arguments.
9471 "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
9472 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9473 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
9474 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9475 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
9476 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9477 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9478 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9479 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9480 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9481 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9482 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
9483 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9484 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9485 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
9486 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9487 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9488 { (exit 1); exit 1; }; };;
9489 esac
9490 done
9491
9492 # If the user did not use the arguments to specify the items to instantiate,
9493 # then the envvar interface is used. Set only those that are not.
9494 # We use the long form for the default assignment because of an extremely
9495 # bizarre bug on SunOS 4.1.3.
9496 if $ac_need_defaults; then
9497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9500 fi
9501
9502 # Create a temporary directory, and hook for its removal unless debugging.
9503 $debug ||
9504 {
9505 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9506 trap '{ (exit 1); exit 1; }' 1 2 13 15
9507 }
9508
9509 # Create a (secure) tmp directory for tmp files.
9510 : ${TMPDIR=/tmp}
9511 {
9512 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9513 test -n "$tmp" && test -d "$tmp"
9514 } ||
9515 {
9516 tmp=$TMPDIR/cs$$-$RANDOM
9517 (umask 077 && mkdir $tmp)
9518 } ||
9519 {
9520 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9521 { (exit 1); exit 1; }
9522 }
9523
9524 _ACEOF
9525
9526 cat >>$CONFIG_STATUS <<_ACEOF
9527
9528 #
9529 # CONFIG_FILES section.
9530 #
9531
9532 # No need to generate the scripts if there are no CONFIG_FILES.
9533 # This happens for instance when ./config.status config.h
9534 if test -n "\$CONFIG_FILES"; then
9535 # Protect against being on the right side of a sed subst in config.status.
9536 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9537 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9538 s,@SHELL@,$SHELL,;t t
9539 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9540 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9541 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9542 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9543 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9544 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9545 s,@exec_prefix@,$exec_prefix,;t t
9546 s,@prefix@,$prefix,;t t
9547 s,@program_transform_name@,$program_transform_name,;t t
9548 s,@bindir@,$bindir,;t t
9549 s,@sbindir@,$sbindir,;t t
9550 s,@libexecdir@,$libexecdir,;t t
9551 s,@datadir@,$datadir,;t t
9552 s,@sysconfdir@,$sysconfdir,;t t
9553 s,@sharedstatedir@,$sharedstatedir,;t t
9554 s,@localstatedir@,$localstatedir,;t t
9555 s,@libdir@,$libdir,;t t
9556 s,@includedir@,$includedir,;t t
9557 s,@oldincludedir@,$oldincludedir,;t t
9558 s,@infodir@,$infodir,;t t
9559 s,@mandir@,$mandir,;t t
9560 s,@build_alias@,$build_alias,;t t
9561 s,@host_alias@,$host_alias,;t t
9562 s,@target_alias@,$target_alias,;t t
9563 s,@DEFS@,$DEFS,;t t
9564 s,@ECHO_C@,$ECHO_C,;t t
9565 s,@ECHO_N@,$ECHO_N,;t t
9566 s,@ECHO_T@,$ECHO_T,;t t
9567 s,@LIBS@,$LIBS,;t t
9568 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9569 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9570 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9571 s,@PACKAGE@,$PACKAGE,;t t
9572 s,@VERSION@,$VERSION,;t t
9573 s,@ACLOCAL@,$ACLOCAL,;t t
9574 s,@AUTOCONF@,$AUTOCONF,;t t
9575 s,@AUTOMAKE@,$AUTOMAKE,;t t
9576 s,@AUTOHEADER@,$AUTOHEADER,;t t
9577 s,@MAKEINFO@,$MAKEINFO,;t t
9578 s,@AMTAR@,$AMTAR,;t t
9579 s,@install_sh@,$install_sh,;t t
9580 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9581 s,@AWK@,$AWK,;t t
9582 s,@SET_MAKE@,$SET_MAKE,;t t
9583 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9584 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9585 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9586 s,@DEPDIR@,$DEPDIR,;t t
9587 s,@GCC@,$GCC,;t t
9588 s,@CC@,$CC,;t t
9589 s,@CFLAGS@,$CFLAGS,;t t
9590 s,@LDFLAGS@,$LDFLAGS,;t t
9591 s,@CPPFLAGS@,$CPPFLAGS,;t t
9592 s,@ac_ct_CC@,$ac_ct_CC,;t t
9593 s,@EXEEXT@,$EXEEXT,;t t
9594 s,@OBJEXT@,$OBJEXT,;t t
9595 s,@am__include@,$am__include,;t t
9596 s,@am__quote@,$am__quote,;t t
9597 s,@CCDEPMODE@,$CCDEPMODE,;t t
9598 s,@CPP@,$CPP,;t t
9599 s,@RANLIB@,$RANLIB,;t t
9600 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9601 s,@AUTOM4TE@,$AUTOM4TE,;t t
9602 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9603 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9604 s,@U@,$U,;t t
9605 s,@ANSI2KNR@,$ANSI2KNR,;t t
9606 s,@ALLOCA@,$ALLOCA,;t t
9607 s,@LIBOBJS@,$LIBOBJS,;t t
9608 s,@build@,$build,;t t
9609 s,@build_cpu@,$build_cpu,;t t
9610 s,@build_vendor@,$build_vendor,;t t
9611 s,@build_os@,$build_os,;t t
9612 s,@host@,$host,;t t
9613 s,@host_cpu@,$host_cpu,;t t
9614 s,@host_vendor@,$host_vendor,;t t
9615 s,@host_os@,$host_os,;t t
9616 s,@GLIBC21@,$GLIBC21,;t t
9617 s,@LIBICONV@,$LIBICONV,;t t
9618 s,@USE_NLS@,$USE_NLS,;t t
9619 s,@MSGFMT@,$MSGFMT,;t t
9620 s,@GMSGFMT@,$GMSGFMT,;t t
9621 s,@XGETTEXT@,$XGETTEXT,;t t
9622 s,@INTLBISON@,$INTLBISON,;t t
9623 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9624 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9625 s,@CATALOGS@,$CATALOGS,;t t
9626 s,@CATOBJEXT@,$CATOBJEXT,;t t
9627 s,@GMOFILES@,$GMOFILES,;t t
9628 s,@INTLLIBS@,$INTLLIBS,;t t
9629 s,@INTLOBJS@,$INTLOBJS,;t t
9630 s,@POFILES@,$POFILES,;t t
9631 s,@POSUB@,$POSUB,;t t
9632 s,@DATADIRNAME@,$DATADIRNAME,;t t
9633 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9634 s,@GENCAT@,$GENCAT,;t t
9635 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9636 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9637 CEOF
9638
9639 _ACEOF
9640
9641 cat >>$CONFIG_STATUS <<\_ACEOF
9642 # Split the substitutions into bite-sized pieces for seds with
9643 # small command number limits, like on Digital OSF/1 and HP-UX.
9644 ac_max_sed_lines=48
9645 ac_sed_frag=1 # Number of current file.
9646 ac_beg=1 # First line for current file.
9647 ac_end=$ac_max_sed_lines # Line after last line for current file.
9648 ac_more_lines=:
9649 ac_sed_cmds=
9650 while $ac_more_lines; do
9651 if test $ac_beg -gt 1; then
9652 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9653 else
9654 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9655 fi
9656 if test ! -s $tmp/subs.frag; then
9657 ac_more_lines=false
9658 else
9659 # The purpose of the label and of the branching condition is to
9660 # speed up the sed processing (if there are no `@' at all, there
9661 # is no need to browse any of the substitutions).
9662 # These are the two extra sed commands mentioned above.
9663 (echo ':t
9664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9665 if test -z "$ac_sed_cmds"; then
9666 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9667 else
9668 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9669 fi
9670 ac_sed_frag=`expr $ac_sed_frag + 1`
9671 ac_beg=$ac_end
9672 ac_end=`expr $ac_end + $ac_max_sed_lines`
9673 fi
9674 done
9675 if test -z "$ac_sed_cmds"; then
9676 ac_sed_cmds=cat
9677 fi
9678 fi # test -n "$CONFIG_FILES"
9679
9680 _ACEOF
9681 cat >>$CONFIG_STATUS <<\_ACEOF
9682 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9684 case $ac_file in
9685 - | *:- | *:-:* ) # input from stdin
9686 cat >$tmp/stdin
9687 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9688 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9689 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9691 * ) ac_file_in=$ac_file.in ;;
9692 esac
9693
9694 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9695 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9696 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9697 X"$ac_file" : 'X\(//\)[^/]' \| \
9698 X"$ac_file" : 'X\(//\)$' \| \
9699 X"$ac_file" : 'X\(/\)' \| \
9700 . : '\(.\)' 2>/dev/null ||
9701 echo X"$ac_file" |
9702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9704 /^X\(\/\/\)$/{ s//\1/; q; }
9705 /^X\(\/\).*/{ s//\1/; q; }
9706 s/.*/./; q'`
9707 { case "$ac_dir" in
9708 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9709 *) as_incr_dir=.;;
9710 esac
9711 as_dummy="$ac_dir"
9712 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9713 case $as_mkdir_dir in
9714 # Skip DOS drivespec
9715 ?:) as_incr_dir=$as_mkdir_dir ;;
9716 *)
9717 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9718 test -d "$as_incr_dir" ||
9719 mkdir "$as_incr_dir" ||
9720 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9721 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9722 { (exit 1); exit 1; }; }
9723 ;;
9724 esac
9725 done; }
9726
9727 ac_builddir=.
9728
9729 if test "$ac_dir" != .; then
9730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9731 # A "../" for each directory in $ac_dir_suffix.
9732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9733 else
9734 ac_dir_suffix= ac_top_builddir=
9735 fi
9736
9737 case $srcdir in
9738 .) # No --srcdir option. We are building in place.
9739 ac_srcdir=.
9740 if test -z "$ac_top_builddir"; then
9741 ac_top_srcdir=.
9742 else
9743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9744 fi ;;
9745 [\\/]* | ?:[\\/]* ) # Absolute path.
9746 ac_srcdir=$srcdir$ac_dir_suffix;
9747 ac_top_srcdir=$srcdir ;;
9748 *) # Relative path.
9749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9751 esac
9752 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9753 # absolute.
9754 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9755 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9756 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9757 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9758
9759
9760 case $INSTALL in
9761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9762 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9763 esac
9764
9765 if test x"$ac_file" != x-; then
9766 { echo "$as_me:$LINENO: creating $ac_file" >&5
9767 echo "$as_me: creating $ac_file" >&6;}
9768 rm -f "$ac_file"
9769 fi
9770 # Let's still pretend it is `configure' which instantiates (i.e., don't
9771 # use $as_me), people would be surprised to read:
9772 # /* config.h. Generated by config.status. */
9773 if test x"$ac_file" = x-; then
9774 configure_input=
9775 else
9776 configure_input="$ac_file. "
9777 fi
9778 configure_input=$configure_input"Generated from `echo $ac_file_in |
9779 sed 's,.*/,,'` by configure."
9780
9781 # First look for the input files in the build tree, otherwise in the
9782 # src tree.
9783 ac_file_inputs=`IFS=:
9784 for f in $ac_file_in; do
9785 case $f in
9786 -) echo $tmp/stdin ;;
9787 [\\/$]*)
9788 # Absolute (can't be DOS-style, as IFS=:)
9789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9790 echo "$as_me: error: cannot find input file: $f" >&2;}
9791 { (exit 1); exit 1; }; }
9792 echo $f;;
9793 *) # Relative
9794 if test -f "$f"; then
9795 # Build tree
9796 echo $f
9797 elif test -f "$srcdir/$f"; then
9798 # Source tree
9799 echo $srcdir/$f
9800 else
9801 # /dev/null tree
9802 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9803 echo "$as_me: error: cannot find input file: $f" >&2;}
9804 { (exit 1); exit 1; }; }
9805 fi;;
9806 esac
9807 done` || { (exit 1); exit 1; }
9808 _ACEOF
9809 cat >>$CONFIG_STATUS <<_ACEOF
9810 sed "$ac_vpsub
9811 $extrasub
9812 _ACEOF
9813 cat >>$CONFIG_STATUS <<\_ACEOF
9814 :t
9815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9816 s,@configure_input@,$configure_input,;t t
9817 s,@srcdir@,$ac_srcdir,;t t
9818 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9819 s,@top_srcdir@,$ac_top_srcdir,;t t
9820 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9821 s,@builddir@,$ac_builddir,;t t
9822 s,@abs_builddir@,$ac_abs_builddir,;t t
9823 s,@top_builddir@,$ac_top_builddir,;t t
9824 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9825 s,@INSTALL@,$ac_INSTALL,;t t
9826 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9827 rm -f $tmp/stdin
9828 if test x"$ac_file" != x-; then
9829 mv $tmp/out $ac_file
9830 else
9831 cat $tmp/out
9832 rm -f $tmp/out
9833 fi
9834
9835 # Run the commands associated with the file.
9836 case $ac_file in
9837 tests/bison ) chmod +x tests/bison ;;
9838 esac
9839 done
9840 _ACEOF
9841 cat >>$CONFIG_STATUS <<\_ACEOF
9842
9843 #
9844 # CONFIG_HEADER section.
9845 #
9846
9847 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9848 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9849 #
9850 # ac_d sets the value in "#define NAME VALUE" lines.
9851 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9852 ac_dB='[ ].*$,\1#\2'
9853 ac_dC=' '
9854 ac_dD=',;t'
9855 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9856 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9857 ac_uB='$,\1#\2define\3'
9858 ac_uC=' '
9859 ac_uD=',;t'
9860
9861 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9862 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9863 case $ac_file in
9864 - | *:- | *:-:* ) # input from stdin
9865 cat >$tmp/stdin
9866 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9867 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9868 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9870 * ) ac_file_in=$ac_file.in ;;
9871 esac
9872
9873 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9874 echo "$as_me: creating $ac_file" >&6;}
9875
9876 # First look for the input files in the build tree, otherwise in the
9877 # src tree.
9878 ac_file_inputs=`IFS=:
9879 for f in $ac_file_in; do
9880 case $f in
9881 -) echo $tmp/stdin ;;
9882 [\\/$]*)
9883 # Absolute (can't be DOS-style, as IFS=:)
9884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9885 echo "$as_me: error: cannot find input file: $f" >&2;}
9886 { (exit 1); exit 1; }; }
9887 echo $f;;
9888 *) # Relative
9889 if test -f "$f"; then
9890 # Build tree
9891 echo $f
9892 elif test -f "$srcdir/$f"; then
9893 # Source tree
9894 echo $srcdir/$f
9895 else
9896 # /dev/null tree
9897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9898 echo "$as_me: error: cannot find input file: $f" >&2;}
9899 { (exit 1); exit 1; }; }
9900 fi;;
9901 esac
9902 done` || { (exit 1); exit 1; }
9903 # Remove the trailing spaces.
9904 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9905
9906 _ACEOF
9907
9908 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9909 # `conftest.undefs', that substitutes the proper values into
9910 # config.h.in to produce config.h. The first handles `#define'
9911 # templates, and the second `#undef' templates.
9912 # And first: Protect against being on the right side of a sed subst in
9913 # config.status. Protect against being in an unquoted here document
9914 # in config.status.
9915 rm -f conftest.defines conftest.undefs
9916 # Using a here document instead of a string reduces the quoting nightmare.
9917 # Putting comments in sed scripts is not portable.
9918 #
9919 # `end' is used to avoid that the second main sed command (meant for
9920 # 0-ary CPP macros) applies to n-ary macro definitions.
9921 # See the Autoconf documentation for `clear'.
9922 cat >confdef2sed.sed <<\_ACEOF
9923 s/[\\&,]/\\&/g
9924 s,[\\$`],\\&,g
9925 t clear
9926 : clear
9927 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9928 t end
9929 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9930 : end
9931 _ACEOF
9932 # If some macros were called several times there might be several times
9933 # the same #defines, which is useless. Nevertheless, we may not want to
9934 # sort them, since we want the *last* AC-DEFINE to be honored.
9935 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9936 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9937 rm -f confdef2sed.sed
9938
9939 # This sed command replaces #undef with comments. This is necessary, for
9940 # example, in the case of _POSIX_SOURCE, which is predefined and required
9941 # on some systems where configure will not decide to define it.
9942 cat >>conftest.undefs <<\_ACEOF
9943 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9944 _ACEOF
9945
9946 # Break up conftest.defines because some shells have a limit on the size
9947 # of here documents, and old seds have small limits too (100 cmds).
9948 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9949 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9950 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9951 echo ' :' >>$CONFIG_STATUS
9952 rm -f conftest.tail
9953 while grep . conftest.defines >/dev/null
9954 do
9955 # Write a limited-size here document to $tmp/defines.sed.
9956 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9957 # Speed up: don't consider the non `#define' lines.
9958 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9959 # Work around the forget-to-reset-the-flag bug.
9960 echo 't clr' >>$CONFIG_STATUS
9961 echo ': clr' >>$CONFIG_STATUS
9962 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9963 echo 'CEOF
9964 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9965 rm -f $tmp/in
9966 mv $tmp/out $tmp/in
9967 ' >>$CONFIG_STATUS
9968 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9969 rm -f conftest.defines
9970 mv conftest.tail conftest.defines
9971 done
9972 rm -f conftest.defines
9973 echo ' fi # egrep' >>$CONFIG_STATUS
9974 echo >>$CONFIG_STATUS
9975
9976 # Break up conftest.undefs because some shells have a limit on the size
9977 # of here documents, and old seds have small limits too (100 cmds).
9978 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9979 rm -f conftest.tail
9980 while grep . conftest.undefs >/dev/null
9981 do
9982 # Write a limited-size here document to $tmp/undefs.sed.
9983 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9984 # Speed up: don't consider the non `#undef'
9985 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9986 # Work around the forget-to-reset-the-flag bug.
9987 echo 't clr' >>$CONFIG_STATUS
9988 echo ': clr' >>$CONFIG_STATUS
9989 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9990 echo 'CEOF
9991 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9992 rm -f $tmp/in
9993 mv $tmp/out $tmp/in
9994 ' >>$CONFIG_STATUS
9995 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9996 rm -f conftest.undefs
9997 mv conftest.tail conftest.undefs
9998 done
9999 rm -f conftest.undefs
10000
10001 cat >>$CONFIG_STATUS <<\_ACEOF
10002 # Let's still pretend it is `configure' which instantiates (i.e., don't
10003 # use $as_me), people would be surprised to read:
10004 # /* config.h. Generated by config.status. */
10005 if test x"$ac_file" = x-; then
10006 echo "/* Generated by configure. */" >$tmp/config.h
10007 else
10008 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10009 fi
10010 cat $tmp/in >>$tmp/config.h
10011 rm -f $tmp/in
10012 if test x"$ac_file" != x-; then
10013 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10015 echo "$as_me: $ac_file is unchanged" >&6;}
10016 else
10017 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10019 X"$ac_file" : 'X\(//\)[^/]' \| \
10020 X"$ac_file" : 'X\(//\)$' \| \
10021 X"$ac_file" : 'X\(/\)' \| \
10022 . : '\(.\)' 2>/dev/null ||
10023 echo X"$ac_file" |
10024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10025 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10026 /^X\(\/\/\)$/{ s//\1/; q; }
10027 /^X\(\/\).*/{ s//\1/; q; }
10028 s/.*/./; q'`
10029 { case "$ac_dir" in
10030 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10031 *) as_incr_dir=.;;
10032 esac
10033 as_dummy="$ac_dir"
10034 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10035 case $as_mkdir_dir in
10036 # Skip DOS drivespec
10037 ?:) as_incr_dir=$as_mkdir_dir ;;
10038 *)
10039 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10040 test -d "$as_incr_dir" ||
10041 mkdir "$as_incr_dir" ||
10042 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10043 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10044 { (exit 1); exit 1; }; }
10045 ;;
10046 esac
10047 done; }
10048
10049 rm -f $ac_file
10050 mv $tmp/config.h $ac_file
10051 fi
10052 else
10053 cat $tmp/config.h
10054 rm -f $tmp/config.h
10055 fi
10056 # Run the commands associated with the file.
10057 case $ac_file in
10058 config.h ) # update the timestamp
10059 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10060 ;;
10061 esac
10062 done
10063 _ACEOF
10064 cat >>$CONFIG_STATUS <<\_ACEOF
10065
10066 #
10067 # CONFIG_COMMANDS section.
10068 #
10069 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10070 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10071 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10072 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10073 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10074 X"$ac_dest" : 'X\(//\)[^/]' \| \
10075 X"$ac_dest" : 'X\(//\)$' \| \
10076 X"$ac_dest" : 'X\(/\)' \| \
10077 . : '\(.\)' 2>/dev/null ||
10078 echo X"$ac_dest" |
10079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10081 /^X\(\/\/\)$/{ s//\1/; q; }
10082 /^X\(\/\).*/{ s//\1/; q; }
10083 s/.*/./; q'`
10084 ac_builddir=.
10085
10086 if test "$ac_dir" != .; then
10087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10088 # A "../" for each directory in $ac_dir_suffix.
10089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10090 else
10091 ac_dir_suffix= ac_top_builddir=
10092 fi
10093
10094 case $srcdir in
10095 .) # No --srcdir option. We are building in place.
10096 ac_srcdir=.
10097 if test -z "$ac_top_builddir"; then
10098 ac_top_srcdir=.
10099 else
10100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10101 fi ;;
10102 [\\/]* | ?:[\\/]* ) # Absolute path.
10103 ac_srcdir=$srcdir$ac_dir_suffix;
10104 ac_top_srcdir=$srcdir ;;
10105 *) # Relative path.
10106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10108 esac
10109 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10110 # absolute.
10111 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10112 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10113 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10114 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10115
10116
10117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10118 echo "$as_me: executing $ac_dest commands" >&6;}
10119 case $ac_dest in
10120 tests/atconfig ) cat >tests/atconfig <<ATEOF
10121 # Configurable variable values for building test suites.
10122 # Generated by $0.
10123 # Copyright 2000, 2001 Free Software Foundation, Inc.
10124
10125 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10126 at_testdir='tests'
10127 abs_builddir='$ac_abs_builddir'
10128 at_srcdir='$ac_srcdir'
10129 abs_srcdir='$ac_abs_srcdir'
10130 at_top_srcdir='$ac_top_srcdir'
10131 abs_top_srcdir='$ac_abs_top_srcdir'
10132 at_top_builddir='$ac_top_builddir'
10133 abs_top_builddir='$ac_abs_top_builddir'
10134
10135 AUTOTEST_PATH='tests'
10136
10137 SHELL=\${CONFIG_SHELL-'$SHELL'}
10138 ATEOF
10139 ;;
10140 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10141 # Strip MF so we end up with the name of the file.
10142 mf=`echo "$mf" | sed -e 's/:.*$//'`
10143 if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
10144 dirpart=`(dirname "$mf") 2>/dev/null ||
10145 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10146 X"$mf" : 'X\(//\)[^/]' \| \
10147 X"$mf" : 'X\(//\)$' \| \
10148 X"$mf" : 'X\(/\)' \| \
10149 . : '\(.\)' 2>/dev/null ||
10150 echo X"$mf" |
10151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10153 /^X\(\/\/\)$/{ s//\1/; q; }
10154 /^X\(\/\).*/{ s//\1/; q; }
10155 s/.*/./; q'`
10156 else
10157 dirpart=
10158 fi
10159 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10160 # Extract the definition of DEP_FILES from the Makefile without
10161 # running `make'.
10162 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10163 test -z "$DEPDIR" && continue
10164 # When using ansi2knr, U may be empty or an underscore; expand it
10165 U=`sed -n -e '/^U = / s///p' < "$mf"`
10166 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10167 # We invoke sed twice because it is the simplest approach to
10168 # changing $(DEPDIR) to its actual value in the expansion.
10169 for file in `sed -n -e '
10170 /^DEP_FILES = .*\\\\$/ {
10171 s/^DEP_FILES = //
10172 :loop
10173 s/\\\\$//
10174 p
10175 n
10176 /\\\\$/ b loop
10177 p
10178 }
10179 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10181 # Make sure the directory exists.
10182 test -f "$dirpart/$file" && continue
10183 fdir=`(dirname "$file") 2>/dev/null ||
10184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10185 X"$file" : 'X\(//\)[^/]' \| \
10186 X"$file" : 'X\(//\)$' \| \
10187 X"$file" : 'X\(/\)' \| \
10188 . : '\(.\)' 2>/dev/null ||
10189 echo X"$file" |
10190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10192 /^X\(\/\/\)$/{ s//\1/; q; }
10193 /^X\(\/\).*/{ s//\1/; q; }
10194 s/.*/./; q'`
10195 { case $dirpart/$fdir in
10196 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10197 *) as_incr_dir=.;;
10198 esac
10199 as_dummy=$dirpart/$fdir
10200 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10201 case $as_mkdir_dir in
10202 # Skip DOS drivespec
10203 ?:) as_incr_dir=$as_mkdir_dir ;;
10204 *)
10205 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10206 test -d "$as_incr_dir" ||
10207 mkdir "$as_incr_dir" ||
10208 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10209 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10210 { (exit 1); exit 1; }; }
10211 ;;
10212 esac
10213 done; }
10214
10215 # echo "creating $dirpart/$file"
10216 echo '# dummy' > "$dirpart/$file"
10217 done
10218 done
10219 ;;
10220 default-1 ) for ac_file in $CONFIG_FILES; do
10221 # Support "outfile[:infile[:infile...]]"
10222 case "$ac_file" in
10223 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10224 esac
10225 # PO directories have a Makefile.in generated from Makefile.in.in.
10226 case "$ac_file" in */Makefile.in)
10227 # Adjust a relative srcdir.
10228 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10229 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10230 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10231 # In autoconf-2.13 it is called $ac_given_srcdir.
10232 # In autoconf-2.50 it is called $srcdir.
10233 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10234 case "$ac_given_srcdir" in
10235 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10236 /*) top_srcdir="$ac_given_srcdir" ;;
10237 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10238 esac
10239 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10240 rm -f "$ac_dir/POTFILES"
10241 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10242 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10243 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10244 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10245 fi
10246 ;;
10247 esac
10248 done ;;
10249 esac
10250 done
10251 _ACEOF
10252
10253 cat >>$CONFIG_STATUS <<\_ACEOF
10254
10255 { (exit 0); exit 0; }
10256 _ACEOF
10257 chmod +x $CONFIG_STATUS
10258 ac_clean_files=$ac_clean_files_save
10259
10260
10261 # configure is writing to config.log, and then calls config.status.
10262 # config.status does its own redirection, appending to config.log.
10263 # Unfortunately, on DOS this fails, as config.log is still kept open
10264 # by configure, so config.status won't be able to write to it; its
10265 # output is simply discarded. So we exec the FD to /dev/null,
10266 # effectively closing config.log, so it can be properly (re)opened and
10267 # appended to by config.status. When coming back to configure, we
10268 # need to make the FD available again.
10269 if test "$no_create" != yes; then
10270 ac_cs_success=:
10271 exec 5>/dev/null
10272 $SHELL $CONFIG_STATUS || ac_cs_success=false
10273 exec 5>>config.log
10274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10275 # would make configure fail if this is the last instruction.
10276 $ac_cs_success || { (exit 1); exit 1; }
10277 fi
10278