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