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