]> git.saurik.com Git - bison.git/blob - configure
* lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c,
[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 -Wall" >&5
3213 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
3214
3215 ac_save_CFLAGS="$CFLAGS"
3216 CFLAGS="$CFLAGS -Wall"
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 -Wall"
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 echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
3259 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
3260
3261 ac_save_CFLAGS="$CFLAGS"
3262 CFLAGS="$CFLAGS -W"
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 #include "confdefs.h"
3266
3267 #ifdef F77_DUMMY_MAIN
3268 # ifdef __cplusplus
3269 extern "C"
3270 # endif
3271 int F77_DUMMY_MAIN() { return 1; }
3272 #endif
3273 int
3274 main ()
3275 {
3276 int x;
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 WARNING_CFLAGS="$WARNING_CFLAGS -W"
3294 echo "$as_me:$LINENO: result: yes" >&5
3295 echo "${ECHO_T}yes" >&6
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3299 echo "$as_me:$LINENO: result: no" >&5
3300 echo "${ECHO_T}no" >&6
3301 fi
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3303 CFLAGS="$ac_save_CFLAGS"
3304 echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
3305 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
3306
3307 ac_save_CFLAGS="$CFLAGS"
3308 CFLAGS="$CFLAGS -Wbad-function-cast"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line $LINENO "configure"
3311 #include "confdefs.h"
3312
3313 #ifdef F77_DUMMY_MAIN
3314 # ifdef __cplusplus
3315 extern "C"
3316 # endif
3317 int F77_DUMMY_MAIN() { return 1; }
3318 #endif
3319 int
3320 main ()
3321 {
3322 int x;
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
3340 echo "$as_me:$LINENO: result: yes" >&5
3341 echo "${ECHO_T}yes" >&6
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348 rm -f conftest.$ac_objext conftest.$ac_ext
3349 CFLAGS="$ac_save_CFLAGS"
3350 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
3351 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
3352
3353 ac_save_CFLAGS="$CFLAGS"
3354 CFLAGS="$CFLAGS -Wcast-align"
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3357 #include "confdefs.h"
3358
3359 #ifdef F77_DUMMY_MAIN
3360 # ifdef __cplusplus
3361 extern "C"
3362 # endif
3363 int F77_DUMMY_MAIN() { return 1; }
3364 #endif
3365 int
3366 main ()
3367 {
3368 int x;
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
3386 echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388 else
3389 echo "$as_me: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3391 echo "$as_me:$LINENO: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3393 fi
3394 rm -f conftest.$ac_objext conftest.$ac_ext
3395 CFLAGS="$ac_save_CFLAGS"
3396 echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
3397 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
3398
3399 ac_save_CFLAGS="$CFLAGS"
3400 CFLAGS="$CFLAGS -Wcast-qual"
3401 cat >conftest.$ac_ext <<_ACEOF
3402 #line $LINENO "configure"
3403 #include "confdefs.h"
3404
3405 #ifdef F77_DUMMY_MAIN
3406 # ifdef __cplusplus
3407 extern "C"
3408 # endif
3409 int F77_DUMMY_MAIN() { return 1; }
3410 #endif
3411 int
3412 main ()
3413 {
3414 int x;
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
3432 echo "$as_me:$LINENO: result: yes" >&5
3433 echo "${ECHO_T}yes" >&6
3434 else
3435 echo "$as_me: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3439 fi
3440 rm -f conftest.$ac_objext conftest.$ac_ext
3441 CFLAGS="$ac_save_CFLAGS"
3442 echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
3443 echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
3444
3445 ac_save_CFLAGS="$CFLAGS"
3446 CFLAGS="$CFLAGS -Wformat"
3447 cat >conftest.$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3449 #include "confdefs.h"
3450
3451 #ifdef F77_DUMMY_MAIN
3452 # ifdef __cplusplus
3453 extern "C"
3454 # endif
3455 int F77_DUMMY_MAIN() { return 1; }
3456 #endif
3457 int
3458 main ()
3459 {
3460 int x;
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 WARNING_CFLAGS="$WARNING_CFLAGS -Wformat"
3478 echo "$as_me:$LINENO: result: yes" >&5
3479 echo "${ECHO_T}yes" >&6
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 echo "$as_me:$LINENO: result: no" >&5
3484 echo "${ECHO_T}no" >&6
3485 fi
3486 rm -f conftest.$ac_objext conftest.$ac_ext
3487 CFLAGS="$ac_save_CFLAGS"
3488 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
3489 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
3490
3491 ac_save_CFLAGS="$CFLAGS"
3492 CFLAGS="$CFLAGS -Wmissing-declarations"
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 #include "confdefs.h"
3496
3497 #ifdef F77_DUMMY_MAIN
3498 # ifdef __cplusplus
3499 extern "C"
3500 # endif
3501 int F77_DUMMY_MAIN() { return 1; }
3502 #endif
3503 int
3504 main ()
3505 {
3506 int x;
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513 (eval $ac_compile) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
3524 echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3531 fi
3532 rm -f conftest.$ac_objext conftest.$ac_ext
3533 CFLAGS="$ac_save_CFLAGS"
3534 echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
3535 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
3536
3537 ac_save_CFLAGS="$CFLAGS"
3538 CFLAGS="$CFLAGS -Wmissing-prototypes"
3539 cat >conftest.$ac_ext <<_ACEOF
3540 #line $LINENO "configure"
3541 #include "confdefs.h"
3542
3543 #ifdef F77_DUMMY_MAIN
3544 # ifdef __cplusplus
3545 extern "C"
3546 # endif
3547 int F77_DUMMY_MAIN() { return 1; }
3548 #endif
3549 int
3550 main ()
3551 {
3552 int x;
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } &&
3563 { ac_try='test -s conftest.$ac_objext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565 (eval $ac_try) 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
3570 echo "$as_me:$LINENO: result: yes" >&5
3571 echo "${ECHO_T}yes" >&6
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3575 echo "$as_me:$LINENO: result: no" >&5
3576 echo "${ECHO_T}no" >&6
3577 fi
3578 rm -f conftest.$ac_objext conftest.$ac_ext
3579 CFLAGS="$ac_save_CFLAGS"
3580 echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
3581 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6
3582
3583 ac_save_CFLAGS="$CFLAGS"
3584 CFLAGS="$CFLAGS -Wnested-externs"
3585 cat >conftest.$ac_ext <<_ACEOF
3586 #line $LINENO "configure"
3587 #include "confdefs.h"
3588
3589 #ifdef F77_DUMMY_MAIN
3590 # ifdef __cplusplus
3591 extern "C"
3592 # endif
3593 int F77_DUMMY_MAIN() { return 1; }
3594 #endif
3595 int
3596 main ()
3597 {
3598 int x;
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 rm -f conftest.$ac_objext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3605 (eval $ac_compile) 2>&5
3606 ac_status=$?
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest.$ac_objext'
3610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611 (eval $ac_try) 2>&5
3612 ac_status=$?
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3615 WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
3616 echo "$as_me:$LINENO: result: yes" >&5
3617 echo "${ECHO_T}yes" >&6
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3623 fi
3624 rm -f conftest.$ac_objext conftest.$ac_ext
3625 CFLAGS="$ac_save_CFLAGS"
3626 echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
3627 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
3628
3629 ac_save_CFLAGS="$CFLAGS"
3630 CFLAGS="$CFLAGS -Wshadow"
3631 cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 #include "confdefs.h"
3634
3635 #ifdef F77_DUMMY_MAIN
3636 # ifdef __cplusplus
3637 extern "C"
3638 # endif
3639 int F77_DUMMY_MAIN() { return 1; }
3640 #endif
3641 int
3642 main ()
3643 {
3644 int x;
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -s conftest.$ac_objext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
3662 echo "$as_me:$LINENO: result: yes" >&5
3663 echo "${ECHO_T}yes" >&6
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 echo "$as_me:$LINENO: result: no" >&5
3668 echo "${ECHO_T}no" >&6
3669 fi
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3671 CFLAGS="$ac_save_CFLAGS"
3672 echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
3673 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
3674
3675 ac_save_CFLAGS="$CFLAGS"
3676 CFLAGS="$CFLAGS -Wstrict-prototypes"
3677 cat >conftest.$ac_ext <<_ACEOF
3678 #line $LINENO "configure"
3679 #include "confdefs.h"
3680
3681 #ifdef F77_DUMMY_MAIN
3682 # ifdef __cplusplus
3683 extern "C"
3684 # endif
3685 int F77_DUMMY_MAIN() { return 1; }
3686 #endif
3687 int
3688 main ()
3689 {
3690 int x;
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
3708 echo "$as_me:$LINENO: result: yes" >&5
3709 echo "${ECHO_T}yes" >&6
3710 else
3711 echo "$as_me: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716 rm -f conftest.$ac_objext conftest.$ac_ext
3717 CFLAGS="$ac_save_CFLAGS"
3718 echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
3719 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
3720
3721 ac_save_CFLAGS="$CFLAGS"
3722 CFLAGS="$CFLAGS -Wwrite-strings"
3723 cat >conftest.$ac_ext <<_ACEOF
3724 #line $LINENO "configure"
3725 #include "confdefs.h"
3726
3727 #ifdef F77_DUMMY_MAIN
3728 # ifdef __cplusplus
3729 extern "C"
3730 # endif
3731 int F77_DUMMY_MAIN() { return 1; }
3732 #endif
3733 int
3734 main ()
3735 {
3736 int x;
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
3754 echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6
3756 else
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762 rm -f conftest.$ac_objext conftest.$ac_ext
3763 CFLAGS="$ac_save_CFLAGS"
3764 echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
3765 echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
3766
3767 ac_save_CFLAGS="$CFLAGS"
3768 CFLAGS="$CFLAGS -Werror"
3769 cat >conftest.$ac_ext <<_ACEOF
3770 #line $LINENO "configure"
3771 #include "confdefs.h"
3772
3773 #ifdef F77_DUMMY_MAIN
3774 # ifdef __cplusplus
3775 extern "C"
3776 # endif
3777 int F77_DUMMY_MAIN() { return 1; }
3778 #endif
3779 int
3780 main ()
3781 {
3782 int x;
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 (eval $ac_compile) 2>&5
3790 ac_status=$?
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try='test -s conftest.$ac_objext'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; }; then
3799 WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
3800 echo "$as_me:$LINENO: result: yes" >&5
3801 echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3807 fi
3808 rm -f conftest.$ac_objext conftest.$ac_ext
3809 CFLAGS="$ac_save_CFLAGS"
3810 fi
3811
3812 # Checks for libraries.
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define _GNU_SOURCE 1
3816 _ACEOF
3817
3818
3819 # Checks for header files.
3820 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3822 if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 cat >conftest.$ac_ext <<_ACEOF
3826 #line $LINENO "configure"
3827 #include "confdefs.h"
3828 #include <stdlib.h>
3829 #include <stdarg.h>
3830 #include <string.h>
3831 #include <float.h>
3832
3833 _ACEOF
3834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 ac_status=$?
3837 egrep -v '^ *\+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 else
3845 ac_cpp_err=
3846 fi
3847 else
3848 ac_cpp_err=yes
3849 fi
3850 if test -z "$ac_cpp_err"; then
3851 ac_cv_header_stdc=yes
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 ac_cv_header_stdc=no
3856 fi
3857 rm -f conftest.err conftest.$ac_ext
3858
3859 if test $ac_cv_header_stdc = yes; then
3860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861 cat >conftest.$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3863 #include "confdefs.h"
3864 #include <string.h>
3865
3866 _ACEOF
3867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3868 egrep "memchr" >/dev/null 2>&1; then
3869 :
3870 else
3871 ac_cv_header_stdc=no
3872 fi
3873 rm -f conftest*
3874
3875 fi
3876
3877 if test $ac_cv_header_stdc = yes; then
3878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 #include "confdefs.h"
3882 #include <stdlib.h>
3883
3884 _ACEOF
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 egrep "free" >/dev/null 2>&1; then
3887 :
3888 else
3889 ac_cv_header_stdc=no
3890 fi
3891 rm -f conftest*
3892
3893 fi
3894
3895 if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3897 if test "$cross_compiling" = yes; then
3898 :
3899 else
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line $LINENO "configure"
3902 #include "confdefs.h"
3903 #include <ctype.h>
3904 #if ((' ' & 0x0FF) == 0x020)
3905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907 #else
3908 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3909 || ('j' <= (c) && (c) <= 'r') \
3910 || ('s' <= (c) && (c) <= 'z'))
3911 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3912 #endif
3913
3914 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3915 int
3916 main ()
3917 {
3918 int i;
3919 for (i = 0; i < 256; i++)
3920 if (XOR (islower (i), ISLOWER (i))
3921 || toupper (i) != TOUPPER (i))
3922 exit(2);
3923 exit (0);
3924 }
3925 _ACEOF
3926 rm -f conftest$ac_exeext
3927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3928 (eval $ac_link) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 :
3938 else
3939 echo "$as_me: program exited with status $ac_status" >&5
3940 echo "$as_me: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3942 ( exit $ac_status )
3943 ac_cv_header_stdc=no
3944 fi
3945 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 fi
3948 fi
3949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3951 if test $ac_cv_header_stdc = yes; then
3952
3953 cat >>confdefs.h <<\_ACEOF
3954 #define STDC_HEADERS 1
3955 _ACEOF
3956
3957 fi
3958
3959
3960
3961
3962
3963
3964
3965 for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h
3966 do
3967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3969 echo "$as_me:$LINENO: checking for $ac_header" >&5
3970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 fi
3974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3976 else
3977 # Is the header compilable?
3978 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3979 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3981 #line $LINENO "configure"
3982 #include "confdefs.h"
3983 $ac_includes_default
3984 #include <$ac_header>
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } &&
3992 { ac_try='test -s conftest.$ac_objext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_header_compiler=yes
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4002 ac_header_compiler=no
4003 fi
4004 rm -f conftest.$ac_objext conftest.$ac_ext
4005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4006 echo "${ECHO_T}$ac_header_compiler" >&6
4007
4008 # Is the header present?
4009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4011 cat >conftest.$ac_ext <<_ACEOF
4012 #line $LINENO "configure"
4013 #include "confdefs.h"
4014 #include <$ac_header>
4015 _ACEOF
4016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4018 ac_status=$?
4019 egrep -v '^ *\+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } >/dev/null; then
4024 if test -s conftest.err; then
4025 ac_cpp_err=$ac_c_preproc_warn_flag
4026 else
4027 ac_cpp_err=
4028 fi
4029 else
4030 ac_cpp_err=yes
4031 fi
4032 if test -z "$ac_cpp_err"; then
4033 ac_header_preproc=yes
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 ac_header_preproc=no
4038 fi
4039 rm -f conftest.err conftest.$ac_ext
4040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4041 echo "${ECHO_T}$ac_header_preproc" >&6
4042
4043 # So? What about this header?
4044 case $ac_header_compiler:$ac_header_preproc in
4045 yes:no )
4046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4050 no:yes )
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4057 esac
4058 echo "$as_me:$LINENO: checking for $ac_header" >&5
4059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063 eval "$as_ac_Header=$ac_header_preproc"
4064 fi
4065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4067
4068 fi
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h <<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072 _ACEOF
4073
4074 fi
4075
4076 done
4077
4078
4079 # Checks for typedefs.
4080
4081 # Checks for structures.
4082
4083 # Checks for compiler characteristics.
4084 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4085 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4086 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 ac_cv_prog_cc_stdc=no
4090 ac_save_CC=$CC
4091 cat >conftest.$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4093 #include "confdefs.h"
4094 #include <stdarg.h>
4095 #include <stdio.h>
4096 #include <sys/types.h>
4097 #include <sys/stat.h>
4098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4099 struct buf { int x; };
4100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101 static char *e (p, i)
4102 char **p;
4103 int i;
4104 {
4105 return p[i];
4106 }
4107 static char *f (char * (*g) (char **, int), char **p, ...)
4108 {
4109 char *s;
4110 va_list v;
4111 va_start (v,p);
4112 s = g (p, va_arg (v,int));
4113 va_end (v);
4114 return s;
4115 }
4116 int test (int i, double x);
4117 struct s1 {int (*f) (int a);};
4118 struct s2 {int (*f) (double a);};
4119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 int argc;
4121 char **argv;
4122 #ifdef F77_DUMMY_MAIN
4123 # ifdef __cplusplus
4124 extern "C"
4125 # endif
4126 int F77_DUMMY_MAIN() { return 1; }
4127 #endif
4128 int
4129 main ()
4130 {
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4132 ;
4133 return 0;
4134 }
4135 _ACEOF
4136 # Don't try gcc -ansi; that turns off useful extensions and
4137 # breaks some systems' header files.
4138 # AIX -qlanglvl=ansi
4139 # Ultrix and OSF/1 -std1
4140 # HP-UX 10.20 and later -Ae
4141 # HP-UX older versions -Aa -D_HPUX_SOURCE
4142 # SVR4 -Xc -D__EXTENSIONS__
4143 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 do
4145 CC="$ac_save_CC $ac_arg"
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_prog_cc_stdc=$ac_arg
4159 break
4160 else
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 fi
4164 rm -f conftest.$ac_objext
4165 done
4166 rm -f conftest.$ac_ext conftest.$ac_objext
4167 CC=$ac_save_CC
4168
4169 fi
4170
4171 case "x$ac_cv_prog_cc_stdc" in
4172 x|xno)
4173 echo "$as_me:$LINENO: result: none needed" >&5
4174 echo "${ECHO_T}none needed" >&6 ;;
4175 *)
4176 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4177 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4178 CC="$CC $ac_cv_prog_cc_stdc" ;;
4179 esac
4180
4181 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4182 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4183 if test "${ac_cv_c_const+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4189
4190 #ifdef F77_DUMMY_MAIN
4191 # ifdef __cplusplus
4192 extern "C"
4193 # endif
4194 int F77_DUMMY_MAIN() { return 1; }
4195 #endif
4196 int
4197 main ()
4198 {
4199 /* FIXME: Include the comments suggested by Paul. */
4200 #ifndef __cplusplus
4201 /* Ultrix mips cc rejects this. */
4202 typedef int charset[2];
4203 const charset x;
4204 /* SunOS 4.1.1 cc rejects this. */
4205 char const *const *ccp;
4206 char **p;
4207 /* NEC SVR4.0.2 mips cc rejects this. */
4208 struct point {int x, y;};
4209 static struct point const zero = {0,0};
4210 /* AIX XL C 1.02.0.0 rejects this.
4211 It does not let you subtract one const X* pointer from another in
4212 an arm of an if-expression whose if-part is not a constant
4213 expression */
4214 const char *g = "string";
4215 ccp = &g + (g ? g-g : 0);
4216 /* HPUX 7.0 cc rejects these. */
4217 ++ccp;
4218 p = (char**) ccp;
4219 ccp = (char const *const *) p;
4220 { /* SCO 3.2v4 cc rejects this. */
4221 char *t;
4222 char const *s = 0 ? (char *) 0 : (char const *) 0;
4223
4224 *t++ = 0;
4225 }
4226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4227 int x[] = {25, 17};
4228 const int *foo = &x[0];
4229 ++foo;
4230 }
4231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4232 typedef const int *iptr;
4233 iptr p = 0;
4234 ++p;
4235 }
4236 { /* AIX XL C 1.02.0.0 rejects this saying
4237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4238 struct s { int j; const int *ap[3]; };
4239 struct s *b; b->j = 5;
4240 }
4241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4242 const int foo = 10;
4243 }
4244 #endif
4245
4246 ;
4247 return 0;
4248 }
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_c_const=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4266 ac_cv_c_const=no
4267 fi
4268 rm -f conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4271 echo "${ECHO_T}$ac_cv_c_const" >&6
4272 if test $ac_cv_c_const = no; then
4273
4274 cat >>confdefs.h <<\_ACEOF
4275 #define const
4276 _ACEOF
4277
4278 fi
4279
4280 echo "$as_me:$LINENO: checking for inline" >&5
4281 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4282 if test "${ac_cv_c_inline+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285 ac_cv_c_inline=no
4286 for ac_kw in inline __inline__ __inline; do
4287 cat >conftest.$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4289 #include "confdefs.h"
4290 #ifndef __cplusplus
4291 static $ac_kw int static_foo () {return 0; }
4292 $ac_kw int foo () {return 0; }
4293 #endif
4294
4295 _ACEOF
4296 rm -f conftest.$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 ac_cv_c_inline=$ac_kw; break
4309 else
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.$ac_ext >&5
4312 fi
4313 rm -f conftest.$ac_objext conftest.$ac_ext
4314 done
4315
4316 fi
4317 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4318 echo "${ECHO_T}$ac_cv_c_inline" >&6
4319 case $ac_cv_c_inline in
4320 inline | yes) ;;
4321 no)
4322 cat >>confdefs.h <<\_ACEOF
4323 #define inline
4324 _ACEOF
4325 ;;
4326 *) cat >>confdefs.h <<_ACEOF
4327 #define inline $ac_cv_c_inline
4328 _ACEOF
4329 ;;
4330 esac
4331
4332
4333
4334 echo "$as_me:$LINENO: checking for function prototypes" >&5
4335 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4336 if test "$am_cv_prog_cc_stdc" != no; then
4337 echo "$as_me:$LINENO: result: yes" >&5
4338 echo "${ECHO_T}yes" >&6
4339
4340 cat >>confdefs.h <<\_ACEOF
4341 #define PROTOTYPES 1
4342 _ACEOF
4343
4344 U= ANSI2KNR=
4345 else
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 U=_ ANSI2KNR=./ansi2knr
4349 fi
4350 # Ensure some checks needed by ansi2knr itself.
4351 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4352 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4353 if test "${ac_cv_header_stdc+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356 cat >conftest.$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4359 #include <stdlib.h>
4360 #include <stdarg.h>
4361 #include <string.h>
4362 #include <float.h>
4363
4364 _ACEOF
4365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4367 ac_status=$?
4368 egrep -v '^ *\+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev/null; then
4373 if test -s conftest.err; then
4374 ac_cpp_err=$ac_c_preproc_warn_flag
4375 else
4376 ac_cpp_err=
4377 fi
4378 else
4379 ac_cpp_err=yes
4380 fi
4381 if test -z "$ac_cpp_err"; then
4382 ac_cv_header_stdc=yes
4383 else
4384 echo "$as_me: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4387 fi
4388 rm -f conftest.err conftest.$ac_ext
4389
4390 if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 #include "confdefs.h"
4395 #include <string.h>
4396
4397 _ACEOF
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399 egrep "memchr" >/dev/null 2>&1; then
4400 :
4401 else
4402 ac_cv_header_stdc=no
4403 fi
4404 rm -f conftest*
4405
4406 fi
4407
4408 if test $ac_cv_header_stdc = yes; then
4409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4413 #include <stdlib.h>
4414
4415 _ACEOF
4416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417 egrep "free" >/dev/null 2>&1; then
4418 :
4419 else
4420 ac_cv_header_stdc=no
4421 fi
4422 rm -f conftest*
4423
4424 fi
4425
4426 if test $ac_cv_header_stdc = yes; then
4427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4428 if test "$cross_compiling" = yes; then
4429 :
4430 else
4431 cat >conftest.$ac_ext <<_ACEOF
4432 #line $LINENO "configure"
4433 #include "confdefs.h"
4434 #include <ctype.h>
4435 #if ((' ' & 0x0FF) == 0x020)
4436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4438 #else
4439 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4440 || ('j' <= (c) && (c) <= 'r') \
4441 || ('s' <= (c) && (c) <= 'z'))
4442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4443 #endif
4444
4445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4446 int
4447 main ()
4448 {
4449 int i;
4450 for (i = 0; i < 256; i++)
4451 if (XOR (islower (i), ISLOWER (i))
4452 || toupper (i) != TOUPPER (i))
4453 exit(2);
4454 exit (0);
4455 }
4456 _ACEOF
4457 rm -f conftest$ac_exeext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459 (eval $ac_link) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; }; then
4468 :
4469 else
4470 echo "$as_me: program exited with status $ac_status" >&5
4471 echo "$as_me: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4473 ( exit $ac_status )
4474 ac_cv_header_stdc=no
4475 fi
4476 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4477 fi
4478 fi
4479 fi
4480 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4482 if test $ac_cv_header_stdc = yes; then
4483
4484 cat >>confdefs.h <<\_ACEOF
4485 #define STDC_HEADERS 1
4486 _ACEOF
4487
4488 fi
4489
4490
4491 for ac_header in string.h
4492 do
4493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495 echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 fi
4500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4502 else
4503 # Is the header compilable?
4504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4509 $ac_includes_default
4510 #include <$ac_header>
4511 _ACEOF
4512 rm -f conftest.$ac_objext
4513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514 (eval $ac_compile) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_header_compiler=yes
4525 else
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4528 ac_header_compiler=no
4529 fi
4530 rm -f conftest.$ac_objext conftest.$ac_ext
4531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4532 echo "${ECHO_T}$ac_header_compiler" >&6
4533
4534 # Is the header present?
4535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4537 cat >conftest.$ac_ext <<_ACEOF
4538 #line $LINENO "configure"
4539 #include "confdefs.h"
4540 #include <$ac_header>
4541 _ACEOF
4542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544 ac_status=$?
4545 egrep -v '^ *\+' conftest.er1 >conftest.err
4546 rm -f conftest.er1
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null; then
4550 if test -s conftest.err; then
4551 ac_cpp_err=$ac_c_preproc_warn_flag
4552 else
4553 ac_cpp_err=
4554 fi
4555 else
4556 ac_cpp_err=yes
4557 fi
4558 if test -z "$ac_cpp_err"; then
4559 ac_header_preproc=yes
4560 else
4561 echo "$as_me: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4563 ac_header_preproc=no
4564 fi
4565 rm -f conftest.err conftest.$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4567 echo "${ECHO_T}$ac_header_preproc" >&6
4568
4569 # So? What about this header?
4570 case $ac_header_compiler:$ac_header_preproc in
4571 yes:no )
4572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4576 no:yes )
4577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
4578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
4579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4583 esac
4584 echo "$as_me:$LINENO: checking for $ac_header" >&5
4585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 eval "$as_ac_Header=$ac_header_preproc"
4590 fi
4591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4593
4594 fi
4595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4596 cat >>confdefs.h <<_ACEOF
4597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598 _ACEOF
4599
4600 fi
4601
4602 done
4603
4604
4605
4606 # Checks for library functions.
4607 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4608 # for constant arguments. Useless!
4609 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4610 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4611 if test "${ac_cv_working_alloca_h+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 cat >conftest.$ac_ext <<_ACEOF
4615 #line $LINENO "configure"
4616 #include "confdefs.h"
4617 #include <alloca.h>
4618 #ifdef F77_DUMMY_MAIN
4619 # ifdef __cplusplus
4620 extern "C"
4621 # endif
4622 int F77_DUMMY_MAIN() { return 1; }
4623 #endif
4624 int
4625 main ()
4626 {
4627 char *p = (char *) alloca (2 * sizeof (int));
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext conftest$ac_exeext
4633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4634 (eval $ac_link) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest$ac_exeext'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 (eval $ac_try) 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 ac_cv_working_alloca_h=yes
4645 else
4646 echo "$as_me: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4648 ac_cv_working_alloca_h=no
4649 fi
4650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4651 fi
4652 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4653 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4654 if test $ac_cv_working_alloca_h = yes; then
4655
4656 cat >>confdefs.h <<\_ACEOF
4657 #define HAVE_ALLOCA_H 1
4658 _ACEOF
4659
4660 fi
4661
4662 echo "$as_me:$LINENO: checking for alloca" >&5
4663 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4664 if test "${ac_cv_func_alloca_works+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667 cat >conftest.$ac_ext <<_ACEOF
4668 #line $LINENO "configure"
4669 #include "confdefs.h"
4670 #ifdef __GNUC__
4671 # define alloca __builtin_alloca
4672 #else
4673 # ifdef _MSC_VER
4674 # include <malloc.h>
4675 # define alloca _alloca
4676 # else
4677 # if HAVE_ALLOCA_H
4678 # include <alloca.h>
4679 # else
4680 # ifdef _AIX
4681 #pragma alloca
4682 # else
4683 # ifndef alloca /* predefined by HP cc +Olibcalls */
4684 char *alloca ();
4685 # endif
4686 # endif
4687 # endif
4688 # endif
4689 #endif
4690
4691 #ifdef F77_DUMMY_MAIN
4692 # ifdef __cplusplus
4693 extern "C"
4694 # endif
4695 int F77_DUMMY_MAIN() { return 1; }
4696 #endif
4697 int
4698 main ()
4699 {
4700 char *p = (char *) alloca (1);
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707 (eval $ac_link) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -s conftest$ac_exeext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 (eval $ac_try) 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_cv_func_alloca_works=yes
4718 else
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4721 ac_cv_func_alloca_works=no
4722 fi
4723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4724 fi
4725 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4726 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4727
4728 if test $ac_cv_func_alloca_works = yes; then
4729
4730 cat >>confdefs.h <<\_ACEOF
4731 #define HAVE_ALLOCA 1
4732 _ACEOF
4733
4734 else
4735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4736 # that cause trouble. Some versions do not even contain alloca or
4737 # contain a buggy version. If you still want to use their alloca,
4738 # use ar to extract alloca.o from them instead of compiling alloca.c.
4739
4740 ALLOCA=alloca.$ac_objext
4741
4742 cat >>confdefs.h <<\_ACEOF
4743 #define C_ALLOCA 1
4744 _ACEOF
4745
4746
4747 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4748 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4749 if test "${ac_cv_os_cray+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 #include "confdefs.h"
4755 #if defined(CRAY) && ! defined(CRAY2)
4756 webecray
4757 #else
4758 wenotbecray
4759 #endif
4760
4761 _ACEOF
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 egrep "webecray" >/dev/null 2>&1; then
4764 ac_cv_os_cray=yes
4765 else
4766 ac_cv_os_cray=no
4767 fi
4768 rm -f conftest*
4769
4770 fi
4771 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4772 echo "${ECHO_T}$ac_cv_os_cray" >&6
4773 if test $ac_cv_os_cray = yes; then
4774 for ac_func in _getb67 GETB67 getb67; do
4775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4776 echo "$as_me:$LINENO: checking for $ac_func" >&5
4777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4778 if eval "test \"\${$as_ac_var+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 #include "confdefs.h"
4784 /* System header to define __stub macros and hopefully few prototypes,
4785 which can conflict with char $ac_func (); below. */
4786 #include <assert.h>
4787 /* Override any gcc2 internal prototype to avoid an error. */
4788 #ifdef __cplusplus
4789 extern "C"
4790 #endif
4791 /* We use char because int might match the return type of a gcc2
4792 builtin and then its argument prototype would still apply. */
4793 char $ac_func ();
4794 char (*f) ();
4795
4796 #ifdef F77_DUMMY_MAIN
4797 # ifdef __cplusplus
4798 extern "C"
4799 # endif
4800 int F77_DUMMY_MAIN() { return 1; }
4801 #endif
4802 int
4803 main ()
4804 {
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4809 choke me
4810 #else
4811 f = $ac_func;
4812 #endif
4813
4814 ;
4815 return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4820 (eval $ac_link) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } &&
4824 { ac_try='test -s conftest$ac_exeext'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 (eval $ac_try) 2>&5
4827 ac_status=$?
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; }; then
4830 eval "$as_ac_var=yes"
4831 else
4832 echo "$as_me: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 eval "$as_ac_var=no"
4835 fi
4836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4837 fi
4838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4840 if test `eval echo '${'$as_ac_var'}'` = yes; then
4841
4842 cat >>confdefs.h <<_ACEOF
4843 #define CRAY_STACKSEG_END $ac_func
4844 _ACEOF
4845
4846 break
4847 fi
4848
4849 done
4850 fi
4851
4852 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4853 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4854 if test "${ac_cv_c_stack_direction+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 if test "$cross_compiling" = yes; then
4858 ac_cv_c_stack_direction=0
4859 else
4860 cat >conftest.$ac_ext <<_ACEOF
4861 #line $LINENO "configure"
4862 #include "confdefs.h"
4863 int
4864 find_stack_direction ()
4865 {
4866 static char *addr = 0;
4867 auto char dummy;
4868 if (addr == 0)
4869 {
4870 addr = &dummy;
4871 return find_stack_direction ();
4872 }
4873 else
4874 return (&dummy > addr) ? 1 : -1;
4875 }
4876
4877 int
4878 main ()
4879 {
4880 exit (find_stack_direction () < 0);
4881 }
4882 _ACEOF
4883 rm -f conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 (eval $ac_try) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; }; then
4894 ac_cv_c_stack_direction=1
4895 else
4896 echo "$as_me: program exited with status $ac_status" >&5
4897 echo "$as_me: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4899 ( exit $ac_status )
4900 ac_cv_c_stack_direction=-1
4901 fi
4902 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4903 fi
4904 fi
4905 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4906 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4907
4908 cat >>confdefs.h <<_ACEOF
4909 #define STACK_DIRECTION $ac_cv_c_stack_direction
4910 _ACEOF
4911
4912
4913 fi
4914
4915 echo "$as_me:$LINENO: checking for obstacks" >&5
4916 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
4917 if test "${ac_cv_func_obstack+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4922 #include "confdefs.h"
4923 #include "obstack.h"
4924 #ifdef F77_DUMMY_MAIN
4925 # ifdef __cplusplus
4926 extern "C"
4927 # endif
4928 int F77_DUMMY_MAIN() { return 1; }
4929 #endif
4930 int
4931 main ()
4932 {
4933 struct obstack *mem; obstack_free(mem,(char *) 0)
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest.$ac_objext conftest$ac_exeext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4940 (eval $ac_link) 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try='test -s conftest$ac_exeext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4950 ac_cv_func_obstack=yes
4951 else
4952 echo "$as_me: failed program was:" >&5
4953 cat conftest.$ac_ext >&5
4954 ac_cv_func_obstack=no
4955 fi
4956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4957 fi
4958 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
4959 echo "${ECHO_T}$ac_cv_func_obstack" >&6
4960 if test $ac_cv_func_obstack = yes; then
4961
4962 cat >>confdefs.h <<\_ACEOF
4963 #define HAVE_OBSTACK 1
4964 _ACEOF
4965
4966 else
4967 LIBOBJS="$LIBOBJS obstack.$ac_objext"
4968 fi
4969
4970 echo "$as_me:$LINENO: checking for error_at_line" >&5
4971 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
4972 if test "${ac_cv_lib_error_at_line+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 cat >conftest.$ac_ext <<_ACEOF
4976 #line $LINENO "configure"
4977 #include "confdefs.h"
4978
4979 #ifdef F77_DUMMY_MAIN
4980 # ifdef __cplusplus
4981 extern "C"
4982 # endif
4983 int F77_DUMMY_MAIN() { return 1; }
4984 #endif
4985 int
4986 main ()
4987 {
4988 error_at_line (0, 0, "", 0, "");
4989 ;
4990 return 0;
4991 }
4992 _ACEOF
4993 rm -f conftest.$ac_objext conftest$ac_exeext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4995 (eval $ac_link) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_lib_error_at_line=yes
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 cat conftest.$ac_ext >&5
5009 ac_cv_lib_error_at_line=no
5010 fi
5011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5012 fi
5013 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
5014 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
5015 if test $ac_cv_lib_error_at_line = no; then
5016 LIBOBJS="$LIBOBJS error.$ac_objext"
5017 fi
5018
5019
5020
5021 for ac_func in mkstemp setlocale
5022 do
5023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_func" >&5
5025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_var+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5031 #include "confdefs.h"
5032 /* System header to define __stub macros and hopefully few prototypes,
5033 which can conflict with char $ac_func (); below. */
5034 #include <assert.h>
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 #ifdef __cplusplus
5037 extern "C"
5038 #endif
5039 /* We use char because int might match the return type of a gcc2
5040 builtin and then its argument prototype would still apply. */
5041 char $ac_func ();
5042 char (*f) ();
5043
5044 #ifdef F77_DUMMY_MAIN
5045 # ifdef __cplusplus
5046 extern "C"
5047 # endif
5048 int F77_DUMMY_MAIN() { return 1; }
5049 #endif
5050 int
5051 main ()
5052 {
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 f = $ac_func;
5060 #endif
5061
5062 ;
5063 return 0;
5064 }
5065 _ACEOF
5066 rm -f conftest.$ac_objext conftest$ac_exeext
5067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5068 (eval $ac_link) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -s conftest$ac_exeext'
5073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 (eval $ac_try) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5078 eval "$as_ac_var=yes"
5079 else
5080 echo "$as_me: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5082 eval "$as_ac_var=no"
5083 fi
5084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5085 fi
5086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5088 if test `eval echo '${'$as_ac_var'}'` = yes; then
5089 cat >>confdefs.h <<_ACEOF
5090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5091 _ACEOF
5092
5093 fi
5094 done
5095
5096 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
5097 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
5098 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 #include "confdefs.h"
5104 $ac_includes_default
5105 #ifdef F77_DUMMY_MAIN
5106 # ifdef __cplusplus
5107 extern "C"
5108 # endif
5109 int F77_DUMMY_MAIN() { return 1; }
5110 #endif
5111 int
5112 main ()
5113 {
5114 #ifndef stpcpy
5115 char *p = (char *) stpcpy;
5116 #endif
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5124 (eval $ac_compile) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest.$ac_objext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_have_decl_stpcpy=yes
5135 else
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 ac_cv_have_decl_stpcpy=no
5139 fi
5140 rm -f conftest.$ac_objext conftest.$ac_ext
5141 fi
5142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
5143 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
5144 if test $ac_cv_have_decl_stpcpy = yes; then
5145
5146 cat >>confdefs.h <<_ACEOF
5147 #define HAVE_DECL_STPCPY 1
5148 _ACEOF
5149
5150
5151 else
5152 cat >>confdefs.h <<_ACEOF
5153 #define HAVE_DECL_STPCPY 0
5154 _ACEOF
5155
5156
5157 fi
5158 echo "$as_me:$LINENO: checking whether strchr is declared" >&5
5159 echo $ECHO_N "checking whether strchr is declared... $ECHO_C" >&6
5160 if test "${ac_cv_have_decl_strchr+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163 cat >conftest.$ac_ext <<_ACEOF
5164 #line $LINENO "configure"
5165 #include "confdefs.h"
5166 $ac_includes_default
5167 #ifdef F77_DUMMY_MAIN
5168 # ifdef __cplusplus
5169 extern "C"
5170 # endif
5171 int F77_DUMMY_MAIN() { return 1; }
5172 #endif
5173 int
5174 main ()
5175 {
5176 #ifndef strchr
5177 char *p = (char *) strchr;
5178 #endif
5179
5180 ;
5181 return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_have_decl_strchr=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5200 ac_cv_have_decl_strchr=no
5201 fi
5202 rm -f conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strchr" >&5
5205 echo "${ECHO_T}$ac_cv_have_decl_strchr" >&6
5206 if test $ac_cv_have_decl_strchr = yes; then
5207
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_DECL_STRCHR 1
5210 _ACEOF
5211
5212
5213 else
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_DECL_STRCHR 0
5216 _ACEOF
5217
5218
5219 fi
5220 echo "$as_me:$LINENO: checking whether strspn is declared" >&5
5221 echo $ECHO_N "checking whether strspn is declared... $ECHO_C" >&6
5222 if test "${ac_cv_have_decl_strspn+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 #include "confdefs.h"
5228 $ac_includes_default
5229 #ifdef F77_DUMMY_MAIN
5230 # ifdef __cplusplus
5231 extern "C"
5232 # endif
5233 int F77_DUMMY_MAIN() { return 1; }
5234 #endif
5235 int
5236 main ()
5237 {
5238 #ifndef strspn
5239 char *p = (char *) strspn;
5240 #endif
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5248 (eval $ac_compile) 2>&5
5249 ac_status=$?
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); } &&
5252 { ac_try='test -s conftest.$ac_objext'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; }; then
5258 ac_cv_have_decl_strspn=yes
5259 else
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 ac_cv_have_decl_strspn=no
5263 fi
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strspn" >&5
5267 echo "${ECHO_T}$ac_cv_have_decl_strspn" >&6
5268 if test $ac_cv_have_decl_strspn = yes; then
5269
5270 cat >>confdefs.h <<_ACEOF
5271 #define HAVE_DECL_STRSPN 1
5272 _ACEOF
5273
5274
5275 else
5276 cat >>confdefs.h <<_ACEOF
5277 #define HAVE_DECL_STRSPN 0
5278 _ACEOF
5279
5280
5281 fi
5282 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
5283 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
5284 if test "${ac_cv_have_decl_strnlen+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5290 $ac_includes_default
5291 #ifdef F77_DUMMY_MAIN
5292 # ifdef __cplusplus
5293 extern "C"
5294 # endif
5295 int F77_DUMMY_MAIN() { return 1; }
5296 #endif
5297 int
5298 main ()
5299 {
5300 #ifndef strnlen
5301 char *p = (char *) strnlen;
5302 #endif
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_have_decl_strnlen=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 ac_cv_have_decl_strnlen=no
5325 fi
5326 rm -f conftest.$ac_objext conftest.$ac_ext
5327 fi
5328 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
5329 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
5330 if test $ac_cv_have_decl_strnlen = yes; then
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_DECL_STRNLEN 1
5334 _ACEOF
5335
5336
5337 else
5338 cat >>confdefs.h <<_ACEOF
5339 #define HAVE_DECL_STRNLEN 0
5340 _ACEOF
5341
5342
5343 fi
5344 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
5345 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
5346 if test "${ac_cv_have_decl_memchr+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352 $ac_includes_default
5353 #ifdef F77_DUMMY_MAIN
5354 # ifdef __cplusplus
5355 extern "C"
5356 # endif
5357 int F77_DUMMY_MAIN() { return 1; }
5358 #endif
5359 int
5360 main ()
5361 {
5362 #ifndef memchr
5363 char *p = (char *) memchr;
5364 #endif
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 rm -f conftest.$ac_objext
5371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_cv_have_decl_memchr=yes
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 cat conftest.$ac_ext >&5
5386 ac_cv_have_decl_memchr=no
5387 fi
5388 rm -f conftest.$ac_objext conftest.$ac_ext
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
5391 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
5392 if test $ac_cv_have_decl_memchr = yes; then
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define HAVE_DECL_MEMCHR 1
5396 _ACEOF
5397
5398
5399 else
5400 cat >>confdefs.h <<_ACEOF
5401 #define HAVE_DECL_MEMCHR 0
5402 _ACEOF
5403
5404
5405 fi
5406 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
5407 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
5408 if test "${ac_cv_have_decl_memrchr+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5414 $ac_includes_default
5415 #ifdef F77_DUMMY_MAIN
5416 # ifdef __cplusplus
5417 extern "C"
5418 # endif
5419 int F77_DUMMY_MAIN() { return 1; }
5420 #endif
5421 int
5422 main ()
5423 {
5424 #ifndef memrchr
5425 char *p = (char *) memrchr;
5426 #endif
5427
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_have_decl_memrchr=yes
5445 else
5446 echo "$as_me: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5448 ac_cv_have_decl_memrchr=no
5449 fi
5450 rm -f conftest.$ac_objext conftest.$ac_ext
5451 fi
5452 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
5453 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
5454 if test $ac_cv_have_decl_memrchr = yes; then
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_DECL_MEMRCHR 1
5458 _ACEOF
5459
5460
5461 else
5462 cat >>confdefs.h <<_ACEOF
5463 #define HAVE_DECL_MEMRCHR 0
5464 _ACEOF
5465
5466
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475
5476 for ac_func in stpcpy strchr strnlen strspn memchr memrchr
5477 do
5478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479 echo "$as_me:$LINENO: checking for $ac_func" >&5
5480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5481 if eval "test \"\${$as_ac_var+set}\" = set"; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line $LINENO "configure"
5486 #include "confdefs.h"
5487 /* System header to define __stub macros and hopefully few prototypes,
5488 which can conflict with char $ac_func (); below. */
5489 #include <assert.h>
5490 /* Override any gcc2 internal prototype to avoid an error. */
5491 #ifdef __cplusplus
5492 extern "C"
5493 #endif
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5496 char $ac_func ();
5497 char (*f) ();
5498
5499 #ifdef F77_DUMMY_MAIN
5500 # ifdef __cplusplus
5501 extern "C"
5502 # endif
5503 int F77_DUMMY_MAIN() { return 1; }
5504 #endif
5505 int
5506 main ()
5507 {
5508 /* The GNU C library defines this for functions which it implements
5509 to always fail with ENOSYS. Some functions are actually named
5510 something starting with __ and the normal name is an alias. */
5511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5512 choke me
5513 #else
5514 f = $ac_func;
5515 #endif
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext conftest$ac_exeext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -s conftest$ac_exeext'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 eval "$as_ac_var=yes"
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 eval "$as_ac_var=no"
5538 fi
5539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5540 fi
5541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5543 if test `eval echo '${'$as_ac_var'}'` = yes; then
5544 cat >>confdefs.h <<_ACEOF
5545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5546 _ACEOF
5547
5548 else
5549 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5550 fi
5551 done
5552
5553
5554
5555
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
5558 _ACEOF
5559
5560
5561 echo "$as_me:$LINENO: checking for working malloc" >&5
5562 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
5563 if test "${jm_cv_func_working_malloc+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 if test "$cross_compiling" = yes; then
5567 jm_cv_func_working_malloc=no
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 #line $LINENO "configure"
5571 #include "confdefs.h"
5572
5573 char *malloc ();
5574 int
5575 main ()
5576 {
5577 exit (malloc (0) ? 0 : 1);
5578 }
5579
5580 _ACEOF
5581 rm -f conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 jm_cv_func_working_malloc=yes
5593 else
5594 echo "$as_me: program exited with status $ac_status" >&5
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ( exit $ac_status )
5598 jm_cv_func_working_malloc=no
5599 fi
5600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5601 fi
5602
5603 fi
5604 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
5605 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
5606 if test $jm_cv_func_working_malloc = no; then
5607 LIBOBJS="$LIBOBJS malloc.$ac_objext"
5608
5609 cat >>confdefs.h <<\_ACEOF
5610 #define malloc rpl_malloc
5611 _ACEOF
5612
5613 fi
5614
5615
5616
5617 cat >>confdefs.h <<\_ACEOF
5618 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
5619 _ACEOF
5620
5621
5622 echo "$as_me:$LINENO: checking for working realloc" >&5
5623 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
5624 if test "${jm_cv_func_working_realloc+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627 if test "$cross_compiling" = yes; then
5628 jm_cv_func_working_realloc=no
5629 else
5630 cat >conftest.$ac_ext <<_ACEOF
5631 #line $LINENO "configure"
5632 #include "confdefs.h"
5633
5634 char *realloc ();
5635 int
5636 main ()
5637 {
5638 exit (realloc (0, 0) ? 0 : 1);
5639 }
5640
5641 _ACEOF
5642 rm -f conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5645 ac_status=$?
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 jm_cv_func_working_realloc=yes
5654 else
5655 echo "$as_me: program exited with status $ac_status" >&5
5656 echo "$as_me: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5658 ( exit $ac_status )
5659 jm_cv_func_working_realloc=no
5660 fi
5661 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5662 fi
5663
5664 fi
5665 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
5666 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
5667 if test $jm_cv_func_working_realloc = no; then
5668 LIBOBJS="$LIBOBJS realloc.$ac_objext"
5669
5670 cat >>confdefs.h <<\_ACEOF
5671 #define realloc rpl_realloc
5672 _ACEOF
5673
5674 fi
5675
5676
5677
5678
5679
5680 for ac_func in isascii iswprint mbsinit
5681 do
5682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5683 echo "$as_me:$LINENO: checking for $ac_func" >&5
5684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5685 if eval "test \"\${$as_ac_var+set}\" = set"; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 else
5688 cat >conftest.$ac_ext <<_ACEOF
5689 #line $LINENO "configure"
5690 #include "confdefs.h"
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char $ac_func (); below. */
5693 #include <assert.h>
5694 /* Override any gcc2 internal prototype to avoid an error. */
5695 #ifdef __cplusplus
5696 extern "C"
5697 #endif
5698 /* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700 char $ac_func ();
5701 char (*f) ();
5702
5703 #ifdef F77_DUMMY_MAIN
5704 # ifdef __cplusplus
5705 extern "C"
5706 # endif
5707 int F77_DUMMY_MAIN() { return 1; }
5708 #endif
5709 int
5710 main ()
5711 {
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5716 choke me
5717 #else
5718 f = $ac_func;
5719 #endif
5720
5721 ;
5722 return 0;
5723 }
5724 _ACEOF
5725 rm -f conftest.$ac_objext conftest$ac_exeext
5726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5727 (eval $ac_link) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -s conftest$ac_exeext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5737 eval "$as_ac_var=yes"
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 cat conftest.$ac_ext >&5
5741 eval "$as_ac_var=no"
5742 fi
5743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5744 fi
5745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5747 if test `eval echo '${'$as_ac_var'}'` = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5750 _ACEOF
5751
5752 fi
5753 done
5754
5755
5756 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5757 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5758 if test "${jm_cv_func_mbrtowc+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 cat >conftest.$ac_ext <<_ACEOF
5762 #line $LINENO "configure"
5763 #include "confdefs.h"
5764 #include <wchar.h>
5765 #ifdef F77_DUMMY_MAIN
5766 # ifdef __cplusplus
5767 extern "C"
5768 # endif
5769 int F77_DUMMY_MAIN() { return 1; }
5770 #endif
5771 int
5772 main ()
5773 {
5774 mbstate_t state; return ! (sizeof state && mbrtowc);
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 jm_cv_func_mbrtowc=yes
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 jm_cv_func_mbrtowc=no
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 fi
5799 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
5800 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
5801 if test $jm_cv_func_mbrtowc = yes; then
5802
5803 cat >>confdefs.h <<\_ACEOF
5804 #define HAVE_MBRTOWC 1
5805 _ACEOF
5806
5807 fi
5808
5809
5810
5811
5812
5813
5814
5815 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
5816 do
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5819 echo "$as_me:$LINENO: checking for $ac_header" >&5
5820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 fi
5824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5826 else
5827 # Is the header compilable?
5828 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5830 cat >conftest.$ac_ext <<_ACEOF
5831 #line $LINENO "configure"
5832 #include "confdefs.h"
5833 $ac_includes_default
5834 #include <$ac_header>
5835 _ACEOF
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5848 ac_header_compiler=yes
5849 else
5850 echo "$as_me: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5852 ac_header_compiler=no
5853 fi
5854 rm -f conftest.$ac_objext conftest.$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6
5857
5858 # Is the header present?
5859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5861 cat >conftest.$ac_ext <<_ACEOF
5862 #line $LINENO "configure"
5863 #include "confdefs.h"
5864 #include <$ac_header>
5865 _ACEOF
5866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5868 ac_status=$?
5869 egrep -v '^ *\+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } >/dev/null; then
5874 if test -s conftest.err; then
5875 ac_cpp_err=$ac_c_preproc_warn_flag
5876 else
5877 ac_cpp_err=
5878 fi
5879 else
5880 ac_cpp_err=yes
5881 fi
5882 if test -z "$ac_cpp_err"; then
5883 ac_header_preproc=yes
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5887 ac_header_preproc=no
5888 fi
5889 rm -f conftest.err conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5891 echo "${ECHO_T}$ac_header_preproc" >&6
5892
5893 # So? What about this header?
5894 case $ac_header_compiler:$ac_header_preproc in
5895 yes:no )
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5900 no:yes )
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
5902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5907 esac
5908 echo "$as_me:$LINENO: checking for $ac_header" >&5
5909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 eval "$as_ac_Header=$ac_header_preproc"
5914 fi
5915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5917
5918 fi
5919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5920 cat >>confdefs.h <<_ACEOF
5921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 _ACEOF
5923
5924 fi
5925
5926 done
5927
5928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5930 if test "${ac_cv_header_stdc+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933 cat >conftest.$ac_ext <<_ACEOF
5934 #line $LINENO "configure"
5935 #include "confdefs.h"
5936 #include <stdlib.h>
5937 #include <stdarg.h>
5938 #include <string.h>
5939 #include <float.h>
5940
5941 _ACEOF
5942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5944 ac_status=$?
5945 egrep -v '^ *\+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null; then
5950 if test -s conftest.err; then
5951 ac_cpp_err=$ac_c_preproc_warn_flag
5952 else
5953 ac_cpp_err=
5954 fi
5955 else
5956 ac_cpp_err=yes
5957 fi
5958 if test -z "$ac_cpp_err"; then
5959 ac_cv_header_stdc=yes
5960 else
5961 echo "$as_me: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5963 ac_cv_header_stdc=no
5964 fi
5965 rm -f conftest.err conftest.$ac_ext
5966
5967 if test $ac_cv_header_stdc = yes; then
5968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5969 cat >conftest.$ac_ext <<_ACEOF
5970 #line $LINENO "configure"
5971 #include "confdefs.h"
5972 #include <string.h>
5973
5974 _ACEOF
5975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 egrep "memchr" >/dev/null 2>&1; then
5977 :
5978 else
5979 ac_cv_header_stdc=no
5980 fi
5981 rm -f conftest*
5982
5983 fi
5984
5985 if test $ac_cv_header_stdc = yes; then
5986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5990 #include <stdlib.h>
5991
5992 _ACEOF
5993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5994 egrep "free" >/dev/null 2>&1; then
5995 :
5996 else
5997 ac_cv_header_stdc=no
5998 fi
5999 rm -f conftest*
6000
6001 fi
6002
6003 if test $ac_cv_header_stdc = yes; then
6004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6005 if test "$cross_compiling" = yes; then
6006 :
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 #include "confdefs.h"
6011 #include <ctype.h>
6012 #if ((' ' & 0x0FF) == 0x020)
6013 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6014 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6015 #else
6016 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6017 || ('j' <= (c) && (c) <= 'r') \
6018 || ('s' <= (c) && (c) <= 'z'))
6019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6020 #endif
6021
6022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6023 int
6024 main ()
6025 {
6026 int i;
6027 for (i = 0; i < 256; i++)
6028 if (XOR (islower (i), ISLOWER (i))
6029 || toupper (i) != TOUPPER (i))
6030 exit(2);
6031 exit (0);
6032 }
6033 _ACEOF
6034 rm -f conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036 (eval $ac_link) 2>&5
6037 ac_status=$?
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 :
6046 else
6047 echo "$as_me: program exited with status $ac_status" >&5
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6050 ( exit $ac_status )
6051 ac_cv_header_stdc=no
6052 fi
6053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6054 fi
6055 fi
6056 fi
6057 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6058 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6059 if test $ac_cv_header_stdc = yes; then
6060
6061 cat >>confdefs.h <<\_ACEOF
6062 #define STDC_HEADERS 1
6063 _ACEOF
6064
6065 fi
6066
6067
6068 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
6069 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
6070 if test "${ac_cv_c_backslash_a+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073 cat >conftest.$ac_ext <<_ACEOF
6074 #line $LINENO "configure"
6075 #include "confdefs.h"
6076
6077 #ifdef F77_DUMMY_MAIN
6078 # ifdef __cplusplus
6079 extern "C"
6080 # endif
6081 int F77_DUMMY_MAIN() { return 1; }
6082 #endif
6083 int
6084 main ()
6085 {
6086
6087 #if '\a' == 'a'
6088 syntax error;
6089 #endif
6090 char buf['\a' == 'a' ? -1 : 1];
6091 buf[0] = '\a';
6092 return buf[0] != "\a"[0];
6093
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100 (eval $ac_compile) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
6104 { ac_try='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_c_backslash_a=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 cat conftest.$ac_ext >&5
6114 ac_cv_c_backslash_a=no
6115 fi
6116 rm -f conftest.$ac_objext conftest.$ac_ext
6117 fi
6118 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
6119 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
6120 if test $ac_cv_c_backslash_a = yes; then
6121
6122 cat >>confdefs.h <<\_ACEOF
6123 #define HAVE_C_BACKSLASH_A 1
6124 _ACEOF
6125
6126 fi
6127
6128
6129
6130 for ac_header in stdlib.h
6131 do
6132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6134 echo "$as_me:$LINENO: checking for $ac_header" >&5
6135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 fi
6139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6141 else
6142 # Is the header compilable?
6143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6148 $ac_includes_default
6149 #include <$ac_header>
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153 (eval $ac_compile) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_header_compiler=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6167 ac_header_compiler=no
6168 fi
6169 rm -f conftest.$ac_objext conftest.$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6171 echo "${ECHO_T}$ac_header_compiler" >&6
6172
6173 # Is the header present?
6174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 #include "confdefs.h"
6179 #include <$ac_header>
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183 ac_status=$?
6184 egrep -v '^ *\+' conftest.er1 >conftest.err
6185 rm -f conftest.er1
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } >/dev/null; then
6189 if test -s conftest.err; then
6190 ac_cpp_err=$ac_c_preproc_warn_flag
6191 else
6192 ac_cpp_err=
6193 fi
6194 else
6195 ac_cpp_err=yes
6196 fi
6197 if test -z "$ac_cpp_err"; then
6198 ac_header_preproc=yes
6199 else
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.$ac_ext >&5
6202 ac_header_preproc=no
6203 fi
6204 rm -f conftest.err conftest.$ac_ext
6205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6206 echo "${ECHO_T}$ac_header_preproc" >&6
6207
6208 # So? What about this header?
6209 case $ac_header_compiler:$ac_header_preproc in
6210 yes:no )
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6215 no:yes )
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6222 esac
6223 echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 eval "$as_ac_Header=$ac_header_preproc"
6229 fi
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232
6233 fi
6234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 cat >>confdefs.h <<_ACEOF
6236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237 _ACEOF
6238
6239 fi
6240
6241 done
6242
6243
6244 echo "$as_me:$LINENO: checking for mbstate_t" >&5
6245 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6246 if test "${ac_cv_type_mbstate_t+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 cat >conftest.$ac_ext <<_ACEOF
6250 #line $LINENO "configure"
6251 #include "confdefs.h"
6252
6253 #if HAVE_STDLIB_H
6254 # include <stdlib.h>
6255 #endif
6256 #include <wchar.h>
6257 #ifdef F77_DUMMY_MAIN
6258 # ifdef __cplusplus
6259 extern "C"
6260 # endif
6261 int F77_DUMMY_MAIN() { return 1; }
6262 #endif
6263 int
6264 main ()
6265 {
6266 mbstate_t x; return sizeof x;
6267 ;
6268 return 0;
6269 }
6270 _ACEOF
6271 rm -f conftest.$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_cv_type_mbstate_t=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 cat conftest.$ac_ext >&5
6287 ac_cv_type_mbstate_t=no
6288 fi
6289 rm -f conftest.$ac_objext conftest.$ac_ext
6290 fi
6291 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
6292 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
6293 if test $ac_cv_type_mbstate_t = no; then
6294
6295 cat >>confdefs.h <<\_ACEOF
6296 #define mbstate_t int
6297 _ACEOF
6298
6299 fi
6300
6301
6302 echo "$as_me:$LINENO: checking for function prototypes" >&5
6303 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6304 if test "$am_cv_prog_cc_stdc" != no; then
6305 echo "$as_me:$LINENO: result: yes" >&5
6306 echo "${ECHO_T}yes" >&6
6307
6308 cat >>confdefs.h <<\_ACEOF
6309 #define PROTOTYPES 1
6310 _ACEOF
6311
6312 U= ANSI2KNR=
6313 else
6314 echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6
6316 U=_ ANSI2KNR=./ansi2knr
6317 fi
6318 # Ensure some checks needed by ansi2knr itself.
6319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6321 if test "${ac_cv_header_stdc+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 #include "confdefs.h"
6327 #include <stdlib.h>
6328 #include <stdarg.h>
6329 #include <string.h>
6330 #include <float.h>
6331
6332 _ACEOF
6333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6335 ac_status=$?
6336 egrep -v '^ *\+' conftest.er1 >conftest.err
6337 rm -f conftest.er1
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } >/dev/null; then
6341 if test -s conftest.err; then
6342 ac_cpp_err=$ac_c_preproc_warn_flag
6343 else
6344 ac_cpp_err=
6345 fi
6346 else
6347 ac_cpp_err=yes
6348 fi
6349 if test -z "$ac_cpp_err"; then
6350 ac_cv_header_stdc=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6354 ac_cv_header_stdc=no
6355 fi
6356 rm -f conftest.err conftest.$ac_ext
6357
6358 if test $ac_cv_header_stdc = yes; then
6359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6360 cat >conftest.$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 #include "confdefs.h"
6363 #include <string.h>
6364
6365 _ACEOF
6366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6367 egrep "memchr" >/dev/null 2>&1; then
6368 :
6369 else
6370 ac_cv_header_stdc=no
6371 fi
6372 rm -f conftest*
6373
6374 fi
6375
6376 if test $ac_cv_header_stdc = yes; then
6377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6380 #include "confdefs.h"
6381 #include <stdlib.h>
6382
6383 _ACEOF
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 egrep "free" >/dev/null 2>&1; then
6386 :
6387 else
6388 ac_cv_header_stdc=no
6389 fi
6390 rm -f conftest*
6391
6392 fi
6393
6394 if test $ac_cv_header_stdc = yes; then
6395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6396 if test "$cross_compiling" = yes; then
6397 :
6398 else
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6402 #include <ctype.h>
6403 #if ((' ' & 0x0FF) == 0x020)
6404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6406 #else
6407 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6408 || ('j' <= (c) && (c) <= 'r') \
6409 || ('s' <= (c) && (c) <= 'z'))
6410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6411 #endif
6412
6413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6414 int
6415 main ()
6416 {
6417 int i;
6418 for (i = 0; i < 256; i++)
6419 if (XOR (islower (i), ISLOWER (i))
6420 || toupper (i) != TOUPPER (i))
6421 exit(2);
6422 exit (0);
6423 }
6424 _ACEOF
6425 rm -f conftest$ac_exeext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6427 (eval $ac_link) 2>&5
6428 ac_status=$?
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 :
6437 else
6438 echo "$as_me: program exited with status $ac_status" >&5
6439 echo "$as_me: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6441 ( exit $ac_status )
6442 ac_cv_header_stdc=no
6443 fi
6444 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6445 fi
6446 fi
6447 fi
6448 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6449 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6450 if test $ac_cv_header_stdc = yes; then
6451
6452 cat >>confdefs.h <<\_ACEOF
6453 #define STDC_HEADERS 1
6454 _ACEOF
6455
6456 fi
6457
6458
6459 for ac_header in string.h
6460 do
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463 echo "$as_me:$LINENO: checking for $ac_header" >&5
6464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 fi
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 else
6471 # Is the header compilable?
6472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6474 cat >conftest.$ac_ext <<_ACEOF
6475 #line $LINENO "configure"
6476 #include "confdefs.h"
6477 $ac_includes_default
6478 #include <$ac_header>
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_header_compiler=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 ac_header_compiler=no
6497 fi
6498 rm -f conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6500 echo "${ECHO_T}$ac_header_compiler" >&6
6501
6502 # Is the header present?
6503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6506 #line $LINENO "configure"
6507 #include "confdefs.h"
6508 #include <$ac_header>
6509 _ACEOF
6510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6512 ac_status=$?
6513 egrep -v '^ *\+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } >/dev/null; then
6518 if test -s conftest.err; then
6519 ac_cpp_err=$ac_c_preproc_warn_flag
6520 else
6521 ac_cpp_err=
6522 fi
6523 else
6524 ac_cpp_err=yes
6525 fi
6526 if test -z "$ac_cpp_err"; then
6527 ac_header_preproc=yes
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 ac_header_preproc=no
6532 fi
6533 rm -f conftest.err conftest.$ac_ext
6534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535 echo "${ECHO_T}$ac_header_preproc" >&6
6536
6537 # So? What about this header?
6538 case $ac_header_compiler:$ac_header_preproc in
6539 yes:no )
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6544 no:yes )
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
6546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6551 esac
6552 echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 eval "$as_ac_Header=$ac_header_preproc"
6558 fi
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561
6562 fi
6563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6564 cat >>confdefs.h <<_ACEOF
6565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 fi
6569
6570 done
6571
6572
6573
6574
6575
6576
6577
6578 for ac_func in strerror vprintf doprnt
6579 do
6580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_func" >&5
6582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_var+set}\" = set"; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line $LINENO "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func (); below. */
6591 #include <assert.h>
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 #ifdef __cplusplus
6594 extern "C"
6595 #endif
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6598 char $ac_func ();
6599 char (*f) ();
6600
6601 #ifdef F77_DUMMY_MAIN
6602 # ifdef __cplusplus
6603 extern "C"
6604 # endif
6605 int F77_DUMMY_MAIN() { return 1; }
6606 #endif
6607 int
6608 main ()
6609 {
6610 /* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6614 choke me
6615 #else
6616 f = $ac_func;
6617 #endif
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>&5
6626 ac_status=$?
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -s conftest$ac_exeext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 (eval $ac_try) 2>&5
6632 ac_status=$?
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 eval "$as_ac_var=yes"
6636 else
6637 echo "$as_me: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 eval "$as_ac_var=no"
6640 fi
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6642 fi
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6645 if test `eval echo '${'$as_ac_var'}'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6648 _ACEOF
6649
6650 fi
6651 done
6652
6653 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
6654 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
6655 if test "${ac_cv_have_decl_strerror+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658 cat >conftest.$ac_ext <<_ACEOF
6659 #line $LINENO "configure"
6660 #include "confdefs.h"
6661 $ac_includes_default
6662 #ifdef F77_DUMMY_MAIN
6663 # ifdef __cplusplus
6664 extern "C"
6665 # endif
6666 int F77_DUMMY_MAIN() { return 1; }
6667 #endif
6668 int
6669 main ()
6670 {
6671 #ifndef strerror
6672 char *p = (char *) strerror;
6673 #endif
6674
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_have_decl_strerror=yes
6692 else
6693 echo "$as_me: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 ac_cv_have_decl_strerror=no
6696 fi
6697 rm -f conftest.$ac_objext conftest.$ac_ext
6698 fi
6699 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
6700 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
6701 if test $ac_cv_have_decl_strerror = yes; then
6702
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_DECL_STRERROR 1
6705 _ACEOF
6706
6707
6708 else
6709 cat >>confdefs.h <<_ACEOF
6710 #define HAVE_DECL_STRERROR 0
6711 _ACEOF
6712
6713
6714 fi
6715
6716
6717 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
6718 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
6719 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 #include "confdefs.h"
6725 $ac_includes_default
6726 #ifdef F77_DUMMY_MAIN
6727 # ifdef __cplusplus
6728 extern "C"
6729 # endif
6730 int F77_DUMMY_MAIN() { return 1; }
6731 #endif
6732 int
6733 main ()
6734 {
6735 #ifndef strerror_r
6736 char *p = (char *) strerror_r;
6737 #endif
6738
6739 ;
6740 return 0;
6741 }
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -s conftest.$ac_objext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_have_decl_strerror_r=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 ac_cv_have_decl_strerror_r=no
6760 fi
6761 rm -f conftest.$ac_objext conftest.$ac_ext
6762 fi
6763 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
6764 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
6765 if test $ac_cv_have_decl_strerror_r = yes; then
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_DECL_STRERROR_R 1
6769 _ACEOF
6770
6771
6772 else
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_DECL_STRERROR_R 0
6775 _ACEOF
6776
6777
6778 fi
6779
6780
6781
6782 for ac_func in strerror_r
6783 do
6784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6785 echo "$as_me:$LINENO: checking for $ac_func" >&5
6786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6787 if eval "test \"\${$as_ac_var+set}\" = set"; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6792 #include "confdefs.h"
6793 /* System header to define __stub macros and hopefully few prototypes,
6794 which can conflict with char $ac_func (); below. */
6795 #include <assert.h>
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char $ac_func ();
6803 char (*f) ();
6804
6805 #ifdef F77_DUMMY_MAIN
6806 # ifdef __cplusplus
6807 extern "C"
6808 # endif
6809 int F77_DUMMY_MAIN() { return 1; }
6810 #endif
6811 int
6812 main ()
6813 {
6814 /* The GNU C library defines this for functions which it implements
6815 to always fail with ENOSYS. Some functions are actually named
6816 something starting with __ and the normal name is an alias. */
6817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6818 choke me
6819 #else
6820 f = $ac_func;
6821 #endif
6822
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try='test -s conftest$ac_exeext'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 (eval $ac_try) 2>&5
6836 ac_status=$?
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; }; then
6839 eval "$as_ac_var=yes"
6840 else
6841 echo "$as_me: failed program was:" >&5
6842 cat conftest.$ac_ext >&5
6843 eval "$as_ac_var=no"
6844 fi
6845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6849 if test `eval echo '${'$as_ac_var'}'` = yes; then
6850 cat >>confdefs.h <<_ACEOF
6851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6852 _ACEOF
6853
6854 fi
6855 done
6856
6857 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
6858 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
6859 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862
6863 ac_cv_func_strerror_r_char_p=no
6864 if test $ac_cv_have_decl_strerror_r = yes; then
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line $LINENO "configure"
6867 #include "confdefs.h"
6868 $ac_includes_default
6869 #ifdef F77_DUMMY_MAIN
6870 # ifdef __cplusplus
6871 extern "C"
6872 # endif
6873 int F77_DUMMY_MAIN() { return 1; }
6874 #endif
6875 int
6876 main ()
6877 {
6878
6879 char buf[100];
6880 char x = *strerror_r (0, buf, sizeof buf);
6881 char *p = strerror_r (0, buf, sizeof buf);
6882
6883 ;
6884 return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6889 (eval $ac_compile) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } &&
6893 { ac_try='test -s conftest.$ac_objext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_strerror_r_char_p=yes
6900 else
6901 echo "$as_me: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6903 fi
6904 rm -f conftest.$ac_objext conftest.$ac_ext
6905 else
6906 # strerror_r is not declared. Choose between
6907 # systems that have relatively inaccessible declarations for the
6908 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6909 # former has a strerror_r that returns char*, while the latter
6910 # has a strerror_r that returns `int'.
6911 # This test should segfault on the DEC system.
6912 if test "$cross_compiling" = yes; then
6913 :
6914 else
6915 cat >conftest.$ac_ext <<_ACEOF
6916 #line $LINENO "configure"
6917 #include "confdefs.h"
6918 $ac_includes_default
6919 extern char *strerror_r ();
6920 #ifdef F77_DUMMY_MAIN
6921 # ifdef __cplusplus
6922 extern "C"
6923 # endif
6924 int F77_DUMMY_MAIN() { return 1; }
6925 #endif
6926 int
6927 main ()
6928 {
6929 char buf[100];
6930 char x = *strerror_r (0, buf, sizeof buf);
6931 exit (!isalpha (x));
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_strerror_r_char_p=yes
6948 else
6949 echo "$as_me: program exited with status $ac_status" >&5
6950 echo "$as_me: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6952 fi
6953 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954 fi
6955 fi
6956
6957 fi
6958 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
6959 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
6960 if test $ac_cv_func_strerror_r_char_p = yes; then
6961
6962 cat >>confdefs.h <<\_ACEOF
6963 #define STRERROR_R_CHAR_P 1
6964 _ACEOF
6965
6966 fi
6967
6968 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6970 if test "${ac_cv_header_stdc+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976 #include <stdlib.h>
6977 #include <stdarg.h>
6978 #include <string.h>
6979 #include <float.h>
6980
6981 _ACEOF
6982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6984 ac_status=$?
6985 egrep -v '^ *\+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev/null; then
6990 if test -s conftest.err; then
6991 ac_cpp_err=$ac_c_preproc_warn_flag
6992 else
6993 ac_cpp_err=
6994 fi
6995 else
6996 ac_cpp_err=yes
6997 fi
6998 if test -z "$ac_cpp_err"; then
6999 ac_cv_header_stdc=yes
7000 else
7001 echo "$as_me: failed program was:" >&5
7002 cat conftest.$ac_ext >&5
7003 ac_cv_header_stdc=no
7004 fi
7005 rm -f conftest.err conftest.$ac_ext
7006
7007 if test $ac_cv_header_stdc = yes; then
7008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009 cat >conftest.$ac_ext <<_ACEOF
7010 #line $LINENO "configure"
7011 #include "confdefs.h"
7012 #include <string.h>
7013
7014 _ACEOF
7015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 egrep "memchr" >/dev/null 2>&1; then
7017 :
7018 else
7019 ac_cv_header_stdc=no
7020 fi
7021 rm -f conftest*
7022
7023 fi
7024
7025 if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat >conftest.$ac_ext <<_ACEOF
7028 #line $LINENO "configure"
7029 #include "confdefs.h"
7030 #include <stdlib.h>
7031
7032 _ACEOF
7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 egrep "free" >/dev/null 2>&1; then
7035 :
7036 else
7037 ac_cv_header_stdc=no
7038 fi
7039 rm -f conftest*
7040
7041 fi
7042
7043 if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7046 :
7047 else
7048 cat >conftest.$ac_ext <<_ACEOF
7049 #line $LINENO "configure"
7050 #include "confdefs.h"
7051 #include <ctype.h>
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7055 #else
7056 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7057 || ('j' <= (c) && (c) <= 'r') \
7058 || ('s' <= (c) && (c) <= 'z'))
7059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7060 #endif
7061
7062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7063 int
7064 main ()
7065 {
7066 int i;
7067 for (i = 0; i < 256; i++)
7068 if (XOR (islower (i), ISLOWER (i))
7069 || toupper (i) != TOUPPER (i))
7070 exit(2);
7071 exit (0);
7072 }
7073 _ACEOF
7074 rm -f conftest$ac_exeext
7075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7076 (eval $ac_link) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 (eval $ac_try) 2>&5
7082 ac_status=$?
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 :
7086 else
7087 echo "$as_me: program exited with status $ac_status" >&5
7088 echo "$as_me: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7090 ( exit $ac_status )
7091 ac_cv_header_stdc=no
7092 fi
7093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 fi
7096 fi
7097 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7098 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7099 if test $ac_cv_header_stdc = yes; then
7100
7101 cat >>confdefs.h <<\_ACEOF
7102 #define STDC_HEADERS 1
7103 _ACEOF
7104
7105 fi
7106
7107
7108 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7109 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7110
7111 # Check whether --with-dmalloc or --without-dmalloc was given.
7112 if test "${with_dmalloc+set}" = set; then
7113 withval="$with_dmalloc"
7114 if test "$withval" = yes; then
7115 echo "$as_me:$LINENO: result: yes" >&5
7116 echo "${ECHO_T}yes" >&6
7117
7118 cat >>confdefs.h <<\_ACEOF
7119 #define WITH_DMALLOC 1
7120 _ACEOF
7121
7122 LIBS="$LIBS -ldmalloc"
7123 LDFLAGS="$LDFLAGS -g"
7124 else
7125 echo "$as_me:$LINENO: result: no" >&5
7126 echo "${ECHO_T}no" >&6
7127 fi
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131 fi;
7132
7133
7134 ALL_LINGUAS="de es et fr ja nl ru sv tr"
7135 # Make sure we can run config.sub.
7136 $ac_config_sub sun4 >/dev/null 2>&1 ||
7137 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
7138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
7139 { (exit 1); exit 1; }; }
7140
7141 echo "$as_me:$LINENO: checking build system type" >&5
7142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
7143 if test "${ac_cv_build+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 ac_cv_build_alias=$build_alias
7147 test -z "$ac_cv_build_alias" &&
7148 ac_cv_build_alias=`$ac_config_guess`
7149 test -z "$ac_cv_build_alias" &&
7150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7152 { (exit 1); exit 1; }; }
7153 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
7154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed." >&5
7155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
7156 { (exit 1); exit 1; }; }
7157
7158 fi
7159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7160 echo "${ECHO_T}$ac_cv_build" >&6
7161 build=$ac_cv_build
7162 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7163 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7164 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7165
7166
7167 echo "$as_me:$LINENO: checking host system type" >&5
7168 echo $ECHO_N "checking host system type... $ECHO_C" >&6
7169 if test "${ac_cv_host+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 ac_cv_host_alias=$host_alias
7173 test -z "$ac_cv_host_alias" &&
7174 ac_cv_host_alias=$ac_cv_build_alias
7175 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
7176 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
7177 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
7178 { (exit 1); exit 1; }; }
7179
7180 fi
7181 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7182 echo "${ECHO_T}$ac_cv_host" >&6
7183 host=$ac_cv_host
7184 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7185 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7186 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7187
7188
7189 echo "$as_me:$LINENO: checking for off_t" >&5
7190 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7191 if test "${ac_cv_type_off_t+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 cat >conftest.$ac_ext <<_ACEOF
7195 #line $LINENO "configure"
7196 #include "confdefs.h"
7197 $ac_includes_default
7198 #ifdef F77_DUMMY_MAIN
7199 # ifdef __cplusplus
7200 extern "C"
7201 # endif
7202 int F77_DUMMY_MAIN() { return 1; }
7203 #endif
7204 int
7205 main ()
7206 {
7207 if ((off_t *) 0)
7208 return 0;
7209 if (sizeof (off_t))
7210 return 0;
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 rm -f conftest.$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>&5
7218 ac_status=$?
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -s conftest.$ac_objext'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; }; then
7227 ac_cv_type_off_t=yes
7228 else
7229 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7231 ac_cv_type_off_t=no
7232 fi
7233 rm -f conftest.$ac_objext conftest.$ac_ext
7234 fi
7235 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7236 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7237 if test $ac_cv_type_off_t = yes; then
7238 :
7239 else
7240
7241 cat >>confdefs.h <<_ACEOF
7242 #define off_t long
7243 _ACEOF
7244
7245 fi
7246
7247 echo "$as_me:$LINENO: checking for size_t" >&5
7248 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7249 if test "${ac_cv_type_size_t+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 $ac_includes_default
7256 #ifdef F77_DUMMY_MAIN
7257 # ifdef __cplusplus
7258 extern "C"
7259 # endif
7260 int F77_DUMMY_MAIN() { return 1; }
7261 #endif
7262 int
7263 main ()
7264 {
7265 if ((size_t *) 0)
7266 return 0;
7267 if (sizeof (size_t))
7268 return 0;
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_type_size_t=yes
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 ac_cv_type_size_t=no
7290 fi
7291 rm -f conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7295 if test $ac_cv_type_size_t = yes; then
7296 :
7297 else
7298
7299 cat >>confdefs.h <<_ACEOF
7300 #define size_t unsigned
7301 _ACEOF
7302
7303 fi
7304
7305
7306
7307 for ac_header in stdlib.h unistd.h
7308 do
7309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311 echo "$as_me:$LINENO: checking for $ac_header" >&5
7312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 fi
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7318 else
7319 # Is the header compilable?
7320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7322 cat >conftest.$ac_ext <<_ACEOF
7323 #line $LINENO "configure"
7324 #include "confdefs.h"
7325 $ac_includes_default
7326 #include <$ac_header>
7327 _ACEOF
7328 rm -f conftest.$ac_objext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7331 ac_status=$?
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -s conftest.$ac_objext'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; }; then
7340 ac_header_compiler=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 cat conftest.$ac_ext >&5
7344 ac_header_compiler=no
7345 fi
7346 rm -f conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7354 #line $LINENO "configure"
7355 #include "confdefs.h"
7356 #include <$ac_header>
7357 _ACEOF
7358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7360 ac_status=$?
7361 egrep -v '^ *\+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } >/dev/null; then
7366 if test -s conftest.err; then
7367 ac_cpp_err=$ac_c_preproc_warn_flag
7368 else
7369 ac_cpp_err=
7370 fi
7371 else
7372 ac_cpp_err=yes
7373 fi
7374 if test -z "$ac_cpp_err"; then
7375 ac_header_preproc=yes
7376 else
7377 echo "$as_me: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7379 ac_header_preproc=no
7380 fi
7381 rm -f conftest.err conftest.$ac_ext
7382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383 echo "${ECHO_T}$ac_header_preproc" >&6
7384
7385 # So? What about this header?
7386 case $ac_header_compiler:$ac_header_preproc in
7387 yes:no )
7388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7392 no:yes )
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7399 esac
7400 echo "$as_me:$LINENO: checking for $ac_header" >&5
7401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405 eval "$as_ac_Header=$ac_header_preproc"
7406 fi
7407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7409
7410 fi
7411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414 _ACEOF
7415
7416 fi
7417
7418 done
7419
7420
7421 for ac_func in getpagesize
7422 do
7423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7424 echo "$as_me:$LINENO: checking for $ac_func" >&5
7425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7426 if eval "test \"\${$as_ac_var+set}\" = set"; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 cat >conftest.$ac_ext <<_ACEOF
7430 #line $LINENO "configure"
7431 #include "confdefs.h"
7432 /* System header to define __stub macros and hopefully few prototypes,
7433 which can conflict with char $ac_func (); below. */
7434 #include <assert.h>
7435 /* Override any gcc2 internal prototype to avoid an error. */
7436 #ifdef __cplusplus
7437 extern "C"
7438 #endif
7439 /* We use char because int might match the return type of a gcc2
7440 builtin and then its argument prototype would still apply. */
7441 char $ac_func ();
7442 char (*f) ();
7443
7444 #ifdef F77_DUMMY_MAIN
7445 # ifdef __cplusplus
7446 extern "C"
7447 # endif
7448 int F77_DUMMY_MAIN() { return 1; }
7449 #endif
7450 int
7451 main ()
7452 {
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7457 choke me
7458 #else
7459 f = $ac_func;
7460 #endif
7461
7462 ;
7463 return 0;
7464 }
7465 _ACEOF
7466 rm -f conftest.$ac_objext conftest$ac_exeext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest$ac_exeext'
7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 (eval $ac_try) 2>&5
7475 ac_status=$?
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 eval "$as_ac_var=yes"
7479 else
7480 echo "$as_me: failed program was:" >&5
7481 cat conftest.$ac_ext >&5
7482 eval "$as_ac_var=no"
7483 fi
7484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7485 fi
7486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7488 if test `eval echo '${'$as_ac_var'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7491 _ACEOF
7492
7493 fi
7494 done
7495
7496 echo "$as_me:$LINENO: checking for working mmap" >&5
7497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501 if test "$cross_compiling" = yes; then
7502 ac_cv_func_mmap_fixed_mapped=no
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line $LINENO "configure"
7506 #include "confdefs.h"
7507 $ac_includes_default
7508 /* Thanks to Mike Haertel and Jim Avera for this test.
7509 Here is a matrix of mmap possibilities:
7510 mmap private not fixed
7511 mmap private fixed at somewhere currently unmapped
7512 mmap private fixed at somewhere already mapped
7513 mmap shared not fixed
7514 mmap shared fixed at somewhere currently unmapped
7515 mmap shared fixed at somewhere already mapped
7516 For private mappings, we should verify that changes cannot be read()
7517 back from the file, nor mmap's back from the file at a different
7518 address. (There have been systems where private was not correctly
7519 implemented like the infamous i386 svr4.0, and systems where the
7520 VM page cache was not coherent with the file system buffer cache
7521 like early versions of FreeBSD and possibly contemporary NetBSD.)
7522 For shared mappings, we should conversely verify that changes get
7523 propagated back to all the places they're supposed to be.
7524
7525 Grep wants private fixed already mapped.
7526 The main things grep needs to know about mmap are:
7527 * does it exist and is it safe to write into the mmap'd area
7528 * how to use it (BSD variants) */
7529
7530 #include <fcntl.h>
7531 #include <sys/mman.h>
7532
7533 #if !STDC_HEADERS && !HAVE_STDLIB_H
7534 char *malloc ();
7535 #endif
7536
7537 /* This mess was copied from the GNU getpagesize.h. */
7538 #if !HAVE_GETPAGESIZE
7539 /* Assume that all systems that can run configure have sys/param.h. */
7540 # if !HAVE_SYS_PARAM_H
7541 # define HAVE_SYS_PARAM_H 1
7542 # endif
7543
7544 # ifdef _SC_PAGESIZE
7545 # define getpagesize() sysconf(_SC_PAGESIZE)
7546 # else /* no _SC_PAGESIZE */
7547 # if HAVE_SYS_PARAM_H
7548 # include <sys/param.h>
7549 # ifdef EXEC_PAGESIZE
7550 # define getpagesize() EXEC_PAGESIZE
7551 # else /* no EXEC_PAGESIZE */
7552 # ifdef NBPG
7553 # define getpagesize() NBPG * CLSIZE
7554 # ifndef CLSIZE
7555 # define CLSIZE 1
7556 # endif /* no CLSIZE */
7557 # else /* no NBPG */
7558 # ifdef NBPC
7559 # define getpagesize() NBPC
7560 # else /* no NBPC */
7561 # ifdef PAGESIZE
7562 # define getpagesize() PAGESIZE
7563 # endif /* PAGESIZE */
7564 # endif /* no NBPC */
7565 # endif /* no NBPG */
7566 # endif /* no EXEC_PAGESIZE */
7567 # else /* no HAVE_SYS_PARAM_H */
7568 # define getpagesize() 8192 /* punt totally */
7569 # endif /* no HAVE_SYS_PARAM_H */
7570 # endif /* no _SC_PAGESIZE */
7571
7572 #endif /* no HAVE_GETPAGESIZE */
7573
7574 int
7575 main ()
7576 {
7577 char *data, *data2, *data3;
7578 int i, pagesize;
7579 int fd;
7580
7581 pagesize = getpagesize ();
7582
7583 /* First, make a file with some known garbage in it. */
7584 data = (char *) malloc (pagesize);
7585 if (!data)
7586 exit (1);
7587 for (i = 0; i < pagesize; ++i)
7588 *(data + i) = rand ();
7589 umask (0);
7590 fd = creat ("conftest.mmap", 0600);
7591 if (fd < 0)
7592 exit (1);
7593 if (write (fd, data, pagesize) != pagesize)
7594 exit (1);
7595 close (fd);
7596
7597 /* Next, try to mmap the file at a fixed address which already has
7598 something else allocated at it. If we can, also make sure that
7599 we see the same garbage. */
7600 fd = open ("conftest.mmap", O_RDWR);
7601 if (fd < 0)
7602 exit (1);
7603 data2 = (char *) malloc (2 * pagesize);
7604 if (!data2)
7605 exit (1);
7606 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7607 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7608 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7609 exit (1);
7610 for (i = 0; i < pagesize; ++i)
7611 if (*(data + i) != *(data2 + i))
7612 exit (1);
7613
7614 /* Finally, make sure that changes to the mapped area do not
7615 percolate back to the file as seen by read(). (This is a bug on
7616 some variants of i386 svr4.0.) */
7617 for (i = 0; i < pagesize; ++i)
7618 *(data2 + i) = *(data2 + i) + 1;
7619 data3 = (char *) malloc (pagesize);
7620 if (!data3)
7621 exit (1);
7622 if (read (fd, data3, pagesize) != pagesize)
7623 exit (1);
7624 for (i = 0; i < pagesize; ++i)
7625 if (*(data + i) != *(data3 + i))
7626 exit (1);
7627 close (fd);
7628 exit (0);
7629 }
7630 _ACEOF
7631 rm -f conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_func_mmap_fixed_mapped=yes
7643 else
7644 echo "$as_me: program exited with status $ac_status" >&5
7645 echo "$as_me: failed program was:" >&5
7646 cat conftest.$ac_ext >&5
7647 ( exit $ac_status )
7648 ac_cv_func_mmap_fixed_mapped=no
7649 fi
7650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7651 fi
7652 fi
7653 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7654 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7655 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7656
7657 cat >>confdefs.h <<\_ACEOF
7658 #define HAVE_MMAP 1
7659 _ACEOF
7660
7661 fi
7662 rm -f conftest.mmap
7663
7664
7665 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7666 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7667 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 #include "confdefs.h"
7673
7674 #include <features.h>
7675 #ifdef __GNU_LIBRARY__
7676 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7677 Lucky GNU user
7678 #endif
7679 #endif
7680
7681 _ACEOF
7682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7683 egrep "Lucky GNU user" >/dev/null 2>&1; then
7684 ac_cv_gnu_library_2_1=yes
7685 else
7686 ac_cv_gnu_library_2_1=no
7687 fi
7688 rm -f conftest*
7689
7690
7691
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7694 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7695
7696 GLIBC21="$ac_cv_gnu_library_2_1"
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7711 stdlib.h string.h unistd.h sys/param.h
7712 do
7713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722 else
7723 # Is the header compilable?
7724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7726 cat >conftest.$ac_ext <<_ACEOF
7727 #line $LINENO "configure"
7728 #include "confdefs.h"
7729 $ac_includes_default
7730 #include <$ac_header>
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_header_compiler=yes
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 cat conftest.$ac_ext >&5
7748 ac_header_compiler=no
7749 fi
7750 rm -f conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7752 echo "${ECHO_T}$ac_header_compiler" >&6
7753
7754 # Is the header present?
7755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7757 cat >conftest.$ac_ext <<_ACEOF
7758 #line $LINENO "configure"
7759 #include "confdefs.h"
7760 #include <$ac_header>
7761 _ACEOF
7762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7764 ac_status=$?
7765 egrep -v '^ *\+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } >/dev/null; then
7770 if test -s conftest.err; then
7771 ac_cpp_err=$ac_c_preproc_warn_flag
7772 else
7773 ac_cpp_err=
7774 fi
7775 else
7776 ac_cpp_err=yes
7777 fi
7778 if test -z "$ac_cpp_err"; then
7779 ac_header_preproc=yes
7780 else
7781 echo "$as_me: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7783 ac_header_preproc=no
7784 fi
7785 rm -f conftest.err conftest.$ac_ext
7786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789 # So? What about this header?
7790 case $ac_header_compiler:$ac_header_preproc in
7791 yes:no )
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7796 no:yes )
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled." >&5
7798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7803 esac
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 eval "$as_ac_Header=$ac_header_preproc"
7810 fi
7811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7813
7814 fi
7815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7816 cat >>confdefs.h <<_ACEOF
7817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7818 _ACEOF
7819
7820 fi
7821
7822 done
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7846 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7847 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7848 do
7849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7850 echo "$as_me:$LINENO: checking for $ac_func" >&5
7851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7852 if eval "test \"\${$as_ac_var+set}\" = set"; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858 /* System header to define __stub macros and hopefully few prototypes,
7859 which can conflict with char $ac_func (); below. */
7860 #include <assert.h>
7861 /* Override any gcc2 internal prototype to avoid an error. */
7862 #ifdef __cplusplus
7863 extern "C"
7864 #endif
7865 /* We use char because int might match the return type of a gcc2
7866 builtin and then its argument prototype would still apply. */
7867 char $ac_func ();
7868 char (*f) ();
7869
7870 #ifdef F77_DUMMY_MAIN
7871 # ifdef __cplusplus
7872 extern "C"
7873 # endif
7874 int F77_DUMMY_MAIN() { return 1; }
7875 #endif
7876 int
7877 main ()
7878 {
7879 /* The GNU C library defines this for functions which it implements
7880 to always fail with ENOSYS. Some functions are actually named
7881 something starting with __ and the normal name is an alias. */
7882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7883 choke me
7884 #else
7885 f = $ac_func;
7886 #endif
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>&5
7895 ac_status=$?
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
7898 { ac_try='test -s conftest$ac_exeext'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; }; then
7904 eval "$as_ac_var=yes"
7905 else
7906 echo "$as_me: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7908 eval "$as_ac_var=no"
7909 fi
7910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7911 fi
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7914 if test `eval echo '${'$as_ac_var'}'` = yes; then
7915 cat >>confdefs.h <<_ACEOF
7916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7917 _ACEOF
7918
7919 fi
7920 done
7921
7922
7923
7924
7925
7926 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7927 if test "${with_libiconv_prefix+set}" = set; then
7928 withval="$with_libiconv_prefix"
7929
7930 for dir in `echo "$withval" | tr : ' '`; do
7931 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7932 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7933 done
7934
7935 fi;
7936
7937 echo "$as_me:$LINENO: checking for iconv" >&5
7938 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7939 if test "${am_cv_func_iconv+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942
7943 am_cv_func_iconv="no, consider installing GNU libiconv"
7944 am_cv_lib_iconv=no
7945 cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7947 #include "confdefs.h"
7948 #include <stdlib.h>
7949 #include <iconv.h>
7950 #ifdef F77_DUMMY_MAIN
7951 # ifdef __cplusplus
7952 extern "C"
7953 # endif
7954 int F77_DUMMY_MAIN() { return 1; }
7955 #endif
7956 int
7957 main ()
7958 {
7959 iconv_t cd = iconv_open("","");
7960 iconv(cd,NULL,NULL,NULL,NULL);
7961 iconv_close(cd);
7962 ;
7963 return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968 (eval $ac_link) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 am_cv_func_iconv=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 fi
7983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7984 if test "$am_cv_func_iconv" != yes; then
7985 am_save_LIBS="$LIBS"
7986 LIBS="$LIBS -liconv"
7987 cat >conftest.$ac_ext <<_ACEOF
7988 #line $LINENO "configure"
7989 #include "confdefs.h"
7990 #include <stdlib.h>
7991 #include <iconv.h>
7992 #ifdef F77_DUMMY_MAIN
7993 # ifdef __cplusplus
7994 extern "C"
7995 # endif
7996 int F77_DUMMY_MAIN() { return 1; }
7997 #endif
7998 int
7999 main ()
8000 {
8001 iconv_t cd = iconv_open("","");
8002 iconv(cd,NULL,NULL,NULL,NULL);
8003 iconv_close(cd);
8004 ;
8005 return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010 (eval $ac_link) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 am_cv_lib_iconv=yes
8021 am_cv_func_iconv=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 fi
8026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8027 LIBS="$am_save_LIBS"
8028 fi
8029
8030 fi
8031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8032 echo "${ECHO_T}$am_cv_func_iconv" >&6
8033 if test "$am_cv_func_iconv" = yes; then
8034
8035 cat >>confdefs.h <<\_ACEOF
8036 #define HAVE_ICONV 1
8037 _ACEOF
8038
8039 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8040 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8041 if test "${am_cv_proto_iconv+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044
8045 cat >conftest.$ac_ext <<_ACEOF
8046 #line $LINENO "configure"
8047 #include "confdefs.h"
8048
8049 #include <stdlib.h>
8050 #include <iconv.h>
8051 extern
8052 #ifdef __cplusplus
8053 "C"
8054 #endif
8055 #if defined(__STDC__) || defined(__cplusplus)
8056 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8057 #else
8058 size_t iconv();
8059 #endif
8060
8061 #ifdef F77_DUMMY_MAIN
8062 # ifdef __cplusplus
8063 extern "C"
8064 # endif
8065 int F77_DUMMY_MAIN() { return 1; }
8066 #endif
8067 int
8068 main ()
8069 {
8070
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
8087 am_cv_proto_iconv_arg1=""
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8091 am_cv_proto_iconv_arg1="const"
8092 fi
8093 rm -f conftest.$ac_objext conftest.$ac_ext
8094 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);"
8095 fi
8096
8097 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8098 echo "$as_me:$LINENO: result: ${ac_t:-
8099 }$am_cv_proto_iconv" >&5
8100 echo "${ECHO_T}${ac_t:-
8101 }$am_cv_proto_iconv" >&6
8102
8103 cat >>confdefs.h <<_ACEOF
8104 #define ICONV_CONST $am_cv_proto_iconv_arg1
8105 _ACEOF
8106
8107 fi
8108 LIBICONV=
8109 if test "$am_cv_lib_iconv" = yes; then
8110 LIBICONV="-liconv"
8111 fi
8112
8113
8114
8115 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8116 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8117 if test "${am_cv_langinfo_codeset+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 #include "confdefs.h"
8123 #include <langinfo.h>
8124 #ifdef F77_DUMMY_MAIN
8125 # ifdef __cplusplus
8126 extern "C"
8127 # endif
8128 int F77_DUMMY_MAIN() { return 1; }
8129 #endif
8130 int
8131 main ()
8132 {
8133 char* cs = nl_langinfo(CODESET);
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest$ac_exeext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 am_cv_langinfo_codeset=yes
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 am_cv_langinfo_codeset=no
8155 fi
8156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8157
8158 fi
8159 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8160 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8161 if test $am_cv_langinfo_codeset = yes; then
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_LANGINFO_CODESET 1
8165 _ACEOF
8166
8167 fi
8168
8169 if test $ac_cv_header_locale_h = yes; then
8170 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8171 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8172 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 #line $LINENO "configure"
8177 #include "confdefs.h"
8178 #include <locale.h>
8179 #ifdef F77_DUMMY_MAIN
8180 # ifdef __cplusplus
8181 extern "C"
8182 # endif
8183 int F77_DUMMY_MAIN() { return 1; }
8184 #endif
8185 int
8186 main ()
8187 {
8188 return LC_MESSAGES
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195 (eval $ac_link) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 am_cv_val_LC_MESSAGES=yes
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.$ac_ext >&5
8209 am_cv_val_LC_MESSAGES=no
8210 fi
8211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8212 fi
8213 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8214 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8215 if test $am_cv_val_LC_MESSAGES = yes; then
8216
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_LC_MESSAGES 1
8219 _ACEOF
8220
8221 fi
8222 fi
8223 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8224 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8225 # Check whether --enable-nls or --disable-nls was given.
8226 if test "${enable_nls+set}" = set; then
8227 enableval="$enable_nls"
8228 USE_NLS=$enableval
8229 else
8230 USE_NLS=yes
8231 fi;
8232 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8233 echo "${ECHO_T}$USE_NLS" >&6
8234
8235
8236 BUILD_INCLUDED_LIBINTL=no
8237 USE_INCLUDED_LIBINTL=no
8238 INTLLIBS=
8239
8240 if test "$USE_NLS" = "yes"; then
8241
8242 cat >>confdefs.h <<\_ACEOF
8243 #define ENABLE_NLS 1
8244 _ACEOF
8245
8246 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8247 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8248
8249 # Check whether --with-included-gettext or --without-included-gettext was given.
8250 if test "${with_included_gettext+set}" = set; then
8251 withval="$with_included_gettext"
8252 nls_cv_force_use_gnu_gettext=$withval
8253 else
8254 nls_cv_force_use_gnu_gettext=no
8255 fi;
8256 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8257 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8258
8259 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8260 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8261 CATOBJEXT=NONE
8262
8263
8264
8265
8266 if test "${ac_cv_header_libintl_h+set}" = set; then
8267 echo "$as_me:$LINENO: checking for libintl.h" >&5
8268 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8269 if test "${ac_cv_header_libintl_h+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 fi
8272 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8273 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8274 else
8275 # Is the header compilable?
8276 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8277 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8279 #line $LINENO "configure"
8280 #include "confdefs.h"
8281 $ac_includes_default
8282 #include <libintl.h>
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_header_compiler=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 ac_header_compiler=no
8301 fi
8302 rm -f conftest.$ac_objext conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8304 echo "${ECHO_T}$ac_header_compiler" >&6
8305
8306 # Is the header present?
8307 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8308 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8309 cat >conftest.$ac_ext <<_ACEOF
8310 #line $LINENO "configure"
8311 #include "confdefs.h"
8312 #include <libintl.h>
8313 _ACEOF
8314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8316 ac_status=$?
8317 egrep -v '^ *\+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } >/dev/null; then
8322 if test -s conftest.err; then
8323 ac_cpp_err=$ac_c_preproc_warn_flag
8324 else
8325 ac_cpp_err=
8326 fi
8327 else
8328 ac_cpp_err=yes
8329 fi
8330 if test -z "$ac_cpp_err"; then
8331 ac_header_preproc=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8335 ac_header_preproc=no
8336 fi
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341 # So? What about this header?
8342 case $ac_header_compiler:$ac_header_preproc in
8343 yes:no )
8344 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8347 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8348 no:yes )
8349 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled." >&5
8350 echo "$as_me: WARNING: libintl.h: present but cannot be compiled." >&2;}
8351 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8352 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8354 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
8355 esac
8356 echo "$as_me:$LINENO: checking for libintl.h" >&5
8357 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_libintl_h+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 else
8361 ac_cv_header_libintl_h=$ac_header_preproc
8362 fi
8363 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8364 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8365
8366 fi
8367 if test $ac_cv_header_libintl_h = yes; then
8368 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8369 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8370 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373 cat >conftest.$ac_ext <<_ACEOF
8374 #line $LINENO "configure"
8375 #include "confdefs.h"
8376 #include <libintl.h>
8377 extern int _nl_msg_cat_cntr;
8378 #ifdef F77_DUMMY_MAIN
8379 # ifdef __cplusplus
8380 extern "C"
8381 # endif
8382 int F77_DUMMY_MAIN() { return 1; }
8383 #endif
8384 int
8385 main ()
8386 {
8387 bindtextdomain ("", "");
8388 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -s conftest$ac_exeext'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; }; then
8405 gt_cv_func_gnugettext2_libc=yes
8406 else
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 gt_cv_func_gnugettext2_libc=no
8410 fi
8411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8412 fi
8413 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8414 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8415
8416 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8417 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8418 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
8419 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422 gt_save_LIBS="$LIBS"
8423 LIBS="$LIBS -lintl $LIBICONV"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8426 #include "confdefs.h"
8427 #include <libintl.h>
8428 extern int _nl_msg_cat_cntr;
8429 #ifdef F77_DUMMY_MAIN
8430 # ifdef __cplusplus
8431 extern "C"
8432 # endif
8433 int F77_DUMMY_MAIN() { return 1; }
8434 #endif
8435 int
8436 main ()
8437 {
8438 bindtextdomain ("", "");
8439 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8447 ac_status=$?
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 (eval $ac_try) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 gt_cv_func_gnugettext2_libintl=yes
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 cat conftest.$ac_ext >&5
8460 gt_cv_func_gnugettext2_libintl=no
8461 fi
8462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 LIBS="$gt_save_LIBS"
8464 fi
8465 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
8466 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
8467 fi
8468
8469 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
8470 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
8471 && test "$PACKAGE" != gettext; }; then
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_GETTEXT 1
8475 _ACEOF
8476
8477
8478 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
8479 INTLLIBS="-lintl $LIBICONV"
8480 fi
8481
8482 gt_save_LIBS="$LIBS"
8483 LIBS="$LIBS $INTLLIBS"
8484
8485 for ac_func in dcgettext
8486 do
8487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8488 echo "$as_me:$LINENO: checking for $ac_func" >&5
8489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8490 if eval "test \"\${$as_ac_var+set}\" = set"; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 else
8493 cat >conftest.$ac_ext <<_ACEOF
8494 #line $LINENO "configure"
8495 #include "confdefs.h"
8496 /* System header to define __stub macros and hopefully few prototypes,
8497 which can conflict with char $ac_func (); below. */
8498 #include <assert.h>
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8505 char $ac_func ();
8506 char (*f) ();
8507
8508 #ifdef F77_DUMMY_MAIN
8509 # ifdef __cplusplus
8510 extern "C"
8511 # endif
8512 int F77_DUMMY_MAIN() { return 1; }
8513 #endif
8514 int
8515 main ()
8516 {
8517 /* The GNU C library defines this for functions which it implements
8518 to always fail with ENOSYS. Some functions are actually named
8519 something starting with __ and the normal name is an alias. */
8520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8521 choke me
8522 #else
8523 f = $ac_func;
8524 #endif
8525
8526 ;
8527 return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 eval "$as_ac_var=yes"
8543 else
8544 echo "$as_me: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8546 eval "$as_ac_var=no"
8547 fi
8548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8549 fi
8550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8552 if test `eval echo '${'$as_ac_var'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8555 _ACEOF
8556
8557 fi
8558 done
8559
8560 LIBS="$gt_save_LIBS"
8561
8562 # Extract the first word of "msgfmt", so it can be a program name with args.
8563 set dummy msgfmt; ac_word=$2
8564 echo "$as_me:$LINENO: checking for $ac_word" >&5
8565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8566 if test "${ac_cv_path_MSGFMT+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 case "$MSGFMT" in
8570 /*)
8571 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8572 ;;
8573 *)
8574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8575 for ac_dir in $PATH; do
8576 test -z "$ac_dir" && ac_dir=.
8577 if test -f $ac_dir/$ac_word; then
8578 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8579 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8580 break
8581 fi
8582 fi
8583 done
8584 IFS="$ac_save_ifs"
8585 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8586 ;;
8587 esac
8588 fi
8589 MSGFMT="$ac_cv_path_MSGFMT"
8590 if test "$MSGFMT" != ":"; then
8591 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8592 echo "${ECHO_T}$MSGFMT" >&6
8593 else
8594 echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6
8596 fi
8597
8598 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8599 set dummy gmsgfmt; ac_word=$2
8600 echo "$as_me:$LINENO: checking for $ac_word" >&5
8601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8602 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 case $GMSGFMT in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8608 ;;
8609 *)
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621 done
8622 done
8623
8624 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8625 ;;
8626 esac
8627 fi
8628 GMSGFMT=$ac_cv_path_GMSGFMT
8629
8630 if test -n "$GMSGFMT"; then
8631 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8632 echo "${ECHO_T}$GMSGFMT" >&6
8633 else
8634 echo "$as_me:$LINENO: result: no" >&5
8635 echo "${ECHO_T}no" >&6
8636 fi
8637
8638
8639 # Extract the first word of "xgettext", so it can be a program name with args.
8640 set dummy xgettext; ac_word=$2
8641 echo "$as_me:$LINENO: checking for $ac_word" >&5
8642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8643 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 case "$XGETTEXT" in
8647 /*)
8648 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8649 ;;
8650 *)
8651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8652 for ac_dir in $PATH; do
8653 test -z "$ac_dir" && ac_dir=.
8654 if test -f $ac_dir/$ac_word; then
8655 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8656 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8657 break
8658 fi
8659 fi
8660 done
8661 IFS="$ac_save_ifs"
8662 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8663 ;;
8664 esac
8665 fi
8666 XGETTEXT="$ac_cv_path_XGETTEXT"
8667 if test "$XGETTEXT" != ":"; then
8668 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8669 echo "${ECHO_T}$XGETTEXT" >&6
8670 else
8671 echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8673 fi
8674
8675
8676 CATOBJEXT=.gmo
8677 fi
8678
8679 fi
8680
8681
8682
8683 if test "$CATOBJEXT" = "NONE"; then
8684 nls_cv_use_gnu_gettext=yes
8685 fi
8686 fi
8687
8688 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8689 INTLOBJS="\$(GETTOBJS)"
8690 # Extract the first word of "msgfmt", so it can be a program name with args.
8691 set dummy msgfmt; ac_word=$2
8692 echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694 if test "${ac_cv_path_MSGFMT+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697 case "$MSGFMT" in
8698 /*)
8699 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8700 ;;
8701 *)
8702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8703 for ac_dir in $PATH; do
8704 test -z "$ac_dir" && ac_dir=.
8705 if test -f $ac_dir/$ac_word; then
8706 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8707 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8708 break
8709 fi
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
8713 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8714 ;;
8715 esac
8716 fi
8717 MSGFMT="$ac_cv_path_MSGFMT"
8718 if test "$MSGFMT" != ":"; then
8719 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8720 echo "${ECHO_T}$MSGFMT" >&6
8721 else
8722 echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8724 fi
8725
8726 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8727 set dummy gmsgfmt; ac_word=$2
8728 echo "$as_me:$LINENO: checking for $ac_word" >&5
8729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8730 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733 case $GMSGFMT in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8736 ;;
8737 *)
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in $PATH
8740 do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749 done
8750 done
8751
8752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8753 ;;
8754 esac
8755 fi
8756 GMSGFMT=$ac_cv_path_GMSGFMT
8757
8758 if test -n "$GMSGFMT"; then
8759 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8760 echo "${ECHO_T}$GMSGFMT" >&6
8761 else
8762 echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6
8764 fi
8765
8766 # Extract the first word of "xgettext", so it can be a program name with args.
8767 set dummy xgettext; ac_word=$2
8768 echo "$as_me:$LINENO: checking for $ac_word" >&5
8769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8770 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 else
8773 case "$XGETTEXT" in
8774 /*)
8775 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8776 ;;
8777 *)
8778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8779 for ac_dir in $PATH; do
8780 test -z "$ac_dir" && ac_dir=.
8781 if test -f $ac_dir/$ac_word; then
8782 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8783 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8784 break
8785 fi
8786 fi
8787 done
8788 IFS="$ac_save_ifs"
8789 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8790 ;;
8791 esac
8792 fi
8793 XGETTEXT="$ac_cv_path_XGETTEXT"
8794 if test "$XGETTEXT" != ":"; then
8795 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8796 echo "${ECHO_T}$XGETTEXT" >&6
8797 else
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8800 fi
8801
8802
8803 BUILD_INCLUDED_LIBINTL=yes
8804 USE_INCLUDED_LIBINTL=yes
8805 CATOBJEXT=.gmo
8806 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8807 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8808 fi
8809
8810 if test "$GMSGFMT" != ":"; then
8811 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8812 : ;
8813 else
8814 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
8815 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
8816 GMSGFMT=":"
8817 fi
8818 fi
8819
8820 if test "$XGETTEXT" != ":"; then
8821 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8822 : ;
8823 else
8824 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8825 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8826 XGETTEXT=":"
8827 fi
8828 fi
8829
8830 POSUB=po
8831 fi
8832 ac_config_commands="$ac_config_commands default-1"
8833
8834
8835
8836 if test "$PACKAGE" = gettext; then
8837 BUILD_INCLUDED_LIBINTL=yes
8838 fi
8839
8840 for ac_prog in bison
8841 do
8842 # Extract the first word of "$ac_prog", so it can be a program name with args.
8843 set dummy $ac_prog; ac_word=$2
8844 echo "$as_me:$LINENO: checking for $ac_word" >&5
8845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8846 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 else
8849 if test -n "$INTLBISON"; then
8850 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_INTLBISON="$ac_prog"
8860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8862 fi
8863 done
8864 done
8865
8866 fi
8867 fi
8868 INTLBISON=$ac_cv_prog_INTLBISON
8869 if test -n "$INTLBISON"; then
8870 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8871 echo "${ECHO_T}$INTLBISON" >&6
8872 else
8873 echo "$as_me:$LINENO: result: no" >&5
8874 echo "${ECHO_T}no" >&6
8875 fi
8876
8877 test -n "$INTLBISON" && break
8878 done
8879
8880 if test -z "$INTLBISON"; then
8881 ac_verc_fail=yes
8882 else
8883 echo "$as_me:$LINENO: checking version of bison" >&5
8884 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8885 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8886 case $ac_prog_version in
8887 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8888 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8889 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8890 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8891 esac
8892 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8893 echo "${ECHO_T}$ac_prog_version" >&6
8894 fi
8895 if test $ac_verc_fail = yes; then
8896 INTLBISON=:
8897 fi
8898
8899 for lang in $ALL_LINGUAS; do
8900 GMOFILES="$GMOFILES $lang.gmo"
8901 POFILES="$POFILES $lang.po"
8902 done
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914 nls_cv_header_intl=
8915 nls_cv_header_libgt=
8916
8917 DATADIRNAME=share
8918
8919
8920 INSTOBJEXT=.mo
8921
8922
8923 GENCAT=gencat
8924
8925
8926
8927 if test "x$CATOBJEXT" != "x"; then
8928 if test "x$ALL_LINGUAS" = "x"; then
8929 LINGUAS=
8930 else
8931 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8932 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8933 NEW_LINGUAS=
8934 for presentlang in $ALL_LINGUAS; do
8935 useit=no
8936 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8937 # Use the presentlang catalog if desiredlang is
8938 # a. equal to presentlang, or
8939 # b. a variant of presentlang (because in this case,
8940 # presentlang can be used as a fallback for messages
8941 # which are not translated in the desiredlang catalog).
8942 case "$desiredlang" in
8943 "$presentlang"*) useit=yes;;
8944 esac
8945 done
8946 if test $useit = yes; then
8947 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8948 fi
8949 done
8950 LINGUAS=$NEW_LINGUAS
8951 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8952 echo "${ECHO_T}$LINGUAS" >&6
8953 fi
8954
8955 if test -n "$LINGUAS"; then
8956 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8957 fi
8958 fi
8959
8960 MKINSTALLDIRS=
8961 if test -n "$ac_aux_dir"; then
8962 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8963 fi
8964 if test -z "$MKINSTALLDIRS"; then
8965 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8966 fi
8967
8968
8969 INTL_LIBTOOL_SUFFIX_PREFIX=
8970
8971
8972
8973 # This is necessary so that .o files in LIBOBJS are also built via
8974 # the ANSI2KNR-filtering rules.
8975 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
8976
8977
8978 ac_config_files="$ac_config_files Makefile config/Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile"
8979 cat >confcache <<\_ACEOF
8980 # This file is a shell script that caches the results of configure
8981 # tests run on this system so they can be shared between configure
8982 # scripts and configure runs, see configure's option --config-cache.
8983 # It is not useful on other systems. If it contains results you don't
8984 # want to keep, you may remove or edit it.
8985 #
8986 # config.status only pays attention to the cache file if you give it
8987 # the --recheck option to rerun configure.
8988 #
8989 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8991 # following values.
8992
8993 _ACEOF
8994
8995 # The following way of writing the cache mishandles newlines in values,
8996 # but we know of no workaround that is simple, portable, and efficient.
8997 # So, don't put newlines in cache variables' values.
8998 # Ultrix sh set writes to stderr and can't be redirected directly,
8999 # and sets the high bit in the cache file unless we assign to the vars.
9000 {
9001 (set) 2>&1 |
9002 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9003 *ac_space=\ *)
9004 # `set' does not quote correctly, so add quotes (double-quote
9005 # substitution turns \\\\ into \\, and sed turns \\ into \).
9006 sed -n \
9007 "s/'/'\\\\''/g;
9008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9009 ;;
9010 *)
9011 # `set' quotes correctly as required by POSIX, so do not add quotes.
9012 sed -n \
9013 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9014 ;;
9015 esac;
9016 } |
9017 sed '
9018 t clear
9019 : clear
9020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9021 t end
9022 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9023 : end' >>confcache
9024 if cmp -s $cache_file confcache; then :; else
9025 if test -w $cache_file; then
9026 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9027 cat confcache >$cache_file
9028 else
9029 echo "not updating unwritable cache $cache_file"
9030 fi
9031 fi
9032 rm -f confcache
9033
9034 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9035 # Let make expand exec_prefix.
9036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9037
9038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9040 # trailing colons and then remove the whole line if VPATH becomes empty
9041 # (actually we leave an empty line to preserve line numbers).
9042 if test "x$srcdir" = x.; then
9043 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9044 s/:*\$(srcdir):*/:/;
9045 s/:*\${srcdir}:*/:/;
9046 s/:*@srcdir@:*/:/;
9047 s/^\([^=]*=[ ]*\):*/\1/;
9048 s/:*$//;
9049 s/^[^=]*=[ ]*$//;
9050 }'
9051 fi
9052
9053 DEFS=-DHAVE_CONFIG_H
9054
9055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9056 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9057 Usually this means the macro was only invoked conditionally." >&5
9058 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9059 Usually this means the macro was only invoked conditionally." >&2;}
9060 { (exit 1); exit 1; }; }
9061 fi
9062
9063 : ${CONFIG_STATUS=./config.status}
9064 ac_clean_files_save=$ac_clean_files
9065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9066 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9067 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9068 cat >$CONFIG_STATUS <<_ACEOF
9069 #! $SHELL
9070 # Generated by $as_me.
9071 # Run this file to recreate the current configuration.
9072 # Compiler output produced by configure, useful for debugging
9073 # configure, is in config.log if it exists.
9074
9075 debug=false
9076 SHELL=\${CONFIG_SHELL-$SHELL}
9077 _ACEOF
9078
9079 cat >>$CONFIG_STATUS <<\_ACEOF
9080
9081 ## --------------------- ##
9082 ## M4sh Initialization. ##
9083 ## --------------------- ##
9084
9085 # Be Bourne compatible
9086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9087 emulate sh
9088 NULLCMD=:
9089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9090 set -o posix
9091 fi
9092
9093 # NLS nuisances.
9094 # Support unset when possible.
9095 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9096 as_unset=unset
9097 else
9098 as_unset=false
9099 fi
9100
9101 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9102 { $as_unset LANG || test "${LANG+set}" != set; } ||
9103 { LANG=C; export LANG; }
9104 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9105 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9106 { LC_ALL=C; export LC_ALL; }
9107 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9108 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9109 { LC_TIME=C; export LC_TIME; }
9110 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9111 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9112 { LC_CTYPE=C; export LC_CTYPE; }
9113 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9114 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9115 { LANGUAGE=C; export LANGUAGE; }
9116 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9117 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9118 { LC_COLLATE=C; export LC_COLLATE; }
9119 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9120 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9121 { LC_NUMERIC=C; export LC_NUMERIC; }
9122 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9123 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9124 { LC_MESSAGES=C; export LC_MESSAGES; }
9125
9126
9127 # Name of the executable.
9128 as_me=`(basename "$0") 2>/dev/null ||
9129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9130 X"$0" : 'X\(//\)$' \| \
9131 X"$0" : 'X\(/\)$' \| \
9132 . : '\(.\)' 2>/dev/null ||
9133 echo X/"$0" |
9134 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9135 /^X\/\(\/\/\)$/{ s//\1/; q; }
9136 /^X\/\(\/\).*/{ s//\1/; q; }
9137 s/.*/./; q'`
9138
9139 # PATH needs CR, and LINENO needs CR and PATH.
9140 # Avoid depending upon Character Ranges.
9141 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9142 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9143 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9144 as_cr_digits='0123456789'
9145 as_cr_alnum=$as_cr_Letters$as_cr_digits
9146
9147 # The user is always right.
9148 if test "${PATH_SEPARATOR+set}" != set; then
9149 echo "#! $SHELL" >conftest.sh
9150 echo "exit 0" >>conftest.sh
9151 chmod +x conftest.sh
9152 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9153 PATH_SEPARATOR=';'
9154 else
9155 PATH_SEPARATOR=:
9156 fi
9157 rm -f conftest.sh
9158 fi
9159
9160
9161 as_lineno_1=$LINENO
9162 as_lineno_2=$LINENO
9163 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9164 test "x$as_lineno_1" != "x$as_lineno_2" &&
9165 test "x$as_lineno_3" = "x$as_lineno_2" || {
9166 # Find who we are. Look in the path if we contain no path at all
9167 # relative or not.
9168 case $0 in
9169 *[\\/]* ) as_myself=$0 ;;
9170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9172 do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9176 done
9177
9178 ;;
9179 esac
9180 # We did not find ourselves, most probably we were run as `sh COMMAND'
9181 # in which case we are not to be found in the path.
9182 if test "x$as_myself" = x; then
9183 as_myself=$0
9184 fi
9185 if test ! -f "$as_myself"; then
9186 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9187 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9188 { (exit 1); exit 1; }; }
9189 fi
9190 case $CONFIG_SHELL in
9191 '')
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in /bin:/usr/bin:$PATH
9194 do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for as_base in sh bash ksh sh5; do
9198 case $as_dir in
9199 /*)
9200 if ("$as_dir/$as_base" -c '
9201 as_lineno_1=$LINENO
9202 as_lineno_2=$LINENO
9203 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9204 test "x$as_lineno_1" != "x$as_lineno_2" &&
9205 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9206 CONFIG_SHELL=$as_dir/$as_base
9207 export CONFIG_SHELL
9208 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9209 fi;;
9210 esac
9211 done
9212 done
9213 ;;
9214 esac
9215
9216 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9217 # uniformly replaced by the line number. The first 'sed' inserts a
9218 # line-number line before each line; the second 'sed' does the real
9219 # work. The second script uses 'N' to pair each line-number line
9220 # with the numbered line, and appends trailing '-' during
9221 # substitution so that $LINENO is not a special case at line end.
9222 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9223 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9224 sed '=' <$as_myself |
9225 sed '
9226 N
9227 s,$,-,
9228 : loop
9229 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9230 t loop
9231 s,-$,,
9232 s,^['$as_cr_digits']*\n,,
9233 ' >$as_me.lineno &&
9234 chmod +x $as_me.lineno ||
9235 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9236 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9237 { (exit 1); exit 1; }; }
9238
9239 # Don't try to exec as it changes $[0], causing all sort of problems
9240 # (the dirname of $[0] is not the place where we might find the
9241 # original and so on. Autoconf is especially sensible to this).
9242 . ./$as_me.lineno
9243 # Exit status is that of the last command.
9244 exit
9245 }
9246
9247
9248 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9249 *c*,-n*) ECHO_N= ECHO_C='
9250 ' ECHO_T=' ' ;;
9251 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9252 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9253 esac
9254
9255 if expr a : '\(a\)' >/dev/null 2>&1; then
9256 as_expr=expr
9257 else
9258 as_expr=false
9259 fi
9260
9261 rm -f conf$$ conf$$.exe conf$$.file
9262 echo >conf$$.file
9263 if ln -s conf$$.file conf$$ 2>/dev/null; then
9264 # We could just check for DJGPP; but this test a) works b) is more generic
9265 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9266 if test -f conf$$.exe; then
9267 # Don't use ln at all; we don't have any links
9268 as_ln_s='cp -p'
9269 else
9270 as_ln_s='ln -s'
9271 fi
9272 elif ln conf$$.file conf$$ 2>/dev/null; then
9273 as_ln_s=ln
9274 else
9275 as_ln_s='cp -p'
9276 fi
9277 rm -f conf$$ conf$$.exe conf$$.file
9278
9279 as_executable_p="test -f"
9280
9281 # Sed expression to map a string onto a valid CPP name.
9282 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9283
9284 # Sed expression to map a string onto a valid variable name.
9285 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9286
9287
9288 # IFS
9289 # We need space, tab and new line, in precisely that order.
9290 as_nl='
9291 '
9292 IFS=" $as_nl"
9293
9294 # CDPATH.
9295 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9296
9297 exec 6>&1
9298
9299 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9300 # report actual input values of CONFIG_FILES etc. instead of their
9301 # values after options handling. Logging --version etc. is OK.
9302 exec 5>>config.log
9303 {
9304 echo
9305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9306 ## Running $as_me. ##
9307 _ASBOX
9308 } >&5
9309 cat >&5 <<_CSEOF
9310
9311 This file was extended by GNU Bison $as_me 1.30j, which was
9312 generated by GNU Autoconf 2.52g. Invocation command line was
9313
9314 CONFIG_FILES = $CONFIG_FILES
9315 CONFIG_HEADERS = $CONFIG_HEADERS
9316 CONFIG_LINKS = $CONFIG_LINKS
9317 CONFIG_COMMANDS = $CONFIG_COMMANDS
9318 $ $0 $@
9319
9320 _CSEOF
9321 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9322 echo >&5
9323 _ACEOF
9324
9325 # Files that config.status was made for.
9326 if test -n "$ac_config_files"; then
9327 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9328 fi
9329
9330 if test -n "$ac_config_headers"; then
9331 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9332 fi
9333
9334 if test -n "$ac_config_links"; then
9335 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9336 fi
9337
9338 if test -n "$ac_config_commands"; then
9339 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9340 fi
9341
9342 cat >>$CONFIG_STATUS <<\_ACEOF
9343
9344 ac_cs_usage="\
9345 \`$as_me' instantiates files from templates according to the
9346 current configuration.
9347
9348 Usage: $0 [OPTIONS] [FILE]...
9349
9350 -h, --help print this help, then exit
9351 -V, --version print version number, then exit
9352 -d, --debug don't remove temporary files
9353 --recheck update $as_me by reconfiguring in the same conditions
9354 --file=FILE[:TEMPLATE]
9355 instantiate the configuration file FILE
9356 --header=FILE[:TEMPLATE]
9357 instantiate the configuration header FILE
9358
9359 Configuration files:
9360 $config_files
9361
9362 Configuration headers:
9363 $config_headers
9364
9365 Configuration commands:
9366 $config_commands
9367
9368 Report bugs to <bug-autoconf@gnu.org>."
9369 _ACEOF
9370
9371 cat >>$CONFIG_STATUS <<_ACEOF
9372 ac_cs_version="\\
9373 GNU Bison config.status 1.30j
9374 configured by $0, generated by GNU Autoconf 2.52g,
9375 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9376
9377 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9378 Free Software Foundation, Inc.
9379 This config.status script is free software; the Free Software Foundation
9380 gives unlimited permission to copy, distribute and modify it."
9381 srcdir=$srcdir
9382 INSTALL="$INSTALL"
9383 _ACEOF
9384
9385 cat >>$CONFIG_STATUS <<\_ACEOF
9386 # If no file are specified by the user, then we need to provide default
9387 # value. By we need to know if files were specified by the user.
9388 ac_need_defaults=:
9389 while test $# != 0
9390 do
9391 case $1 in
9392 --*=*)
9393 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9394 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9395 shift
9396 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9397 shift
9398 ;;
9399 -*);;
9400 *) # This is not an option, so the user has probably given explicit
9401 # arguments.
9402 ac_need_defaults=false;;
9403 esac
9404
9405 case $1 in
9406 # Handling of the options.
9407 _ACEOF
9408 cat >>$CONFIG_STATUS <<_ACEOF
9409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9410 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9411 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9412 _ACEOF
9413 cat >>$CONFIG_STATUS <<\_ACEOF
9414 --version | --vers* | -V )
9415 echo "$ac_cs_version"; exit 0 ;;
9416 --he | --h)
9417 # Conflict between --help and --header
9418 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9419 Try \`$0 --help' for more information." >&5
9420 echo "$as_me: error: ambiguous option: $1
9421 Try \`$0 --help' for more information." >&2;}
9422 { (exit 1); exit 1; }; };;
9423 --help | --hel | -h )
9424 echo "$ac_cs_usage"; exit 0 ;;
9425 --debug | --d* | -d )
9426 debug=: ;;
9427 --file | --fil | --fi | --f )
9428 shift
9429 CONFIG_FILES="$CONFIG_FILES $1"
9430 ac_need_defaults=false;;
9431 --header | --heade | --head | --hea )
9432 shift
9433 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9434 ac_need_defaults=false;;
9435
9436 # This is an error.
9437 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9438 Try \`$0 --help' for more information." >&5
9439 echo "$as_me: error: unrecognized option: $1
9440 Try \`$0 --help' for more information." >&2;}
9441 { (exit 1); exit 1; }; } ;;
9442
9443 *) ac_config_targets="$ac_config_targets $1" ;;
9444
9445 esac
9446 shift
9447 done
9448
9449 _ACEOF
9450
9451 cat >>$CONFIG_STATUS <<_ACEOF
9452 #
9453 # INIT-COMMANDS section.
9454 #
9455
9456 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9457
9458
9459 _ACEOF
9460
9461
9462
9463 cat >>$CONFIG_STATUS <<\_ACEOF
9464 for ac_config_target in $ac_config_targets
9465 do
9466 case "$ac_config_target" in
9467 # Handling of arguments.
9468 "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
9469 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9470 "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
9471 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9472 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
9473 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9474 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9475 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9476 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9477 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9478 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9479 "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
9480 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9481 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9482 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
9483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9485 { (exit 1); exit 1; }; };;
9486 esac
9487 done
9488
9489 # If the user did not use the arguments to specify the items to instantiate,
9490 # then the envvar interface is used. Set only those that are not.
9491 # We use the long form for the default assignment because of an extremely
9492 # bizarre bug on SunOS 4.1.3.
9493 if $ac_need_defaults; then
9494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9497 fi
9498
9499 # Create a temporary directory, and hook for its removal unless debugging.
9500 $debug ||
9501 {
9502 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9503 trap '{ (exit 1); exit 1; }' 1 2 13 15
9504 }
9505
9506 # Create a (secure) tmp directory for tmp files.
9507 : ${TMPDIR=/tmp}
9508 {
9509 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9510 test -n "$tmp" && test -d "$tmp"
9511 } ||
9512 {
9513 tmp=$TMPDIR/cs$$-$RANDOM
9514 (umask 077 && mkdir $tmp)
9515 } ||
9516 {
9517 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9518 { (exit 1); exit 1; }
9519 }
9520
9521 _ACEOF
9522
9523 cat >>$CONFIG_STATUS <<_ACEOF
9524
9525 #
9526 # CONFIG_FILES section.
9527 #
9528
9529 # No need to generate the scripts if there are no CONFIG_FILES.
9530 # This happens for instance when ./config.status config.h
9531 if test -n "\$CONFIG_FILES"; then
9532 # Protect against being on the right side of a sed subst in config.status.
9533 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9534 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9535 s,@SHELL@,$SHELL,;t t
9536 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9537 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9538 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9539 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9540 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9541 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9542 s,@exec_prefix@,$exec_prefix,;t t
9543 s,@prefix@,$prefix,;t t
9544 s,@program_transform_name@,$program_transform_name,;t t
9545 s,@bindir@,$bindir,;t t
9546 s,@sbindir@,$sbindir,;t t
9547 s,@libexecdir@,$libexecdir,;t t
9548 s,@datadir@,$datadir,;t t
9549 s,@sysconfdir@,$sysconfdir,;t t
9550 s,@sharedstatedir@,$sharedstatedir,;t t
9551 s,@localstatedir@,$localstatedir,;t t
9552 s,@libdir@,$libdir,;t t
9553 s,@includedir@,$includedir,;t t
9554 s,@oldincludedir@,$oldincludedir,;t t
9555 s,@infodir@,$infodir,;t t
9556 s,@mandir@,$mandir,;t t
9557 s,@build_alias@,$build_alias,;t t
9558 s,@host_alias@,$host_alias,;t t
9559 s,@target_alias@,$target_alias,;t t
9560 s,@DEFS@,$DEFS,;t t
9561 s,@ECHO_C@,$ECHO_C,;t t
9562 s,@ECHO_N@,$ECHO_N,;t t
9563 s,@ECHO_T@,$ECHO_T,;t t
9564 s,@LIBS@,$LIBS,;t t
9565 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9566 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9567 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9568 s,@PACKAGE@,$PACKAGE,;t t
9569 s,@VERSION@,$VERSION,;t t
9570 s,@ACLOCAL@,$ACLOCAL,;t t
9571 s,@AUTOCONF@,$AUTOCONF,;t t
9572 s,@AUTOMAKE@,$AUTOMAKE,;t t
9573 s,@AUTOHEADER@,$AUTOHEADER,;t t
9574 s,@MAKEINFO@,$MAKEINFO,;t t
9575 s,@AMTAR@,$AMTAR,;t t
9576 s,@install_sh@,$install_sh,;t t
9577 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9578 s,@AWK@,$AWK,;t t
9579 s,@SET_MAKE@,$SET_MAKE,;t t
9580 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9581 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9582 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9583 s,@DEPDIR@,$DEPDIR,;t t
9584 s,@GCC@,$GCC,;t t
9585 s,@CC@,$CC,;t t
9586 s,@CFLAGS@,$CFLAGS,;t t
9587 s,@LDFLAGS@,$LDFLAGS,;t t
9588 s,@CPPFLAGS@,$CPPFLAGS,;t t
9589 s,@ac_ct_CC@,$ac_ct_CC,;t t
9590 s,@EXEEXT@,$EXEEXT,;t t
9591 s,@OBJEXT@,$OBJEXT,;t t
9592 s,@am__include@,$am__include,;t t
9593 s,@am__quote@,$am__quote,;t t
9594 s,@CCDEPMODE@,$CCDEPMODE,;t t
9595 s,@CPP@,$CPP,;t t
9596 s,@RANLIB@,$RANLIB,;t t
9597 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9598 s,@AUTOM4TE@,$AUTOM4TE,;t t
9599 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
9600 s,@U@,$U,;t t
9601 s,@ANSI2KNR@,$ANSI2KNR,;t t
9602 s,@ALLOCA@,$ALLOCA,;t t
9603 s,@LIBOBJS@,$LIBOBJS,;t t
9604 s,@build@,$build,;t t
9605 s,@build_cpu@,$build_cpu,;t t
9606 s,@build_vendor@,$build_vendor,;t t
9607 s,@build_os@,$build_os,;t t
9608 s,@host@,$host,;t t
9609 s,@host_cpu@,$host_cpu,;t t
9610 s,@host_vendor@,$host_vendor,;t t
9611 s,@host_os@,$host_os,;t t
9612 s,@GLIBC21@,$GLIBC21,;t t
9613 s,@LIBICONV@,$LIBICONV,;t t
9614 s,@USE_NLS@,$USE_NLS,;t t
9615 s,@MSGFMT@,$MSGFMT,;t t
9616 s,@GMSGFMT@,$GMSGFMT,;t t
9617 s,@XGETTEXT@,$XGETTEXT,;t t
9618 s,@INTLBISON@,$INTLBISON,;t t
9619 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9620 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9621 s,@CATALOGS@,$CATALOGS,;t t
9622 s,@CATOBJEXT@,$CATOBJEXT,;t t
9623 s,@GMOFILES@,$GMOFILES,;t t
9624 s,@INTLLIBS@,$INTLLIBS,;t t
9625 s,@INTLOBJS@,$INTLOBJS,;t t
9626 s,@POFILES@,$POFILES,;t t
9627 s,@POSUB@,$POSUB,;t t
9628 s,@DATADIRNAME@,$DATADIRNAME,;t t
9629 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9630 s,@GENCAT@,$GENCAT,;t t
9631 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9632 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9633 CEOF
9634
9635 _ACEOF
9636
9637 cat >>$CONFIG_STATUS <<\_ACEOF
9638 # Split the substitutions into bite-sized pieces for seds with
9639 # small command number limits, like on Digital OSF/1 and HP-UX.
9640 ac_max_sed_lines=48
9641 ac_sed_frag=1 # Number of current file.
9642 ac_beg=1 # First line for current file.
9643 ac_end=$ac_max_sed_lines # Line after last line for current file.
9644 ac_more_lines=:
9645 ac_sed_cmds=
9646 while $ac_more_lines; do
9647 if test $ac_beg -gt 1; then
9648 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9649 else
9650 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9651 fi
9652 if test ! -s $tmp/subs.frag; then
9653 ac_more_lines=false
9654 else
9655 # The purpose of the label and of the branching condition is to
9656 # speed up the sed processing (if there are no `@' at all, there
9657 # is no need to browse any of the substitutions).
9658 # These are the two extra sed commands mentioned above.
9659 (echo ':t
9660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9661 if test -z "$ac_sed_cmds"; then
9662 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9663 else
9664 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9665 fi
9666 ac_sed_frag=`expr $ac_sed_frag + 1`
9667 ac_beg=$ac_end
9668 ac_end=`expr $ac_end + $ac_max_sed_lines`
9669 fi
9670 done
9671 if test -z "$ac_sed_cmds"; then
9672 ac_sed_cmds=cat
9673 fi
9674 fi # test -n "$CONFIG_FILES"
9675
9676 _ACEOF
9677 cat >>$CONFIG_STATUS <<\_ACEOF
9678 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9680 case $ac_file in
9681 - | *:- | *:-:* ) # input from stdin
9682 cat >$tmp/stdin
9683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9687 * ) ac_file_in=$ac_file.in ;;
9688 esac
9689
9690 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9691 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9693 X"$ac_file" : 'X\(//\)[^/]' \| \
9694 X"$ac_file" : 'X\(//\)$' \| \
9695 X"$ac_file" : 'X\(/\)' \| \
9696 . : '\(.\)' 2>/dev/null ||
9697 echo X"$ac_file" |
9698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9700 /^X\(\/\/\)$/{ s//\1/; q; }
9701 /^X\(\/\).*/{ s//\1/; q; }
9702 s/.*/./; q'`
9703 { case "$ac_dir" in
9704 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9705 *) as_incr_dir=.;;
9706 esac
9707 as_dummy="$ac_dir"
9708 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9709 case $as_mkdir_dir in
9710 # Skip DOS drivespec
9711 ?:) as_incr_dir=$as_mkdir_dir ;;
9712 *)
9713 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9714 test -d "$as_incr_dir" ||
9715 mkdir "$as_incr_dir" ||
9716 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9717 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9718 { (exit 1); exit 1; }; }
9719 ;;
9720 esac
9721 done; }
9722
9723 ac_builddir=.
9724
9725 if test "$ac_dir" != .; then
9726 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9727 # A "../" for each directory in $ac_dir_suffix.
9728 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9729 else
9730 ac_dir_suffix= ac_top_builddir=
9731 fi
9732
9733 case $srcdir in
9734 .) # No --srcdir option. We are building in place.
9735 ac_srcdir=.
9736 if test -z "$ac_top_builddir"; then
9737 ac_top_srcdir=.
9738 else
9739 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9740 fi ;;
9741 [\\/]* | ?:[\\/]* ) # Absolute path.
9742 ac_srcdir=$srcdir$ac_dir_suffix;
9743 ac_top_srcdir=$srcdir ;;
9744 *) # Relative path.
9745 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9746 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9747 esac
9748 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9749 # absolute.
9750 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9751 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9752 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9753 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9754
9755
9756 case $INSTALL in
9757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9758 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9759 esac
9760
9761 if test x"$ac_file" != x-; then
9762 { echo "$as_me:$LINENO: creating $ac_file" >&5
9763 echo "$as_me: creating $ac_file" >&6;}
9764 rm -f "$ac_file"
9765 fi
9766 # Let's still pretend it is `configure' which instantiates (i.e., don't
9767 # use $as_me), people would be surprised to read:
9768 # /* config.h. Generated by config.status. */
9769 if test x"$ac_file" = x-; then
9770 configure_input=
9771 else
9772 configure_input="$ac_file. "
9773 fi
9774 configure_input=$configure_input"Generated from `echo $ac_file_in |
9775 sed 's,.*/,,'` by configure."
9776
9777 # First look for the input files in the build tree, otherwise in the
9778 # src tree.
9779 ac_file_inputs=`IFS=:
9780 for f in $ac_file_in; do
9781 case $f in
9782 -) echo $tmp/stdin ;;
9783 [\\/$]*)
9784 # Absolute (can't be DOS-style, as IFS=:)
9785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9786 echo "$as_me: error: cannot find input file: $f" >&2;}
9787 { (exit 1); exit 1; }; }
9788 echo $f;;
9789 *) # Relative
9790 if test -f "$f"; then
9791 # Build tree
9792 echo $f
9793 elif test -f "$srcdir/$f"; then
9794 # Source tree
9795 echo $srcdir/$f
9796 else
9797 # /dev/null tree
9798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9799 echo "$as_me: error: cannot find input file: $f" >&2;}
9800 { (exit 1); exit 1; }; }
9801 fi;;
9802 esac
9803 done` || { (exit 1); exit 1; }
9804 _ACEOF
9805 cat >>$CONFIG_STATUS <<_ACEOF
9806 sed "$ac_vpsub
9807 $extrasub
9808 _ACEOF
9809 cat >>$CONFIG_STATUS <<\_ACEOF
9810 :t
9811 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9812 s,@configure_input@,$configure_input,;t t
9813 s,@srcdir@,$ac_srcdir,;t t
9814 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9815 s,@top_srcdir@,$ac_top_srcdir,;t t
9816 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9817 s,@builddir@,$ac_builddir,;t t
9818 s,@abs_builddir@,$ac_abs_builddir,;t t
9819 s,@top_builddir@,$ac_top_builddir,;t t
9820 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9821 s,@INSTALL@,$ac_INSTALL,;t t
9822 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9823 rm -f $tmp/stdin
9824 if test x"$ac_file" != x-; then
9825 mv $tmp/out $ac_file
9826 else
9827 cat $tmp/out
9828 rm -f $tmp/out
9829 fi
9830
9831 # Run the commands associated with the file.
9832 case $ac_file in
9833 tests/bison ) chmod +x tests/bison ;;
9834 esac
9835 done
9836 _ACEOF
9837 cat >>$CONFIG_STATUS <<\_ACEOF
9838
9839 #
9840 # CONFIG_HEADER section.
9841 #
9842
9843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9845 #
9846 # ac_d sets the value in "#define NAME VALUE" lines.
9847 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9848 ac_dB='[ ].*$,\1#\2'
9849 ac_dC=' '
9850 ac_dD=',;t'
9851 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9852 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9853 ac_uB='$,\1#\2define\3'
9854 ac_uC=' '
9855 ac_uD=',;t'
9856
9857 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9859 case $ac_file in
9860 - | *:- | *:-:* ) # input from stdin
9861 cat >$tmp/stdin
9862 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9864 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9866 * ) ac_file_in=$ac_file.in ;;
9867 esac
9868
9869 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9870 echo "$as_me: creating $ac_file" >&6;}
9871
9872 # First look for the input files in the build tree, otherwise in the
9873 # src tree.
9874 ac_file_inputs=`IFS=:
9875 for f in $ac_file_in; do
9876 case $f in
9877 -) echo $tmp/stdin ;;
9878 [\\/$]*)
9879 # Absolute (can't be DOS-style, as IFS=:)
9880 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9881 echo "$as_me: error: cannot find input file: $f" >&2;}
9882 { (exit 1); exit 1; }; }
9883 echo $f;;
9884 *) # Relative
9885 if test -f "$f"; then
9886 # Build tree
9887 echo $f
9888 elif test -f "$srcdir/$f"; then
9889 # Source tree
9890 echo $srcdir/$f
9891 else
9892 # /dev/null tree
9893 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9894 echo "$as_me: error: cannot find input file: $f" >&2;}
9895 { (exit 1); exit 1; }; }
9896 fi;;
9897 esac
9898 done` || { (exit 1); exit 1; }
9899 # Remove the trailing spaces.
9900 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9901
9902 _ACEOF
9903
9904 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9905 # `conftest.undefs', that substitutes the proper values into
9906 # config.h.in to produce config.h. The first handles `#define'
9907 # templates, and the second `#undef' templates.
9908 # And first: Protect against being on the right side of a sed subst in
9909 # config.status. Protect against being in an unquoted here document
9910 # in config.status.
9911 rm -f conftest.defines conftest.undefs
9912 # Using a here document instead of a string reduces the quoting nightmare.
9913 # Putting comments in sed scripts is not portable.
9914 #
9915 # `end' is used to avoid that the second main sed command (meant for
9916 # 0-ary CPP macros) applies to n-ary macro definitions.
9917 # See the Autoconf documentation for `clear'.
9918 cat >confdef2sed.sed <<\_ACEOF
9919 s/[\\&,]/\\&/g
9920 s,[\\$`],\\&,g
9921 t clear
9922 : clear
9923 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9924 t end
9925 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9926 : end
9927 _ACEOF
9928 # If some macros were called several times there might be several times
9929 # the same #defines, which is useless. Nevertheless, we may not want to
9930 # sort them, since we want the *last* AC-DEFINE to be honored.
9931 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9932 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9933 rm -f confdef2sed.sed
9934
9935 # This sed command replaces #undef with comments. This is necessary, for
9936 # example, in the case of _POSIX_SOURCE, which is predefined and required
9937 # on some systems where configure will not decide to define it.
9938 cat >>conftest.undefs <<\_ACEOF
9939 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9940 _ACEOF
9941
9942 # Break up conftest.defines because some shells have a limit on the size
9943 # of here documents, and old seds have small limits too (100 cmds).
9944 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9945 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9946 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9947 echo ' :' >>$CONFIG_STATUS
9948 rm -f conftest.tail
9949 while grep . conftest.defines >/dev/null
9950 do
9951 # Write a limited-size here document to $tmp/defines.sed.
9952 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9953 # Speed up: don't consider the non `#define' lines.
9954 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9955 # Work around the forget-to-reset-the-flag bug.
9956 echo 't clr' >>$CONFIG_STATUS
9957 echo ': clr' >>$CONFIG_STATUS
9958 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9959 echo 'CEOF
9960 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9961 rm -f $tmp/in
9962 mv $tmp/out $tmp/in
9963 ' >>$CONFIG_STATUS
9964 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9965 rm -f conftest.defines
9966 mv conftest.tail conftest.defines
9967 done
9968 rm -f conftest.defines
9969 echo ' fi # egrep' >>$CONFIG_STATUS
9970 echo >>$CONFIG_STATUS
9971
9972 # Break up conftest.undefs because some shells have a limit on the size
9973 # of here documents, and old seds have small limits too (100 cmds).
9974 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9975 rm -f conftest.tail
9976 while grep . conftest.undefs >/dev/null
9977 do
9978 # Write a limited-size here document to $tmp/undefs.sed.
9979 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9980 # Speed up: don't consider the non `#undef'
9981 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9982 # Work around the forget-to-reset-the-flag bug.
9983 echo 't clr' >>$CONFIG_STATUS
9984 echo ': clr' >>$CONFIG_STATUS
9985 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9986 echo 'CEOF
9987 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9988 rm -f $tmp/in
9989 mv $tmp/out $tmp/in
9990 ' >>$CONFIG_STATUS
9991 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9992 rm -f conftest.undefs
9993 mv conftest.tail conftest.undefs
9994 done
9995 rm -f conftest.undefs
9996
9997 cat >>$CONFIG_STATUS <<\_ACEOF
9998 # Let's still pretend it is `configure' which instantiates (i.e., don't
9999 # use $as_me), people would be surprised to read:
10000 # /* config.h. Generated by config.status. */
10001 if test x"$ac_file" = x-; then
10002 echo "/* Generated by configure. */" >$tmp/config.h
10003 else
10004 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10005 fi
10006 cat $tmp/in >>$tmp/config.h
10007 rm -f $tmp/in
10008 if test x"$ac_file" != x-; then
10009 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10010 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10011 echo "$as_me: $ac_file is unchanged" >&6;}
10012 else
10013 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10015 X"$ac_file" : 'X\(//\)[^/]' \| \
10016 X"$ac_file" : 'X\(//\)$' \| \
10017 X"$ac_file" : 'X\(/\)' \| \
10018 . : '\(.\)' 2>/dev/null ||
10019 echo X"$ac_file" |
10020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10022 /^X\(\/\/\)$/{ s//\1/; q; }
10023 /^X\(\/\).*/{ s//\1/; q; }
10024 s/.*/./; q'`
10025 { case "$ac_dir" in
10026 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10027 *) as_incr_dir=.;;
10028 esac
10029 as_dummy="$ac_dir"
10030 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10031 case $as_mkdir_dir in
10032 # Skip DOS drivespec
10033 ?:) as_incr_dir=$as_mkdir_dir ;;
10034 *)
10035 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10036 test -d "$as_incr_dir" ||
10037 mkdir "$as_incr_dir" ||
10038 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10039 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10040 { (exit 1); exit 1; }; }
10041 ;;
10042 esac
10043 done; }
10044
10045 rm -f $ac_file
10046 mv $tmp/config.h $ac_file
10047 fi
10048 else
10049 cat $tmp/config.h
10050 rm -f $tmp/config.h
10051 fi
10052 # Run the commands associated with the file.
10053 case $ac_file in
10054 config.h ) # update the timestamp
10055 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
10056 ;;
10057 esac
10058 done
10059 _ACEOF
10060 cat >>$CONFIG_STATUS <<\_ACEOF
10061
10062 #
10063 # CONFIG_COMMANDS section.
10064 #
10065 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10066 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10067 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10068 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10069 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10070 X"$ac_dest" : 'X\(//\)[^/]' \| \
10071 X"$ac_dest" : 'X\(//\)$' \| \
10072 X"$ac_dest" : 'X\(/\)' \| \
10073 . : '\(.\)' 2>/dev/null ||
10074 echo X"$ac_dest" |
10075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10077 /^X\(\/\/\)$/{ s//\1/; q; }
10078 /^X\(\/\).*/{ s//\1/; q; }
10079 s/.*/./; q'`
10080 ac_builddir=.
10081
10082 if test "$ac_dir" != .; then
10083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10084 # A "../" for each directory in $ac_dir_suffix.
10085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10086 else
10087 ac_dir_suffix= ac_top_builddir=
10088 fi
10089
10090 case $srcdir in
10091 .) # No --srcdir option. We are building in place.
10092 ac_srcdir=.
10093 if test -z "$ac_top_builddir"; then
10094 ac_top_srcdir=.
10095 else
10096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10097 fi ;;
10098 [\\/]* | ?:[\\/]* ) # Absolute path.
10099 ac_srcdir=$srcdir$ac_dir_suffix;
10100 ac_top_srcdir=$srcdir ;;
10101 *) # Relative path.
10102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10104 esac
10105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10106 # absolute.
10107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10108 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10111
10112
10113 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10114 echo "$as_me: executing $ac_dest commands" >&6;}
10115 case $ac_dest in
10116 tests/atconfig ) cat >tests/atconfig <<ATEOF
10117 # Configurable variable values for building test suites.
10118 # Generated by $0.
10119 # Copyright 2000, 2001 Free Software Foundation, Inc.
10120
10121 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
10122 at_testdir='tests'
10123 abs_builddir='$ac_abs_builddir'
10124 at_srcdir='$ac_srcdir'
10125 abs_srcdir='$ac_abs_srcdir'
10126 at_top_srcdir='$ac_top_srcdir'
10127 abs_top_srcdir='$ac_abs_top_srcdir'
10128 at_top_builddir='$ac_top_builddir'
10129 abs_top_builddir='$ac_abs_top_builddir'
10130
10131 AUTOTEST_PATH='tests'
10132
10133 SHELL=\${CONFIG_SHELL-'$SHELL'}
10134 ATEOF
10135 ;;
10136 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10137 # Strip MF so we end up with the name of the file.
10138 mf=`echo "$mf" | sed -e 's/:.*$//'`
10139 if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
10140 dirpart=`(dirname "$mf") 2>/dev/null ||
10141 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10142 X"$mf" : 'X\(//\)[^/]' \| \
10143 X"$mf" : 'X\(//\)$' \| \
10144 X"$mf" : 'X\(/\)' \| \
10145 . : '\(.\)' 2>/dev/null ||
10146 echo X"$mf" |
10147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10149 /^X\(\/\/\)$/{ s//\1/; q; }
10150 /^X\(\/\).*/{ s//\1/; q; }
10151 s/.*/./; q'`
10152 else
10153 dirpart=
10154 fi
10155 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10156 # Extract the definition of DEP_FILES from the Makefile without
10157 # running `make'.
10158 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10159 test -z "$DEPDIR" && continue
10160 # When using ansi2knr, U may be empty or an underscore; expand it
10161 U=`sed -n -e '/^U = / s///p' < "$mf"`
10162 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10163 # We invoke sed twice because it is the simplest approach to
10164 # changing $(DEPDIR) to its actual value in the expansion.
10165 for file in `sed -n -e '
10166 /^DEP_FILES = .*\\\\$/ {
10167 s/^DEP_FILES = //
10168 :loop
10169 s/\\\\$//
10170 p
10171 n
10172 /\\\\$/ b loop
10173 p
10174 }
10175 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10176 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10177 # Make sure the directory exists.
10178 test -f "$dirpart/$file" && continue
10179 fdir=`(dirname "$file") 2>/dev/null ||
10180 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10181 X"$file" : 'X\(//\)[^/]' \| \
10182 X"$file" : 'X\(//\)$' \| \
10183 X"$file" : 'X\(/\)' \| \
10184 . : '\(.\)' 2>/dev/null ||
10185 echo X"$file" |
10186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10188 /^X\(\/\/\)$/{ s//\1/; q; }
10189 /^X\(\/\).*/{ s//\1/; q; }
10190 s/.*/./; q'`
10191 { case $dirpart/$fdir in
10192 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10193 *) as_incr_dir=.;;
10194 esac
10195 as_dummy=$dirpart/$fdir
10196 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10197 case $as_mkdir_dir in
10198 # Skip DOS drivespec
10199 ?:) as_incr_dir=$as_mkdir_dir ;;
10200 *)
10201 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10202 test -d "$as_incr_dir" ||
10203 mkdir "$as_incr_dir" ||
10204 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10205 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10206 { (exit 1); exit 1; }; }
10207 ;;
10208 esac
10209 done; }
10210
10211 # echo "creating $dirpart/$file"
10212 echo '# dummy' > "$dirpart/$file"
10213 done
10214 done
10215 ;;
10216 default-1 ) for ac_file in $CONFIG_FILES; do
10217 # Support "outfile[:infile[:infile...]]"
10218 case "$ac_file" in
10219 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10220 esac
10221 # PO directories have a Makefile.in generated from Makefile.in.in.
10222 case "$ac_file" in */Makefile.in)
10223 # Adjust a relative srcdir.
10224 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10225 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10226 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10227 # In autoconf-2.13 it is called $ac_given_srcdir.
10228 # In autoconf-2.50 it is called $srcdir.
10229 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10230 case "$ac_given_srcdir" in
10231 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10232 /*) top_srcdir="$ac_given_srcdir" ;;
10233 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10234 esac
10235 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10236 rm -f "$ac_dir/POTFILES"
10237 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10238 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
10239 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10240 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10241 fi
10242 ;;
10243 esac
10244 done ;;
10245 esac
10246 done
10247 _ACEOF
10248
10249 cat >>$CONFIG_STATUS <<\_ACEOF
10250
10251 { (exit 0); exit 0; }
10252 _ACEOF
10253 chmod +x $CONFIG_STATUS
10254 ac_clean_files=$ac_clean_files_save
10255
10256
10257 # configure is writing to config.log, and then calls config.status.
10258 # config.status does its own redirection, appending to config.log.
10259 # Unfortunately, on DOS this fails, as config.log is still kept open
10260 # by configure, so config.status won't be able to write to it; its
10261 # output is simply discarded. So we exec the FD to /dev/null,
10262 # effectively closing config.log, so it can be properly (re)opened and
10263 # appended to by config.status. When coming back to configure, we
10264 # need to make the FD available again.
10265 if test "$no_create" != yes; then
10266 ac_cs_success=:
10267 exec 5>/dev/null
10268 $SHELL $CONFIG_STATUS || ac_cs_success=false
10269 exec 5>>config.log
10270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10271 # would make configure fail if this is the last instruction.
10272 $ac_cs_success || { (exit 1); exit 1; }
10273 fi
10274