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