Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / diffutils / configure
blobdaa6efbf189df39e75742d7abf9194062b055f56
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for GNU diffutils 2.8.1.
5 # Report bugs to <bug-gnu-utils@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 if mkdir -p . 2>/dev/null; then
12 as_mkdir_p=:
13 else
14 as_mkdir_p=false
18 if expr a : '\(a\)' >/dev/null 2>&1; then
19 as_expr=expr
20 else
21 as_expr=false
25 ## --------------------- ##
26 ## M4sh Initialization. ##
27 ## --------------------- ##
29 # Be Bourne compatible
30 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31 emulate sh
32 NULLCMD=:
33 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 set -o posix
37 # NLS nuisances.
38 # Support unset when possible.
39 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40 as_unset=unset
41 else
42 as_unset=false
45 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
46 { $as_unset LANG || test "${LANG+set}" != set; } ||
47 { LANG=C; export LANG; }
48 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
49 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
50 { LC_ALL=C; export LC_ALL; }
51 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
52 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
53 { LC_TIME=C; export LC_TIME; }
54 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
55 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
56 { LC_CTYPE=C; export LC_CTYPE; }
57 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
58 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
59 { LANGUAGE=C; export LANGUAGE; }
60 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
61 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
62 { LC_COLLATE=C; export LC_COLLATE; }
63 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
64 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
65 { LC_NUMERIC=C; export LC_NUMERIC; }
66 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
67 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
68 { LC_MESSAGES=C; export LC_MESSAGES; }
71 # Name of the executable.
72 as_me=`(basename "$0") 2>/dev/null ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74 X"$0" : 'X\(//\)$' \| \
75 X"$0" : 'X\(/\)$' \| \
76 . : '\(.\)' 2>/dev/null ||
77 echo X/"$0" |
78 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79 /^X\/\(\/\/\)$/{ s//\1/; q; }
80 /^X\/\(\/\).*/{ s//\1/; q; }
81 s/.*/./; q'`
83 # PATH needs CR, and LINENO needs CR and PATH.
84 # Avoid depending upon Character Ranges.
85 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
86 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
87 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
88 as_cr_digits='0123456789'
89 as_cr_alnum=$as_cr_Letters$as_cr_digits
91 # The user is always right.
92 if test "${PATH_SEPARATOR+set}" != set; then
93 echo "#! /bin/sh" >conftest.sh
94 echo "exit 0" >>conftest.sh
95 chmod +x conftest.sh
96 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
97 PATH_SEPARATOR=';'
98 else
99 PATH_SEPARATOR=:
101 rm -f conftest.sh
105 as_lineno_1=$LINENO
106 as_lineno_2=$LINENO
107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
108 test "x$as_lineno_1" != "x$as_lineno_2" &&
109 test "x$as_lineno_3" = "x$as_lineno_2" || {
110 # Find who we are. Look in the path if we contain no path at all
111 # relative or not.
112 case $0 in
113 *[\\/]* ) as_myself=$0 ;;
114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 for as_dir in $PATH
117 IFS=$as_save_IFS
118 test -z "$as_dir" && as_dir=.
119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 done
123 esac
124 # We did not find ourselves, most probably we were run as `sh COMMAND'
125 # in which case we are not to be found in the path.
126 if test "x$as_myself" = x; then
127 as_myself=$0
129 if test ! -f "$as_myself"; then
130 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
131 { (exit 1); exit 1; }; }
133 case $CONFIG_SHELL in
135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
136 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 IFS=$as_save_IFS
139 test -z "$as_dir" && as_dir=.
140 for as_base in sh bash ksh sh5; do
141 case $as_dir in
143 if ("$as_dir/$as_base" -c '
144 as_lineno_1=$LINENO
145 as_lineno_2=$LINENO
146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
147 test "x$as_lineno_1" != "x$as_lineno_2" &&
148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
157 esac
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
219 rm -f conf$$ conf$$.exe conf$$.file
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
230 # IFS
231 # We need space, tab and new line, in precisely that order.
232 as_nl='
234 IFS=" $as_nl"
236 # CDPATH.
237 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
240 # Name of the host.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
245 exec 6>&1
248 # Initializations.
250 ac_default_prefix=/usr/local
251 cross_compiling=no
252 subdirs=
253 MFLAGS=
254 MAKEFLAGS=
255 SHELL=${CONFIG_SHELL-/bin/sh}
257 # Maximum number of lines to put in a shell here document.
258 # This variable seems obsolete. It should probably be removed, and
259 # only ac_max_sed_lines should be used.
260 : ${ac_max_here_lines=38}
262 # Identity of this package.
263 PACKAGE_NAME='GNU diffutils'
264 PACKAGE_TARNAME='diffutils'
265 PACKAGE_VERSION='2.8.1'
266 PACKAGE_STRING='GNU diffutils 2.8.1'
267 PACKAGE_BUGREPORT='bug-gnu-utils@gnu.org'
269 ac_unique_file="src/diff.c"
270 # Factoring default headers for most tests.
271 ac_includes_default="\
272 #include <stdio.h>
273 #if HAVE_SYS_TYPES_H
274 # include <sys/types.h>
275 #endif
276 #if HAVE_SYS_STAT_H
277 # include <sys/stat.h>
278 #endif
279 #if STDC_HEADERS
280 # include <stdlib.h>
281 # include <stddef.h>
282 #else
283 # if HAVE_STDLIB_H
284 # include <stdlib.h>
285 # endif
286 #endif
287 #if HAVE_STRING_H
288 # if !STDC_HEADERS && HAVE_MEMORY_H
289 # include <memory.h>
290 # endif
291 # include <string.h>
292 #endif
293 #if HAVE_STRINGS_H
294 # include <strings.h>
295 #endif
296 #if HAVE_INTTYPES_H
297 # include <inttypes.h>
298 #else
299 # if HAVE_STDINT_H
300 # include <stdint.h>
301 # endif
302 #endif
303 #if HAVE_UNISTD_H
304 # include <unistd.h>
305 #endif"
308 # Initialize some variables set by options.
309 ac_init_help=
310 ac_init_version=false
311 # The variables have the same names as the options, with
312 # dashes changed to underlines.
313 cache_file=/dev/null
314 exec_prefix=NONE
315 no_create=
316 no_recursion=
317 prefix=NONE
318 program_prefix=NONE
319 program_suffix=NONE
320 program_transform_name=s,x,x,
321 silent=
322 site=
323 srcdir=
324 verbose=
325 x_includes=NONE
326 x_libraries=NONE
328 # Installation directory options.
329 # These are left unexpanded so users can "make install exec_prefix=/foo"
330 # and all the variables that are supposed to be based on exec_prefix
331 # by default will actually change.
332 # Use braces instead of parens because sh, perl, etc. also accept them.
333 bindir='${exec_prefix}/bin'
334 sbindir='${exec_prefix}/sbin'
335 libexecdir='${exec_prefix}/libexec'
336 datadir='${prefix}/share'
337 sysconfdir='${prefix}/etc'
338 sharedstatedir='${prefix}/com'
339 localstatedir='${prefix}/var'
340 libdir='${exec_prefix}/lib'
341 includedir='${prefix}/include'
342 oldincludedir='/usr/include'
343 infodir='${prefix}/info'
344 mandir='${prefix}/man'
346 ac_prev=
347 for ac_option
349 # If the previous option needs an argument, assign it.
350 if test -n "$ac_prev"; then
351 eval "$ac_prev=\$ac_option"
352 ac_prev=
353 continue
356 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
358 # Accept the important Cygnus configure options, so we can diagnose typos.
360 case $ac_option in
362 -bindir | --bindir | --bindi | --bind | --bin | --bi)
363 ac_prev=bindir ;;
364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
365 bindir=$ac_optarg ;;
367 -build | --build | --buil | --bui | --bu)
368 ac_prev=build_alias ;;
369 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
370 build_alias=$ac_optarg ;;
372 -cache-file | --cache-file | --cache-fil | --cache-fi \
373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
374 ac_prev=cache_file ;;
375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
377 cache_file=$ac_optarg ;;
379 --config-cache | -C)
380 cache_file=config.cache ;;
382 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
383 ac_prev=datadir ;;
384 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
385 | --da=*)
386 datadir=$ac_optarg ;;
388 -disable-* | --disable-*)
389 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393 { (exit 1); exit 1; }; }
394 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395 eval "enable_$ac_feature=no" ;;
397 -enable-* | --enable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 case $ac_option in
405 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "enable_$ac_feature='$ac_optarg'" ;;
410 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412 | --exec | --exe | --ex)
413 ac_prev=exec_prefix ;;
414 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416 | --exec=* | --exe=* | --ex=*)
417 exec_prefix=$ac_optarg ;;
419 -gas | --gas | --ga | --g)
420 # Obsolete; use --with-gas.
421 with_gas=yes ;;
423 -help | --help | --hel | --he | -h)
424 ac_init_help=long ;;
425 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
426 ac_init_help=recursive ;;
427 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
428 ac_init_help=short ;;
430 -host | --host | --hos | --ho)
431 ac_prev=host_alias ;;
432 -host=* | --host=* | --hos=* | --ho=*)
433 host_alias=$ac_optarg ;;
435 -includedir | --includedir | --includedi | --included | --include \
436 | --includ | --inclu | --incl | --inc)
437 ac_prev=includedir ;;
438 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
439 | --includ=* | --inclu=* | --incl=* | --inc=*)
440 includedir=$ac_optarg ;;
442 -infodir | --infodir | --infodi | --infod | --info | --inf)
443 ac_prev=infodir ;;
444 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445 infodir=$ac_optarg ;;
447 -libdir | --libdir | --libdi | --libd)
448 ac_prev=libdir ;;
449 -libdir=* | --libdir=* | --libdi=* | --libd=*)
450 libdir=$ac_optarg ;;
452 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
453 | --libexe | --libex | --libe)
454 ac_prev=libexecdir ;;
455 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
456 | --libexe=* | --libex=* | --libe=*)
457 libexecdir=$ac_optarg ;;
459 -localstatedir | --localstatedir | --localstatedi | --localstated \
460 | --localstate | --localstat | --localsta | --localst \
461 | --locals | --local | --loca | --loc | --lo)
462 ac_prev=localstatedir ;;
463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
464 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
465 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
466 localstatedir=$ac_optarg ;;
468 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
469 ac_prev=mandir ;;
470 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 mandir=$ac_optarg ;;
473 -nfp | --nfp | --nf)
474 # Obsolete; use --without-fp.
475 with_fp=no ;;
477 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478 | --no-cr | --no-c | -n)
479 no_create=yes ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
483 no_recursion=yes ;;
485 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
486 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
487 | --oldin | --oldi | --old | --ol | --o)
488 ac_prev=oldincludedir ;;
489 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
490 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
491 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
492 oldincludedir=$ac_optarg ;;
494 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
495 ac_prev=prefix ;;
496 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
497 prefix=$ac_optarg ;;
499 -program-prefix | --program-prefix | --program-prefi | --program-pref \
500 | --program-pre | --program-pr | --program-p)
501 ac_prev=program_prefix ;;
502 -program-prefix=* | --program-prefix=* | --program-prefi=* \
503 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
504 program_prefix=$ac_optarg ;;
506 -program-suffix | --program-suffix | --program-suffi | --program-suff \
507 | --program-suf | --program-su | --program-s)
508 ac_prev=program_suffix ;;
509 -program-suffix=* | --program-suffix=* | --program-suffi=* \
510 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
511 program_suffix=$ac_optarg ;;
513 -program-transform-name | --program-transform-name \
514 | --program-transform-nam | --program-transform-na \
515 | --program-transform-n | --program-transform- \
516 | --program-transform | --program-transfor \
517 | --program-transfo | --program-transf \
518 | --program-trans | --program-tran \
519 | --progr-tra | --program-tr | --program-t)
520 ac_prev=program_transform_name ;;
521 -program-transform-name=* | --program-transform-name=* \
522 | --program-transform-nam=* | --program-transform-na=* \
523 | --program-transform-n=* | --program-transform-=* \
524 | --program-transform=* | --program-transfor=* \
525 | --program-transfo=* | --program-transf=* \
526 | --program-trans=* | --program-tran=* \
527 | --progr-tra=* | --program-tr=* | --program-t=*)
528 program_transform_name=$ac_optarg ;;
530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
531 | -silent | --silent | --silen | --sile | --sil)
532 silent=yes ;;
534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
535 ac_prev=sbindir ;;
536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
537 | --sbi=* | --sb=*)
538 sbindir=$ac_optarg ;;
540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
542 | --sharedst | --shareds | --shared | --share | --shar \
543 | --sha | --sh)
544 ac_prev=sharedstatedir ;;
545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
548 | --sha=* | --sh=*)
549 sharedstatedir=$ac_optarg ;;
551 -site | --site | --sit)
552 ac_prev=site ;;
553 -site=* | --site=* | --sit=*)
554 site=$ac_optarg ;;
556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
557 ac_prev=srcdir ;;
558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
559 srcdir=$ac_optarg ;;
561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
562 | --syscon | --sysco | --sysc | --sys | --sy)
563 ac_prev=sysconfdir ;;
564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
566 sysconfdir=$ac_optarg ;;
568 -target | --target | --targe | --targ | --tar | --ta | --t)
569 ac_prev=target_alias ;;
570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
571 target_alias=$ac_optarg ;;
573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
574 verbose=yes ;;
576 -version | --version | --versio | --versi | --vers | -V)
577 ac_init_version=: ;;
579 -with-* | --with-*)
580 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
581 # Reject names that are not valid shell variable names.
582 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583 { echo "$as_me: error: invalid package name: $ac_package" >&2
584 { (exit 1); exit 1; }; }
585 ac_package=`echo $ac_package| sed 's/-/_/g'`
586 case $ac_option in
587 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
588 *) ac_optarg=yes ;;
589 esac
590 eval "with_$ac_package='$ac_optarg'" ;;
592 -without-* | --without-*)
593 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package | sed 's/-/_/g'`
599 eval "with_$ac_package=no" ;;
601 --x)
602 # Obsolete; use --with-x.
603 with_x=yes ;;
605 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
606 | --x-incl | --x-inc | --x-in | --x-i)
607 ac_prev=x_includes ;;
608 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
609 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
610 x_includes=$ac_optarg ;;
612 -x-libraries | --x-libraries | --x-librarie | --x-librari \
613 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
614 ac_prev=x_libraries ;;
615 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
616 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
617 x_libraries=$ac_optarg ;;
619 -*) { echo "$as_me: error: unrecognized option: $ac_option
620 Try \`$0 --help' for more information." >&2
621 { (exit 1); exit 1; }; }
624 *=*)
625 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
626 # Reject names that are not valid shell variable names.
627 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
628 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
629 { (exit 1); exit 1; }; }
630 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
631 eval "$ac_envvar='$ac_optarg'"
632 export $ac_envvar ;;
635 # FIXME: should be removed in autoconf 3.0.
636 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
637 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
638 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
639 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 esac
643 done
645 if test -n "$ac_prev"; then
646 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
647 { echo "$as_me: error: missing argument to $ac_option" >&2
648 { (exit 1); exit 1; }; }
651 # Be sure to have absolute paths.
652 for ac_var in exec_prefix prefix
654 eval ac_val=$`echo $ac_var`
655 case $ac_val in
656 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
657 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
658 { (exit 1); exit 1; }; };;
659 esac
660 done
662 # Be sure to have absolute paths.
663 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664 localstatedir libdir includedir oldincludedir infodir mandir
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
674 # There might be people who depend on the old broken behavior: `$host'
675 # used to hold the argument of --host etc.
676 # FIXME: To remove some day.
677 build=$build_alias
678 host=$host_alias
679 target=$target_alias
681 # FIXME: To remove some day.
682 if test "x$host_alias" != x; then
683 if test "x$build_alias" = x; then
684 cross_compiling=maybe
685 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
686 If a cross compiler is detected then cross compile mode will be used." >&2
687 elif test "x$build_alias" != "x$host_alias"; then
688 cross_compiling=yes
692 ac_tool_prefix=
693 test -n "$host_alias" && ac_tool_prefix=$host_alias-
695 test "$silent" = yes && exec 6>/dev/null
698 # Find the source files, if location was not specified.
699 if test -z "$srcdir"; then
700 ac_srcdir_defaulted=yes
701 # Try the directory containing this script, then its parent.
702 ac_confdir=`(dirname "$0") 2>/dev/null ||
703 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
704 X"$0" : 'X\(//\)[^/]' \| \
705 X"$0" : 'X\(//\)$' \| \
706 X"$0" : 'X\(/\)' \| \
707 . : '\(.\)' 2>/dev/null ||
708 echo X"$0" |
709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
711 /^X\(\/\/\)$/{ s//\1/; q; }
712 /^X\(\/\).*/{ s//\1/; q; }
713 s/.*/./; q'`
714 srcdir=$ac_confdir
715 if test ! -r $srcdir/$ac_unique_file; then
716 srcdir=..
718 else
719 ac_srcdir_defaulted=no
721 if test ! -r $srcdir/$ac_unique_file; then
722 if test "$ac_srcdir_defaulted" = yes; then
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
724 { (exit 1); exit 1; }; }
725 else
726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
727 { (exit 1); exit 1; }; }
730 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
731 ac_env_build_alias_set=${build_alias+set}
732 ac_env_build_alias_value=$build_alias
733 ac_cv_env_build_alias_set=${build_alias+set}
734 ac_cv_env_build_alias_value=$build_alias
735 ac_env_host_alias_set=${host_alias+set}
736 ac_env_host_alias_value=$host_alias
737 ac_cv_env_host_alias_set=${host_alias+set}
738 ac_cv_env_host_alias_value=$host_alias
739 ac_env_target_alias_set=${target_alias+set}
740 ac_env_target_alias_value=$target_alias
741 ac_cv_env_target_alias_set=${target_alias+set}
742 ac_cv_env_target_alias_value=$target_alias
743 ac_env_CC_set=${CC+set}
744 ac_env_CC_value=$CC
745 ac_cv_env_CC_set=${CC+set}
746 ac_cv_env_CC_value=$CC
747 ac_env_CFLAGS_set=${CFLAGS+set}
748 ac_env_CFLAGS_value=$CFLAGS
749 ac_cv_env_CFLAGS_set=${CFLAGS+set}
750 ac_cv_env_CFLAGS_value=$CFLAGS
751 ac_env_LDFLAGS_set=${LDFLAGS+set}
752 ac_env_LDFLAGS_value=$LDFLAGS
753 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
754 ac_cv_env_LDFLAGS_value=$LDFLAGS
755 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
756 ac_env_CPPFLAGS_value=$CPPFLAGS
757 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
759 ac_env_CPP_set=${CPP+set}
760 ac_env_CPP_value=$CPP
761 ac_cv_env_CPP_set=${CPP+set}
762 ac_cv_env_CPP_value=$CPP
765 # Report the --help message.
767 if test "$ac_init_help" = "long"; then
768 # Omit some internal or obsolete options to make the list less imposing.
769 # This message is too long to be a string in the A/UX 3.1 sh.
770 cat <<_ACEOF
771 \`configure' configures GNU diffutils 2.8.1 to adapt to many kinds of systems.
773 Usage: $0 [OPTION]... [VAR=VALUE]...
775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
776 VAR=VALUE. See below for descriptions of some of the useful variables.
778 Defaults for the options are specified in brackets.
780 Configuration:
781 -h, --help display this help and exit
782 --help=short display options specific to this package
783 --help=recursive display the short help of all the included packages
784 -V, --version display version information and exit
785 -q, --quiet, --silent do not print \`checking...' messages
786 --cache-file=FILE cache test results in FILE [disabled]
787 -C, --config-cache alias for \`--cache-file=config.cache'
788 -n, --no-create do not create output files
789 --srcdir=DIR find the sources in DIR [configure dir or \`..']
791 _ACEOF
793 cat <<_ACEOF
794 Installation directories:
795 --prefix=PREFIX install architecture-independent files in PREFIX
796 [$ac_default_prefix]
797 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
798 [PREFIX]
800 By default, \`make install' will install all the files in
801 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
802 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803 for instance \`--prefix=\$HOME'.
805 For better control, use the options below.
807 Fine tuning of the installation directories:
808 --bindir=DIR user executables [EPREFIX/bin]
809 --sbindir=DIR system admin executables [EPREFIX/sbin]
810 --libexecdir=DIR program executables [EPREFIX/libexec]
811 --datadir=DIR read-only architecture-independent data [PREFIX/share]
812 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
813 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
814 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
815 --libdir=DIR object code libraries [EPREFIX/lib]
816 --includedir=DIR C header files [PREFIX/include]
817 --oldincludedir=DIR C header files for non-gcc [/usr/include]
818 --infodir=DIR info documentation [PREFIX/info]
819 --mandir=DIR man documentation [PREFIX/man]
820 _ACEOF
822 cat <<\_ACEOF
824 Program names:
825 --program-prefix=PREFIX prepend PREFIX to installed program names
826 --program-suffix=SUFFIX append SUFFIX to installed program names
827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
829 System types:
830 --build=BUILD configure for building on BUILD [guessed]
831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
832 _ACEOF
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of GNU diffutils 2.8.1:";;
838 esac
839 cat <<\_ACEOF
841 Optional Features:
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --disable-dependency-tracking Speeds up one-time builds
845 --enable-dependency-tracking Do not reject slow dependency extractors
846 --disable-largefile omit support for large files
847 --disable-nls do not use Native Language Support
849 Optional Packages:
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-gnu-ld assume the C compiler uses GNU ld default=no
853 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
854 --without-libiconv-prefix don't search for libiconv in includedir and libdir
855 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
856 --without-libintl-prefix don't search for libintl in includedir and libdir
857 --without-included-regex don't compile regex; this is the default on
858 systems with version 2 of the GNU C library
859 (use with caution on other system)
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
873 Report bugs to <bug-gnu-utils@gnu.org>.
874 _ACEOF
877 if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
884 if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 else
889 ac_dir_suffix= ac_top_builddir=
892 case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 esac
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 # absolute.
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929 cd $ac_popdir
930 done
933 test -n "$ac_init_help" && exit 0
934 if $ac_init_version; then
935 cat <<\_ACEOF
936 GNU diffutils configure 2.8.1
937 generated by GNU Autoconf 2.53
939 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940 Free Software Foundation, Inc.
941 This configure script is free software; the Free Software Foundation
942 gives unlimited permission to copy, distribute and modify it.
943 _ACEOF
944 exit 0
946 exec 5>config.log
947 cat >&5 <<_ACEOF
948 This file contains any messages produced by compilers while
949 running configure, to aid debugging if configure makes a mistake.
951 It was created by GNU diffutils $as_me 2.8.1, which was
952 generated by GNU Autoconf 2.53. Invocation command line was
954 $ $0 $@
956 _ACEOF
958 cat <<_ASUNAME
959 ## --------- ##
960 ## Platform. ##
961 ## --------- ##
963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
980 _ASUNAME
982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 for as_dir in $PATH
985 IFS=$as_save_IFS
986 test -z "$as_dir" && as_dir=.
987 echo "PATH: $as_dir"
988 done
990 } >&5
992 cat >&5 <<_ACEOF
995 ## ----------- ##
996 ## Core tests. ##
997 ## ----------- ##
999 _ACEOF
1002 # Keep a trace of the command line.
1003 # Strip out --no-create and --no-recursion so they do not pile up.
1004 # Also quote any args containing shell meta-characters.
1005 ac_configure_args=
1006 ac_sep=
1007 for ac_arg
1009 case $ac_arg in
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n ) continue ;;
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 continue ;;
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017 esac
1018 case " $ac_configure_args " in
1019 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1020 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021 ac_sep=" " ;;
1022 esac
1023 # Get rid of the leading space.
1024 done
1026 # When interrupted or exit'd, cleanup temporary files, and complete
1027 # config.log. We remove comments because anyway the quotes in there
1028 # would cause problems or look ugly.
1029 # WARNING: Be sure not to use single quotes in there, as some shells,
1030 # such as our DU 5.0 friend, will then `close' the trap.
1031 trap 'exit_status=$?
1032 # Save into config.log some information that might help in debugging.
1034 echo
1035 cat <<\_ASBOX
1036 ## ---------------- ##
1037 ## Cache variables. ##
1038 ## ---------------- ##
1039 _ASBOX
1040 echo
1041 # The following way of writing the cache mishandles newlines in values,
1043 (set) 2>&1 |
1044 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1045 *ac_space=\ *)
1046 sed -n \
1047 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1051 sed -n \
1052 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1054 esac;
1056 echo
1057 if test -s confdefs.h; then
1058 cat <<\_ASBOX
1059 ## ----------- ##
1060 ## confdefs.h. ##
1061 ## ----------- ##
1062 _ASBOX
1063 echo
1064 sed "/^$/d" confdefs.h
1065 echo
1067 test "$ac_signal" != 0 &&
1068 echo "$as_me: caught signal $ac_signal"
1069 echo "$as_me: exit $exit_status"
1070 } >&5
1071 rm -f core core.* *.core &&
1072 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1073 exit $exit_status
1075 for ac_signal in 1 2 13 15; do
1076 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1077 done
1078 ac_signal=0
1080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1081 rm -rf conftest* confdefs.h
1082 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1083 echo >confdefs.h
1085 # Predefined preprocessor variables.
1087 cat >>confdefs.h <<_ACEOF
1088 #define PACKAGE_NAME "$PACKAGE_NAME"
1089 _ACEOF
1092 cat >>confdefs.h <<_ACEOF
1093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1094 _ACEOF
1097 cat >>confdefs.h <<_ACEOF
1098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1099 _ACEOF
1102 cat >>confdefs.h <<_ACEOF
1103 #define PACKAGE_STRING "$PACKAGE_STRING"
1104 _ACEOF
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1109 _ACEOF
1112 # Let the site file select an alternate cache file if it wants to.
1113 # Prefer explicitly selected file to automatically selected ones.
1114 if test -z "$CONFIG_SITE"; then
1115 if test "x$prefix" != xNONE; then
1116 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1117 else
1118 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1121 for ac_site_file in $CONFIG_SITE; do
1122 if test -r "$ac_site_file"; then
1123 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1124 echo "$as_me: loading site script $ac_site_file" >&6;}
1125 sed 's/^/| /' "$ac_site_file" >&5
1126 . "$ac_site_file"
1128 done
1130 if test -r "$cache_file"; then
1131 # Some versions of bash will fail to source /dev/null (special
1132 # files actually), so we avoid doing that.
1133 if test -f "$cache_file"; then
1134 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1135 echo "$as_me: loading cache $cache_file" >&6;}
1136 case $cache_file in
1137 [\\/]* | ?:[\\/]* ) . $cache_file;;
1138 *) . ./$cache_file;;
1139 esac
1141 else
1142 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1143 echo "$as_me: creating cache $cache_file" >&6;}
1144 >$cache_file
1147 # Check that the precious variables saved in the cache have kept the same
1148 # value.
1149 ac_cache_corrupted=false
1150 for ac_var in `(set) 2>&1 |
1151 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1153 eval ac_new_set=\$ac_env_${ac_var}_set
1154 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1155 eval ac_new_val="\$ac_env_${ac_var}_value"
1156 case $ac_old_set,$ac_new_set in
1157 set,)
1158 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1159 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1160 ac_cache_corrupted=: ;;
1161 ,set)
1162 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1163 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1164 ac_cache_corrupted=: ;;
1165 ,);;
1167 if test "x$ac_old_val" != "x$ac_new_val"; then
1168 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1169 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1170 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1171 echo "$as_me: former value: $ac_old_val" >&2;}
1172 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1173 echo "$as_me: current value: $ac_new_val" >&2;}
1174 ac_cache_corrupted=:
1175 fi;;
1176 esac
1177 # Pass precious variables to config.status.
1178 if test "$ac_new_set" = set; then
1179 case $ac_new_val in
1180 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1181 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1182 *) ac_arg=$ac_var=$ac_new_val ;;
1183 esac
1184 case " $ac_configure_args " in
1185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1186 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1187 esac
1189 done
1190 if $ac_cache_corrupted; then
1191 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1192 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1193 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1194 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1195 { (exit 1); exit 1; }; }
1198 ac_ext=c
1199 ac_cpp='$CPP $CPPFLAGS'
1200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1231 ac_aux_dir=
1232 for ac_dir in config $srcdir/config; do
1233 if test -f $ac_dir/install-sh; then
1234 ac_aux_dir=$ac_dir
1235 ac_install_sh="$ac_aux_dir/install-sh -c"
1236 break
1237 elif test -f $ac_dir/install.sh; then
1238 ac_aux_dir=$ac_dir
1239 ac_install_sh="$ac_aux_dir/install.sh -c"
1240 break
1241 elif test -f $ac_dir/shtool; then
1242 ac_aux_dir=$ac_dir
1243 ac_install_sh="$ac_aux_dir/shtool install -c"
1244 break
1246 done
1247 if test -z "$ac_aux_dir"; then
1248 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1249 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1250 { (exit 1); exit 1; }; }
1252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1254 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1256 # Add the stamp file to the list of files AC keeps track of,
1257 # along with our hook.
1258 ac_config_headers="$ac_config_headers config.h:config.hin"
1262 am__api_version="1.6"
1263 # Find a good install program. We prefer a C program (faster),
1264 # so one script is as good as another. But avoid the broken or
1265 # incompatible versions:
1266 # SysV /etc/install, /usr/sbin/install
1267 # SunOS /usr/etc/install
1268 # IRIX /sbin/install
1269 # AIX /bin/install
1270 # AmigaOS /C/install, which installs bootblocks on floppy discs
1271 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1274 # ./install, which can be erroneously created by make from ./install.sh.
1275 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1276 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1277 if test -z "$INSTALL"; then
1278 if test "${ac_cv_path_install+set}" = set; then
1279 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 else
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1284 IFS=$as_save_IFS
1285 test -z "$as_dir" && as_dir=.
1286 # Account for people who put trailing slashes in PATH elements.
1287 case $as_dir/ in
1288 ./ | .// | /cC/* | \
1289 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1290 /usr/ucb/* ) ;;
1292 # OSF1 and SCO ODT 3.0 have their own names for install.
1293 # Don't use installbsd from OSF since it installs stuff as root
1294 # by default.
1295 for ac_prog in ginstall scoinst install; do
1296 for ac_exec_ext in '' $ac_executable_extensions; do
1297 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1298 if test $ac_prog = install &&
1299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1300 # AIX install. It has an incompatible calling convention.
1302 elif test $ac_prog = install &&
1303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1304 # program-specific install script used by HP pwplus--don't use.
1306 else
1307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1308 break 3
1311 done
1312 done
1314 esac
1315 done
1319 if test "${ac_cv_path_install+set}" = set; then
1320 INSTALL=$ac_cv_path_install
1321 else
1322 # As a last resort, use the slow shell script. We don't cache a
1323 # path for INSTALL within a source directory, because that will
1324 # break other packages using the cache if that directory is
1325 # removed, or if the path is relative.
1326 INSTALL=$ac_install_sh
1329 echo "$as_me:$LINENO: result: $INSTALL" >&5
1330 echo "${ECHO_T}$INSTALL" >&6
1332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1333 # It thinks the first close brace ends the variable substitution.
1334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1340 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1341 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1342 # Just in case
1343 sleep 1
1344 echo timestamp > conftest.file
1345 # Do `set' in a subshell so we don't clobber the current shell's
1346 # arguments. Must try -L first in case configure is actually a
1347 # symlink; some systems play weird games with the mod time of symlinks
1348 # (eg FreeBSD returns the mod time of the symlink's containing
1349 # directory).
1350 if (
1351 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1352 if test "$*" = "X"; then
1353 # -L didn't work.
1354 set X `ls -t $srcdir/configure conftest.file`
1356 rm -f conftest.file
1357 if test "$*" != "X $srcdir/configure conftest.file" \
1358 && test "$*" != "X conftest.file $srcdir/configure"; then
1360 # If neither matched, then we have a broken ls. This can happen
1361 # if, for instance, CONFIG_SHELL is bash and it inherits a
1362 # broken ls alias from the environment. This has actually
1363 # happened. Such a system could not be considered "sane".
1364 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1365 alias in your environment" >&5
1366 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1367 alias in your environment" >&2;}
1368 { (exit 1); exit 1; }; }
1371 test "$2" = conftest.file
1373 then
1374 # Ok.
1376 else
1377 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1378 Check your system clock" >&5
1379 echo "$as_me: error: newly created file is older than distributed files!
1380 Check your system clock" >&2;}
1381 { (exit 1); exit 1; }; }
1383 echo "$as_me:$LINENO: result: yes" >&5
1384 echo "${ECHO_T}yes" >&6
1385 test "$program_prefix" != NONE &&
1386 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1387 # Use a double $ so make ignores it.
1388 test "$program_suffix" != NONE &&
1389 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1390 # Double any \ or $. echo might interpret backslashes.
1391 # By default was `s,x,x', remove it if useless.
1392 cat <<\_ACEOF >conftest.sed
1393 s/[\\$]/&&/g;s/;s,x,x,$//
1394 _ACEOF
1395 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1396 rm conftest.sed
1399 # expand $ac_aux_dir to an absolute path
1400 am_aux_dir=`cd $ac_aux_dir && pwd`
1402 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1403 # Use eval to expand $SHELL
1404 if eval "$MISSING --run true"; then
1405 am_missing_run="$MISSING --run "
1406 else
1407 am_missing_run=
1408 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1409 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1412 for ac_prog in gawk mawk nawk awk
1414 # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_AWK+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 if test -n "$AWK"; then
1422 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1423 else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_prog_AWK="$ac_prog"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1435 done
1436 done
1440 AWK=$ac_cv_prog_AWK
1441 if test -n "$AWK"; then
1442 echo "$as_me:$LINENO: result: $AWK" >&5
1443 echo "${ECHO_T}$AWK" >&6
1444 else
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1449 test -n "$AWK" && break
1450 done
1452 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1453 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1454 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 cat >conftest.make <<\_ACEOF
1459 all:
1460 @echo 'ac_maketemp="${MAKE}"'
1461 _ACEOF
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464 if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466 else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1469 rm -f conftest.make
1471 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 SET_MAKE=
1475 else
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 SET_MAKE="MAKE=${MAKE-make}"
1481 # test to see if srcdir already configured
1482 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1483 test -f $srcdir/config.status; then
1484 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1485 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1486 { (exit 1); exit 1; }; }
1489 # Define the identity of the package.
1490 PACKAGE=diffutils
1491 VERSION=2.8.1
1494 cat >>confdefs.h <<_ACEOF
1495 #define PACKAGE "$PACKAGE"
1496 _ACEOF
1499 cat >>confdefs.h <<_ACEOF
1500 #define VERSION "$VERSION"
1501 _ACEOF
1503 # Some tools Automake needs.
1505 ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1508 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1511 AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1514 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1517 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1520 AMTAR=${AMTAR-"${am_missing_run}tar"}
1522 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1524 # Installed binaries are usually stripped using `strip' when the user
1525 # run `make install-strip'. However `strip' might not be the right
1526 # tool to use in cross-compilation environments, therefore Automake
1527 # will honor the `STRIP' environment variable to overrule this program.
1528 if test "$cross_compiling" != no; then
1529 if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1531 set dummy ${ac_tool_prefix}strip; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_STRIP+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 if test -n "$STRIP"; then
1538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1551 done
1552 done
1556 STRIP=$ac_cv_prog_STRIP
1557 if test -n "$STRIP"; then
1558 echo "$as_me:$LINENO: result: $STRIP" >&5
1559 echo "${ECHO_T}$STRIP" >&6
1560 else
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1566 if test -z "$ac_cv_prog_STRIP"; then
1567 ac_ct_STRIP=$STRIP
1568 # Extract the first word of "strip", so it can be a program name with args.
1569 set dummy strip; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575 if test -n "$ac_ct_STRIP"; then
1576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_STRIP="strip"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1589 done
1590 done
1592 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1595 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1596 if test -n "$ac_ct_STRIP"; then
1597 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1598 echo "${ECHO_T}$ac_ct_STRIP" >&6
1599 else
1600 echo "$as_me:$LINENO: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1604 STRIP=$ac_ct_STRIP
1605 else
1606 STRIP="$ac_cv_prog_STRIP"
1610 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1612 # We need awk for the "check" target. The system "awk" is bad on
1613 # some platforms.
1618 for ac_prog in gawk mawk nawk awk
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_AWK+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$AWK"; then
1628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_AWK="$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1641 done
1642 done
1646 AWK=$ac_cv_prog_AWK
1647 if test -n "$AWK"; then
1648 echo "$as_me:$LINENO: result: $AWK" >&5
1649 echo "${ECHO_T}$AWK" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1655 test -n "$AWK" && break
1656 done
1658 ac_ext=c
1659 ac_cpp='$CPP $CPPFLAGS'
1660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683 break 2
1685 done
1686 done
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$ac_cv_prog_CC"; then
1701 ac_ct_CC=$CC
1702 # Extract the first word of "gcc", so it can be a program name with args.
1703 set dummy gcc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709 if test -n "$ac_ct_CC"; then
1710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1715 IFS=$as_save_IFS
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_ac_ct_CC="gcc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 break 2
1723 done
1724 done
1728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729 if test -n "$ac_ct_CC"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731 echo "${ECHO_T}$ac_ct_CC" >&6
1732 else
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 CC=$ac_ct_CC
1738 else
1739 CC="$ac_cv_prog_CC"
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1745 set dummy ${ac_tool_prefix}cc; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1757 IFS=$as_save_IFS
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="${ac_tool_prefix}cc"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 break 2
1765 done
1766 done
1770 CC=$ac_cv_prog_CC
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1774 else
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1780 if test -z "$ac_cv_prog_CC"; then
1781 ac_ct_CC=$CC
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 if test -n "$ac_ct_CC"; then
1790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1791 else
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793 for as_dir in $PATH
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_ac_ct_CC="cc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 break 2
1803 done
1804 done
1808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1809 if test -n "$ac_ct_CC"; then
1810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1811 echo "${ECHO_T}$ac_ct_CC" >&6
1812 else
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1817 CC=$ac_ct_CC
1818 else
1819 CC="$ac_cv_prog_CC"
1823 if test -z "$CC"; then
1824 # Extract the first word of "cc", so it can be a program name with args.
1825 set dummy cc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else
1834 ac_prog_rejected=no
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836 for as_dir in $PATH
1838 IFS=$as_save_IFS
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1843 ac_prog_rejected=yes
1844 continue
1846 ac_cv_prog_CC="cc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1850 done
1851 done
1853 if test $ac_prog_rejected = yes; then
1854 # We found a bogon in the path, so make sure we never use it.
1855 set dummy $ac_cv_prog_CC
1856 shift
1857 if test $# != 0; then
1858 # We chose a different compiler from the bogus one.
1859 # However, it has the same basename, so the bogon will be chosen
1860 # first if we set CC to just the basename; use the full file name.
1861 shift
1862 set dummy "$as_dir/$ac_word" ${1+"$@"}
1863 shift
1864 ac_cv_prog_CC="$@"
1869 CC=$ac_cv_prog_CC
1870 if test -n "$CC"; then
1871 echo "$as_me:$LINENO: result: $CC" >&5
1872 echo "${ECHO_T}$CC" >&6
1873 else
1874 echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1879 if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 for ac_prog in cl
1883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1904 done
1905 done
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911 echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1918 test -n "$CC" && break
1919 done
1921 if test -z "$CC"; then
1922 ac_ct_CC=$CC
1923 for ac_prog in cl
1925 # Extract the first word of "$ac_prog", so it can be a program name with args.
1926 set dummy $ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC="$ac_prog"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 break 2
1946 done
1947 done
1951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1955 else
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1960 test -n "$ac_ct_CC" && break
1961 done
1963 CC=$ac_ct_CC
1969 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1970 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1971 { (exit 1); exit 1; }; }
1973 # Provide some information about the compiler.
1974 echo "$as_me:$LINENO:" \
1975 "checking for C compiler version" >&5
1976 ac_compiler=`set X $ac_compile; echo $2`
1977 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1978 (eval $ac_compiler --version </dev/null >&5) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1983 (eval $ac_compiler -v </dev/null >&5) 2>&5
1984 ac_status=$?
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1988 (eval $ac_compiler -V </dev/null >&5) 2>&5
1989 ac_status=$?
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1993 cat >conftest.$ac_ext <<_ACEOF
1994 #line $LINENO "configure"
1995 #include "confdefs.h"
1997 #ifdef F77_DUMMY_MAIN
1998 # ifdef __cplusplus
1999 extern "C"
2000 # endif
2001 int F77_DUMMY_MAIN() { return 1; }
2002 #endif
2004 main ()
2008 return 0;
2010 _ACEOF
2011 ac_clean_files_save=$ac_clean_files
2012 ac_clean_files="$ac_clean_files a.out a.exe"
2013 # Try to create an executable without -o first, disregard a.out.
2014 # It will help us diagnose broken compilers, and finding out an intuition
2015 # of exeext.
2016 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2017 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2018 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2020 (eval $ac_link_default) 2>&5
2021 ac_status=$?
2022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023 (exit $ac_status); }; then
2024 # Find the output, starting from the most likely. This scheme is
2025 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2026 # resort.
2028 # Be careful to initialize this variable, since it used to be cached.
2029 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030 ac_cv_exeext=
2031 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2032 ls a.out conftest 2>/dev/null;
2033 ls a.* conftest.* 2>/dev/null`; do
2034 case $ac_file in
2035 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2036 a.out ) # We found the default executable, but exeext='' is most
2037 # certainly right.
2038 break;;
2039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2041 export ac_cv_exeext
2042 break;;
2043 * ) break;;
2044 esac
2045 done
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 cat conftest.$ac_ext >&5
2049 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2050 echo "$as_me: error: C compiler cannot create executables" >&2;}
2051 { (exit 77); exit 77; }; }
2054 ac_exeext=$ac_cv_exeext
2055 echo "$as_me:$LINENO: result: $ac_file" >&5
2056 echo "${ECHO_T}$ac_file" >&6
2058 # Check the compiler produces executables we can run. If not, either
2059 # the compiler is broken, or we cross compile.
2060 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2061 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2062 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2063 # If not cross compiling, check that we can run a simple program.
2064 if test "$cross_compiling" != yes; then
2065 if { ac_try='./$ac_file'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 cross_compiling=no
2072 else
2073 if test "$cross_compiling" = maybe; then
2074 cross_compiling=yes
2075 else
2076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2077 If you meant to cross compile, use \`--host'." >&5
2078 echo "$as_me: error: cannot run C compiled programs.
2079 If you meant to cross compile, use \`--host'." >&2;}
2080 { (exit 1); exit 1; }; }
2084 echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6
2087 rm -f a.out a.exe conftest$ac_cv_exeext
2088 ac_clean_files=$ac_clean_files_save
2089 # Check the compiler produces executables we can run. If not, either
2090 # the compiler is broken, or we cross compile.
2091 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2092 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2093 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2094 echo "${ECHO_T}$cross_compiling" >&6
2096 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2097 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2099 (eval $ac_link) 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; then
2103 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2104 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2105 # work properly (i.e., refer to `conftest.exe'), while it won't with
2106 # `rm'.
2107 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2108 case $ac_file in
2109 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2110 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2111 export ac_cv_exeext
2112 break;;
2113 * ) break;;
2114 esac
2115 done
2116 else
2117 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2118 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2119 { (exit 1); exit 1; }; }
2122 rm -f conftest$ac_cv_exeext
2123 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2124 echo "${ECHO_T}$ac_cv_exeext" >&6
2126 rm -f conftest.$ac_ext
2127 EXEEXT=$ac_cv_exeext
2128 ac_exeext=$EXEEXT
2129 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2130 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2131 if test "${ac_cv_objext+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 cat >conftest.$ac_ext <<_ACEOF
2135 #line $LINENO "configure"
2136 #include "confdefs.h"
2138 #ifdef F77_DUMMY_MAIN
2139 # ifdef __cplusplus
2140 extern "C"
2141 # endif
2142 int F77_DUMMY_MAIN() { return 1; }
2143 #endif
2145 main ()
2149 return 0;
2151 _ACEOF
2152 rm -f conftest.o conftest.obj
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154 (eval $ac_compile) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; then
2158 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2161 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2162 break;;
2163 esac
2164 done
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2168 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2169 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2170 { (exit 1); exit 1; }; }
2173 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2175 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2176 echo "${ECHO_T}$ac_cv_objext" >&6
2177 OBJEXT=$ac_cv_objext
2178 ac_objext=$OBJEXT
2179 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2180 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2181 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2186 #include "confdefs.h"
2188 #ifdef F77_DUMMY_MAIN
2189 # ifdef __cplusplus
2190 extern "C"
2191 # endif
2192 int F77_DUMMY_MAIN() { return 1; }
2193 #endif
2195 main ()
2197 #ifndef __GNUC__
2198 choke me
2199 #endif
2202 return 0;
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_compiler_gnu=yes
2218 else
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 ac_compiler_gnu=no
2223 rm -f conftest.$ac_objext conftest.$ac_ext
2224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2227 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2229 GCC=`test $ac_compiler_gnu = yes && echo yes`
2230 ac_test_CFLAGS=${CFLAGS+set}
2231 ac_save_CFLAGS=$CFLAGS
2232 CFLAGS="-g"
2233 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2234 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2235 if test "${ac_cv_prog_cc_g+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 #include "confdefs.h"
2242 #ifdef F77_DUMMY_MAIN
2243 # ifdef __cplusplus
2244 extern "C"
2245 # endif
2246 int F77_DUMMY_MAIN() { return 1; }
2247 #endif
2249 main ()
2253 return 0;
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258 (eval $ac_compile) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -s conftest.$ac_objext'
2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; }; then
2268 ac_cv_prog_cc_g=yes
2269 else
2270 echo "$as_me: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2272 ac_cv_prog_cc_g=no
2274 rm -f conftest.$ac_objext conftest.$ac_ext
2276 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2277 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2278 if test "$ac_test_CFLAGS" = set; then
2279 CFLAGS=$ac_save_CFLAGS
2280 elif test $ac_cv_prog_cc_g = yes; then
2281 if test "$GCC" = yes; then
2282 CFLAGS="-g -O2"
2283 else
2284 CFLAGS="-g"
2286 else
2287 if test "$GCC" = yes; then
2288 CFLAGS="-O2"
2289 else
2290 CFLAGS=
2293 # Some people use a C++ compiler to compile C. Since we use `exit',
2294 # in C++ we need to declare it. In case someone uses the same compiler
2295 # for both compiling C and C++ we need to have the C++ compiler decide
2296 # the declaration of exit, since it's the most demanding environment.
2297 cat >conftest.$ac_ext <<_ACEOF
2298 #ifndef __cplusplus
2299 choke me
2300 #endif
2301 _ACEOF
2302 rm -f conftest.$ac_objext
2303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304 (eval $ac_compile) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -s conftest.$ac_objext'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; }; then
2314 for ac_declaration in \
2316 '#include <stdlib.h>' \
2317 'extern "C" void std::exit (int) throw (); using std::exit;' \
2318 'extern "C" void std::exit (int); using std::exit;' \
2319 'extern "C" void exit (int) throw ();' \
2320 'extern "C" void exit (int);' \
2321 'void exit (int);'
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326 #include <stdlib.h>
2327 $ac_declaration
2328 #ifdef F77_DUMMY_MAIN
2329 # ifdef __cplusplus
2330 extern "C"
2331 # endif
2332 int F77_DUMMY_MAIN() { return 1; }
2333 #endif
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>&5
2345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); } &&
2348 { ac_try='test -s conftest.$ac_objext'
2349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 (eval $ac_try) 2>&5
2351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }; }; then
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 continue
2360 rm -f conftest.$ac_objext conftest.$ac_ext
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line $LINENO "configure"
2363 #include "confdefs.h"
2364 $ac_declaration
2365 #ifdef F77_DUMMY_MAIN
2366 # ifdef __cplusplus
2367 extern "C"
2368 # endif
2369 int F77_DUMMY_MAIN() { return 1; }
2370 #endif
2372 main ()
2374 exit (42);
2376 return 0;
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 break
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2397 done
2398 rm -f conftest*
2399 if test -n "$ac_declaration"; then
2400 echo '#ifdef __cplusplus' >>confdefs.h
2401 echo $ac_declaration >>confdefs.h
2402 echo '#endif' >>confdefs.h
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 ac_ext=c
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415 rm -f .deps 2>/dev/null
2416 mkdir .deps 2>/dev/null
2417 if test -d .deps; then
2418 DEPDIR=.deps
2419 else
2420 # MS-DOS does not allow filenames that begin with a dot.
2421 DEPDIR=_deps
2423 rmdir .deps 2>/dev/null
2426 ac_config_commands="$ac_config_commands depfiles"
2429 am_make=${MAKE-make}
2430 cat > confinc << 'END'
2431 doit:
2432 @echo done
2434 # If we don't find an include directive, just comment out the code.
2435 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2436 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2437 am__include="#"
2438 am__quote=
2439 _am_result=none
2440 # First try GNU make style include.
2441 echo "include confinc" > confmf
2442 # We grep out `Entering directory' and `Leaving directory'
2443 # messages which can occur if `w' ends up in MAKEFLAGS.
2444 # In particular we don't look at `^make:' because GNU make might
2445 # be invoked under some other name (usually "gmake"), in which
2446 # case it prints its new name instead of `make'.
2447 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2448 am__include=include
2449 am__quote=
2450 _am_result=GNU
2452 # Now try BSD make style include.
2453 if test "$am__include" = "#"; then
2454 echo '.include "confinc"' > confmf
2455 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2456 am__include=.include
2457 am__quote="\""
2458 _am_result=BSD
2463 echo "$as_me:$LINENO: result: $_am_result" >&5
2464 echo "${ECHO_T}$_am_result" >&6
2465 rm -f confinc confmf
2467 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2468 if test "${enable_dependency_tracking+set}" = set; then
2469 enableval="$enable_dependency_tracking"
2472 if test "x$enable_dependency_tracking" != xno; then
2473 am_depcomp="$ac_aux_dir/depcomp"
2474 AMDEPBACKSLASH='\'
2478 if test "x$enable_dependency_tracking" != xno; then
2479 AMDEP_TRUE=
2480 AMDEP_FALSE='#'
2481 else
2482 AMDEP_TRUE='#'
2483 AMDEP_FALSE=
2489 depcc="$CC" am_compiler_list=
2491 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2497 # We make a subdir and do the tests there. Otherwise we can end up
2498 # making bogus files that we don't know about and never remove. For
2499 # instance it was reported that on HP-UX the gcc test will end up
2500 # making a dummy file named `D' -- because `-MD' means `put the output
2501 # in D'.
2502 mkdir conftest.dir
2503 # Copy depcomp to subdir because otherwise we won't find it if we're
2504 # using a relative directory.
2505 cp "$am_depcomp" conftest.dir
2506 cd conftest.dir
2508 am_cv_CC_dependencies_compiler_type=none
2509 if test "$am_compiler_list" = ""; then
2510 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2512 for depmode in $am_compiler_list; do
2513 # We need to recreate these files for each test, as the compiler may
2514 # overwrite some of them when testing with obscure command lines.
2515 # This happens at least with the AIX C compiler.
2516 echo '#include "conftest.h"' > conftest.c
2517 echo 'int i;' > conftest.h
2518 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2520 case $depmode in
2521 nosideeffect)
2522 # after this tag, mechanisms are not by side-effect, so they'll
2523 # only be used when explicitly requested
2524 if test "x$enable_dependency_tracking" = xyes; then
2525 continue
2526 else
2527 break
2530 none) break ;;
2531 esac
2532 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2533 # mode. It turns out that the SunPro C++ compiler does not properly
2534 # handle `-M -o', and we need to detect this.
2535 if depmode=$depmode \
2536 source=conftest.c object=conftest.o \
2537 depfile=conftest.Po tmpdepfile=conftest.TPo \
2538 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2539 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2540 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2541 am_cv_CC_dependencies_compiler_type=$depmode
2542 break
2544 done
2546 cd ..
2547 rm -rf conftest.dir
2548 else
2549 am_cv_CC_dependencies_compiler_type=none
2553 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2554 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2560 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2561 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2562 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 ac_check_lib_save_LIBS=$LIBS
2566 LIBS="-lcposix $LIBS"
2567 cat >conftest.$ac_ext <<_ACEOF
2568 #line $LINENO "configure"
2569 #include "confdefs.h"
2571 /* Override any gcc2 internal prototype to avoid an error. */
2572 #ifdef __cplusplus
2573 extern "C"
2574 #endif
2575 /* We use char because int might match the return type of a gcc2
2576 builtin and then its argument prototype would still apply. */
2577 char strerror ();
2578 #ifdef F77_DUMMY_MAIN
2579 # ifdef __cplusplus
2580 extern "C"
2581 # endif
2582 int F77_DUMMY_MAIN() { return 1; }
2583 #endif
2585 main ()
2587 strerror ();
2589 return 0;
2591 _ACEOF
2592 rm -f conftest.$ac_objext conftest$ac_exeext
2593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2594 (eval $ac_link) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -s conftest$ac_exeext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_lib_cposix_strerror=yes
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 ac_cv_lib_cposix_strerror=no
2610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2611 LIBS=$ac_check_lib_save_LIBS
2613 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2614 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2615 if test $ac_cv_lib_cposix_strerror = yes; then
2616 LIBS="$LIBS -lcposix"
2624 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2625 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2626 if test "${am_cv_prog_cc_stdc+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 am_cv_prog_cc_stdc=no
2630 ac_save_CC="$CC"
2631 # Don't try gcc -ansi; that turns off useful extensions and
2632 # breaks some systems' header files.
2633 # AIX -qlanglvl=ansi
2634 # Ultrix and OSF/1 -std1
2635 # HP-UX 10.20 and later -Ae
2636 # HP-UX older versions -Aa -D_HPUX_SOURCE
2637 # SVR4 -Xc -D__EXTENSIONS__
2638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2640 CC="$ac_save_CC $ac_arg"
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2644 #include <stdarg.h>
2645 #include <stdio.h>
2646 #include <sys/types.h>
2647 #include <sys/stat.h>
2648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2649 struct buf { int x; };
2650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651 static char *e (p, i)
2652 char **p;
2653 int i;
2655 return p[i];
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2659 char *s;
2660 va_list v;
2661 va_start (v,p);
2662 s = g (p, va_arg (v,int));
2663 va_end (v);
2664 return s;
2666 int test (int i, double x);
2667 struct s1 {int (*f) (int a);};
2668 struct s2 {int (*f) (double a);};
2669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 int argc;
2671 char **argv;
2673 #ifdef F77_DUMMY_MAIN
2674 # ifdef __cplusplus
2675 extern "C"
2676 # endif
2677 int F77_DUMMY_MAIN() { return 1; }
2678 #endif
2680 main ()
2683 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2686 return 0;
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 am_cv_prog_cc_stdc="$ac_arg"; break
2702 else
2703 echo "$as_me: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2706 rm -f conftest.$ac_objext conftest.$ac_ext
2707 done
2708 CC="$ac_save_CC"
2712 if test -z "$am_cv_prog_cc_stdc"; then
2713 echo "$as_me:$LINENO: result: none needed" >&5
2714 echo "${ECHO_T}none needed" >&6
2715 else
2716 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2717 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2719 case "x$am_cv_prog_cc_stdc" in
2720 x|xno) ;;
2721 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2722 esac
2724 ac_ext=c
2725 ac_cpp='$CPP $CPPFLAGS'
2726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2730 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2731 # On Suns, sometimes $CPP names a directory.
2732 if test -n "$CPP" && test -d "$CPP"; then
2733 CPP=
2735 if test -z "$CPP"; then
2736 if test "${ac_cv_prog_CPP+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 # Double quotes because CPP needs to be expanded
2740 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2742 ac_preproc_ok=false
2743 for ac_c_preproc_warn_flag in '' yes
2745 # Use a header file that comes with gcc, so configuring glibc
2746 # with a fresh cross-compiler works.
2747 # On the NeXT, cc -E runs the code through the compiler's parser,
2748 # not just through cpp. "Syntax error" is here to catch this case.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <assert.h>
2753 Syntax error
2754 _ACEOF
2755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 ac_status=$?
2758 egrep -v '^ *\+' conftest.er1 >conftest.err
2759 rm -f conftest.er1
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } >/dev/null; then
2763 if test -s conftest.err; then
2764 ac_cpp_err=$ac_c_preproc_warn_flag
2765 else
2766 ac_cpp_err=
2768 else
2769 ac_cpp_err=yes
2771 if test -z "$ac_cpp_err"; then
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 # Broken: fails on valid input.
2777 continue
2779 rm -f conftest.err conftest.$ac_ext
2781 # OK, works on sane cases. Now check whether non-existent headers
2782 # can be detected and how.
2783 cat >conftest.$ac_ext <<_ACEOF
2784 #line $LINENO "configure"
2785 #include "confdefs.h"
2786 #include <ac_nonexistent.h>
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790 ac_status=$?
2791 egrep -v '^ *\+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2798 else
2799 ac_cpp_err=
2801 else
2802 ac_cpp_err=yes
2804 if test -z "$ac_cpp_err"; then
2805 # Broken: success on invalid input.
2806 continue
2807 else
2808 echo "$as_me: failed program was:" >&5
2809 cat conftest.$ac_ext >&5
2810 # Passes both tests.
2811 ac_preproc_ok=:
2812 break
2814 rm -f conftest.err conftest.$ac_ext
2816 done
2817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2818 rm -f conftest.err conftest.$ac_ext
2819 if $ac_preproc_ok; then
2820 break
2823 done
2824 ac_cv_prog_CPP=$CPP
2827 CPP=$ac_cv_prog_CPP
2828 else
2829 ac_cv_prog_CPP=$CPP
2831 echo "$as_me:$LINENO: result: $CPP" >&5
2832 echo "${ECHO_T}$CPP" >&6
2833 ac_preproc_ok=false
2834 for ac_c_preproc_warn_flag in '' yes
2836 # Use a header file that comes with gcc, so configuring glibc
2837 # with a fresh cross-compiler works.
2838 # On the NeXT, cc -E runs the code through the compiler's parser,
2839 # not just through cpp. "Syntax error" is here to catch this case.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 #include "confdefs.h"
2843 #include <assert.h>
2844 Syntax error
2845 _ACEOF
2846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2848 ac_status=$?
2849 egrep -v '^ *\+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } >/dev/null; then
2854 if test -s conftest.err; then
2855 ac_cpp_err=$ac_c_preproc_warn_flag
2856 else
2857 ac_cpp_err=
2859 else
2860 ac_cpp_err=yes
2862 if test -z "$ac_cpp_err"; then
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 # Broken: fails on valid input.
2868 continue
2870 rm -f conftest.err conftest.$ac_ext
2872 # OK, works on sane cases. Now check whether non-existent headers
2873 # can be detected and how.
2874 cat >conftest.$ac_ext <<_ACEOF
2875 #line $LINENO "configure"
2876 #include "confdefs.h"
2877 #include <ac_nonexistent.h>
2878 _ACEOF
2879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 ac_status=$?
2882 egrep -v '^ *\+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } >/dev/null; then
2887 if test -s conftest.err; then
2888 ac_cpp_err=$ac_c_preproc_warn_flag
2889 else
2890 ac_cpp_err=
2892 else
2893 ac_cpp_err=yes
2895 if test -z "$ac_cpp_err"; then
2896 # Broken: success on invalid input.
2897 continue
2898 else
2899 echo "$as_me: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2901 # Passes both tests.
2902 ac_preproc_ok=:
2903 break
2905 rm -f conftest.err conftest.$ac_ext
2907 done
2908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909 rm -f conftest.err conftest.$ac_ext
2910 if $ac_preproc_ok; then
2912 else
2913 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2914 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2915 { (exit 1); exit 1; }; }
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
2927 # Find a good install program. We prefer a C program (faster),
2928 # so one script is as good as another. But avoid the broken or
2929 # incompatible versions:
2930 # SysV /etc/install, /usr/sbin/install
2931 # SunOS /usr/etc/install
2932 # IRIX /sbin/install
2933 # AIX /bin/install
2934 # AmigaOS /C/install, which installs bootblocks on floppy discs
2935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2938 # ./install, which can be erroneously created by make from ./install.sh.
2939 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2941 if test -z "$INSTALL"; then
2942 if test "${ac_cv_path_install+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 # Account for people who put trailing slashes in PATH elements.
2951 case $as_dir/ in
2952 ./ | .// | /cC/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 /usr/ucb/* ) ;;
2956 # OSF1 and SCO ODT 3.0 have their own names for install.
2957 # Don't use installbsd from OSF since it installs stuff as root
2958 # by default.
2959 for ac_prog in ginstall scoinst install; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2962 if test $ac_prog = install &&
2963 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2970 else
2971 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2972 break 3
2975 done
2976 done
2978 esac
2979 done
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL=$ac_cv_path_install
2985 else
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL=$ac_install_sh
2993 echo "$as_me:$LINENO: result: $INSTALL" >&5
2994 echo "${ECHO_T}$INSTALL" >&6
2996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997 # It thinks the first close brace ends the variable substitution.
2998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3007 echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009 if test "${ac_cv_prog_RANLIB+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012 if test -n "$RANLIB"; then
3013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3026 done
3027 done
3031 RANLIB=$ac_cv_prog_RANLIB
3032 if test -n "$RANLIB"; then
3033 echo "$as_me:$LINENO: result: $RANLIB" >&5
3034 echo "${ECHO_T}$RANLIB" >&6
3035 else
3036 echo "$as_me:$LINENO: result: no" >&5
3037 echo "${ECHO_T}no" >&6
3041 if test -z "$ac_cv_prog_RANLIB"; then
3042 ac_ct_RANLIB=$RANLIB
3043 # Extract the first word of "ranlib", so it can be a program name with args.
3044 set dummy ranlib; ac_word=$2
3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050 if test -n "$ac_ct_RANLIB"; then
3051 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_ac_ct_RANLIB="ranlib"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3064 done
3065 done
3067 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3070 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3071 if test -n "$ac_ct_RANLIB"; then
3072 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3073 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6
3079 RANLIB=$ac_ct_RANLIB
3080 else
3081 RANLIB="$ac_cv_prog_RANLIB"
3086 # Make sure that _GNU_SOURCE is defined for all subsequent
3087 # configure-time compile tests.
3088 # This definition must be emitted (into confdefs.h) before any
3089 # test that involves compilation.
3090 cat >>confdefs.h <<\EOF
3091 #ifndef _GNU_SOURCE
3092 # define _GNU_SOURCE
3093 #endif
3096 # Emit this code into config.h.in.
3097 # The ifndef is to avoid redefinition warnings.
3102 cat >>confdefs.h <<\_ACEOF
3103 #define __EXTENSIONS__ 1
3104 _ACEOF
3106 # Check whether --enable-largefile or --disable-largefile was given.
3107 if test "${enable_largefile+set}" = set; then
3108 enableval="$enable_largefile"
3111 if test "$enable_largefile" != no; then
3113 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3114 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3115 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 ac_cv_sys_largefile_CC=no
3119 if test "$GCC" != yes; then
3120 ac_save_CC=$CC
3121 while :; do
3122 # IRIX 6.2 and later do not support large files by default,
3123 # so use the C compiler's -n32 option if that helps.
3124 cat >conftest.$ac_ext <<_ACEOF
3125 #line $LINENO "configure"
3126 #include "confdefs.h"
3127 #include <sys/types.h>
3128 /* Check that off_t can represent 2**63 - 1 correctly.
3129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3130 since some C++ compilers masquerading as C compilers
3131 incorrectly reject 9223372036854775807. */
3132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3134 && LARGE_OFF_T % 2147483647 == 1)
3135 ? 1 : -1];
3136 #ifdef F77_DUMMY_MAIN
3137 # ifdef __cplusplus
3138 extern "C"
3139 # endif
3140 int F77_DUMMY_MAIN() { return 1; }
3141 #endif
3143 main ()
3147 return 0;
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 (eval $ac_compile) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -s conftest.$ac_objext'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 break
3163 else
3164 echo "$as_me: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3167 rm -f conftest.$ac_objext
3168 CC="$CC -n32"
3169 rm -f conftest.$ac_objext
3170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3171 (eval $ac_compile) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 (eval $ac_try) 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
3181 ac_cv_sys_largefile_CC=' -n32'; break
3182 else
3183 echo "$as_me: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 rm -f conftest.$ac_objext
3187 break
3188 done
3189 CC=$ac_save_CC
3190 rm -f conftest.$ac_ext
3193 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3194 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3195 if test "$ac_cv_sys_largefile_CC" != no; then
3196 CC=$CC$ac_cv_sys_largefile_CC
3199 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3200 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3201 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204 while :; do
3205 ac_cv_sys_file_offset_bits=no
3206 cat >conftest.$ac_ext <<_ACEOF
3207 #line $LINENO "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 /* Check that off_t can represent 2**63 - 1 correctly.
3211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3212 since some C++ compilers masquerading as C compilers
3213 incorrectly reject 9223372036854775807. */
3214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3216 && LARGE_OFF_T % 2147483647 == 1)
3217 ? 1 : -1];
3218 #ifdef F77_DUMMY_MAIN
3219 # ifdef __cplusplus
3220 extern "C"
3221 # endif
3222 int F77_DUMMY_MAIN() { return 1; }
3223 #endif
3225 main ()
3229 return 0;
3231 _ACEOF
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -s conftest.$ac_objext'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 (eval $ac_try) 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
3244 break
3245 else
3246 echo "$as_me: failed program was:" >&5
3247 cat conftest.$ac_ext >&5
3249 rm -f conftest.$ac_objext conftest.$ac_ext
3250 cat >conftest.$ac_ext <<_ACEOF
3251 #line $LINENO "configure"
3252 #include "confdefs.h"
3253 #define _FILE_OFFSET_BITS 64
3254 #include <sys/types.h>
3255 /* Check that off_t can represent 2**63 - 1 correctly.
3256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3257 since some C++ compilers masquerading as C compilers
3258 incorrectly reject 9223372036854775807. */
3259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3261 && LARGE_OFF_T % 2147483647 == 1)
3262 ? 1 : -1];
3263 #ifdef F77_DUMMY_MAIN
3264 # ifdef __cplusplus
3265 extern "C"
3266 # endif
3267 int F77_DUMMY_MAIN() { return 1; }
3268 #endif
3270 main ()
3274 return 0;
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 ac_cv_sys_file_offset_bits=64; break
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3295 break
3296 done
3298 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3299 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3300 if test "$ac_cv_sys_file_offset_bits" != no; then
3302 cat >>confdefs.h <<_ACEOF
3303 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3304 _ACEOF
3307 rm -f conftest*
3308 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3309 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3310 if test "${ac_cv_sys_large_files+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 while :; do
3314 ac_cv_sys_large_files=no
3315 cat >conftest.$ac_ext <<_ACEOF
3316 #line $LINENO "configure"
3317 #include "confdefs.h"
3318 #include <sys/types.h>
3319 /* Check that off_t can represent 2**63 - 1 correctly.
3320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3321 since some C++ compilers masquerading as C compilers
3322 incorrectly reject 9223372036854775807. */
3323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3325 && LARGE_OFF_T % 2147483647 == 1)
3326 ? 1 : -1];
3327 #ifdef F77_DUMMY_MAIN
3328 # ifdef __cplusplus
3329 extern "C"
3330 # endif
3331 int F77_DUMMY_MAIN() { return 1; }
3332 #endif
3334 main ()
3338 return 0;
3340 _ACEOF
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 (eval $ac_try) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 break
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3358 rm -f conftest.$ac_objext conftest.$ac_ext
3359 cat >conftest.$ac_ext <<_ACEOF
3360 #line $LINENO "configure"
3361 #include "confdefs.h"
3362 #define _LARGE_FILES 1
3363 #include <sys/types.h>
3364 /* Check that off_t can represent 2**63 - 1 correctly.
3365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3366 since some C++ compilers masquerading as C compilers
3367 incorrectly reject 9223372036854775807. */
3368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3370 && LARGE_OFF_T % 2147483647 == 1)
3371 ? 1 : -1];
3372 #ifdef F77_DUMMY_MAIN
3373 # ifdef __cplusplus
3374 extern "C"
3375 # endif
3376 int F77_DUMMY_MAIN() { return 1; }
3377 #endif
3379 main ()
3383 return 0;
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 ac_cv_sys_large_files=1; break
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 rm -f conftest.$ac_objext conftest.$ac_ext
3404 break
3405 done
3407 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3408 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3409 if test "$ac_cv_sys_large_files" != no; then
3411 cat >>confdefs.h <<_ACEOF
3412 #define _LARGE_FILES $ac_cv_sys_large_files
3413 _ACEOF
3416 rm -f conftest*
3420 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3421 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3422 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 ac_cv_prog_cc_stdc=no
3426 ac_save_CC=$CC
3427 cat >conftest.$ac_ext <<_ACEOF
3428 #line $LINENO "configure"
3429 #include "confdefs.h"
3430 #include <stdarg.h>
3431 #include <stdio.h>
3432 #include <sys/types.h>
3433 #include <sys/stat.h>
3434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3435 struct buf { int x; };
3436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3437 static char *e (p, i)
3438 char **p;
3439 int i;
3441 return p[i];
3443 static char *f (char * (*g) (char **, int), char **p, ...)
3445 char *s;
3446 va_list v;
3447 va_start (v,p);
3448 s = g (p, va_arg (v,int));
3449 va_end (v);
3450 return s;
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3458 #ifdef F77_DUMMY_MAIN
3459 # ifdef __cplusplus
3460 extern "C"
3461 # endif
3462 int F77_DUMMY_MAIN() { return 1; }
3463 #endif
3465 main ()
3467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3469 return 0;
3471 _ACEOF
3472 # Don't try gcc -ansi; that turns off useful extensions and
3473 # breaks some systems' header files.
3474 # AIX -qlanglvl=ansi
3475 # Ultrix and OSF/1 -std1
3476 # HP-UX 10.20 and later -Ae
3477 # HP-UX older versions -Aa -D_HPUX_SOURCE
3478 # SVR4 -Xc -D__EXTENSIONS__
3479 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3481 CC="$ac_save_CC $ac_arg"
3482 rm -f conftest.$ac_objext
3483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3484 (eval $ac_compile) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_cv_prog_cc_stdc=$ac_arg
3495 break
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 rm -f conftest.$ac_objext
3501 done
3502 rm -f conftest.$ac_ext conftest.$ac_objext
3503 CC=$ac_save_CC
3507 case "x$ac_cv_prog_cc_stdc" in
3508 x|xno)
3509 echo "$as_me:$LINENO: result: none needed" >&5
3510 echo "${ECHO_T}none needed" >&6 ;;
3512 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3514 CC="$CC $ac_cv_prog_cc_stdc" ;;
3515 esac
3517 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3518 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3519 if test "${ac_cv_c_const+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 cat >conftest.$ac_ext <<_ACEOF
3523 #line $LINENO "configure"
3524 #include "confdefs.h"
3526 #ifdef F77_DUMMY_MAIN
3527 # ifdef __cplusplus
3528 extern "C"
3529 # endif
3530 int F77_DUMMY_MAIN() { return 1; }
3531 #endif
3533 main ()
3535 /* FIXME: Include the comments suggested by Paul. */
3536 #ifndef __cplusplus
3537 /* Ultrix mips cc rejects this. */
3538 typedef int charset[2];
3539 const charset x;
3540 /* SunOS 4.1.1 cc rejects this. */
3541 char const *const *ccp;
3542 char **p;
3543 /* NEC SVR4.0.2 mips cc rejects this. */
3544 struct point {int x, y;};
3545 static struct point const zero = {0,0};
3546 /* AIX XL C 1.02.0.0 rejects this.
3547 It does not let you subtract one const X* pointer from another in
3548 an arm of an if-expression whose if-part is not a constant
3549 expression */
3550 const char *g = "string";
3551 ccp = &g + (g ? g-g : 0);
3552 /* HPUX 7.0 cc rejects these. */
3553 ++ccp;
3554 p = (char**) ccp;
3555 ccp = (char const *const *) p;
3556 { /* SCO 3.2v4 cc rejects this. */
3557 char *t;
3558 char const *s = 0 ? (char *) 0 : (char const *) 0;
3560 *t++ = 0;
3562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3563 int x[] = {25, 17};
3564 const int *foo = &x[0];
3565 ++foo;
3567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3568 typedef const int *iptr;
3569 iptr p = 0;
3570 ++p;
3572 { /* AIX XL C 1.02.0.0 rejects this saying
3573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3574 struct s { int j; const int *ap[3]; };
3575 struct s *b; b->j = 5;
3577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3578 const int foo = 10;
3580 #endif
3583 return 0;
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_cv_c_const=yes
3599 else
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3602 ac_cv_c_const=no
3604 rm -f conftest.$ac_objext conftest.$ac_ext
3606 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3607 echo "${ECHO_T}$ac_cv_c_const" >&6
3608 if test $ac_cv_c_const = no; then
3610 cat >>confdefs.h <<\_ACEOF
3611 #define const
3612 _ACEOF
3616 echo "$as_me:$LINENO: checking for inline" >&5
3617 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3618 if test "${ac_cv_c_inline+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 ac_cv_c_inline=no
3622 for ac_kw in inline __inline__ __inline; do
3623 cat >conftest.$ac_ext <<_ACEOF
3624 #line $LINENO "configure"
3625 #include "confdefs.h"
3626 #ifndef __cplusplus
3627 static $ac_kw int static_foo () {return 0; }
3628 $ac_kw int foo () {return 0; }
3629 #endif
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_c_inline=$ac_kw; break
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 rm -f conftest.$ac_objext conftest.$ac_ext
3650 done
3653 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3654 echo "${ECHO_T}$ac_cv_c_inline" >&6
3655 case $ac_cv_c_inline in
3656 inline | yes) ;;
3658 cat >>confdefs.h <<\_ACEOF
3659 #define inline
3660 _ACEOF
3662 *) cat >>confdefs.h <<_ACEOF
3663 #define inline $ac_cv_c_inline
3664 _ACEOF
3666 esac
3669 echo "$as_me:$LINENO: checking for variable-length arrays" >&5
3670 echo $ECHO_N "checking for variable-length arrays... $ECHO_C" >&6
3671 if test "${ac_cv_c_vararrays+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 #line $LINENO "configure"
3676 #include "confdefs.h"
3678 #ifdef F77_DUMMY_MAIN
3679 # ifdef __cplusplus
3680 extern "C"
3681 # endif
3682 int F77_DUMMY_MAIN() { return 1; }
3683 #endif
3685 main ()
3687 static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 ac_cv_c_vararrays=yes
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 ac_cv_c_vararrays=no
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3712 echo "$as_me:$LINENO: result: $ac_cv_c_vararrays" >&5
3713 echo "${ECHO_T}$ac_cv_c_vararrays" >&6
3714 if test $ac_cv_c_vararrays = yes; then
3716 cat >>confdefs.h <<\_ACEOF
3717 #define HAVE_C_VARARRAYS 1
3718 _ACEOF
3724 cat >>confdefs.h <<\_ACEOF
3725 #define DEFAULT_DIFF_PROGRAM "diff"
3726 _ACEOF
3730 cat >>confdefs.h <<\_ACEOF
3731 #define DEFAULT_EDITOR_PROGRAM "ed"
3732 _ACEOF
3735 # Extract the first word of "pr", so it can be a program name with args.
3736 set dummy pr; ac_word=$2
3737 echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3739 if test "${ac_cv_path_PR_PROGRAM+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 case $PR_PROGRAM in
3743 [\\/]* | ?:[\\/]*)
3744 ac_cv_path_PR_PROGRAM="$PR_PROGRAM" # Let the user override the test with a path.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_path_PR_PROGRAM="$as_dir/$ac_word$ac_exec_ext"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3758 done
3759 done
3761 test -z "$ac_cv_path_PR_PROGRAM" && ac_cv_path_PR_PROGRAM=""""
3763 esac
3765 PR_PROGRAM=$ac_cv_path_PR_PROGRAM
3767 if test -n "$PR_PROGRAM"; then
3768 echo "$as_me:$LINENO: result: $PR_PROGRAM" >&5
3769 echo "${ECHO_T}$PR_PROGRAM" >&6
3770 else
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3776 cat >>confdefs.h <<_ACEOF
3777 #define PR_PROGRAM "$PR_PROGRAM"
3778 _ACEOF
3781 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3782 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3783 if test "${ac_cv_header_stdbool_h+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 #include "confdefs.h"
3790 #include <stdbool.h>
3791 #ifndef bool
3792 "error: bool is not defined"
3793 #endif
3794 #ifndef false
3795 "error: false is not defined"
3796 #endif
3797 #ifndef true
3798 "error: false is not defined"
3799 #endif
3800 #ifndef __bool_true_false_are_defined
3801 "error: __bool_true_false_are_defined is not defined"
3802 #endif
3804 struct s { _Bool s: 1; _Bool t; } s;
3806 char a[true == 1 ? 1 : -1];
3807 char b[false == 0 ? 1 : -1];
3808 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3809 char d[(bool) -0.5 == true ? 1 : -1];
3810 char e[(bool) &s == true ? 1 : -1];
3811 char f[(_Bool) -0.0 == false ? 1 : -1];
3812 char g[true];
3813 char h[sizeof (_Bool)];
3814 char i[sizeof s.t];
3816 #ifdef F77_DUMMY_MAIN
3817 # ifdef __cplusplus
3818 extern "C"
3819 # endif
3820 int F77_DUMMY_MAIN() { return 1; }
3821 #endif
3823 main ()
3825 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3827 return 0;
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 (eval $ac_try) 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_header_stdbool_h=yes
3843 else
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 ac_cv_header_stdbool_h=no
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3850 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
3851 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
3852 if test $ac_cv_header_stdbool_h = yes; then
3854 cat >>confdefs.h <<\_ACEOF
3855 #define HAVE_STDBOOL_H 1
3856 _ACEOF
3860 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3861 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3862 if test "${ac_cv_header_stdc+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 cat >conftest.$ac_ext <<_ACEOF
3866 #line $LINENO "configure"
3867 #include "confdefs.h"
3868 #include <stdlib.h>
3869 #include <stdarg.h>
3870 #include <string.h>
3871 #include <float.h>
3873 _ACEOF
3874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3876 ac_status=$?
3877 egrep -v '^ *\+' conftest.er1 >conftest.err
3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null; then
3882 if test -s conftest.err; then
3883 ac_cpp_err=$ac_c_preproc_warn_flag
3884 else
3885 ac_cpp_err=
3887 else
3888 ac_cpp_err=yes
3890 if test -z "$ac_cpp_err"; then
3891 ac_cv_header_stdc=yes
3892 else
3893 echo "$as_me: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 ac_cv_header_stdc=no
3897 rm -f conftest.err conftest.$ac_ext
3899 if test $ac_cv_header_stdc = yes; then
3900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line $LINENO "configure"
3903 #include "confdefs.h"
3904 #include <string.h>
3906 _ACEOF
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 egrep "memchr" >/dev/null 2>&1; then
3910 else
3911 ac_cv_header_stdc=no
3913 rm -f conftest*
3917 if test $ac_cv_header_stdc = yes; then
3918 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line $LINENO "configure"
3921 #include "confdefs.h"
3922 #include <stdlib.h>
3924 _ACEOF
3925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 egrep "free" >/dev/null 2>&1; then
3928 else
3929 ac_cv_header_stdc=no
3931 rm -f conftest*
3935 if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3939 else
3940 cat >conftest.$ac_ext <<_ACEOF
3941 #line $LINENO "configure"
3942 #include "confdefs.h"
3943 #include <ctype.h>
3944 #if ((' ' & 0x0FF) == 0x020)
3945 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947 #else
3948 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
3951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952 #endif
3954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956 main ()
3958 int i;
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
3961 || toupper (i) != TOUPPER (i))
3962 exit(2);
3963 exit (0);
3965 _ACEOF
3966 rm -f conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3978 else
3979 echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3982 ( exit $ac_status )
3983 ac_cv_header_stdc=no
3985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4021 $ac_includes_default
4023 #include <$ac_header>
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4041 eval "$as_ac_Header=no"
4043 rm -f conftest.$ac_objext conftest.$ac_ext
4045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h <<_ACEOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 _ACEOF
4054 done
4066 for ac_header in fcntl.h libintl.h limits.h locale.h \
4067 stdlib.h string.h sys/file.h time.h unistd.h
4069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071 echo "$as_me:$LINENO: checking for $ac_header" >&5
4072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078 else
4079 # Is the header compilable?
4080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 #include "confdefs.h"
4085 $ac_includes_default
4086 #include <$ac_header>
4087 _ACEOF
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -s conftest.$ac_objext'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096 (eval $ac_try) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4100 ac_header_compiler=yes
4101 else
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4104 ac_header_compiler=no
4106 rm -f conftest.$ac_objext conftest.$ac_ext
4107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4108 echo "${ECHO_T}$ac_header_compiler" >&6
4110 # Is the header present?
4111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4114 #line $LINENO "configure"
4115 #include "confdefs.h"
4116 #include <$ac_header>
4117 _ACEOF
4118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4120 ac_status=$?
4121 egrep -v '^ *\+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null; then
4126 if test -s conftest.err; then
4127 ac_cpp_err=$ac_c_preproc_warn_flag
4128 else
4129 ac_cpp_err=
4131 else
4132 ac_cpp_err=yes
4134 if test -z "$ac_cpp_err"; then
4135 ac_header_preproc=yes
4136 else
4137 echo "$as_me: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4139 ac_header_preproc=no
4141 rm -f conftest.err conftest.$ac_ext
4142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4143 echo "${ECHO_T}$ac_header_preproc" >&6
4145 # So? What about this header?
4146 case $ac_header_compiler:$ac_header_preproc in
4147 yes:no )
4148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4152 no:yes )
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4159 esac
4160 echo "$as_me:$LINENO: checking for $ac_header" >&5
4161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 eval "$as_ac_Header=$ac_header_preproc"
4167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4172 cat >>confdefs.h <<_ACEOF
4173 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4174 _ACEOF
4178 done
4180 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4181 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4182 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 cat >conftest.$ac_ext <<_ACEOF
4186 #line $LINENO "configure"
4187 #include "confdefs.h"
4188 $ac_includes_default
4189 #ifdef F77_DUMMY_MAIN
4190 # ifdef __cplusplus
4191 extern "C"
4192 # endif
4193 int F77_DUMMY_MAIN() { return 1; }
4194 #endif
4196 main ()
4198 static struct stat ac_aggr;
4199 if (ac_aggr.st_blksize)
4200 return 0;
4202 return 0;
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_member_struct_stat_st_blksize=yes
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 ac_cv_member_struct_stat_st_blksize=no
4223 rm -f conftest.$ac_objext conftest.$ac_ext
4225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4226 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4227 if test $ac_cv_member_struct_stat_st_blksize = yes; then
4229 cat >>confdefs.h <<_ACEOF
4230 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4231 _ACEOF
4236 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4237 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4238 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241 cat >conftest.$ac_ext <<_ACEOF
4242 #line $LINENO "configure"
4243 #include "confdefs.h"
4244 $ac_includes_default
4245 #ifdef F77_DUMMY_MAIN
4246 # ifdef __cplusplus
4247 extern "C"
4248 # endif
4249 int F77_DUMMY_MAIN() { return 1; }
4250 #endif
4252 main ()
4254 static struct stat ac_aggr;
4255 if (ac_aggr.st_rdev)
4256 return 0;
4258 return 0;
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4263 (eval $ac_compile) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then
4273 ac_cv_member_struct_stat_st_rdev=yes
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
4277 ac_cv_member_struct_stat_st_rdev=no
4279 rm -f conftest.$ac_objext conftest.$ac_ext
4281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4282 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4283 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define HAVE_STRUCT_STAT_ST_RDEV 1
4287 _ACEOF
4292 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4293 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4294 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 else
4297 cat >conftest.$ac_ext <<_ACEOF
4298 #line $LINENO "configure"
4299 #include "confdefs.h"
4300 $ac_includes_default
4301 #ifdef F77_DUMMY_MAIN
4302 # ifdef __cplusplus
4303 extern "C"
4304 # endif
4305 int F77_DUMMY_MAIN() { return 1; }
4306 #endif
4308 main ()
4310 if ((ptrdiff_t *) 0)
4311 return 0;
4312 if (sizeof (ptrdiff_t))
4313 return 0;
4315 return 0;
4317 _ACEOF
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_type_ptrdiff_t=yes
4331 else
4332 echo "$as_me: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 ac_cv_type_ptrdiff_t=no
4336 rm -f conftest.$ac_objext conftest.$ac_ext
4338 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4339 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4340 if test $ac_cv_type_ptrdiff_t = yes; then
4342 else
4344 cat >>confdefs.h <<_ACEOF
4345 #define ptrdiff_t int
4346 _ACEOF
4350 echo "$as_me:$LINENO: checking for ssize_t" >&5
4351 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4352 if test "${ac_cv_type_ssize_t+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 cat >conftest.$ac_ext <<_ACEOF
4356 #line $LINENO "configure"
4357 #include "confdefs.h"
4358 $ac_includes_default
4359 #ifdef F77_DUMMY_MAIN
4360 # ifdef __cplusplus
4361 extern "C"
4362 # endif
4363 int F77_DUMMY_MAIN() { return 1; }
4364 #endif
4366 main ()
4368 if ((ssize_t *) 0)
4369 return 0;
4370 if (sizeof (ssize_t))
4371 return 0;
4373 return 0;
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 ac_cv_type_ssize_t=yes
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 ac_cv_type_ssize_t=no
4394 rm -f conftest.$ac_objext conftest.$ac_ext
4396 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4397 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4398 if test $ac_cv_type_ssize_t = yes; then
4400 else
4402 cat >>confdefs.h <<_ACEOF
4403 #define ssize_t int
4404 _ACEOF
4409 echo "$as_me:$LINENO: checking for unsigned long long" >&5
4410 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4411 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4417 unsigned long long ull = 1; int i = 63;
4418 #ifdef F77_DUMMY_MAIN
4419 # ifdef __cplusplus
4420 extern "C"
4421 # endif
4422 int F77_DUMMY_MAIN() { return 1; }
4423 #endif
4425 main ()
4427 unsigned long long ullmax = (unsigned long long) -1;
4428 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4430 return 0;
4432 _ACEOF
4433 rm -f conftest.$ac_objext conftest$ac_exeext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4435 (eval $ac_link) 2>&5
4436 ac_status=$?
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -s conftest$ac_exeext'
4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 (eval $ac_try) 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_type_unsigned_long_long=yes
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4449 ac_cv_type_unsigned_long_long=no
4451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4453 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4454 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4455 if test $ac_cv_type_unsigned_long_long = yes; then
4457 cat >>confdefs.h <<\_ACEOF
4458 #define HAVE_UNSIGNED_LONG_LONG 1
4459 _ACEOF
4465 echo "$as_me:$LINENO: checking for uintmax_t" >&5
4466 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4467 if test "${ac_cv_type_uintmax_t+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 #include "confdefs.h"
4473 $ac_includes_default
4474 #ifdef F77_DUMMY_MAIN
4475 # ifdef __cplusplus
4476 extern "C"
4477 # endif
4478 int F77_DUMMY_MAIN() { return 1; }
4479 #endif
4481 main ()
4483 if ((uintmax_t *) 0)
4484 return 0;
4485 if (sizeof (uintmax_t))
4486 return 0;
4488 return 0;
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_type_uintmax_t=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4507 ac_cv_type_uintmax_t=no
4509 rm -f conftest.$ac_objext conftest.$ac_ext
4511 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
4512 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4513 if test $ac_cv_type_uintmax_t = yes; then
4515 else
4516 test $ac_cv_type_unsigned_long_long = yes \
4517 && ac_type='unsigned long long' \
4518 || ac_type='unsigned long'
4520 cat >>confdefs.h <<_ACEOF
4521 #define uintmax_t $ac_type
4522 _ACEOF
4528 MKINSTALLDIRS=
4529 if test -n "$ac_aux_dir"; then
4530 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4532 if test -z "$MKINSTALLDIRS"; then
4533 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4540 # Extract the first word of "msgfmt", so it can be a program name with args.
4541 set dummy msgfmt; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_MSGFMT+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 case "$MSGFMT" in
4549 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4553 for ac_dir in $PATH; do
4554 test -z "$ac_dir" && ac_dir=.
4555 if test -f $ac_dir/$ac_word; then
4556 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4557 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4558 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4559 break
4562 done
4563 IFS="$ac_save_ifs"
4564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4566 esac
4568 MSGFMT="$ac_cv_path_MSGFMT"
4569 if test "$MSGFMT" != ":"; then
4570 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4571 echo "${ECHO_T}$MSGFMT" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4577 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4578 set dummy gmsgfmt; ac_word=$2
4579 echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 case $GMSGFMT in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4605 esac
4607 GMSGFMT=$ac_cv_path_GMSGFMT
4609 if test -n "$GMSGFMT"; then
4610 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4611 echo "${ECHO_T}$GMSGFMT" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4618 # Extract the first word of "xgettext", so it can be a program name with args.
4619 set dummy xgettext; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 case "$XGETTEXT" in
4627 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4631 for ac_dir in $PATH; do
4632 test -z "$ac_dir" && ac_dir=.
4633 if test -f $ac_dir/$ac_word; then
4634 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4635 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4636 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4637 break
4640 done
4641 IFS="$ac_save_ifs"
4642 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4644 esac
4646 XGETTEXT="$ac_cv_path_XGETTEXT"
4647 if test "$XGETTEXT" != ":"; then
4648 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4649 echo "${ECHO_T}$XGETTEXT" >&6
4650 else
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 rm -f messages.po
4657 # Extract the first word of "msgmerge", so it can be a program name with args.
4658 set dummy msgmerge; ac_word=$2
4659 echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664 case "$MSGMERGE" in
4666 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4670 for ac_dir in $PATH; do
4671 test -z "$ac_dir" && ac_dir=.
4672 if test -f $ac_dir/$ac_word; then
4673 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4674 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
4675 break
4678 done
4679 IFS="$ac_save_ifs"
4680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4682 esac
4684 MSGMERGE="$ac_cv_path_MSGMERGE"
4685 if test "$MSGMERGE" != ":"; then
4686 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4687 echo "${ECHO_T}$MSGMERGE" >&6
4688 else
4689 echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4694 if test "$GMSGFMT" != ":"; then
4695 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4696 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4698 else
4699 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4700 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4701 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4702 GMSGFMT=":"
4706 if test "$XGETTEXT" != ":"; then
4707 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
4708 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4710 else
4711 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4712 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4713 XGETTEXT=":"
4715 rm -f messages.po
4718 ac_config_commands="$ac_config_commands default-1"
4722 if test "X$prefix" = "XNONE"; then
4723 acl_final_prefix="$ac_default_prefix"
4724 else
4725 acl_final_prefix="$prefix"
4727 if test "X$exec_prefix" = "XNONE"; then
4728 acl_final_exec_prefix='${prefix}'
4729 else
4730 acl_final_exec_prefix="$exec_prefix"
4732 acl_save_prefix="$prefix"
4733 prefix="$acl_final_prefix"
4734 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4735 prefix="$acl_save_prefix"
4737 # Make sure we can run config.sub.
4738 $ac_config_sub sun4 >/dev/null 2>&1 ||
4739 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4740 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4741 { (exit 1); exit 1; }; }
4743 echo "$as_me:$LINENO: checking build system type" >&5
4744 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4745 if test "${ac_cv_build+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 ac_cv_build_alias=$build_alias
4749 test -z "$ac_cv_build_alias" &&
4750 ac_cv_build_alias=`$ac_config_guess`
4751 test -z "$ac_cv_build_alias" &&
4752 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4753 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4754 { (exit 1); exit 1; }; }
4755 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4756 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4757 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4758 { (exit 1); exit 1; }; }
4761 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4762 echo "${ECHO_T}$ac_cv_build" >&6
4763 build=$ac_cv_build
4764 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4765 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4766 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4769 echo "$as_me:$LINENO: checking host system type" >&5
4770 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4771 if test "${ac_cv_host+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 ac_cv_host_alias=$host_alias
4775 test -z "$ac_cv_host_alias" &&
4776 ac_cv_host_alias=$ac_cv_build_alias
4777 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4778 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4779 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4780 { (exit 1); exit 1; }; }
4783 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4784 echo "${ECHO_T}$ac_cv_host" >&6
4785 host=$ac_cv_host
4786 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4787 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4788 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4792 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4793 if test "${with_gnu_ld+set}" = set; then
4794 withval="$with_gnu_ld"
4795 test "$withval" = no || with_gnu_ld=yes
4796 else
4797 with_gnu_ld=no
4799 ac_prog=ld
4800 if test "$GCC" = yes; then
4801 # Check if gcc -print-prog-name=ld gives a path.
4802 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4803 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4804 case $host in
4805 *-*-mingw*)
4806 # gcc leaves a trailing carriage return which upsets mingw
4807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4810 esac
4811 case $ac_prog in
4812 # Accept absolute paths.
4813 [\\/]* | [A-Za-z]:[\\/]*)
4814 re_direlt='/[^/][^/]*/\.\./'
4815 # Canonicalize the path of ld
4816 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4817 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4818 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4819 done
4820 test -z "$LD" && LD="$ac_prog"
4823 # If it fails, then pretend we aren't using GCC.
4824 ac_prog=ld
4827 # If it is relative, then search for the first ld in PATH.
4828 with_gnu_ld=unknown
4830 esac
4831 elif test "$with_gnu_ld" = yes; then
4832 echo "$as_me:$LINENO: checking for GNU ld" >&5
4833 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4834 else
4835 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4836 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4838 if test "${acl_cv_path_LD+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841 if test -z "$LD"; then
4842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4843 for ac_dir in $PATH; do
4844 test -z "$ac_dir" && ac_dir=.
4845 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4846 acl_cv_path_LD="$ac_dir/$ac_prog"
4847 # Check to see if the program is GNU ld. I'd rather use --version,
4848 # but apparently some GNU ld's only accept -v.
4849 # Break only if it was the GNU/non-GNU ld that we prefer.
4850 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4851 test "$with_gnu_ld" != no && break
4852 else
4853 test "$with_gnu_ld" != yes && break
4856 done
4857 IFS="$ac_save_ifs"
4858 else
4859 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4863 LD="$acl_cv_path_LD"
4864 if test -n "$LD"; then
4865 echo "$as_me:$LINENO: result: $LD" >&5
4866 echo "${ECHO_T}$LD" >&6
4867 else
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4871 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4872 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4873 { (exit 1); exit 1; }; }
4874 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4875 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4876 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4880 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4881 acl_cv_prog_gnu_ld=yes
4882 else
4883 acl_cv_prog_gnu_ld=no
4886 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4887 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4888 with_gnu_ld=$acl_cv_prog_gnu_ld
4892 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4893 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4894 if test "${acl_cv_rpath+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4898 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4899 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4900 . ./conftest.sh
4901 rm -f ./conftest.sh
4902 acl_cv_rpath=done
4905 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4906 echo "${ECHO_T}$acl_cv_rpath" >&6
4907 wl="$acl_cv_wl"
4908 libext="$acl_cv_libext"
4909 shlibext="$acl_cv_shlibext"
4910 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4911 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4912 hardcode_direct="$acl_cv_hardcode_direct"
4913 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4914 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4915 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4928 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4929 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4930 # Check whether --enable-nls or --disable-nls was given.
4931 if test "${enable_nls+set}" = set; then
4932 enableval="$enable_nls"
4933 USE_NLS=$enableval
4934 else
4935 USE_NLS=yes
4937 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4938 echo "${ECHO_T}$USE_NLS" >&6
4942 LIBINTL=
4943 LTLIBINTL=
4944 POSUB=
4946 if test "$USE_NLS" = "yes"; then
4947 gt_use_preinstalled_gnugettext=no
4954 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4955 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4956 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4962 #include <libintl.h>
4963 extern int _nl_msg_cat_cntr;
4964 extern int *_nl_domain_bindings;
4965 #ifdef F77_DUMMY_MAIN
4966 # ifdef __cplusplus
4967 extern "C"
4968 # endif
4969 int F77_DUMMY_MAIN() { return 1; }
4970 #endif
4972 main ()
4974 bindtextdomain ("", "");
4975 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4977 return 0;
4979 _ACEOF
4980 rm -f conftest.$ac_objext conftest$ac_exeext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4982 (eval $ac_link) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 gt_cv_func_gnugettext1_libc=yes
4993 else
4994 echo "$as_me: failed program was:" >&5
4995 cat conftest.$ac_ext >&5
4996 gt_cv_func_gnugettext1_libc=no
4998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5001 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5003 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5012 use_additional=yes
5014 acl_save_prefix="$prefix"
5015 prefix="$acl_final_prefix"
5016 acl_save_exec_prefix="$exec_prefix"
5017 exec_prefix="$acl_final_exec_prefix"
5019 eval additional_includedir=\"$includedir\"
5020 eval additional_libdir=\"$libdir\"
5022 exec_prefix="$acl_save_exec_prefix"
5023 prefix="$acl_save_prefix"
5026 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5027 if test "${with_libiconv_prefix+set}" = set; then
5028 withval="$with_libiconv_prefix"
5030 if test "X$withval" = "Xno"; then
5031 use_additional=no
5032 else
5033 if test "X$withval" = "X"; then
5035 acl_save_prefix="$prefix"
5036 prefix="$acl_final_prefix"
5037 acl_save_exec_prefix="$exec_prefix"
5038 exec_prefix="$acl_final_exec_prefix"
5040 eval additional_includedir=\"$includedir\"
5041 eval additional_libdir=\"$libdir\"
5043 exec_prefix="$acl_save_exec_prefix"
5044 prefix="$acl_save_prefix"
5046 else
5047 additional_includedir="$withval/include"
5048 additional_libdir="$withval/lib"
5053 LIBICONV=
5054 LTLIBICONV=
5055 INCICONV=
5056 rpathdirs=
5057 ltrpathdirs=
5058 names_already_handled=
5059 names_next_round='iconv '
5060 while test -n "$names_next_round"; do
5061 names_this_round="$names_next_round"
5062 names_next_round=
5063 for name in $names_this_round; do
5064 already_handled=
5065 for n in $names_already_handled; do
5066 if test "$n" = "$name"; then
5067 already_handled=yes
5068 break
5070 done
5071 if test -z "$already_handled"; then
5072 names_already_handled="$names_already_handled $name"
5073 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5074 eval value=\"\$HAVE_LIB$uppername\"
5075 if test -n "$value"; then
5076 if test "$value" = yes; then
5077 eval value=\"\$LIB$uppername\"
5078 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5079 eval value=\"\$LTLIB$uppername\"
5080 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5081 else
5084 else
5085 found_dir=
5086 found_la=
5087 found_so=
5088 found_a=
5089 if test $use_additional = yes; then
5090 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5091 found_dir="$additional_libdir"
5092 found_so="$additional_libdir/lib$name.$shlibext"
5093 if test -f "$additional_libdir/lib$name.la"; then
5094 found_la="$additional_libdir/lib$name.la"
5096 else
5097 if test -f "$additional_libdir/lib$name.$libext"; then
5098 found_dir="$additional_libdir"
5099 found_a="$additional_libdir/lib$name.$libext"
5100 if test -f "$additional_libdir/lib$name.la"; then
5101 found_la="$additional_libdir/lib$name.la"
5106 if test "X$found_dir" = "X"; then
5107 for x in $LDFLAGS $LTLIBICONV; do
5109 acl_save_prefix="$prefix"
5110 prefix="$acl_final_prefix"
5111 acl_save_exec_prefix="$exec_prefix"
5112 exec_prefix="$acl_final_exec_prefix"
5113 eval x=\"$x\"
5114 exec_prefix="$acl_save_exec_prefix"
5115 prefix="$acl_save_prefix"
5117 case "$x" in
5118 -L*)
5119 dir=`echo "X$x" | sed -e 's/^X-L//'`
5120 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5121 found_dir="$dir"
5122 found_so="$dir/lib$name.$shlibext"
5123 if test -f "$dir/lib$name.la"; then
5124 found_la="$dir/lib$name.la"
5126 else
5127 if test -f "$dir/lib$name.$libext"; then
5128 found_dir="$dir"
5129 found_a="$dir/lib$name.$libext"
5130 if test -f "$dir/lib$name.la"; then
5131 found_la="$dir/lib$name.la"
5136 esac
5137 if test "X$found_dir" != "X"; then
5138 break
5140 done
5142 if test "X$found_dir" != "X"; then
5143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5144 if test "X$found_so" != "X"; then
5145 if test "X$found_dir" = "X/usr/lib"; then
5146 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5147 else
5148 haveit=
5149 for x in $ltrpathdirs; do
5150 if test "X$x" = "X$found_dir"; then
5151 haveit=yes
5152 break
5154 done
5155 if test -z "$haveit"; then
5156 ltrpathdirs="$ltrpathdirs $found_dir"
5158 if test "$hardcode_direct" = yes; then
5159 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5160 else
5161 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5162 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5163 haveit=
5164 for x in $rpathdirs; do
5165 if test "X$x" = "X$found_dir"; then
5166 haveit=yes
5167 break
5169 done
5170 if test -z "$haveit"; then
5171 rpathdirs="$rpathdirs $found_dir"
5173 else
5174 haveit=
5175 for x in $LDFLAGS $LIBICONV; do
5177 acl_save_prefix="$prefix"
5178 prefix="$acl_final_prefix"
5179 acl_save_exec_prefix="$exec_prefix"
5180 exec_prefix="$acl_final_exec_prefix"
5181 eval x=\"$x\"
5182 exec_prefix="$acl_save_exec_prefix"
5183 prefix="$acl_save_prefix"
5185 if test "X$x" = "X-L$found_dir"; then
5186 haveit=yes
5187 break
5189 done
5190 if test -z "$haveit"; then
5191 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5193 if test "$hardcode_minus_L" != no; then
5194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5195 else
5196 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5201 else
5202 if test "X$found_a" != "X"; then
5203 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5204 else
5205 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5208 additional_includedir=
5209 case "$found_dir" in
5210 */lib | */lib/)
5211 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5212 additional_includedir="$basedir/include"
5214 esac
5215 if test "X$additional_includedir" != "X"; then
5216 if test "X$additional_includedir" != "X/usr/include"; then
5217 haveit=
5218 if test "X$additional_includedir" = "X/usr/local/include"; then
5219 if test -n "$GCC"; then
5220 case $host_os in
5221 linux*) haveit=yes;;
5222 esac
5225 if test -z "$haveit"; then
5226 for x in $CPPFLAGS $INCICONV; do
5228 acl_save_prefix="$prefix"
5229 prefix="$acl_final_prefix"
5230 acl_save_exec_prefix="$exec_prefix"
5231 exec_prefix="$acl_final_exec_prefix"
5232 eval x=\"$x\"
5233 exec_prefix="$acl_save_exec_prefix"
5234 prefix="$acl_save_prefix"
5236 if test "X$x" = "X-I$additional_includedir"; then
5237 haveit=yes
5238 break
5240 done
5241 if test -z "$haveit"; then
5242 if test -d "$additional_includedir"; then
5243 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5249 if test -n "$found_la"; then
5250 save_libdir="$libdir"
5251 case "$found_la" in
5252 */* | *\\*) . "$found_la" ;;
5253 *) . "./$found_la" ;;
5254 esac
5255 libdir="$save_libdir"
5256 for dep in $dependency_libs; do
5257 case "$dep" in
5258 -L*)
5259 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5260 if test "X$additional_libdir" != "X/usr/lib"; then
5261 haveit=
5262 if test "X$additional_libdir" = "X/usr/local/lib"; then
5263 if test -n "$GCC"; then
5264 case $host_os in
5265 linux*) haveit=yes;;
5266 esac
5269 if test -z "$haveit"; then
5270 haveit=
5271 for x in $LDFLAGS $LIBICONV; do
5273 acl_save_prefix="$prefix"
5274 prefix="$acl_final_prefix"
5275 acl_save_exec_prefix="$exec_prefix"
5276 exec_prefix="$acl_final_exec_prefix"
5277 eval x=\"$x\"
5278 exec_prefix="$acl_save_exec_prefix"
5279 prefix="$acl_save_prefix"
5281 if test "X$x" = "X-L$additional_libdir"; then
5282 haveit=yes
5283 break
5285 done
5286 if test -z "$haveit"; then
5287 if test -d "$additional_libdir"; then
5288 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5291 haveit=
5292 for x in $LDFLAGS $LTLIBICONV; do
5294 acl_save_prefix="$prefix"
5295 prefix="$acl_final_prefix"
5296 acl_save_exec_prefix="$exec_prefix"
5297 exec_prefix="$acl_final_exec_prefix"
5298 eval x=\"$x\"
5299 exec_prefix="$acl_save_exec_prefix"
5300 prefix="$acl_save_prefix"
5302 if test "X$x" = "X-L$additional_libdir"; then
5303 haveit=yes
5304 break
5306 done
5307 if test -z "$haveit"; then
5308 if test -d "$additional_libdir"; then
5309 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5315 -l*)
5316 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5318 *.la)
5319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5322 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5323 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5325 esac
5326 done
5328 else
5329 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5334 done
5335 done
5336 if test "X$rpathdirs" != "X"; then
5337 if test -n "$hardcode_libdir_separator"; then
5338 alldirs=
5339 for found_dir in $rpathdirs; do
5340 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5341 done
5342 acl_save_libdir="$libdir"
5343 libdir="$alldirs"
5344 eval flag=\"$hardcode_libdir_flag_spec\"
5345 libdir="$acl_save_libdir"
5346 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5347 else
5348 for found_dir in $rpathdirs; do
5349 acl_save_libdir="$libdir"
5350 libdir="$found_dir"
5351 eval flag=\"$hardcode_libdir_flag_spec\"
5352 libdir="$acl_save_libdir"
5353 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5354 done
5357 if test "X$ltrpathdirs" != "X"; then
5358 for found_dir in $ltrpathdirs; do
5359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5360 done
5364 am_save_CPPFLAGS="$CPPFLAGS"
5366 for element in $INCICONV; do
5367 haveit=
5368 for x in $CPPFLAGS; do
5370 acl_save_prefix="$prefix"
5371 prefix="$acl_final_prefix"
5372 acl_save_exec_prefix="$exec_prefix"
5373 exec_prefix="$acl_final_exec_prefix"
5374 eval x=\"$x\"
5375 exec_prefix="$acl_save_exec_prefix"
5376 prefix="$acl_save_prefix"
5378 if test "X$x" = "X$element"; then
5379 haveit=yes
5380 break
5382 done
5383 if test -z "$haveit"; then
5384 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5386 done
5389 echo "$as_me:$LINENO: checking for iconv" >&5
5390 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5391 if test "${am_cv_func_iconv+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5395 am_cv_func_iconv="no, consider installing GNU libiconv"
5396 am_cv_lib_iconv=no
5397 cat >conftest.$ac_ext <<_ACEOF
5398 #line $LINENO "configure"
5399 #include "confdefs.h"
5400 #include <stdlib.h>
5401 #include <iconv.h>
5402 #ifdef F77_DUMMY_MAIN
5403 # ifdef __cplusplus
5404 extern "C"
5405 # endif
5406 int F77_DUMMY_MAIN() { return 1; }
5407 #endif
5409 main ()
5411 iconv_t cd = iconv_open("","");
5412 iconv(cd,NULL,NULL,NULL,NULL);
5413 iconv_close(cd);
5415 return 0;
5417 _ACEOF
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -s conftest$ac_exeext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 am_cv_func_iconv=yes
5431 else
5432 echo "$as_me: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 if test "$am_cv_func_iconv" != yes; then
5437 am_save_LIBS="$LIBS"
5438 LIBS="$LIBS $LIBICONV"
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line $LINENO "configure"
5441 #include "confdefs.h"
5442 #include <stdlib.h>
5443 #include <iconv.h>
5444 #ifdef F77_DUMMY_MAIN
5445 # ifdef __cplusplus
5446 extern "C"
5447 # endif
5448 int F77_DUMMY_MAIN() { return 1; }
5449 #endif
5451 main ()
5453 iconv_t cd = iconv_open("","");
5454 iconv(cd,NULL,NULL,NULL,NULL);
5455 iconv_close(cd);
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext conftest$ac_exeext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5463 ac_status=$?
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 am_cv_lib_iconv=yes
5473 am_cv_func_iconv=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS="$am_save_LIBS"
5483 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5484 echo "${ECHO_T}$am_cv_func_iconv" >&6
5485 if test "$am_cv_func_iconv" = yes; then
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_ICONV 1
5489 _ACEOF
5492 if test "$am_cv_lib_iconv" = yes; then
5493 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5494 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5495 echo "$as_me:$LINENO: result: $LIBICONV" >&5
5496 echo "${ECHO_T}$LIBICONV" >&6
5497 else
5498 CPPFLAGS="$am_save_CPPFLAGS"
5499 LIBICONV=
5500 LTLIBICONV=
5508 use_additional=yes
5510 acl_save_prefix="$prefix"
5511 prefix="$acl_final_prefix"
5512 acl_save_exec_prefix="$exec_prefix"
5513 exec_prefix="$acl_final_exec_prefix"
5515 eval additional_includedir=\"$includedir\"
5516 eval additional_libdir=\"$libdir\"
5518 exec_prefix="$acl_save_exec_prefix"
5519 prefix="$acl_save_prefix"
5522 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5523 if test "${with_libintl_prefix+set}" = set; then
5524 withval="$with_libintl_prefix"
5526 if test "X$withval" = "Xno"; then
5527 use_additional=no
5528 else
5529 if test "X$withval" = "X"; then
5531 acl_save_prefix="$prefix"
5532 prefix="$acl_final_prefix"
5533 acl_save_exec_prefix="$exec_prefix"
5534 exec_prefix="$acl_final_exec_prefix"
5536 eval additional_includedir=\"$includedir\"
5537 eval additional_libdir=\"$libdir\"
5539 exec_prefix="$acl_save_exec_prefix"
5540 prefix="$acl_save_prefix"
5542 else
5543 additional_includedir="$withval/include"
5544 additional_libdir="$withval/lib"
5549 LIBINTL=
5550 LTLIBINTL=
5551 INCINTL=
5552 rpathdirs=
5553 ltrpathdirs=
5554 names_already_handled=
5555 names_next_round='intl '
5556 while test -n "$names_next_round"; do
5557 names_this_round="$names_next_round"
5558 names_next_round=
5559 for name in $names_this_round; do
5560 already_handled=
5561 for n in $names_already_handled; do
5562 if test "$n" = "$name"; then
5563 already_handled=yes
5564 break
5566 done
5567 if test -z "$already_handled"; then
5568 names_already_handled="$names_already_handled $name"
5569 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5570 eval value=\"\$HAVE_LIB$uppername\"
5571 if test -n "$value"; then
5572 if test "$value" = yes; then
5573 eval value=\"\$LIB$uppername\"
5574 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5575 eval value=\"\$LTLIB$uppername\"
5576 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5577 else
5580 else
5581 found_dir=
5582 found_la=
5583 found_so=
5584 found_a=
5585 if test $use_additional = yes; then
5586 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5587 found_dir="$additional_libdir"
5588 found_so="$additional_libdir/lib$name.$shlibext"
5589 if test -f "$additional_libdir/lib$name.la"; then
5590 found_la="$additional_libdir/lib$name.la"
5592 else
5593 if test -f "$additional_libdir/lib$name.$libext"; then
5594 found_dir="$additional_libdir"
5595 found_a="$additional_libdir/lib$name.$libext"
5596 if test -f "$additional_libdir/lib$name.la"; then
5597 found_la="$additional_libdir/lib$name.la"
5602 if test "X$found_dir" = "X"; then
5603 for x in $LDFLAGS $LTLIBINTL; do
5605 acl_save_prefix="$prefix"
5606 prefix="$acl_final_prefix"
5607 acl_save_exec_prefix="$exec_prefix"
5608 exec_prefix="$acl_final_exec_prefix"
5609 eval x=\"$x\"
5610 exec_prefix="$acl_save_exec_prefix"
5611 prefix="$acl_save_prefix"
5613 case "$x" in
5614 -L*)
5615 dir=`echo "X$x" | sed -e 's/^X-L//'`
5616 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5617 found_dir="$dir"
5618 found_so="$dir/lib$name.$shlibext"
5619 if test -f "$dir/lib$name.la"; then
5620 found_la="$dir/lib$name.la"
5622 else
5623 if test -f "$dir/lib$name.$libext"; then
5624 found_dir="$dir"
5625 found_a="$dir/lib$name.$libext"
5626 if test -f "$dir/lib$name.la"; then
5627 found_la="$dir/lib$name.la"
5632 esac
5633 if test "X$found_dir" != "X"; then
5634 break
5636 done
5638 if test "X$found_dir" != "X"; then
5639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5640 if test "X$found_so" != "X"; then
5641 if test "X$found_dir" = "X/usr/lib"; then
5642 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5643 else
5644 haveit=
5645 for x in $ltrpathdirs; do
5646 if test "X$x" = "X$found_dir"; then
5647 haveit=yes
5648 break
5650 done
5651 if test -z "$haveit"; then
5652 ltrpathdirs="$ltrpathdirs $found_dir"
5654 if test "$hardcode_direct" = yes; then
5655 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5656 else
5657 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5658 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5659 haveit=
5660 for x in $rpathdirs; do
5661 if test "X$x" = "X$found_dir"; then
5662 haveit=yes
5663 break
5665 done
5666 if test -z "$haveit"; then
5667 rpathdirs="$rpathdirs $found_dir"
5669 else
5670 haveit=
5671 for x in $LDFLAGS $LIBINTL; do
5673 acl_save_prefix="$prefix"
5674 prefix="$acl_final_prefix"
5675 acl_save_exec_prefix="$exec_prefix"
5676 exec_prefix="$acl_final_exec_prefix"
5677 eval x=\"$x\"
5678 exec_prefix="$acl_save_exec_prefix"
5679 prefix="$acl_save_prefix"
5681 if test "X$x" = "X-L$found_dir"; then
5682 haveit=yes
5683 break
5685 done
5686 if test -z "$haveit"; then
5687 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5689 if test "$hardcode_minus_L" != no; then
5690 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5691 else
5692 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5697 else
5698 if test "X$found_a" != "X"; then
5699 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5700 else
5701 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5704 additional_includedir=
5705 case "$found_dir" in
5706 */lib | */lib/)
5707 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5708 additional_includedir="$basedir/include"
5710 esac
5711 if test "X$additional_includedir" != "X"; then
5712 if test "X$additional_includedir" != "X/usr/include"; then
5713 haveit=
5714 if test "X$additional_includedir" = "X/usr/local/include"; then
5715 if test -n "$GCC"; then
5716 case $host_os in
5717 linux*) haveit=yes;;
5718 esac
5721 if test -z "$haveit"; then
5722 for x in $CPPFLAGS $INCINTL; do
5724 acl_save_prefix="$prefix"
5725 prefix="$acl_final_prefix"
5726 acl_save_exec_prefix="$exec_prefix"
5727 exec_prefix="$acl_final_exec_prefix"
5728 eval x=\"$x\"
5729 exec_prefix="$acl_save_exec_prefix"
5730 prefix="$acl_save_prefix"
5732 if test "X$x" = "X-I$additional_includedir"; then
5733 haveit=yes
5734 break
5736 done
5737 if test -z "$haveit"; then
5738 if test -d "$additional_includedir"; then
5739 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5745 if test -n "$found_la"; then
5746 save_libdir="$libdir"
5747 case "$found_la" in
5748 */* | *\\*) . "$found_la" ;;
5749 *) . "./$found_la" ;;
5750 esac
5751 libdir="$save_libdir"
5752 for dep in $dependency_libs; do
5753 case "$dep" in
5754 -L*)
5755 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5756 if test "X$additional_libdir" != "X/usr/lib"; then
5757 haveit=
5758 if test "X$additional_libdir" = "X/usr/local/lib"; then
5759 if test -n "$GCC"; then
5760 case $host_os in
5761 linux*) haveit=yes;;
5762 esac
5765 if test -z "$haveit"; then
5766 haveit=
5767 for x in $LDFLAGS $LIBINTL; do
5769 acl_save_prefix="$prefix"
5770 prefix="$acl_final_prefix"
5771 acl_save_exec_prefix="$exec_prefix"
5772 exec_prefix="$acl_final_exec_prefix"
5773 eval x=\"$x\"
5774 exec_prefix="$acl_save_exec_prefix"
5775 prefix="$acl_save_prefix"
5777 if test "X$x" = "X-L$additional_libdir"; then
5778 haveit=yes
5779 break
5781 done
5782 if test -z "$haveit"; then
5783 if test -d "$additional_libdir"; then
5784 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5787 haveit=
5788 for x in $LDFLAGS $LTLIBINTL; do
5790 acl_save_prefix="$prefix"
5791 prefix="$acl_final_prefix"
5792 acl_save_exec_prefix="$exec_prefix"
5793 exec_prefix="$acl_final_exec_prefix"
5794 eval x=\"$x\"
5795 exec_prefix="$acl_save_exec_prefix"
5796 prefix="$acl_save_prefix"
5798 if test "X$x" = "X-L$additional_libdir"; then
5799 haveit=yes
5800 break
5802 done
5803 if test -z "$haveit"; then
5804 if test -d "$additional_libdir"; then
5805 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5811 -l*)
5812 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5814 *.la)
5815 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5818 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5819 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5821 esac
5822 done
5824 else
5825 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5826 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5830 done
5831 done
5832 if test "X$rpathdirs" != "X"; then
5833 if test -n "$hardcode_libdir_separator"; then
5834 alldirs=
5835 for found_dir in $rpathdirs; do
5836 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5837 done
5838 acl_save_libdir="$libdir"
5839 libdir="$alldirs"
5840 eval flag=\"$hardcode_libdir_flag_spec\"
5841 libdir="$acl_save_libdir"
5842 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5843 else
5844 for found_dir in $rpathdirs; do
5845 acl_save_libdir="$libdir"
5846 libdir="$found_dir"
5847 eval flag=\"$hardcode_libdir_flag_spec\"
5848 libdir="$acl_save_libdir"
5849 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5850 done
5853 if test "X$ltrpathdirs" != "X"; then
5854 for found_dir in $ltrpathdirs; do
5855 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5856 done
5859 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5860 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5861 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864 gt_save_CPPFLAGS="$CPPFLAGS"
5865 CPPFLAGS="$CPPFLAGS $INCINTL"
5866 gt_save_LIBS="$LIBS"
5867 LIBS="$LIBS $LIBINTL"
5868 cat >conftest.$ac_ext <<_ACEOF
5869 #line $LINENO "configure"
5870 #include "confdefs.h"
5871 #include <libintl.h>
5872 extern int _nl_msg_cat_cntr;
5873 extern int *_nl_domain_bindings;
5874 extern
5875 #ifdef __cplusplus
5877 #endif
5878 const char *_nl_expand_alias ();
5879 #ifdef F77_DUMMY_MAIN
5880 # ifdef __cplusplus
5881 extern "C"
5882 # endif
5883 int F77_DUMMY_MAIN() { return 1; }
5884 #endif
5886 main ()
5888 bindtextdomain ("", "");
5889 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
5891 return 0;
5893 _ACEOF
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5896 (eval $ac_link) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 gt_cv_func_gnugettext1_libintl=yes
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5910 gt_cv_func_gnugettext1_libintl=no
5912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5913 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5914 LIBS="$LIBS $LIBICONV"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line $LINENO "configure"
5917 #include "confdefs.h"
5918 #include <libintl.h>
5919 extern int _nl_msg_cat_cntr;
5920 extern int *_nl_domain_bindings;
5921 extern
5922 #ifdef __cplusplus
5924 #endif
5925 const char *_nl_expand_alias ();
5926 #ifdef F77_DUMMY_MAIN
5927 # ifdef __cplusplus
5928 extern "C"
5929 # endif
5930 int F77_DUMMY_MAIN() { return 1; }
5931 #endif
5933 main ()
5935 bindtextdomain ("", "");
5936 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
5938 return 0;
5940 _ACEOF
5941 rm -f conftest.$ac_objext conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest$ac_exeext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 LIBINTL="$LIBINTL $LIBICONV"
5954 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5955 gt_cv_func_gnugettext1_libintl=yes
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963 CPPFLAGS="$gt_save_CPPFLAGS"
5964 LIBS="$gt_save_LIBS"
5966 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5967 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5970 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5971 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5972 && test "$PACKAGE" != gettext; }; then
5973 gt_use_preinstalled_gnugettext=yes
5974 else
5975 LIBINTL=
5976 LTLIBINTL=
5977 INCINTL=
5982 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5983 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5985 cat >>confdefs.h <<\_ACEOF
5986 #define ENABLE_NLS 1
5987 _ACEOF
5989 else
5990 USE_NLS=no
5994 if test "$USE_NLS" = "yes"; then
5996 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5997 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5998 echo "$as_me:$LINENO: checking how to link with libintl" >&5
5999 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6000 echo "$as_me:$LINENO: result: $LIBINTL" >&5
6001 echo "${ECHO_T}$LIBINTL" >&6
6003 for element in $INCINTL; do
6004 haveit=
6005 for x in $CPPFLAGS; do
6007 acl_save_prefix="$prefix"
6008 prefix="$acl_final_prefix"
6009 acl_save_exec_prefix="$exec_prefix"
6010 exec_prefix="$acl_final_exec_prefix"
6011 eval x=\"$x\"
6012 exec_prefix="$acl_save_exec_prefix"
6013 prefix="$acl_save_prefix"
6015 if test "X$x" = "X$element"; then
6016 haveit=yes
6017 break
6019 done
6020 if test -z "$haveit"; then
6021 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6023 done
6028 cat >>confdefs.h <<\_ACEOF
6029 #define HAVE_GETTEXT 1
6030 _ACEOF
6033 cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_DCGETTEXT 1
6035 _ACEOF
6039 POSUB=po
6044 INTLLIBS="$LIBINTL"
6051 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6057 ac_header_dirent=no
6058 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6059 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6060 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6061 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 else
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6068 #include <sys/types.h>
6069 #include <$ac_hdr>
6071 #ifdef F77_DUMMY_MAIN
6072 # ifdef __cplusplus
6073 extern "C"
6074 # endif
6075 int F77_DUMMY_MAIN() { return 1; }
6076 #endif
6078 main ()
6080 if ((DIR *) 0)
6081 return 0;
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 eval "$as_ac_Header=yes"
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 eval "$as_ac_Header=no"
6104 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6109 cat >>confdefs.h <<_ACEOF
6110 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6111 _ACEOF
6113 ac_header_dirent=$ac_hdr; break
6116 done
6117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6118 if test $ac_header_dirent = dirent.h; then
6119 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6121 if test "${ac_cv_search_opendir+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124 ac_func_search_save_LIBS=$LIBS
6125 ac_cv_search_opendir=no
6126 cat >conftest.$ac_ext <<_ACEOF
6127 #line $LINENO "configure"
6128 #include "confdefs.h"
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135 builtin and then its argument prototype would still apply. */
6136 char opendir ();
6137 #ifdef F77_DUMMY_MAIN
6138 # ifdef __cplusplus
6139 extern "C"
6140 # endif
6141 int F77_DUMMY_MAIN() { return 1; }
6142 #endif
6144 main ()
6146 opendir ();
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -s conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_search_opendir="none required"
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 if test "$ac_cv_search_opendir" = no; then
6170 for ac_lib in dir; do
6171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 #include "confdefs.h"
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 #ifdef __cplusplus
6178 extern "C"
6179 #endif
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6182 char opendir ();
6183 #ifdef F77_DUMMY_MAIN
6184 # ifdef __cplusplus
6185 extern "C"
6186 # endif
6187 int F77_DUMMY_MAIN() { return 1; }
6188 #endif
6190 main ()
6192 opendir ();
6194 return 0;
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try='test -s conftest$ac_exeext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 (eval $ac_try) 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 ac_cv_search_opendir="-l$ac_lib"
6210 break
6211 else
6212 echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 done
6218 LIBS=$ac_func_search_save_LIBS
6220 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6221 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6222 if test "$ac_cv_search_opendir" != no; then
6223 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6227 else
6228 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6229 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6230 if test "${ac_cv_search_opendir+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 ac_func_search_save_LIBS=$LIBS
6234 ac_cv_search_opendir=no
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 #include "confdefs.h"
6239 /* Override any gcc2 internal prototype to avoid an error. */
6240 #ifdef __cplusplus
6241 extern "C"
6242 #endif
6243 /* We use char because int might match the return type of a gcc2
6244 builtin and then its argument prototype would still apply. */
6245 char opendir ();
6246 #ifdef F77_DUMMY_MAIN
6247 # ifdef __cplusplus
6248 extern "C"
6249 # endif
6250 int F77_DUMMY_MAIN() { return 1; }
6251 #endif
6253 main ()
6255 opendir ();
6257 return 0;
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 ac_cv_search_opendir="none required"
6273 else
6274 echo "$as_me: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6278 if test "$ac_cv_search_opendir" = no; then
6279 for ac_lib in x; do
6280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6283 #include "confdefs.h"
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 #ifdef __cplusplus
6287 extern "C"
6288 #endif
6289 /* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291 char opendir ();
6292 #ifdef F77_DUMMY_MAIN
6293 # ifdef __cplusplus
6294 extern "C"
6295 # endif
6296 int F77_DUMMY_MAIN() { return 1; }
6297 #endif
6299 main ()
6301 opendir ();
6303 return 0;
6305 _ACEOF
6306 rm -f conftest.$ac_objext 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); } &&
6312 { ac_try='test -s conftest$ac_exeext'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 ac_cv_search_opendir="-l$ac_lib"
6319 break
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 done
6327 LIBS=$ac_func_search_save_LIBS
6329 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6330 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6331 if test "$ac_cv_search_opendir" != no; then
6332 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6338 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6339 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6340 if test "${ac_cv_header_stat_broken+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 #include <sys/types.h>
6347 #include <sys/stat.h>
6349 #if defined(S_ISBLK) && defined(S_IFDIR)
6350 # if S_ISBLK (S_IFDIR)
6351 You lose.
6352 # endif
6353 #endif
6355 #if defined(S_ISBLK) && defined(S_IFCHR)
6356 # if S_ISBLK (S_IFCHR)
6357 You lose.
6358 # endif
6359 #endif
6361 #if defined(S_ISLNK) && defined(S_IFREG)
6362 # if S_ISLNK (S_IFREG)
6363 You lose.
6364 # endif
6365 #endif
6367 #if defined(S_ISSOCK) && defined(S_IFREG)
6368 # if S_ISSOCK (S_IFREG)
6369 You lose.
6370 # endif
6371 #endif
6373 _ACEOF
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 egrep "You lose" >/dev/null 2>&1; then
6376 ac_cv_header_stat_broken=yes
6377 else
6378 ac_cv_header_stat_broken=no
6380 rm -f conftest*
6383 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6384 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6385 if test $ac_cv_header_stat_broken = yes; then
6387 cat >>confdefs.h <<\_ACEOF
6388 #define STAT_MACROS_BROKEN 1
6389 _ACEOF
6393 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6394 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6395 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398 cat >conftest.$ac_ext <<_ACEOF
6399 #line $LINENO "configure"
6400 #include "confdefs.h"
6401 #include <sys/types.h>
6402 #include <sys/wait.h>
6403 #ifndef WEXITSTATUS
6404 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6405 #endif
6406 #ifndef WIFEXITED
6407 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6408 #endif
6410 #ifdef F77_DUMMY_MAIN
6411 # ifdef __cplusplus
6412 extern "C"
6413 # endif
6414 int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6417 main ()
6419 int s;
6420 wait (&s);
6421 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6423 return 0;
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -s conftest.$ac_objext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_header_sys_wait_h=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 ac_cv_header_sys_wait_h=no
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6447 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6448 if test $ac_cv_header_sys_wait_h = yes; then
6450 cat >>confdefs.h <<\_ACEOF
6451 #define HAVE_SYS_WAIT_H 1
6452 _ACEOF
6456 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6457 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6458 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 ac_save_CPPFLAGS="$CPPFLAGS"
6462 ac_cv_struct_st_mtim_nsec=no
6463 # tv_nsec -- the usual case
6464 # _tv_nsec -- Solaris 2.6, if
6465 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6466 # && !defined __EXTENSIONS__)
6467 # st__tim.tv_nsec -- UnixWare 2.1.2
6468 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6469 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6473 #include <sys/types.h>
6474 #include <sys/stat.h>
6475 #ifdef F77_DUMMY_MAIN
6476 # ifdef __cplusplus
6477 extern "C"
6478 # endif
6479 int F77_DUMMY_MAIN() { return 1; }
6480 #endif
6482 main ()
6484 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6486 return 0;
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>&5
6492 ac_status=$?
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 (eval $ac_try) 2>&5
6498 ac_status=$?
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_struct_st_mtim_nsec=$ac_val; break
6502 else
6503 echo "$as_me: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6506 rm -f conftest.$ac_objext conftest.$ac_ext
6507 done
6508 CPPFLAGS="$ac_save_CPPFLAGS"
6510 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6511 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6513 if test $ac_cv_struct_st_mtim_nsec != no; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6517 _ACEOF
6522 echo "$as_me:$LINENO: checking for pid_t" >&5
6523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6524 if test "${ac_cv_type_pid_t+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 #include "confdefs.h"
6530 $ac_includes_default
6531 #ifdef F77_DUMMY_MAIN
6532 # ifdef __cplusplus
6533 extern "C"
6534 # endif
6535 int F77_DUMMY_MAIN() { return 1; }
6536 #endif
6538 main ()
6540 if ((pid_t *) 0)
6541 return 0;
6542 if (sizeof (pid_t))
6543 return 0;
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6550 (eval $ac_compile) 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try='test -s conftest.$ac_objext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_type_pid_t=yes
6561 else
6562 echo "$as_me: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6564 ac_cv_type_pid_t=no
6566 rm -f conftest.$ac_objext conftest.$ac_ext
6568 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6569 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6570 if test $ac_cv_type_pid_t = yes; then
6572 else
6574 cat >>confdefs.h <<_ACEOF
6575 #define pid_t int
6576 _ACEOF
6580 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6581 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6582 if test "${ac_cv_type_signal+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line $LINENO "configure"
6587 #include "confdefs.h"
6588 #include <sys/types.h>
6589 #include <signal.h>
6590 #ifdef signal
6591 # undef signal
6592 #endif
6593 #ifdef __cplusplus
6594 extern "C" void (*signal (int, void (*)(int)))(int);
6595 #else
6596 void (*signal ()) ();
6597 #endif
6599 #ifdef F77_DUMMY_MAIN
6600 # ifdef __cplusplus
6601 extern "C"
6602 # endif
6603 int F77_DUMMY_MAIN() { return 1; }
6604 #endif
6606 main ()
6608 int i;
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_cv_type_signal=void
6626 else
6627 echo "$as_me: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 ac_cv_type_signal=int
6631 rm -f conftest.$ac_objext conftest.$ac_ext
6633 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6634 echo "${ECHO_T}$ac_cv_type_signal" >&6
6636 cat >>confdefs.h <<_ACEOF
6637 #define RETSIGTYPE $ac_cv_type_signal
6638 _ACEOF
6650 for ac_func in diraccess dup2 gettimeofday \
6651 sigaction sigprocmask strchr strerror tmpnam
6653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654 echo "$as_me:$LINENO: checking for $ac_func" >&5
6655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6656 if eval "test \"\${$as_ac_var+set}\" = set"; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line $LINENO "configure"
6661 #include "confdefs.h"
6662 /* System header to define __stub macros and hopefully few prototypes,
6663 which can conflict with char $ac_func (); below. */
6664 #include <assert.h>
6665 /* Override any gcc2 internal prototype to avoid an error. */
6666 #ifdef __cplusplus
6667 extern "C"
6668 #endif
6669 /* We use char because int might match the return type of a gcc2
6670 builtin and then its argument prototype would still apply. */
6671 char $ac_func ();
6672 char (*f) ();
6674 #ifdef F77_DUMMY_MAIN
6675 # ifdef __cplusplus
6676 extern "C"
6677 # endif
6678 int F77_DUMMY_MAIN() { return 1; }
6679 #endif
6681 main ()
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 choke me
6688 #else
6689 f = $ac_func;
6690 #endif
6693 return 0;
6695 _ACEOF
6696 rm -f conftest.$ac_objext conftest$ac_exeext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6698 (eval $ac_link) 2>&5
6699 ac_status=$?
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -s conftest$ac_exeext'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 (eval $ac_try) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 eval "$as_ac_var=yes"
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
6712 eval "$as_ac_var=no"
6714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6718 if test `eval echo '${'$as_ac_var'}'` = yes; then
6719 cat >>confdefs.h <<_ACEOF
6720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6721 _ACEOF
6724 done
6730 for ac_func in memchr mkstemp strcasecmp waitpid
6732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6733 echo "$as_me:$LINENO: checking for $ac_func" >&5
6734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6735 if eval "test \"\${$as_ac_var+set}\" = set"; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738 cat >conftest.$ac_ext <<_ACEOF
6739 #line $LINENO "configure"
6740 #include "confdefs.h"
6741 /* System header to define __stub macros and hopefully few prototypes,
6742 which can conflict with char $ac_func (); below. */
6743 #include <assert.h>
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char $ac_func ();
6751 char (*f) ();
6753 #ifdef F77_DUMMY_MAIN
6754 # ifdef __cplusplus
6755 extern "C"
6756 # endif
6757 int F77_DUMMY_MAIN() { return 1; }
6758 #endif
6760 main ()
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6766 choke me
6767 #else
6768 f = $ac_func;
6769 #endif
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 eval "$as_ac_var=yes"
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 eval "$as_ac_var=no"
6793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6797 if test `eval echo '${'$as_ac_var'}'` = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6800 _ACEOF
6802 else
6803 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6805 done
6808 if test $ac_cv_func_mkstemp != yes; then
6809 LIBOBJS="$LIBOBJS tempname.$ac_objext"
6811 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6812 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
6813 if test "${ac_cv_func_closedir_void+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 if test "$cross_compiling" = yes; then
6817 ac_cv_func_closedir_void=yes
6818 else
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 #include "confdefs.h"
6822 $ac_includes_default
6823 #include <$ac_header_dirent>
6824 #ifndef __cplusplus
6825 int closedir ();
6826 #endif
6828 #ifdef F77_DUMMY_MAIN
6829 # ifdef __cplusplus
6830 extern "C"
6831 # endif
6832 int F77_DUMMY_MAIN() { return 1; }
6833 #endif
6835 main ()
6837 exit (closedir (opendir (".")) != 0);
6839 return 0;
6841 _ACEOF
6842 rm -f conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 (eval $ac_try) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 ac_cv_func_closedir_void=no
6854 else
6855 echo "$as_me: program exited with status $ac_status" >&5
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 ( exit $ac_status )
6859 ac_cv_func_closedir_void=yes
6861 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6864 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6865 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
6866 if test $ac_cv_func_closedir_void = yes; then
6868 cat >>confdefs.h <<\_ACEOF
6869 #define CLOSEDIR_VOID 1
6870 _ACEOF
6876 for ac_header in unistd.h vfork.h
6878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6880 echo "$as_me:$LINENO: checking for $ac_header" >&5
6881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6887 else
6888 # Is the header compilable?
6889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 #include "confdefs.h"
6894 $ac_includes_default
6895 #include <$ac_header>
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest.$ac_objext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_header_compiler=yes
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 ac_header_compiler=no
6915 rm -f conftest.$ac_objext conftest.$ac_ext
6916 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6917 echo "${ECHO_T}$ac_header_compiler" >&6
6919 # Is the header present?
6920 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 #include "confdefs.h"
6925 #include <$ac_header>
6926 _ACEOF
6927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929 ac_status=$?
6930 egrep -v '^ *\+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null; then
6935 if test -s conftest.err; then
6936 ac_cpp_err=$ac_c_preproc_warn_flag
6937 else
6938 ac_cpp_err=
6940 else
6941 ac_cpp_err=yes
6943 if test -z "$ac_cpp_err"; then
6944 ac_header_preproc=yes
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 ac_header_preproc=no
6950 rm -f conftest.err conftest.$ac_ext
6951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6952 echo "${ECHO_T}$ac_header_preproc" >&6
6954 # So? What about this header?
6955 case $ac_header_compiler:$ac_header_preproc in
6956 yes:no )
6957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6960 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6961 no:yes )
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6968 esac
6969 echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 eval "$as_ac_Header=$ac_header_preproc"
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6983 _ACEOF
6987 done
6991 for ac_func in fork vfork
6993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6994 echo "$as_me:$LINENO: checking for $ac_func" >&5
6995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6996 if eval "test \"\${$as_ac_var+set}\" = set"; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line $LINENO "configure"
7001 #include "confdefs.h"
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char $ac_func (); below. */
7004 #include <assert.h>
7005 /* Override any gcc2 internal prototype to avoid an error. */
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7011 char $ac_func ();
7012 char (*f) ();
7014 #ifdef F77_DUMMY_MAIN
7015 # ifdef __cplusplus
7016 extern "C"
7017 # endif
7018 int F77_DUMMY_MAIN() { return 1; }
7019 #endif
7021 main ()
7023 /* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7027 choke me
7028 #else
7029 f = $ac_func;
7030 #endif
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038 (eval $ac_link) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 eval "$as_ac_var=yes"
7049 else
7050 echo "$as_me: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7052 eval "$as_ac_var=no"
7054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058 if test `eval echo '${'$as_ac_var'}'` = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7061 _ACEOF
7064 done
7066 ac_cv_func_fork_works=$ac_cv_func_fork
7067 if test "x$ac_cv_func_fork" = xyes; then
7068 echo "$as_me:$LINENO: checking for working fork" >&5
7069 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7070 if test "${ac_cv_func_fork_works+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 if test "$cross_compiling" = yes; then
7074 ac_cv_func_fork_works=cross
7075 else
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* By Ruediger Kuhlmann. */
7078 #include <sys/types.h>
7079 #if HAVE_UNISTD_H
7080 # include <unistd.h>
7081 #endif
7082 /* Some systems only have a dummy stub for fork() */
7083 int main ()
7085 if (fork() < 0)
7086 exit (1);
7087 exit (0);
7089 _ACEOF
7090 rm -f conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 ac_cv_func_fork_works=yes
7102 else
7103 echo "$as_me: program exited with status $ac_status" >&5
7104 echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 ( exit $ac_status )
7107 ac_cv_func_fork_works=no
7109 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7112 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7113 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7116 if test "x$ac_cv_func_fork_works" = xcross; then
7117 case $host in
7118 *-*-amigaos* | *-*-msdosdjgpp*)
7119 # Override, as these systems have only a dummy fork() stub
7120 ac_cv_func_fork_works=no
7123 ac_cv_func_fork_works=yes
7125 esac
7126 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7127 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7129 ac_cv_func_vfork_works=$ac_cv_func_vfork
7130 if test "x$ac_cv_func_vfork" = xyes; then
7131 echo "$as_me:$LINENO: checking for working vfork" >&5
7132 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7133 if test "${ac_cv_func_vfork_works+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136 if test "$cross_compiling" = yes; then
7137 ac_cv_func_vfork_works=cross
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7142 /* Thanks to Paul Eggert for this test. */
7143 #include <stdio.h>
7144 #include <sys/types.h>
7145 #include <sys/stat.h>
7146 #if HAVE_UNISTD_H
7147 # include <unistd.h>
7148 #endif
7149 #if HAVE_VFORK_H
7150 # include <vfork.h>
7151 #endif
7152 /* On some sparc systems, changes by the child to local and incoming
7153 argument registers are propagated back to the parent. The compiler
7154 is told about this with #include <vfork.h>, but some compilers
7155 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7156 static variable whose address is put into a register that is
7157 clobbered by the vfork. */
7158 static
7159 #ifdef __cplusplus
7160 sparc_address_test (int arg)
7161 # else
7162 sparc_address_test (arg) int arg;
7163 #endif
7165 static pid_t child;
7166 if (!child) {
7167 child = vfork ();
7168 if (child < 0) {
7169 perror ("vfork");
7170 _exit(2);
7172 if (!child) {
7173 arg = getpid();
7174 write(-1, "", 0);
7175 _exit (arg);
7181 main ()
7183 pid_t parent = getpid ();
7184 pid_t child;
7186 sparc_address_test ();
7188 child = vfork ();
7190 if (child == 0) {
7191 /* Here is another test for sparc vfork register problems. This
7192 test uses lots of local variables, at least as many local
7193 variables as main has allocated so far including compiler
7194 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7195 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7196 reuse the register of parent for one of the local variables,
7197 since it will think that parent can't possibly be used any more
7198 in this routine. Assigning to the local variable will thus
7199 munge parent in the parent process. */
7200 pid_t
7201 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7202 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7203 /* Convince the compiler that p..p7 are live; otherwise, it might
7204 use the same hardware register for all 8 local variables. */
7205 if (p != p1 || p != p2 || p != p3 || p != p4
7206 || p != p5 || p != p6 || p != p7)
7207 _exit(1);
7209 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7210 from child file descriptors. If the child closes a descriptor
7211 before it execs or exits, this munges the parent's descriptor
7212 as well. Test for this by closing stdout in the child. */
7213 _exit(close(fileno(stdout)) != 0);
7214 } else {
7215 int status;
7216 struct stat st;
7218 while (wait(&status) != child)
7220 exit(
7221 /* Was there some problem with vforking? */
7222 child < 0
7224 /* Did the child fail? (This shouldn't happen.) */
7225 || status
7227 /* Did the vfork/compiler bug occur? */
7228 || parent != getpid()
7230 /* Did the file descriptor bug occur? */
7231 || fstat(fileno(stdout), &st) != 0
7235 _ACEOF
7236 rm -f conftest$ac_exeext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7238 (eval $ac_link) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_func_vfork_works=yes
7248 else
7249 echo "$as_me: program exited with status $ac_status" >&5
7250 echo "$as_me: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 ( exit $ac_status )
7253 ac_cv_func_vfork_works=no
7255 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7258 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7259 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7262 if test "x$ac_cv_func_fork_works" = xcross; then
7263 ac_cv_func_vfork_works=ac_cv_func_vfork
7264 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7265 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7268 if test "x$ac_cv_func_vfork_works" = xyes; then
7270 cat >>confdefs.h <<\_ACEOF
7271 #define HAVE_WORKING_VFORK 1
7272 _ACEOF
7274 else
7276 cat >>confdefs.h <<\_ACEOF
7277 #define vfork fork
7278 _ACEOF
7281 if test "x$ac_cv_func_fork_works" = xyes; then
7283 cat >>confdefs.h <<\_ACEOF
7284 #define HAVE_WORKING_FORK 1
7285 _ACEOF
7290 for ac_func in vprintf
7292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7293 echo "$as_me:$LINENO: checking for $ac_func" >&5
7294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7295 if eval "test \"\${$as_ac_var+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 #include "confdefs.h"
7301 /* System header to define __stub macros and hopefully few prototypes,
7302 which can conflict with char $ac_func (); below. */
7303 #include <assert.h>
7304 /* Override any gcc2 internal prototype to avoid an error. */
7305 #ifdef __cplusplus
7306 extern "C"
7307 #endif
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7310 char $ac_func ();
7311 char (*f) ();
7313 #ifdef F77_DUMMY_MAIN
7314 # ifdef __cplusplus
7315 extern "C"
7316 # endif
7317 int F77_DUMMY_MAIN() { return 1; }
7318 #endif
7320 main ()
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7326 choke me
7327 #else
7328 f = $ac_func;
7329 #endif
7332 return 0;
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -s conftest$ac_exeext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 eval "$as_ac_var=yes"
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7351 eval "$as_ac_var=no"
7353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7357 if test `eval echo '${'$as_ac_var'}'` = yes; then
7358 cat >>confdefs.h <<_ACEOF
7359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7360 _ACEOF
7362 echo "$as_me:$LINENO: checking for _doprnt" >&5
7363 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7364 if test "${ac_cv_func__doprnt+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367 cat >conftest.$ac_ext <<_ACEOF
7368 #line $LINENO "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char _doprnt (); below. */
7372 #include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 #ifdef __cplusplus
7375 extern "C"
7376 #endif
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7379 char _doprnt ();
7380 char (*f) ();
7382 #ifdef F77_DUMMY_MAIN
7383 # ifdef __cplusplus
7384 extern "C"
7385 # endif
7386 int F77_DUMMY_MAIN() { return 1; }
7387 #endif
7389 main ()
7391 /* The GNU C library defines this for functions which it implements
7392 to always fail with ENOSYS. Some functions are actually named
7393 something starting with __ and the normal name is an alias. */
7394 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7395 choke me
7396 #else
7397 f = _doprnt;
7398 #endif
7401 return 0;
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_func__doprnt=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7420 ac_cv_func__doprnt=no
7422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7425 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7426 if test $ac_cv_func__doprnt = yes; then
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_DOPRNT 1
7430 _ACEOF
7435 done
7438 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
7439 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
7440 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 $ac_includes_default
7447 #ifdef F77_DUMMY_MAIN
7448 # ifdef __cplusplus
7449 extern "C"
7450 # endif
7451 int F77_DUMMY_MAIN() { return 1; }
7452 #endif
7454 main ()
7456 #ifndef clearerr_unlocked
7457 char *p = (char *) clearerr_unlocked;
7458 #endif
7461 return 0;
7463 _ACEOF
7464 rm -f conftest.$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_have_decl_clearerr_unlocked=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 ac_cv_have_decl_clearerr_unlocked=no
7482 rm -f conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
7485 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
7486 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define HAVE_DECL_CLEARERR_UNLOCKED 1
7490 _ACEOF
7493 else
7494 cat >>confdefs.h <<_ACEOF
7495 #define HAVE_DECL_CLEARERR_UNLOCKED 0
7496 _ACEOF
7500 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
7501 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
7502 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 $ac_includes_default
7509 #ifdef F77_DUMMY_MAIN
7510 # ifdef __cplusplus
7511 extern "C"
7512 # endif
7513 int F77_DUMMY_MAIN() { return 1; }
7514 #endif
7516 main ()
7518 #ifndef feof_unlocked
7519 char *p = (char *) feof_unlocked;
7520 #endif
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 ac_cv_have_decl_feof_unlocked=yes
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7542 ac_cv_have_decl_feof_unlocked=no
7544 rm -f conftest.$ac_objext conftest.$ac_ext
7546 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
7547 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
7548 if test $ac_cv_have_decl_feof_unlocked = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_DECL_FEOF_UNLOCKED 1
7552 _ACEOF
7555 else
7556 cat >>confdefs.h <<_ACEOF
7557 #define HAVE_DECL_FEOF_UNLOCKED 0
7558 _ACEOF
7562 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
7563 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
7564 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567 cat >conftest.$ac_ext <<_ACEOF
7568 #line $LINENO "configure"
7569 #include "confdefs.h"
7570 $ac_includes_default
7571 #ifdef F77_DUMMY_MAIN
7572 # ifdef __cplusplus
7573 extern "C"
7574 # endif
7575 int F77_DUMMY_MAIN() { return 1; }
7576 #endif
7578 main ()
7580 #ifndef ferror_unlocked
7581 char *p = (char *) ferror_unlocked;
7582 #endif
7585 return 0;
7587 _ACEOF
7588 rm -f conftest.$ac_objext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 (eval $ac_try) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_have_decl_ferror_unlocked=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_cv_have_decl_ferror_unlocked=no
7606 rm -f conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
7609 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
7610 if test $ac_cv_have_decl_ferror_unlocked = yes; then
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_DECL_FERROR_UNLOCKED 1
7614 _ACEOF
7617 else
7618 cat >>confdefs.h <<_ACEOF
7619 #define HAVE_DECL_FERROR_UNLOCKED 0
7620 _ACEOF
7624 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
7625 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
7626 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 #line $LINENO "configure"
7631 #include "confdefs.h"
7632 $ac_includes_default
7633 #ifdef F77_DUMMY_MAIN
7634 # ifdef __cplusplus
7635 extern "C"
7636 # endif
7637 int F77_DUMMY_MAIN() { return 1; }
7638 #endif
7640 main ()
7642 #ifndef fflush_unlocked
7643 char *p = (char *) fflush_unlocked;
7644 #endif
7647 return 0;
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
7653 ac_status=$?
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_have_decl_fflush_unlocked=yes
7663 else
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_cv_have_decl_fflush_unlocked=no
7668 rm -f conftest.$ac_objext conftest.$ac_ext
7670 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
7671 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
7672 if test $ac_cv_have_decl_fflush_unlocked = yes; then
7674 cat >>confdefs.h <<_ACEOF
7675 #define HAVE_DECL_FFLUSH_UNLOCKED 1
7676 _ACEOF
7679 else
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_DECL_FFLUSH_UNLOCKED 0
7682 _ACEOF
7686 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
7687 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
7688 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 cat >conftest.$ac_ext <<_ACEOF
7692 #line $LINENO "configure"
7693 #include "confdefs.h"
7694 $ac_includes_default
7695 #ifdef F77_DUMMY_MAIN
7696 # ifdef __cplusplus
7697 extern "C"
7698 # endif
7699 int F77_DUMMY_MAIN() { return 1; }
7700 #endif
7702 main ()
7704 #ifndef fgets_unlocked
7705 char *p = (char *) fgets_unlocked;
7706 #endif
7709 return 0;
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } &&
7718 { ac_try='test -s conftest.$ac_objext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 ac_cv_have_decl_fgets_unlocked=yes
7725 else
7726 echo "$as_me: failed program was:" >&5
7727 cat conftest.$ac_ext >&5
7728 ac_cv_have_decl_fgets_unlocked=no
7730 rm -f conftest.$ac_objext conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
7733 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
7734 if test $ac_cv_have_decl_fgets_unlocked = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define HAVE_DECL_FGETS_UNLOCKED 1
7738 _ACEOF
7741 else
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DECL_FGETS_UNLOCKED 0
7744 _ACEOF
7748 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
7749 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
7750 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 #include "confdefs.h"
7756 $ac_includes_default
7757 #ifdef F77_DUMMY_MAIN
7758 # ifdef __cplusplus
7759 extern "C"
7760 # endif
7761 int F77_DUMMY_MAIN() { return 1; }
7762 #endif
7764 main ()
7766 #ifndef fputc_unlocked
7767 char *p = (char *) fputc_unlocked;
7768 #endif
7771 return 0;
7773 _ACEOF
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_have_decl_fputc_unlocked=yes
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_cv_have_decl_fputc_unlocked=no
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
7795 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
7796 if test $ac_cv_have_decl_fputc_unlocked = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define HAVE_DECL_FPUTC_UNLOCKED 1
7800 _ACEOF
7803 else
7804 cat >>confdefs.h <<_ACEOF
7805 #define HAVE_DECL_FPUTC_UNLOCKED 0
7806 _ACEOF
7810 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
7811 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
7812 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #ifdef F77_DUMMY_MAIN
7820 # ifdef __cplusplus
7821 extern "C"
7822 # endif
7823 int F77_DUMMY_MAIN() { return 1; }
7824 #endif
7826 main ()
7828 #ifndef fputs_unlocked
7829 char *p = (char *) fputs_unlocked;
7830 #endif
7833 return 0;
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7838 (eval $ac_compile) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest.$ac_objext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 (eval $ac_try) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_have_decl_fputs_unlocked=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7852 ac_cv_have_decl_fputs_unlocked=no
7854 rm -f conftest.$ac_objext conftest.$ac_ext
7856 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
7857 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
7858 if test $ac_cv_have_decl_fputs_unlocked = yes; then
7860 cat >>confdefs.h <<_ACEOF
7861 #define HAVE_DECL_FPUTS_UNLOCKED 1
7862 _ACEOF
7865 else
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_DECL_FPUTS_UNLOCKED 0
7868 _ACEOF
7872 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
7873 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
7874 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 cat >conftest.$ac_ext <<_ACEOF
7878 #line $LINENO "configure"
7879 #include "confdefs.h"
7880 $ac_includes_default
7881 #ifdef F77_DUMMY_MAIN
7882 # ifdef __cplusplus
7883 extern "C"
7884 # endif
7885 int F77_DUMMY_MAIN() { return 1; }
7886 #endif
7888 main ()
7890 #ifndef fread_unlocked
7891 char *p = (char *) fread_unlocked;
7892 #endif
7895 return 0;
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_have_decl_fread_unlocked=yes
7911 else
7912 echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 ac_cv_have_decl_fread_unlocked=no
7916 rm -f conftest.$ac_objext conftest.$ac_ext
7918 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
7919 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
7920 if test $ac_cv_have_decl_fread_unlocked = yes; then
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_DECL_FREAD_UNLOCKED 1
7924 _ACEOF
7927 else
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_DECL_FREAD_UNLOCKED 0
7930 _ACEOF
7934 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
7935 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
7936 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 $ac_includes_default
7943 #ifdef F77_DUMMY_MAIN
7944 # ifdef __cplusplus
7945 extern "C"
7946 # endif
7947 int F77_DUMMY_MAIN() { return 1; }
7948 #endif
7950 main ()
7952 #ifndef fwrite_unlocked
7953 char *p = (char *) fwrite_unlocked;
7954 #endif
7957 return 0;
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962 (eval $ac_compile) 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_have_decl_fwrite_unlocked=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 ac_cv_have_decl_fwrite_unlocked=no
7978 rm -f conftest.$ac_objext conftest.$ac_ext
7980 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
7981 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
7982 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
7984 cat >>confdefs.h <<_ACEOF
7985 #define HAVE_DECL_FWRITE_UNLOCKED 1
7986 _ACEOF
7989 else
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DECL_FWRITE_UNLOCKED 0
7992 _ACEOF
7996 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
7997 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
7998 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line $LINENO "configure"
8003 #include "confdefs.h"
8004 $ac_includes_default
8005 #ifdef F77_DUMMY_MAIN
8006 # ifdef __cplusplus
8007 extern "C"
8008 # endif
8009 int F77_DUMMY_MAIN() { return 1; }
8010 #endif
8012 main ()
8014 #ifndef getc_unlocked
8015 char *p = (char *) getc_unlocked;
8016 #endif
8019 return 0;
8021 _ACEOF
8022 rm -f conftest.$ac_objext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8024 (eval $ac_compile) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_have_decl_getc_unlocked=yes
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8038 ac_cv_have_decl_getc_unlocked=no
8040 rm -f conftest.$ac_objext conftest.$ac_ext
8042 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8043 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8044 if test $ac_cv_have_decl_getc_unlocked = yes; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define HAVE_DECL_GETC_UNLOCKED 1
8048 _ACEOF
8051 else
8052 cat >>confdefs.h <<_ACEOF
8053 #define HAVE_DECL_GETC_UNLOCKED 0
8054 _ACEOF
8058 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
8059 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
8060 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063 cat >conftest.$ac_ext <<_ACEOF
8064 #line $LINENO "configure"
8065 #include "confdefs.h"
8066 $ac_includes_default
8067 #ifdef F77_DUMMY_MAIN
8068 # ifdef __cplusplus
8069 extern "C"
8070 # endif
8071 int F77_DUMMY_MAIN() { return 1; }
8072 #endif
8074 main ()
8076 #ifndef getchar_unlocked
8077 char *p = (char *) getchar_unlocked;
8078 #endif
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } &&
8090 { ac_try='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_have_decl_getchar_unlocked=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 cat conftest.$ac_ext >&5
8100 ac_cv_have_decl_getchar_unlocked=no
8102 rm -f conftest.$ac_objext conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
8105 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
8106 if test $ac_cv_have_decl_getchar_unlocked = yes; then
8108 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_DECL_GETCHAR_UNLOCKED 1
8110 _ACEOF
8113 else
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_DECL_GETCHAR_UNLOCKED 0
8116 _ACEOF
8120 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
8121 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
8122 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 #line $LINENO "configure"
8127 #include "confdefs.h"
8128 $ac_includes_default
8129 #ifdef F77_DUMMY_MAIN
8130 # ifdef __cplusplus
8131 extern "C"
8132 # endif
8133 int F77_DUMMY_MAIN() { return 1; }
8134 #endif
8136 main ()
8138 #ifndef putc_unlocked
8139 char *p = (char *) putc_unlocked;
8140 #endif
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 ac_cv_have_decl_putc_unlocked=yes
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8162 ac_cv_have_decl_putc_unlocked=no
8164 rm -f conftest.$ac_objext conftest.$ac_ext
8166 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
8167 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
8168 if test $ac_cv_have_decl_putc_unlocked = yes; then
8170 cat >>confdefs.h <<_ACEOF
8171 #define HAVE_DECL_PUTC_UNLOCKED 1
8172 _ACEOF
8175 else
8176 cat >>confdefs.h <<_ACEOF
8177 #define HAVE_DECL_PUTC_UNLOCKED 0
8178 _ACEOF
8182 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
8183 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
8184 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 cat >conftest.$ac_ext <<_ACEOF
8188 #line $LINENO "configure"
8189 #include "confdefs.h"
8190 $ac_includes_default
8191 #ifdef F77_DUMMY_MAIN
8192 # ifdef __cplusplus
8193 extern "C"
8194 # endif
8195 int F77_DUMMY_MAIN() { return 1; }
8196 #endif
8198 main ()
8200 #ifndef putchar_unlocked
8201 char *p = (char *) putchar_unlocked;
8202 #endif
8205 return 0;
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210 (eval $ac_compile) 2>&5
8211 ac_status=$?
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 (eval $ac_try) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_cv_have_decl_putchar_unlocked=yes
8221 else
8222 echo "$as_me: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8224 ac_cv_have_decl_putchar_unlocked=no
8226 rm -f conftest.$ac_objext conftest.$ac_ext
8228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
8229 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
8230 if test $ac_cv_have_decl_putchar_unlocked = yes; then
8232 cat >>confdefs.h <<_ACEOF
8233 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
8234 _ACEOF
8237 else
8238 cat >>confdefs.h <<_ACEOF
8239 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
8240 _ACEOF
8246 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8247 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8248 if test "${ac_cv_header_time+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 cat >conftest.$ac_ext <<_ACEOF
8252 #line $LINENO "configure"
8253 #include "confdefs.h"
8254 #include <sys/types.h>
8255 #include <sys/time.h>
8256 #include <time.h>
8258 #ifdef F77_DUMMY_MAIN
8259 # ifdef __cplusplus
8260 extern "C"
8261 # endif
8262 int F77_DUMMY_MAIN() { return 1; }
8263 #endif
8265 main ()
8267 if ((struct tm *) 0)
8268 return 0;
8270 return 0;
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_header_time=yes
8286 else
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_cv_header_time=no
8291 rm -f conftest.$ac_objext conftest.$ac_ext
8293 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8294 echo "${ECHO_T}$ac_cv_header_time" >&6
8295 if test $ac_cv_header_time = yes; then
8297 cat >>confdefs.h <<\_ACEOF
8298 #define TIME_WITH_SYS_TIME 1
8299 _ACEOF
8303 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8304 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8305 if test "${ac_cv_struct_tm+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308 cat >conftest.$ac_ext <<_ACEOF
8309 #line $LINENO "configure"
8310 #include "confdefs.h"
8311 #include <sys/types.h>
8312 #include <time.h>
8314 #ifdef F77_DUMMY_MAIN
8315 # ifdef __cplusplus
8316 extern "C"
8317 # endif
8318 int F77_DUMMY_MAIN() { return 1; }
8319 #endif
8321 main ()
8323 struct tm *tp; tp->tm_sec;
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8330 (eval $ac_compile) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -s conftest.$ac_objext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 ac_cv_struct_tm=time.h
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 cat conftest.$ac_ext >&5
8344 ac_cv_struct_tm=sys/time.h
8346 rm -f conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8349 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8350 if test $ac_cv_struct_tm = sys/time.h; then
8352 cat >>confdefs.h <<\_ACEOF
8353 #define TM_IN_SYS_TIME 1
8354 _ACEOF
8362 for ac_func in localtime_r strftime
8364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8365 echo "$as_me:$LINENO: checking for $ac_func" >&5
8366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8367 if eval "test \"\${$as_ac_var+set}\" = set"; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 #line $LINENO "configure"
8372 #include "confdefs.h"
8373 /* System header to define __stub macros and hopefully few prototypes,
8374 which can conflict with char $ac_func (); below. */
8375 #include <assert.h>
8376 /* Override any gcc2 internal prototype to avoid an error. */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8382 char $ac_func ();
8383 char (*f) ();
8385 #ifdef F77_DUMMY_MAIN
8386 # ifdef __cplusplus
8387 extern "C"
8388 # endif
8389 int F77_DUMMY_MAIN() { return 1; }
8390 #endif
8392 main ()
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 choke me
8399 #else
8400 f = $ac_func;
8401 #endif
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 eval "$as_ac_var=yes"
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 eval "$as_ac_var=no"
8425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8429 if test `eval echo '${'$as_ac_var'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8432 _ACEOF
8435 done
8439 for ac_header in limits.h
8441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8443 echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8450 else
8451 # Is the header compilable?
8452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8454 cat >conftest.$ac_ext <<_ACEOF
8455 #line $LINENO "configure"
8456 #include "confdefs.h"
8457 $ac_includes_default
8458 #include <$ac_header>
8459 _ACEOF
8460 rm -f conftest.$ac_objext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8462 (eval $ac_compile) 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -s conftest.$ac_objext'
8467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 (eval $ac_try) 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_header_compiler=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 ac_header_compiler=no
8478 rm -f conftest.$ac_objext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480 echo "${ECHO_T}$ac_header_compiler" >&6
8482 # Is the header present?
8483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 #include "confdefs.h"
8488 #include <$ac_header>
8489 _ACEOF
8490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8492 ac_status=$?
8493 egrep -v '^ *\+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } >/dev/null; then
8498 if test -s conftest.err; then
8499 ac_cpp_err=$ac_c_preproc_warn_flag
8500 else
8501 ac_cpp_err=
8503 else
8504 ac_cpp_err=yes
8506 if test -z "$ac_cpp_err"; then
8507 ac_header_preproc=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8511 ac_header_preproc=no
8513 rm -f conftest.err conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8515 echo "${ECHO_T}$ac_header_preproc" >&6
8517 # So? What about this header?
8518 case $ac_header_compiler:$ac_header_preproc in
8519 yes:no )
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8524 no:yes )
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8531 esac
8532 echo "$as_me:$LINENO: checking for $ac_header" >&5
8533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 else
8537 eval "$as_ac_Header=$ac_header_preproc"
8539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546 _ACEOF
8550 done
8557 for ac_func in bcopy tzset mempcpy memcpy memset
8559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8560 echo "$as_me:$LINENO: checking for $ac_func" >&5
8561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8562 if eval "test \"\${$as_ac_var+set}\" = set"; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 #line $LINENO "configure"
8567 #include "confdefs.h"
8568 /* System header to define __stub macros and hopefully few prototypes,
8569 which can conflict with char $ac_func (); below. */
8570 #include <assert.h>
8571 /* Override any gcc2 internal prototype to avoid an error. */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */
8577 char $ac_func ();
8578 char (*f) ();
8580 #ifdef F77_DUMMY_MAIN
8581 # ifdef __cplusplus
8582 extern "C"
8583 # endif
8584 int F77_DUMMY_MAIN() { return 1; }
8585 #endif
8587 main ()
8589 /* The GNU C library defines this for functions which it implements
8590 to always fail with ENOSYS. Some functions are actually named
8591 something starting with __ and the normal name is an alias. */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8593 choke me
8594 #else
8595 f = $ac_func;
8596 #endif
8599 return 0;
8601 _ACEOF
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest$ac_exeext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8614 eval "$as_ac_var=yes"
8615 else
8616 echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8618 eval "$as_ac_var=no"
8620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8624 if test `eval echo '${'$as_ac_var'}'` = yes; then
8625 cat >>confdefs.h <<_ACEOF
8626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8627 _ACEOF
8630 done
8633 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
8634 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8635 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8636 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 #include "confdefs.h"
8642 #include <sys/types.h>
8643 #include <$ac_cv_struct_tm>
8646 #ifdef F77_DUMMY_MAIN
8647 # ifdef __cplusplus
8648 extern "C"
8649 # endif
8650 int F77_DUMMY_MAIN() { return 1; }
8651 #endif
8653 main ()
8655 static struct tm ac_aggr;
8656 if (ac_aggr.tm_zone)
8657 return 0;
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_member_struct_tm_tm_zone=yes
8675 else
8676 echo "$as_me: failed program was:" >&5
8677 cat conftest.$ac_ext >&5
8678 ac_cv_member_struct_tm_tm_zone=no
8680 rm -f conftest.$ac_objext conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8683 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8684 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define HAVE_STRUCT_TM_TM_ZONE 1
8688 _ACEOF
8693 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8695 cat >>confdefs.h <<\_ACEOF
8696 #define HAVE_TM_ZONE 1
8697 _ACEOF
8699 else
8700 echo "$as_me:$LINENO: checking for tzname" >&5
8701 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8702 if test "${ac_cv_var_tzname+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 cat >conftest.$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8707 #include "confdefs.h"
8708 #include <time.h>
8709 #ifndef tzname /* For SGI. */
8710 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8711 #endif
8713 #ifdef F77_DUMMY_MAIN
8714 # ifdef __cplusplus
8715 extern "C"
8716 # endif
8717 int F77_DUMMY_MAIN() { return 1; }
8718 #endif
8720 main ()
8722 atoi(*tzname);
8724 return 0;
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -s conftest$ac_exeext'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 ac_cv_var_tzname=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8743 ac_cv_var_tzname=no
8745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8748 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8749 if test $ac_cv_var_tzname = yes; then
8751 cat >>confdefs.h <<\_ACEOF
8752 #define HAVE_TZNAME 1
8753 _ACEOF
8761 for ac_func in mblen mbrlen
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 #line $LINENO "configure"
8771 #include "confdefs.h"
8772 /* System header to define __stub macros and hopefully few prototypes,
8773 which can conflict with char $ac_func (); below. */
8774 #include <assert.h>
8775 /* Override any gcc2 internal prototype to avoid an error. */
8776 #ifdef __cplusplus
8777 extern "C"
8778 #endif
8779 /* We use char because int might match the return type of a gcc2
8780 builtin and then its argument prototype would still apply. */
8781 char $ac_func ();
8782 char (*f) ();
8784 #ifdef F77_DUMMY_MAIN
8785 # ifdef __cplusplus
8786 extern "C"
8787 # endif
8788 int F77_DUMMY_MAIN() { return 1; }
8789 #endif
8791 main ()
8793 /* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8797 choke me
8798 #else
8799 f = $ac_func;
8800 #endif
8803 return 0;
8805 _ACEOF
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } &&
8812 { ac_try='test -s conftest$ac_exeext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 eval "$as_ac_var=yes"
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 cat conftest.$ac_ext >&5
8822 eval "$as_ac_var=no"
8824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8828 if test `eval echo '${'$as_ac_var'}'` = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8831 _ACEOF
8834 done
8837 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8838 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
8839 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8840 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842 cat >conftest.$ac_ext <<_ACEOF
8843 #line $LINENO "configure"
8844 #include "confdefs.h"
8845 #include <time.h>
8847 #ifdef F77_DUMMY_MAIN
8848 # ifdef __cplusplus
8849 extern "C"
8850 # endif
8851 int F77_DUMMY_MAIN() { return 1; }
8852 #endif
8854 main ()
8856 static struct tm ac_aggr;
8857 if (ac_aggr.tm_gmtoff)
8858 return 0;
8860 return 0;
8862 _ACEOF
8863 rm -f conftest.$ac_objext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865 (eval $ac_compile) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -s conftest.$ac_objext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_member_struct_tm_tm_gmtoff=yes
8876 else
8877 echo "$as_me: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 ac_cv_member_struct_tm_tm_gmtoff=no
8881 rm -f conftest.$ac_objext conftest.$ac_ext
8883 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8884 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
8885 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8887 cat >>confdefs.h <<\_ACEOF
8888 #define HAVE_TM_GMTOFF 1
8889 _ACEOF
8896 for ac_header in sys/time.h
8898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900 echo "$as_me:$LINENO: checking for $ac_header" >&5
8901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907 else
8908 # Is the header compilable?
8909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911 cat >conftest.$ac_ext <<_ACEOF
8912 #line $LINENO "configure"
8913 #include "confdefs.h"
8914 $ac_includes_default
8915 #include <$ac_header>
8916 _ACEOF
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>&5
8920 ac_status=$?
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_header_compiler=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8933 ac_header_compiler=no
8935 rm -f conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937 echo "${ECHO_T}$ac_header_compiler" >&6
8939 # Is the header present?
8940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8943 #line $LINENO "configure"
8944 #include "confdefs.h"
8945 #include <$ac_header>
8946 _ACEOF
8947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8949 ac_status=$?
8950 egrep -v '^ *\+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } >/dev/null; then
8955 if test -s conftest.err; then
8956 ac_cpp_err=$ac_c_preproc_warn_flag
8957 else
8958 ac_cpp_err=
8960 else
8961 ac_cpp_err=yes
8963 if test -z "$ac_cpp_err"; then
8964 ac_header_preproc=yes
8965 else
8966 echo "$as_me: failed program was:" >&5
8967 cat conftest.$ac_ext >&5
8968 ac_header_preproc=no
8970 rm -f conftest.err conftest.$ac_ext
8971 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8972 echo "${ECHO_T}$ac_header_preproc" >&6
8974 # So? What about this header?
8975 case $ac_header_compiler:$ac_header_preproc in
8976 yes:no )
8977 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8981 no:yes )
8982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8988 esac
8989 echo "$as_me:$LINENO: checking for $ac_header" >&5
8990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 else
8994 eval "$as_ac_Header=$ac_header_preproc"
8996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9003 _ACEOF
9007 done
9010 cat >>confdefs.h <<\_ACEOF
9011 #define my_strftime nstrftime
9012 _ACEOF
9015 # No need for AC_FUNC_MEMCMP, since memcmp is used only to test for equality.
9018 cat >>confdefs.h <<\_ACEOF
9019 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
9020 _ACEOF
9023 echo "$as_me:$LINENO: checking for working malloc" >&5
9024 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9025 if test "${jm_cv_func_working_malloc+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028 if test "$cross_compiling" = yes; then
9029 jm_cv_func_working_malloc=no
9030 else
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9033 #include "confdefs.h"
9035 char *malloc ();
9037 main ()
9039 exit (malloc (0) ? 0 : 1);
9042 _ACEOF
9043 rm -f conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 jm_cv_func_working_malloc=yes
9055 else
9056 echo "$as_me: program exited with status $ac_status" >&5
9057 echo "$as_me: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9059 ( exit $ac_status )
9060 jm_cv_func_working_malloc=no
9062 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
9067 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
9068 if test $jm_cv_func_working_malloc = no; then
9069 LIBOBJS="$LIBOBJS malloc.$ac_objext"
9071 cat >>confdefs.h <<\_ACEOF
9072 #define malloc rpl_malloc
9073 _ACEOF
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
9081 _ACEOF
9084 echo "$as_me:$LINENO: checking for working realloc" >&5
9085 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
9086 if test "${jm_cv_func_working_realloc+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 if test "$cross_compiling" = yes; then
9090 jm_cv_func_working_realloc=no
9091 else
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9094 #include "confdefs.h"
9096 char *realloc ();
9098 main ()
9100 exit (realloc (0, 0) ? 0 : 1);
9103 _ACEOF
9104 rm -f conftest$ac_exeext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 jm_cv_func_working_realloc=yes
9116 else
9117 echo "$as_me: program exited with status $ac_status" >&5
9118 echo "$as_me: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9120 ( exit $ac_status )
9121 jm_cv_func_working_realloc=no
9123 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
9128 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
9129 if test $jm_cv_func_working_realloc = no; then
9130 LIBOBJS="$LIBOBJS realloc.$ac_objext"
9132 cat >>confdefs.h <<\_ACEOF
9133 #define realloc rpl_realloc
9134 _ACEOF
9138 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9139 # for constant arguments. Useless!
9140 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9141 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9142 if test "${ac_cv_working_alloca_h+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145 cat >conftest.$ac_ext <<_ACEOF
9146 #line $LINENO "configure"
9147 #include "confdefs.h"
9148 #include <alloca.h>
9149 #ifdef F77_DUMMY_MAIN
9150 # ifdef __cplusplus
9151 extern "C"
9152 # endif
9153 int F77_DUMMY_MAIN() { return 1; }
9154 #endif
9156 main ()
9158 char *p = (char *) alloca (2 * sizeof (int));
9160 return 0;
9162 _ACEOF
9163 rm -f conftest.$ac_objext conftest$ac_exeext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>&5
9166 ac_status=$?
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -s conftest$ac_exeext'
9170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 (eval $ac_try) 2>&5
9172 ac_status=$?
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); }; }; then
9175 ac_cv_working_alloca_h=yes
9176 else
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 ac_cv_working_alloca_h=no
9181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9183 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9184 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9185 if test $ac_cv_working_alloca_h = yes; then
9187 cat >>confdefs.h <<\_ACEOF
9188 #define HAVE_ALLOCA_H 1
9189 _ACEOF
9193 echo "$as_me:$LINENO: checking for alloca" >&5
9194 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9195 if test "${ac_cv_func_alloca_works+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198 cat >conftest.$ac_ext <<_ACEOF
9199 #line $LINENO "configure"
9200 #include "confdefs.h"
9201 #ifdef __GNUC__
9202 # define alloca __builtin_alloca
9203 #else
9204 # ifdef _MSC_VER
9205 # include <malloc.h>
9206 # define alloca _alloca
9207 # else
9208 # if HAVE_ALLOCA_H
9209 # include <alloca.h>
9210 # else
9211 # ifdef _AIX
9212 #pragma alloca
9213 # else
9214 # ifndef alloca /* predefined by HP cc +Olibcalls */
9215 char *alloca ();
9216 # endif
9217 # endif
9218 # endif
9219 # endif
9220 #endif
9222 #ifdef F77_DUMMY_MAIN
9223 # ifdef __cplusplus
9224 extern "C"
9225 # endif
9226 int F77_DUMMY_MAIN() { return 1; }
9227 #endif
9229 main ()
9231 char *p = (char *) alloca (1);
9233 return 0;
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_func_alloca_works=yes
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_func_alloca_works=no
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9257 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9259 if test $ac_cv_func_alloca_works = yes; then
9261 cat >>confdefs.h <<\_ACEOF
9262 #define HAVE_ALLOCA 1
9263 _ACEOF
9265 else
9266 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9267 # that cause trouble. Some versions do not even contain alloca or
9268 # contain a buggy version. If you still want to use their alloca,
9269 # use ar to extract alloca.o from them instead of compiling alloca.c.
9271 ALLOCA=alloca.$ac_objext
9273 cat >>confdefs.h <<\_ACEOF
9274 #define C_ALLOCA 1
9275 _ACEOF
9278 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9279 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9280 if test "${ac_cv_os_cray+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 cat >conftest.$ac_ext <<_ACEOF
9284 #line $LINENO "configure"
9285 #include "confdefs.h"
9286 #if defined(CRAY) && ! defined(CRAY2)
9287 webecray
9288 #else
9289 wenotbecray
9290 #endif
9292 _ACEOF
9293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294 egrep "webecray" >/dev/null 2>&1; then
9295 ac_cv_os_cray=yes
9296 else
9297 ac_cv_os_cray=no
9299 rm -f conftest*
9302 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9303 echo "${ECHO_T}$ac_cv_os_cray" >&6
9304 if test $ac_cv_os_cray = yes; then
9305 for ac_func in _getb67 GETB67 getb67; do
9306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9307 echo "$as_me:$LINENO: checking for $ac_func" >&5
9308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_var+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line $LINENO "configure"
9314 #include "confdefs.h"
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char $ac_func (); below. */
9317 #include <assert.h>
9318 /* Override any gcc2 internal prototype to avoid an error. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324 char $ac_func ();
9325 char (*f) ();
9327 #ifdef F77_DUMMY_MAIN
9328 # ifdef __cplusplus
9329 extern "C"
9330 # endif
9331 int F77_DUMMY_MAIN() { return 1; }
9332 #endif
9334 main ()
9336 /* The GNU C library defines this for functions which it implements
9337 to always fail with ENOSYS. Some functions are actually named
9338 something starting with __ and the normal name is an alias. */
9339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9340 choke me
9341 #else
9342 f = $ac_func;
9343 #endif
9346 return 0;
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 eval "$as_ac_var=yes"
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 eval "$as_ac_var=no"
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9371 if test `eval echo '${'$as_ac_var'}'` = yes; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define CRAY_STACKSEG_END $ac_func
9375 _ACEOF
9377 break
9380 done
9383 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9385 if test "${ac_cv_c_stack_direction+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 if test "$cross_compiling" = yes; then
9389 ac_cv_c_stack_direction=0
9390 else
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 #include "confdefs.h"
9395 find_stack_direction ()
9397 static char *addr = 0;
9398 auto char dummy;
9399 if (addr == 0)
9401 addr = &dummy;
9402 return find_stack_direction ();
9404 else
9405 return (&dummy > addr) ? 1 : -1;
9409 main ()
9411 exit (find_stack_direction () < 0);
9413 _ACEOF
9414 rm -f conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>&5
9417 ac_status=$?
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 ac_cv_c_stack_direction=1
9426 else
9427 echo "$as_me: program exited with status $ac_status" >&5
9428 echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 ( exit $ac_status )
9431 ac_cv_c_stack_direction=-1
9433 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9439 cat >>confdefs.h <<_ACEOF
9440 #define STACK_DIRECTION $ac_cv_c_stack_direction
9441 _ACEOF
9446 # for STACK_DIRECTION
9449 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
9450 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
9451 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 if test "$cross_compiling" = yes; then
9455 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
9456 else
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9461 #include <signal.h>
9462 #include <ucontext.h>
9464 static union
9466 char buffer[SIGSTKSZ];
9467 long double ld;
9468 uintmax_t u;
9469 void *p;
9470 } alternate_signal_stack;
9472 #if STACK_DIRECTION
9473 # define find_stack_direction(ptr) STACK_DIRECTION
9474 #else
9475 static int
9476 find_stack_direction (char const *addr)
9478 char dummy;
9479 return (! addr ? find_stack_direction (&dummy)
9480 : addr < &dummy ? 1 : -1);
9482 #endif
9484 static void
9485 segv_handler (int signo, siginfo_t *info, void *context)
9487 if (0 < info->si_code)
9489 ucontext_t const *user_context = context;
9490 char const *stack_min = user_context->uc_stack.ss_sp;
9491 size_t stack_size = user_context->uc_stack.ss_size;
9492 char const *faulting_address = info->si_addr;
9493 size_t s = faulting_address - stack_min;
9494 size_t page_size = sysconf (_SC_PAGESIZE);
9495 if (find_stack_direction (0) < 0)
9496 s += page_size;
9497 if (s < stack_size + page_size)
9498 _exit (0);
9501 _exit (1);
9504 static int
9505 c_stack_action (void)
9507 stack_t st;
9508 struct sigaction act;
9509 int r;
9511 st.ss_flags = 0;
9512 st.ss_sp = alternate_signal_stack.buffer;
9513 st.ss_size = sizeof alternate_signal_stack.buffer;
9514 r = sigaltstack (&st, 0);
9515 if (r != 0)
9516 return r;
9518 sigemptyset (&act.sa_mask);
9519 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
9520 act.sa_sigaction = segv_handler;
9521 return sigaction (SIGSEGV, &act, 0);
9524 static int
9525 recurse (char *p)
9527 char array[500];
9528 array[0] = 1;
9529 return *p + recurse (array);
9533 main (void)
9535 c_stack_action ();
9536 return recurse ("\1");
9539 _ACEOF
9540 rm -f conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542 (eval $ac_link) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547 (eval $ac_try) 2>&5
9548 ac_status=$?
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; }; then
9551 ac_cv_sys_xsi_stack_overflow_heuristic=yes
9552 else
9553 echo "$as_me: program exited with status $ac_status" >&5
9554 echo "$as_me: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 ( exit $ac_status )
9557 ac_cv_sys_xsi_stack_overflow_heuristic=no
9559 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
9563 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
9565 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
9567 cat >>confdefs.h <<\_ACEOF
9568 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
9569 _ACEOF
9575 # for STACK_DIRECTION
9579 for ac_header in unistd.h
9581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583 echo "$as_me:$LINENO: checking for $ac_header" >&5
9584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590 else
9591 # Is the header compilable?
9592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 #line $LINENO "configure"
9596 #include "confdefs.h"
9597 $ac_includes_default
9598 #include <$ac_header>
9599 _ACEOF
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 (eval $ac_try) 2>&5
9609 ac_status=$?
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_header_compiler=yes
9613 else
9614 echo "$as_me: failed program was:" >&5
9615 cat conftest.$ac_ext >&5
9616 ac_header_compiler=no
9618 rm -f conftest.$ac_objext conftest.$ac_ext
9619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620 echo "${ECHO_T}$ac_header_compiler" >&6
9622 # Is the header present?
9623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9626 #line $LINENO "configure"
9627 #include "confdefs.h"
9628 #include <$ac_header>
9629 _ACEOF
9630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9632 ac_status=$?
9633 egrep -v '^ *\+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } >/dev/null; then
9638 if test -s conftest.err; then
9639 ac_cpp_err=$ac_c_preproc_warn_flag
9640 else
9641 ac_cpp_err=
9643 else
9644 ac_cpp_err=yes
9646 if test -z "$ac_cpp_err"; then
9647 ac_header_preproc=yes
9648 else
9649 echo "$as_me: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 ac_header_preproc=no
9653 rm -f conftest.err conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655 echo "${ECHO_T}$ac_header_preproc" >&6
9657 # So? What about this header?
9658 case $ac_header_compiler:$ac_header_preproc in
9659 yes:no )
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9664 no:yes )
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9671 esac
9672 echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 eval "$as_ac_Header=$ac_header_preproc"
9679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9684 cat >>confdefs.h <<_ACEOF
9685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9686 _ACEOF
9690 done
9693 echo "$as_me:$LINENO: checking for siginfo_t" >&5
9694 echo $ECHO_N "checking for siginfo_t... $ECHO_C" >&6
9695 if test "${ac_cv_type_siginfo_t+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 cat >conftest.$ac_ext <<_ACEOF
9699 #line $LINENO "configure"
9700 #include "confdefs.h"
9701 #include <signal.h>
9703 #ifdef F77_DUMMY_MAIN
9704 # ifdef __cplusplus
9705 extern "C"
9706 # endif
9707 int F77_DUMMY_MAIN() { return 1; }
9708 #endif
9710 main ()
9712 if ((siginfo_t *) 0)
9713 return 0;
9714 if (sizeof (siginfo_t))
9715 return 0;
9717 return 0;
9719 _ACEOF
9720 rm -f conftest.$ac_objext
9721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>&5
9723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest.$ac_objext'
9727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 (eval $ac_try) 2>&5
9729 ac_status=$?
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 ac_cv_type_siginfo_t=yes
9733 else
9734 echo "$as_me: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9736 ac_cv_type_siginfo_t=no
9738 rm -f conftest.$ac_objext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_cv_type_siginfo_t" >&5
9741 echo "${ECHO_T}$ac_cv_type_siginfo_t" >&6
9742 if test $ac_cv_type_siginfo_t = yes; then
9744 cat >>confdefs.h <<_ACEOF
9745 #define HAVE_SIGINFO_T 1
9746 _ACEOF
9750 echo "$as_me:$LINENO: checking for stack_t" >&5
9751 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
9752 if test "${ac_cv_type_stack_t+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line $LINENO "configure"
9757 #include "confdefs.h"
9758 #include <signal.h>
9760 #ifdef F77_DUMMY_MAIN
9761 # ifdef __cplusplus
9762 extern "C"
9763 # endif
9764 int F77_DUMMY_MAIN() { return 1; }
9765 #endif
9767 main ()
9769 if ((stack_t *) 0)
9770 return 0;
9771 if (sizeof (stack_t))
9772 return 0;
9774 return 0;
9776 _ACEOF
9777 rm -f conftest.$ac_objext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9779 (eval $ac_compile) 2>&5
9780 ac_status=$?
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -s conftest.$ac_objext'
9784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 (eval $ac_try) 2>&5
9786 ac_status=$?
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); }; }; then
9789 ac_cv_type_stack_t=yes
9790 else
9791 echo "$as_me: failed program was:" >&5
9792 cat conftest.$ac_ext >&5
9793 ac_cv_type_stack_t=no
9795 rm -f conftest.$ac_objext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
9798 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
9799 if test $ac_cv_type_stack_t = yes; then
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_STACK_T 1
9803 _ACEOF
9812 for ac_func in strerror vprintf doprnt
9814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9815 echo "$as_me:$LINENO: checking for $ac_func" >&5
9816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9817 if eval "test \"\${$as_ac_var+set}\" = set"; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9822 #include "confdefs.h"
9823 /* System header to define __stub macros and hopefully few prototypes,
9824 which can conflict with char $ac_func (); below. */
9825 #include <assert.h>
9826 /* Override any gcc2 internal prototype to avoid an error. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 /* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832 char $ac_func ();
9833 char (*f) ();
9835 #ifdef F77_DUMMY_MAIN
9836 # ifdef __cplusplus
9837 extern "C"
9838 # endif
9839 int F77_DUMMY_MAIN() { return 1; }
9840 #endif
9842 main ()
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9848 choke me
9849 #else
9850 f = $ac_func;
9851 #endif
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 eval "$as_ac_var=yes"
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9873 eval "$as_ac_var=no"
9875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9879 if test `eval echo '${'$as_ac_var'}'` = yes; then
9880 cat >>confdefs.h <<_ACEOF
9881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9882 _ACEOF
9885 done
9887 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
9888 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
9889 if test "${ac_cv_have_decl_strerror+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892 cat >conftest.$ac_ext <<_ACEOF
9893 #line $LINENO "configure"
9894 #include "confdefs.h"
9895 $ac_includes_default
9896 #ifdef F77_DUMMY_MAIN
9897 # ifdef __cplusplus
9898 extern "C"
9899 # endif
9900 int F77_DUMMY_MAIN() { return 1; }
9901 #endif
9903 main ()
9905 #ifndef strerror
9906 char *p = (char *) strerror;
9907 #endif
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest.$ac_objext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_have_decl_strerror=yes
9926 else
9927 echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 ac_cv_have_decl_strerror=no
9931 rm -f conftest.$ac_objext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
9934 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
9935 if test $ac_cv_have_decl_strerror = yes; then
9937 cat >>confdefs.h <<_ACEOF
9938 #define HAVE_DECL_STRERROR 1
9939 _ACEOF
9942 else
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_DECL_STRERROR 0
9945 _ACEOF
9951 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9952 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
9953 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 #include "confdefs.h"
9959 $ac_includes_default
9960 #ifdef F77_DUMMY_MAIN
9961 # ifdef __cplusplus
9962 extern "C"
9963 # endif
9964 int F77_DUMMY_MAIN() { return 1; }
9965 #endif
9967 main ()
9969 #ifndef strerror_r
9970 char *p = (char *) strerror_r;
9971 #endif
9974 return 0;
9976 _ACEOF
9977 rm -f conftest.$ac_objext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9979 (eval $ac_compile) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 ac_cv_have_decl_strerror_r=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 ac_cv_have_decl_strerror_r=no
9995 rm -f conftest.$ac_objext conftest.$ac_ext
9997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9998 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
9999 if test $ac_cv_have_decl_strerror_r = yes; then
10001 cat >>confdefs.h <<_ACEOF
10002 #define HAVE_DECL_STRERROR_R 1
10003 _ACEOF
10006 else
10007 cat >>confdefs.h <<_ACEOF
10008 #define HAVE_DECL_STRERROR_R 0
10009 _ACEOF
10016 for ac_func in strerror_r
10018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10019 echo "$as_me:$LINENO: checking for $ac_func" >&5
10020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10021 if eval "test \"\${$as_ac_var+set}\" = set"; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10026 #include "confdefs.h"
10027 /* System header to define __stub macros and hopefully few prototypes,
10028 which can conflict with char $ac_func (); below. */
10029 #include <assert.h>
10030 /* Override any gcc2 internal prototype to avoid an error. */
10031 #ifdef __cplusplus
10032 extern "C"
10033 #endif
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036 char $ac_func ();
10037 char (*f) ();
10039 #ifdef F77_DUMMY_MAIN
10040 # ifdef __cplusplus
10041 extern "C"
10042 # endif
10043 int F77_DUMMY_MAIN() { return 1; }
10044 #endif
10046 main ()
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10052 choke me
10053 #else
10054 f = $ac_func;
10055 #endif
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 eval "$as_ac_var=yes"
10074 else
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 eval "$as_ac_var=no"
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10083 if test `eval echo '${'$as_ac_var'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10086 _ACEOF
10089 done
10091 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10092 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
10093 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10097 ac_cv_func_strerror_r_char_p=no
10098 if test $ac_cv_have_decl_strerror_r = yes; then
10099 cat >conftest.$ac_ext <<_ACEOF
10100 #line $LINENO "configure"
10101 #include "confdefs.h"
10102 $ac_includes_default
10103 #ifdef F77_DUMMY_MAIN
10104 # ifdef __cplusplus
10105 extern "C"
10106 # endif
10107 int F77_DUMMY_MAIN() { return 1; }
10108 #endif
10110 main ()
10113 char buf[100];
10114 char x = *strerror_r (0, buf, sizeof buf);
10115 char *p = strerror_r (0, buf, sizeof buf);
10118 return 0;
10120 _ACEOF
10121 rm -f conftest.$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -s conftest.$ac_objext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_func_strerror_r_char_p=yes
10134 else
10135 echo "$as_me: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10138 rm -f conftest.$ac_objext conftest.$ac_ext
10139 else
10140 # strerror_r is not declared. Choose between
10141 # systems that have relatively inaccessible declarations for the
10142 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
10143 # former has a strerror_r that returns char*, while the latter
10144 # has a strerror_r that returns `int'.
10145 # This test should segfault on the DEC system.
10146 if test "$cross_compiling" = yes; then
10148 else
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 #include "confdefs.h"
10152 $ac_includes_default
10153 extern char *strerror_r ();
10154 #ifdef F77_DUMMY_MAIN
10155 # ifdef __cplusplus
10156 extern "C"
10157 # endif
10158 int F77_DUMMY_MAIN() { return 1; }
10159 #endif
10161 main ()
10163 char buf[100];
10164 char x = *strerror_r (0, buf, sizeof buf);
10165 exit (!isalpha (x));
10167 return 0;
10169 _ACEOF
10170 rm -f conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172 (eval $ac_link) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10177 (eval $ac_try) 2>&5
10178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; }; then
10181 ac_cv_func_strerror_r_char_p=yes
10182 else
10183 echo "$as_me: program exited with status $ac_status" >&5
10184 echo "$as_me: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10193 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
10194 if test $ac_cv_func_strerror_r_char_p = yes; then
10196 cat >>confdefs.h <<\_ACEOF
10197 #define STRERROR_R_CHAR_P 1
10198 _ACEOF
10202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10204 if test "${ac_cv_header_stdc+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <stdlib.h>
10211 #include <stdarg.h>
10212 #include <string.h>
10213 #include <float.h>
10215 _ACEOF
10216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10218 ac_status=$?
10219 egrep -v '^ *\+' conftest.er1 >conftest.err
10220 rm -f conftest.er1
10221 cat conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); } >/dev/null; then
10224 if test -s conftest.err; then
10225 ac_cpp_err=$ac_c_preproc_warn_flag
10226 else
10227 ac_cpp_err=
10229 else
10230 ac_cpp_err=yes
10232 if test -z "$ac_cpp_err"; then
10233 ac_cv_header_stdc=yes
10234 else
10235 echo "$as_me: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10237 ac_cv_header_stdc=no
10239 rm -f conftest.err conftest.$ac_ext
10241 if test $ac_cv_header_stdc = yes; then
10242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10243 cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 #include "confdefs.h"
10246 #include <string.h>
10248 _ACEOF
10249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10250 egrep "memchr" >/dev/null 2>&1; then
10252 else
10253 ac_cv_header_stdc=no
10255 rm -f conftest*
10259 if test $ac_cv_header_stdc = yes; then
10260 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10261 cat >conftest.$ac_ext <<_ACEOF
10262 #line $LINENO "configure"
10263 #include "confdefs.h"
10264 #include <stdlib.h>
10266 _ACEOF
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268 egrep "free" >/dev/null 2>&1; then
10270 else
10271 ac_cv_header_stdc=no
10273 rm -f conftest*
10277 if test $ac_cv_header_stdc = yes; then
10278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10279 if test "$cross_compiling" = yes; then
10281 else
10282 cat >conftest.$ac_ext <<_ACEOF
10283 #line $LINENO "configure"
10284 #include "confdefs.h"
10285 #include <ctype.h>
10286 #if ((' ' & 0x0FF) == 0x020)
10287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10289 #else
10290 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10291 || ('j' <= (c) && (c) <= 'r') \
10292 || ('s' <= (c) && (c) <= 'z'))
10293 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10294 #endif
10296 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10298 main ()
10300 int i;
10301 for (i = 0; i < 256; i++)
10302 if (XOR (islower (i), ISLOWER (i))
10303 || toupper (i) != TOUPPER (i))
10304 exit(2);
10305 exit (0);
10307 _ACEOF
10308 rm -f conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10320 else
10321 echo "$as_me: program exited with status $ac_status" >&5
10322 echo "$as_me: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 ( exit $ac_status )
10325 ac_cv_header_stdc=no
10327 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10331 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10332 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10333 if test $ac_cv_header_stdc = yes; then
10335 cat >>confdefs.h <<\_ACEOF
10336 #define STDC_HEADERS 1
10337 _ACEOF
10343 echo "$as_me:$LINENO: checking for function prototypes" >&5
10344 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
10345 if test "$ac_cv_prog_cc_stdc" != no; then
10346 echo "$as_me:$LINENO: result: yes" >&5
10347 echo "${ECHO_T}yes" >&6
10349 cat >>confdefs.h <<\_ACEOF
10350 #define PROTOTYPES 1
10351 _ACEOF
10354 cat >>confdefs.h <<\_ACEOF
10355 #define __PROTOTYPES 1
10356 _ACEOF
10358 else
10359 echo "$as_me:$LINENO: result: no" >&5
10360 echo "${ECHO_T}no" >&6
10364 for ac_func in setlocale
10366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367 echo "$as_me:$LINENO: checking for $ac_func" >&5
10368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_var+set}\" = set"; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 #include "confdefs.h"
10375 /* System header to define __stub macros and hopefully few prototypes,
10376 which can conflict with char $ac_func (); below. */
10377 #include <assert.h>
10378 /* Override any gcc2 internal prototype to avoid an error. */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 /* We use char because int might match the return type of a gcc2
10383 builtin and then its argument prototype would still apply. */
10384 char $ac_func ();
10385 char (*f) ();
10387 #ifdef F77_DUMMY_MAIN
10388 # ifdef __cplusplus
10389 extern "C"
10390 # endif
10391 int F77_DUMMY_MAIN() { return 1; }
10392 #endif
10394 main ()
10396 /* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
10399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10400 choke me
10401 #else
10402 f = $ac_func;
10403 #endif
10406 return 0;
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 eval "$as_ac_var=yes"
10422 else
10423 echo "$as_me: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10425 eval "$as_ac_var=no"
10427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10431 if test `eval echo '${'$as_ac_var'}'` = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10434 _ACEOF
10437 done
10442 for ac_header in locale.h stdlib.h string.h
10444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
10447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453 else
10454 # Is the header compilable?
10455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10458 #line $LINENO "configure"
10459 #include "confdefs.h"
10460 $ac_includes_default
10461 #include <$ac_header>
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -s conftest.$ac_objext'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; }; then
10475 ac_header_compiler=yes
10476 else
10477 echo "$as_me: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 ac_header_compiler=no
10481 rm -f conftest.$ac_objext conftest.$ac_ext
10482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10483 echo "${ECHO_T}$ac_header_compiler" >&6
10485 # Is the header present?
10486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10489 #line $LINENO "configure"
10490 #include "confdefs.h"
10491 #include <$ac_header>
10492 _ACEOF
10493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10495 ac_status=$?
10496 egrep -v '^ *\+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } >/dev/null; then
10501 if test -s conftest.err; then
10502 ac_cpp_err=$ac_c_preproc_warn_flag
10503 else
10504 ac_cpp_err=
10506 else
10507 ac_cpp_err=yes
10509 if test -z "$ac_cpp_err"; then
10510 ac_header_preproc=yes
10511 else
10512 echo "$as_me: failed program was:" >&5
10513 cat conftest.$ac_ext >&5
10514 ac_header_preproc=no
10516 rm -f conftest.err conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518 echo "${ECHO_T}$ac_header_preproc" >&6
10520 # So? What about this header?
10521 case $ac_header_compiler:$ac_header_preproc in
10522 yes:no )
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10527 no:yes )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10534 esac
10535 echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 else
10540 eval "$as_ac_Header=$ac_header_preproc"
10542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10549 _ACEOF
10553 done
10559 for ac_func in isascii iswprint
10561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10562 echo "$as_me:$LINENO: checking for $ac_func" >&5
10563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_var+set}\" = set"; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567 cat >conftest.$ac_ext <<_ACEOF
10568 #line $LINENO "configure"
10569 #include "confdefs.h"
10570 /* System header to define __stub macros and hopefully few prototypes,
10571 which can conflict with char $ac_func (); below. */
10572 #include <assert.h>
10573 /* Override any gcc2 internal prototype to avoid an error. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 /* We use char because int might match the return type of a gcc2
10578 builtin and then its argument prototype would still apply. */
10579 char $ac_func ();
10580 char (*f) ();
10582 #ifdef F77_DUMMY_MAIN
10583 # ifdef __cplusplus
10584 extern "C"
10585 # endif
10586 int F77_DUMMY_MAIN() { return 1; }
10587 #endif
10589 main ()
10591 /* The GNU C library defines this for functions which it implements
10592 to always fail with ENOSYS. Some functions are actually named
10593 something starting with __ and the normal name is an alias. */
10594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10595 choke me
10596 #else
10597 f = $ac_func;
10598 #endif
10601 return 0;
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 eval "$as_ac_var=yes"
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 eval "$as_ac_var=no"
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10626 if test `eval echo '${'$as_ac_var'}'` = yes; then
10627 cat >>confdefs.h <<_ACEOF
10628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10629 _ACEOF
10632 done
10635 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
10636 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
10637 if test "${jm_cv_func_mbrtowc+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 #include "confdefs.h"
10643 #include <wchar.h>
10644 #ifdef F77_DUMMY_MAIN
10645 # ifdef __cplusplus
10646 extern "C"
10647 # endif
10648 int F77_DUMMY_MAIN() { return 1; }
10649 #endif
10651 main ()
10653 mbstate_t state; return ! (sizeof state && mbrtowc);
10655 return 0;
10657 _ACEOF
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10667 ac_status=$?
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 jm_cv_func_mbrtowc=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 jm_cv_func_mbrtowc=no
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10678 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
10679 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
10680 if test $jm_cv_func_mbrtowc = yes; then
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_MBRTOWC 1
10684 _ACEOF
10694 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
10696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698 echo "$as_me:$LINENO: checking for $ac_header" >&5
10699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705 else
10706 # Is the header compilable?
10707 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709 cat >conftest.$ac_ext <<_ACEOF
10710 #line $LINENO "configure"
10711 #include "confdefs.h"
10712 $ac_includes_default
10713 #include <$ac_header>
10714 _ACEOF
10715 rm -f conftest.$ac_objext
10716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10717 (eval $ac_compile) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -s conftest.$ac_objext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
10727 ac_header_compiler=yes
10728 else
10729 echo "$as_me: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 ac_header_compiler=no
10733 rm -f conftest.$ac_objext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735 echo "${ECHO_T}$ac_header_compiler" >&6
10737 # Is the header present?
10738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10741 #line $LINENO "configure"
10742 #include "confdefs.h"
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10747 ac_status=$?
10748 egrep -v '^ *\+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } >/dev/null; then
10753 if test -s conftest.err; then
10754 ac_cpp_err=$ac_c_preproc_warn_flag
10755 else
10756 ac_cpp_err=
10758 else
10759 ac_cpp_err=yes
10761 if test -z "$ac_cpp_err"; then
10762 ac_header_preproc=yes
10763 else
10764 echo "$as_me: failed program was:" >&5
10765 cat conftest.$ac_ext >&5
10766 ac_header_preproc=no
10768 rm -f conftest.err conftest.$ac_ext
10769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770 echo "${ECHO_T}$ac_header_preproc" >&6
10772 # So? What about this header?
10773 case $ac_header_compiler:$ac_header_preproc in
10774 yes:no )
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10779 no:yes )
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10786 esac
10787 echo "$as_me:$LINENO: checking for $ac_header" >&5
10788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 else
10792 eval "$as_ac_Header=$ac_header_preproc"
10794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10799 cat >>confdefs.h <<_ACEOF
10800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10801 _ACEOF
10805 done
10807 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10809 if test "${ac_cv_header_stdc+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 cat >conftest.$ac_ext <<_ACEOF
10813 #line $LINENO "configure"
10814 #include "confdefs.h"
10815 #include <stdlib.h>
10816 #include <stdarg.h>
10817 #include <string.h>
10818 #include <float.h>
10820 _ACEOF
10821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10823 ac_status=$?
10824 egrep -v '^ *\+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } >/dev/null; then
10829 if test -s conftest.err; then
10830 ac_cpp_err=$ac_c_preproc_warn_flag
10831 else
10832 ac_cpp_err=
10834 else
10835 ac_cpp_err=yes
10837 if test -z "$ac_cpp_err"; then
10838 ac_cv_header_stdc=yes
10839 else
10840 echo "$as_me: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 ac_cv_header_stdc=no
10844 rm -f conftest.err conftest.$ac_ext
10846 if test $ac_cv_header_stdc = yes; then
10847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10848 cat >conftest.$ac_ext <<_ACEOF
10849 #line $LINENO "configure"
10850 #include "confdefs.h"
10851 #include <string.h>
10853 _ACEOF
10854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10855 egrep "memchr" >/dev/null 2>&1; then
10857 else
10858 ac_cv_header_stdc=no
10860 rm -f conftest*
10864 if test $ac_cv_header_stdc = yes; then
10865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10866 cat >conftest.$ac_ext <<_ACEOF
10867 #line $LINENO "configure"
10868 #include "confdefs.h"
10869 #include <stdlib.h>
10871 _ACEOF
10872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10873 egrep "free" >/dev/null 2>&1; then
10875 else
10876 ac_cv_header_stdc=no
10878 rm -f conftest*
10882 if test $ac_cv_header_stdc = yes; then
10883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10884 if test "$cross_compiling" = yes; then
10886 else
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10889 #include "confdefs.h"
10890 #include <ctype.h>
10891 #if ((' ' & 0x0FF) == 0x020)
10892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10894 #else
10895 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10896 || ('j' <= (c) && (c) <= 'r') \
10897 || ('s' <= (c) && (c) <= 'z'))
10898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10899 #endif
10901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10903 main ()
10905 int i;
10906 for (i = 0; i < 256; i++)
10907 if (XOR (islower (i), ISLOWER (i))
10908 || toupper (i) != TOUPPER (i))
10909 exit(2);
10910 exit (0);
10912 _ACEOF
10913 rm -f conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915 (eval $ac_link) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10925 else
10926 echo "$as_me: program exited with status $ac_status" >&5
10927 echo "$as_me: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10929 ( exit $ac_status )
10930 ac_cv_header_stdc=no
10932 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10937 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10938 if test $ac_cv_header_stdc = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define STDC_HEADERS 1
10942 _ACEOF
10947 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
10948 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
10949 if test "${ac_cv_c_backslash_a+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952 cat >conftest.$ac_ext <<_ACEOF
10953 #line $LINENO "configure"
10954 #include "confdefs.h"
10956 #ifdef F77_DUMMY_MAIN
10957 # ifdef __cplusplus
10958 extern "C"
10959 # endif
10960 int F77_DUMMY_MAIN() { return 1; }
10961 #endif
10963 main ()
10966 #if '\a' == 'a'
10967 syntax error;
10968 #endif
10969 char buf['\a' == 'a' ? -1 : 1];
10970 buf[0] = '\a';
10971 return buf[0] != "\a"[0];
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 ac_cv_c_backslash_a=yes
10990 else
10991 echo "$as_me: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 ac_cv_c_backslash_a=no
10995 rm -f conftest.$ac_objext conftest.$ac_ext
10997 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
10998 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
10999 if test $ac_cv_c_backslash_a = yes; then
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_C_BACKSLASH_A 1
11003 _ACEOF
11009 for ac_header in stdlib.h
11011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11013 echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020 else
11021 # Is the header compilable?
11022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11024 cat >conftest.$ac_ext <<_ACEOF
11025 #line $LINENO "configure"
11026 #include "confdefs.h"
11027 $ac_includes_default
11028 #include <$ac_header>
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } &&
11036 { ac_try='test -s conftest.$ac_objext'
11037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038 (eval $ac_try) 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 ac_header_compiler=yes
11043 else
11044 echo "$as_me: failed program was:" >&5
11045 cat conftest.$ac_ext >&5
11046 ac_header_compiler=no
11048 rm -f conftest.$ac_objext conftest.$ac_ext
11049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11050 echo "${ECHO_T}$ac_header_compiler" >&6
11052 # Is the header present?
11053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11057 #include "confdefs.h"
11058 #include <$ac_header>
11059 _ACEOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11062 ac_status=$?
11063 egrep -v '^ *\+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } >/dev/null; then
11068 if test -s conftest.err; then
11069 ac_cpp_err=$ac_c_preproc_warn_flag
11070 else
11071 ac_cpp_err=
11073 else
11074 ac_cpp_err=yes
11076 if test -z "$ac_cpp_err"; then
11077 ac_header_preproc=yes
11078 else
11079 echo "$as_me: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11081 ac_header_preproc=no
11083 rm -f conftest.err conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11085 echo "${ECHO_T}$ac_header_preproc" >&6
11087 # So? What about this header?
11088 case $ac_header_compiler:$ac_header_preproc in
11089 yes:no )
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11094 no:yes )
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11101 esac
11102 echo "$as_me:$LINENO: checking for $ac_header" >&5
11103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107 eval "$as_ac_Header=$ac_header_preproc"
11109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11116 _ACEOF
11120 done
11123 echo "$as_me:$LINENO: checking for mbstate_t" >&5
11124 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11125 if test "${ac_cv_type_mbstate_t+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11130 #include "confdefs.h"
11132 #if HAVE_STDLIB_H
11133 # include <stdlib.h>
11134 #endif
11135 #include <wchar.h>
11136 #ifdef F77_DUMMY_MAIN
11137 # ifdef __cplusplus
11138 extern "C"
11139 # endif
11140 int F77_DUMMY_MAIN() { return 1; }
11141 #endif
11143 main ()
11145 mbstate_t x; return sizeof x;
11147 return 0;
11149 _ACEOF
11150 rm -f conftest.$ac_objext
11151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11152 (eval $ac_compile) 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; }; then
11162 ac_cv_type_mbstate_t=yes
11163 else
11164 echo "$as_me: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11166 ac_cv_type_mbstate_t=no
11168 rm -f conftest.$ac_objext conftest.$ac_ext
11170 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11171 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11172 if test $ac_cv_type_mbstate_t = no; then
11174 cat >>confdefs.h <<\_ACEOF
11175 #define mbstate_t int
11176 _ACEOF
11181 echo "$as_me:$LINENO: checking for function prototypes" >&5
11182 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11183 if test "$am_cv_prog_cc_stdc" != no; then
11184 echo "$as_me:$LINENO: result: yes" >&5
11185 echo "${ECHO_T}yes" >&6
11187 cat >>confdefs.h <<\_ACEOF
11188 #define PROTOTYPES 1
11189 _ACEOF
11191 U= ANSI2KNR=
11192 else
11193 echo "$as_me:$LINENO: result: no" >&5
11194 echo "${ECHO_T}no" >&6
11195 U=_ ANSI2KNR=./ansi2knr
11197 # Ensure some checks needed by ansi2knr itself.
11198 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11199 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11200 if test "${ac_cv_header_stdc+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 #include "confdefs.h"
11206 #include <stdlib.h>
11207 #include <stdarg.h>
11208 #include <string.h>
11209 #include <float.h>
11211 _ACEOF
11212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11214 ac_status=$?
11215 egrep -v '^ *\+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } >/dev/null; then
11220 if test -s conftest.err; then
11221 ac_cpp_err=$ac_c_preproc_warn_flag
11222 else
11223 ac_cpp_err=
11225 else
11226 ac_cpp_err=yes
11228 if test -z "$ac_cpp_err"; then
11229 ac_cv_header_stdc=yes
11230 else
11231 echo "$as_me: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 ac_cv_header_stdc=no
11235 rm -f conftest.err conftest.$ac_ext
11237 if test $ac_cv_header_stdc = yes; then
11238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11239 cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 #include "confdefs.h"
11242 #include <string.h>
11244 _ACEOF
11245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11246 egrep "memchr" >/dev/null 2>&1; then
11248 else
11249 ac_cv_header_stdc=no
11251 rm -f conftest*
11255 if test $ac_cv_header_stdc = yes; then
11256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11257 cat >conftest.$ac_ext <<_ACEOF
11258 #line $LINENO "configure"
11259 #include "confdefs.h"
11260 #include <stdlib.h>
11262 _ACEOF
11263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264 egrep "free" >/dev/null 2>&1; then
11266 else
11267 ac_cv_header_stdc=no
11269 rm -f conftest*
11273 if test $ac_cv_header_stdc = yes; then
11274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11275 if test "$cross_compiling" = yes; then
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 #line $LINENO "configure"
11280 #include "confdefs.h"
11281 #include <ctype.h>
11282 #if ((' ' & 0x0FF) == 0x020)
11283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11285 #else
11286 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11287 || ('j' <= (c) && (c) <= 'r') \
11288 || ('s' <= (c) && (c) <= 'z'))
11289 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11290 #endif
11292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11294 main ()
11296 int i;
11297 for (i = 0; i < 256; i++)
11298 if (XOR (islower (i), ISLOWER (i))
11299 || toupper (i) != TOUPPER (i))
11300 exit(2);
11301 exit (0);
11303 _ACEOF
11304 rm -f conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11316 else
11317 echo "$as_me: program exited with status $ac_status" >&5
11318 echo "$as_me: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 ( exit $ac_status )
11321 ac_cv_header_stdc=no
11323 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11327 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11328 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11329 if test $ac_cv_header_stdc = yes; then
11331 cat >>confdefs.h <<\_ACEOF
11332 #define STDC_HEADERS 1
11333 _ACEOF
11338 for ac_header in string.h
11340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11342 echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11349 else
11350 # Is the header compilable?
11351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11353 cat >conftest.$ac_ext <<_ACEOF
11354 #line $LINENO "configure"
11355 #include "confdefs.h"
11356 $ac_includes_default
11357 #include <$ac_header>
11358 _ACEOF
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_header_compiler=yes
11372 else
11373 echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 ac_header_compiler=no
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6
11381 # Is the header present?
11382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11385 #line $LINENO "configure"
11386 #include "confdefs.h"
11387 #include <$ac_header>
11388 _ACEOF
11389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11391 ac_status=$?
11392 egrep -v '^ *\+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 else
11400 ac_cpp_err=
11402 else
11403 ac_cpp_err=yes
11405 if test -z "$ac_cpp_err"; then
11406 ac_header_preproc=yes
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 cat conftest.$ac_ext >&5
11410 ac_header_preproc=no
11412 rm -f conftest.err conftest.$ac_ext
11413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414 echo "${ECHO_T}$ac_header_preproc" >&6
11416 # So? What about this header?
11417 case $ac_header_compiler:$ac_header_preproc in
11418 yes:no )
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11423 no:yes )
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11430 esac
11431 echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436 eval "$as_ac_Header=$ac_header_preproc"
11438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11445 _ACEOF
11449 done
11458 for ac_func in bzero bcopy isascii btowc
11460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461 echo "$as_me:$LINENO: checking for $ac_func" >&5
11462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11463 if eval "test \"\${$as_ac_var+set}\" = set"; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line $LINENO "configure"
11468 #include "confdefs.h"
11469 /* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func (); below. */
11471 #include <assert.h>
11472 /* Override any gcc2 internal prototype to avoid an error. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 /* We use char because int might match the return type of a gcc2
11477 builtin and then its argument prototype would still apply. */
11478 char $ac_func ();
11479 char (*f) ();
11481 #ifdef F77_DUMMY_MAIN
11482 # ifdef __cplusplus
11483 extern "C"
11484 # endif
11485 int F77_DUMMY_MAIN() { return 1; }
11486 #endif
11488 main ()
11490 /* The GNU C library defines this for functions which it implements
11491 to always fail with ENOSYS. Some functions are actually named
11492 something starting with __ and the normal name is an alias. */
11493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11494 choke me
11495 #else
11496 f = $ac_func;
11497 #endif
11500 return 0;
11502 _ACEOF
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -s conftest$ac_exeext'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
11515 eval "$as_ac_var=yes"
11516 else
11517 echo "$as_me: failed program was:" >&5
11518 cat conftest.$ac_ext >&5
11519 eval "$as_ac_var=no"
11521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11525 if test `eval echo '${'$as_ac_var'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11528 _ACEOF
11531 done
11537 for ac_header in alloca.h libintl.h wctype.h wchar.h
11539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541 echo "$as_me:$LINENO: checking for $ac_header" >&5
11542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11548 else
11549 # Is the header compilable?
11550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11552 cat >conftest.$ac_ext <<_ACEOF
11553 #line $LINENO "configure"
11554 #include "confdefs.h"
11555 $ac_includes_default
11556 #include <$ac_header>
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest.$ac_objext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ac_header_compiler=yes
11571 else
11572 echo "$as_me: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 ac_header_compiler=no
11576 rm -f conftest.$ac_objext conftest.$ac_ext
11577 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11578 echo "${ECHO_T}$ac_header_compiler" >&6
11580 # Is the header present?
11581 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11590 ac_status=$?
11591 egrep -v '^ *\+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev/null; then
11596 if test -s conftest.err; then
11597 ac_cpp_err=$ac_c_preproc_warn_flag
11598 else
11599 ac_cpp_err=
11601 else
11602 ac_cpp_err=yes
11604 if test -z "$ac_cpp_err"; then
11605 ac_header_preproc=yes
11606 else
11607 echo "$as_me: failed program was:" >&5
11608 cat conftest.$ac_ext >&5
11609 ac_header_preproc=no
11611 rm -f conftest.err conftest.$ac_ext
11612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11613 echo "${ECHO_T}$ac_header_preproc" >&6
11615 # So? What about this header?
11616 case $ac_header_compiler:$ac_header_preproc in
11617 yes:no )
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11622 no:yes )
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11629 esac
11630 echo "$as_me:$LINENO: checking for $ac_header" >&5
11631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 eval "$as_ac_Header=$ac_header_preproc"
11637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 _ACEOF
11648 done
11650 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11651 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11652 if test "${ac_cv_header_stdc+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655 cat >conftest.$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11658 #include <stdlib.h>
11659 #include <stdarg.h>
11660 #include <string.h>
11661 #include <float.h>
11663 _ACEOF
11664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11666 ac_status=$?
11667 egrep -v '^ *\+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev/null; then
11672 if test -s conftest.err; then
11673 ac_cpp_err=$ac_c_preproc_warn_flag
11674 else
11675 ac_cpp_err=
11677 else
11678 ac_cpp_err=yes
11680 if test -z "$ac_cpp_err"; then
11681 ac_cv_header_stdc=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_header_stdc=no
11687 rm -f conftest.err conftest.$ac_ext
11689 if test $ac_cv_header_stdc = yes; then
11690 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11693 #include "confdefs.h"
11694 #include <string.h>
11696 _ACEOF
11697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11698 egrep "memchr" >/dev/null 2>&1; then
11700 else
11701 ac_cv_header_stdc=no
11703 rm -f conftest*
11707 if test $ac_cv_header_stdc = yes; then
11708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #line $LINENO "configure"
11711 #include "confdefs.h"
11712 #include <stdlib.h>
11714 _ACEOF
11715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11716 egrep "free" >/dev/null 2>&1; then
11718 else
11719 ac_cv_header_stdc=no
11721 rm -f conftest*
11725 if test $ac_cv_header_stdc = yes; then
11726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11727 if test "$cross_compiling" = yes; then
11729 else
11730 cat >conftest.$ac_ext <<_ACEOF
11731 #line $LINENO "configure"
11732 #include "confdefs.h"
11733 #include <ctype.h>
11734 #if ((' ' & 0x0FF) == 0x020)
11735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11737 #else
11738 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11739 || ('j' <= (c) && (c) <= 'r') \
11740 || ('s' <= (c) && (c) <= 'z'))
11741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11742 #endif
11744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11746 main ()
11748 int i;
11749 for (i = 0; i < 256; i++)
11750 if (XOR (islower (i), ISLOWER (i))
11751 || toupper (i) != TOUPPER (i))
11752 exit(2);
11753 exit (0);
11755 _ACEOF
11756 rm -f conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>&5
11759 ac_status=$?
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11768 else
11769 echo "$as_me: program exited with status $ac_status" >&5
11770 echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 ( exit $ac_status )
11773 ac_cv_header_stdc=no
11775 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11779 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11780 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11781 if test $ac_cv_header_stdc = yes; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define STDC_HEADERS 1
11785 _ACEOF
11789 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11790 # for constant arguments. Useless!
11791 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11792 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11793 if test "${ac_cv_working_alloca_h+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11799 #include <alloca.h>
11800 #ifdef F77_DUMMY_MAIN
11801 # ifdef __cplusplus
11802 extern "C"
11803 # endif
11804 int F77_DUMMY_MAIN() { return 1; }
11805 #endif
11807 main ()
11809 char *p = (char *) alloca (2 * sizeof (int));
11811 return 0;
11813 _ACEOF
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_working_alloca_h=yes
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 ac_cv_working_alloca_h=no
11832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11834 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11835 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11836 if test $ac_cv_working_alloca_h = yes; then
11838 cat >>confdefs.h <<\_ACEOF
11839 #define HAVE_ALLOCA_H 1
11840 _ACEOF
11844 echo "$as_me:$LINENO: checking for alloca" >&5
11845 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11846 if test "${ac_cv_func_alloca_works+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 cat >conftest.$ac_ext <<_ACEOF
11850 #line $LINENO "configure"
11851 #include "confdefs.h"
11852 #ifdef __GNUC__
11853 # define alloca __builtin_alloca
11854 #else
11855 # ifdef _MSC_VER
11856 # include <malloc.h>
11857 # define alloca _alloca
11858 # else
11859 # if HAVE_ALLOCA_H
11860 # include <alloca.h>
11861 # else
11862 # ifdef _AIX
11863 #pragma alloca
11864 # else
11865 # ifndef alloca /* predefined by HP cc +Olibcalls */
11866 char *alloca ();
11867 # endif
11868 # endif
11869 # endif
11870 # endif
11871 #endif
11873 #ifdef F77_DUMMY_MAIN
11874 # ifdef __cplusplus
11875 extern "C"
11876 # endif
11877 int F77_DUMMY_MAIN() { return 1; }
11878 #endif
11880 main ()
11882 char *p = (char *) alloca (1);
11884 return 0;
11886 _ACEOF
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_alloca_works=yes
11900 else
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 ac_cv_func_alloca_works=no
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11907 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11908 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11910 if test $ac_cv_func_alloca_works = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_ALLOCA 1
11914 _ACEOF
11916 else
11917 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11918 # that cause trouble. Some versions do not even contain alloca or
11919 # contain a buggy version. If you still want to use their alloca,
11920 # use ar to extract alloca.o from them instead of compiling alloca.c.
11922 ALLOCA=alloca.$ac_objext
11924 cat >>confdefs.h <<\_ACEOF
11925 #define C_ALLOCA 1
11926 _ACEOF
11929 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11930 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11931 if test "${ac_cv_os_cray+set}" = set; then
11932 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934 cat >conftest.$ac_ext <<_ACEOF
11935 #line $LINENO "configure"
11936 #include "confdefs.h"
11937 #if defined(CRAY) && ! defined(CRAY2)
11938 webecray
11939 #else
11940 wenotbecray
11941 #endif
11943 _ACEOF
11944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11945 egrep "webecray" >/dev/null 2>&1; then
11946 ac_cv_os_cray=yes
11947 else
11948 ac_cv_os_cray=no
11950 rm -f conftest*
11953 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11954 echo "${ECHO_T}$ac_cv_os_cray" >&6
11955 if test $ac_cv_os_cray = yes; then
11956 for ac_func in _getb67 GETB67 getb67; do
11957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11958 echo "$as_me:$LINENO: checking for $ac_func" >&5
11959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11960 if eval "test \"\${$as_ac_var+set}\" = set"; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 #line $LINENO "configure"
11965 #include "confdefs.h"
11966 /* System header to define __stub macros and hopefully few prototypes,
11967 which can conflict with char $ac_func (); below. */
11968 #include <assert.h>
11969 /* Override any gcc2 internal prototype to avoid an error. */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11975 char $ac_func ();
11976 char (*f) ();
11978 #ifdef F77_DUMMY_MAIN
11979 # ifdef __cplusplus
11980 extern "C"
11981 # endif
11982 int F77_DUMMY_MAIN() { return 1; }
11983 #endif
11985 main ()
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11991 choke me
11992 #else
11993 f = $ac_func;
11994 #endif
11997 return 0;
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002 (eval $ac_link) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -s conftest$ac_exeext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 eval "$as_ac_var=yes"
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 cat conftest.$ac_ext >&5
12016 eval "$as_ac_var=no"
12018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022 if test `eval echo '${'$as_ac_var'}'` = yes; then
12024 cat >>confdefs.h <<_ACEOF
12025 #define CRAY_STACKSEG_END $ac_func
12026 _ACEOF
12028 break
12031 done
12034 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12035 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12036 if test "${ac_cv_c_stack_direction+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039 if test "$cross_compiling" = yes; then
12040 ac_cv_c_stack_direction=0
12041 else
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12046 find_stack_direction ()
12048 static char *addr = 0;
12049 auto char dummy;
12050 if (addr == 0)
12052 addr = &dummy;
12053 return find_stack_direction ();
12055 else
12056 return (&dummy > addr) ? 1 : -1;
12060 main ()
12062 exit (find_stack_direction () < 0);
12064 _ACEOF
12065 rm -f conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_c_stack_direction=1
12077 else
12078 echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12081 ( exit $ac_status )
12082 ac_cv_c_stack_direction=-1
12084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12087 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12088 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12090 cat >>confdefs.h <<_ACEOF
12091 #define STACK_DIRECTION $ac_cv_c_stack_direction
12092 _ACEOF
12099 cat >>confdefs.h <<\_ACEOF
12100 #define REGEX_MALLOC 1
12101 _ACEOF
12104 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12105 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12106 if test "${ac_cv_header_stdc+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12112 #include <stdlib.h>
12113 #include <stdarg.h>
12114 #include <string.h>
12115 #include <float.h>
12117 _ACEOF
12118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12120 ac_status=$?
12121 egrep -v '^ *\+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } >/dev/null; then
12126 if test -s conftest.err; then
12127 ac_cpp_err=$ac_c_preproc_warn_flag
12128 else
12129 ac_cpp_err=
12131 else
12132 ac_cpp_err=yes
12134 if test -z "$ac_cpp_err"; then
12135 ac_cv_header_stdc=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 ac_cv_header_stdc=no
12141 rm -f conftest.err conftest.$ac_ext
12143 if test $ac_cv_header_stdc = yes; then
12144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12145 cat >conftest.$ac_ext <<_ACEOF
12146 #line $LINENO "configure"
12147 #include "confdefs.h"
12148 #include <string.h>
12150 _ACEOF
12151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152 egrep "memchr" >/dev/null 2>&1; then
12154 else
12155 ac_cv_header_stdc=no
12157 rm -f conftest*
12161 if test $ac_cv_header_stdc = yes; then
12162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12163 cat >conftest.$ac_ext <<_ACEOF
12164 #line $LINENO "configure"
12165 #include "confdefs.h"
12166 #include <stdlib.h>
12168 _ACEOF
12169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170 egrep "free" >/dev/null 2>&1; then
12172 else
12173 ac_cv_header_stdc=no
12175 rm -f conftest*
12179 if test $ac_cv_header_stdc = yes; then
12180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12181 if test "$cross_compiling" = yes; then
12183 else
12184 cat >conftest.$ac_ext <<_ACEOF
12185 #line $LINENO "configure"
12186 #include "confdefs.h"
12187 #include <ctype.h>
12188 #if ((' ' & 0x0FF) == 0x020)
12189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12191 #else
12192 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12193 || ('j' <= (c) && (c) <= 'r') \
12194 || ('s' <= (c) && (c) <= 'z'))
12195 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12196 #endif
12198 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12200 main ()
12202 int i;
12203 for (i = 0; i < 256; i++)
12204 if (XOR (islower (i), ISLOWER (i))
12205 || toupper (i) != TOUPPER (i))
12206 exit(2);
12207 exit (0);
12209 _ACEOF
12210 rm -f conftest$ac_exeext
12211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12212 (eval $ac_link) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12222 else
12223 echo "$as_me: program exited with status $ac_status" >&5
12224 echo "$as_me: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12226 ( exit $ac_status )
12227 ac_cv_header_stdc=no
12229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12233 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12234 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12235 if test $ac_cv_header_stdc = yes; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define STDC_HEADERS 1
12239 _ACEOF
12243 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12244 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12245 if test "${ac_cv_header_stat_broken+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248 cat >conftest.$ac_ext <<_ACEOF
12249 #line $LINENO "configure"
12250 #include "confdefs.h"
12251 #include <sys/types.h>
12252 #include <sys/stat.h>
12254 #if defined(S_ISBLK) && defined(S_IFDIR)
12255 # if S_ISBLK (S_IFDIR)
12256 You lose.
12257 # endif
12258 #endif
12260 #if defined(S_ISBLK) && defined(S_IFCHR)
12261 # if S_ISBLK (S_IFCHR)
12262 You lose.
12263 # endif
12264 #endif
12266 #if defined(S_ISLNK) && defined(S_IFREG)
12267 # if S_ISLNK (S_IFREG)
12268 You lose.
12269 # endif
12270 #endif
12272 #if defined(S_ISSOCK) && defined(S_IFREG)
12273 # if S_ISSOCK (S_IFREG)
12274 You lose.
12275 # endif
12276 #endif
12278 _ACEOF
12279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12280 egrep "You lose" >/dev/null 2>&1; then
12281 ac_cv_header_stat_broken=yes
12282 else
12283 ac_cv_header_stat_broken=no
12285 rm -f conftest*
12288 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12289 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12290 if test $ac_cv_header_stat_broken = yes; then
12292 cat >>confdefs.h <<\_ACEOF
12293 #define STAT_MACROS_BROKEN 1
12294 _ACEOF
12302 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
12304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12306 echo "$as_me:$LINENO: checking for $ac_header" >&5
12307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313 else
12314 # Is the header compilable?
12315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12317 cat >conftest.$ac_ext <<_ACEOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320 $ac_includes_default
12321 #include <$ac_header>
12322 _ACEOF
12323 rm -f conftest.$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_header_compiler=yes
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12339 ac_header_compiler=no
12341 rm -f conftest.$ac_objext conftest.$ac_ext
12342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343 echo "${ECHO_T}$ac_header_compiler" >&6
12345 # Is the header present?
12346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 #include "confdefs.h"
12351 #include <$ac_header>
12352 _ACEOF
12353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12355 ac_status=$?
12356 egrep -v '^ *\+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } >/dev/null; then
12361 if test -s conftest.err; then
12362 ac_cpp_err=$ac_c_preproc_warn_flag
12363 else
12364 ac_cpp_err=
12366 else
12367 ac_cpp_err=yes
12369 if test -z "$ac_cpp_err"; then
12370 ac_header_preproc=yes
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12374 ac_header_preproc=no
12376 rm -f conftest.err conftest.$ac_ext
12377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378 echo "${ECHO_T}$ac_header_preproc" >&6
12380 # So? What about this header?
12381 case $ac_header_compiler:$ac_header_preproc in
12382 yes:no )
12383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12387 no:yes )
12388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12391 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12393 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12394 esac
12395 echo "$as_me:$LINENO: checking for $ac_header" >&5
12396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 eval "$as_ac_Header=$ac_header_preproc"
12402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12407 cat >>confdefs.h <<_ACEOF
12408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409 _ACEOF
12413 done
12417 for ac_func in __secure_getenv gettimeofday
12419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12420 echo "$as_me:$LINENO: checking for $ac_func" >&5
12421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12422 if eval "test \"\${$as_ac_var+set}\" = set"; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425 cat >conftest.$ac_ext <<_ACEOF
12426 #line $LINENO "configure"
12427 #include "confdefs.h"
12428 /* System header to define __stub macros and hopefully few prototypes,
12429 which can conflict with char $ac_func (); below. */
12430 #include <assert.h>
12431 /* Override any gcc2 internal prototype to avoid an error. */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 /* We use char because int might match the return type of a gcc2
12436 builtin and then its argument prototype would still apply. */
12437 char $ac_func ();
12438 char (*f) ();
12440 #ifdef F77_DUMMY_MAIN
12441 # ifdef __cplusplus
12442 extern "C"
12443 # endif
12444 int F77_DUMMY_MAIN() { return 1; }
12445 #endif
12447 main ()
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12453 choke me
12454 #else
12455 f = $ac_func;
12456 #endif
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 eval "$as_ac_var=yes"
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 cat conftest.$ac_ext >&5
12478 eval "$as_ac_var=no"
12480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12484 if test `eval echo '${'$as_ac_var'}'` = yes; then
12485 cat >>confdefs.h <<_ACEOF
12486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12487 _ACEOF
12490 done
12492 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12493 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12494 if test "${ac_cv_have_decl_getenv+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497 cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12499 #include "confdefs.h"
12500 $ac_includes_default
12501 #ifdef F77_DUMMY_MAIN
12502 # ifdef __cplusplus
12503 extern "C"
12504 # endif
12505 int F77_DUMMY_MAIN() { return 1; }
12506 #endif
12508 main ()
12510 #ifndef getenv
12511 char *p = (char *) getenv;
12512 #endif
12515 return 0;
12517 _ACEOF
12518 rm -f conftest.$ac_objext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12520 (eval $ac_compile) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_have_decl_getenv=yes
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 cat conftest.$ac_ext >&5
12534 ac_cv_have_decl_getenv=no
12536 rm -f conftest.$ac_objext conftest.$ac_ext
12538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12539 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12540 if test $ac_cv_have_decl_getenv = yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define HAVE_DECL_GETENV 1
12544 _ACEOF
12547 else
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_DECL_GETENV 0
12550 _ACEOF
12558 echo "$as_me:$LINENO: checking for long long" >&5
12559 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12560 if test "${ac_cv_type_long_long+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line $LINENO "configure"
12565 #include "confdefs.h"
12566 long long ll = 1; int i = 63;
12567 #ifdef F77_DUMMY_MAIN
12568 # ifdef __cplusplus
12569 extern "C"
12570 # endif
12571 int F77_DUMMY_MAIN() { return 1; }
12572 #endif
12574 main ()
12576 long long llmax = (long long) -1;
12577 return ll << i | ll >> i | llmax / ll | llmax % ll;
12579 return 0;
12581 _ACEOF
12582 rm -f conftest.$ac_objext conftest$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -s conftest$ac_exeext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
12594 ac_cv_type_long_long=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12598 ac_cv_type_long_long=no
12600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12602 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12603 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12604 if test $ac_cv_type_long_long = yes; then
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_LONG_LONG 1
12608 _ACEOF
12614 echo "$as_me:$LINENO: checking for intmax_t" >&5
12615 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12616 if test "${ac_cv_type_intmax_t+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 else
12619 cat >conftest.$ac_ext <<_ACEOF
12620 #line $LINENO "configure"
12621 #include "confdefs.h"
12622 $ac_includes_default
12623 #ifdef F77_DUMMY_MAIN
12624 # ifdef __cplusplus
12625 extern "C"
12626 # endif
12627 int F77_DUMMY_MAIN() { return 1; }
12628 #endif
12630 main ()
12632 if ((intmax_t *) 0)
12633 return 0;
12634 if (sizeof (intmax_t))
12635 return 0;
12637 return 0;
12639 _ACEOF
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_type_intmax_t=yes
12653 else
12654 echo "$as_me: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12656 ac_cv_type_intmax_t=no
12658 rm -f conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12661 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12662 if test $ac_cv_type_intmax_t = yes; then
12664 else
12665 test $ac_cv_type_long_long = yes \
12666 && ac_type='long long' \
12667 || ac_type='long'
12669 cat >>confdefs.h <<_ACEOF
12670 #define intmax_t $ac_type
12671 _ACEOF
12681 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
12682 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
12683 if test "${ac_cv_have_decl_strtol+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 else
12686 cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 #include "confdefs.h"
12689 $ac_includes_default
12690 #ifdef F77_DUMMY_MAIN
12691 # ifdef __cplusplus
12692 extern "C"
12693 # endif
12694 int F77_DUMMY_MAIN() { return 1; }
12695 #endif
12697 main ()
12699 #ifndef strtol
12700 char *p = (char *) strtol;
12701 #endif
12704 return 0;
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_have_decl_strtol=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 ac_cv_have_decl_strtol=no
12725 rm -f conftest.$ac_objext conftest.$ac_ext
12727 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
12728 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
12729 if test $ac_cv_have_decl_strtol = yes; then
12731 cat >>confdefs.h <<_ACEOF
12732 #define HAVE_DECL_STRTOL 1
12733 _ACEOF
12736 else
12737 cat >>confdefs.h <<_ACEOF
12738 #define HAVE_DECL_STRTOL 0
12739 _ACEOF
12743 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
12744 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
12745 if test "${ac_cv_have_decl_strtoul+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748 cat >conftest.$ac_ext <<_ACEOF
12749 #line $LINENO "configure"
12750 #include "confdefs.h"
12751 $ac_includes_default
12752 #ifdef F77_DUMMY_MAIN
12753 # ifdef __cplusplus
12754 extern "C"
12755 # endif
12756 int F77_DUMMY_MAIN() { return 1; }
12757 #endif
12759 main ()
12761 #ifndef strtoul
12762 char *p = (char *) strtoul;
12763 #endif
12766 return 0;
12768 _ACEOF
12769 rm -f conftest.$ac_objext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_cv_have_decl_strtoul=yes
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 ac_cv_have_decl_strtoul=no
12787 rm -f conftest.$ac_objext conftest.$ac_ext
12789 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
12790 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
12791 if test $ac_cv_have_decl_strtoul = yes; then
12793 cat >>confdefs.h <<_ACEOF
12794 #define HAVE_DECL_STRTOUL 1
12795 _ACEOF
12798 else
12799 cat >>confdefs.h <<_ACEOF
12800 #define HAVE_DECL_STRTOUL 0
12801 _ACEOF
12805 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
12806 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
12807 if test "${ac_cv_have_decl_strtoull+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 cat >conftest.$ac_ext <<_ACEOF
12811 #line $LINENO "configure"
12812 #include "confdefs.h"
12813 $ac_includes_default
12814 #ifdef F77_DUMMY_MAIN
12815 # ifdef __cplusplus
12816 extern "C"
12817 # endif
12818 int F77_DUMMY_MAIN() { return 1; }
12819 #endif
12821 main ()
12823 #ifndef strtoull
12824 char *p = (char *) strtoull;
12825 #endif
12828 return 0;
12830 _ACEOF
12831 rm -f conftest.$ac_objext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_have_decl_strtoull=yes
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 ac_cv_have_decl_strtoull=no
12849 rm -f conftest.$ac_objext conftest.$ac_ext
12851 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
12852 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
12853 if test $ac_cv_have_decl_strtoull = yes; then
12855 cat >>confdefs.h <<_ACEOF
12856 #define HAVE_DECL_STRTOULL 1
12857 _ACEOF
12860 else
12861 cat >>confdefs.h <<_ACEOF
12862 #define HAVE_DECL_STRTOULL 0
12863 _ACEOF
12867 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
12868 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
12869 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 cat >conftest.$ac_ext <<_ACEOF
12873 #line $LINENO "configure"
12874 #include "confdefs.h"
12875 $ac_includes_default
12876 #ifdef F77_DUMMY_MAIN
12877 # ifdef __cplusplus
12878 extern "C"
12879 # endif
12880 int F77_DUMMY_MAIN() { return 1; }
12881 #endif
12883 main ()
12885 #ifndef strtoimax
12886 char *p = (char *) strtoimax;
12887 #endif
12890 return 0;
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_cv_have_decl_strtoimax=yes
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12909 ac_cv_have_decl_strtoimax=no
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
12914 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
12915 if test $ac_cv_have_decl_strtoimax = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_DECL_STRTOIMAX 1
12919 _ACEOF
12922 else
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_DECL_STRTOIMAX 0
12925 _ACEOF
12929 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
12930 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
12931 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934 cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12937 $ac_includes_default
12938 #ifdef F77_DUMMY_MAIN
12939 # ifdef __cplusplus
12940 extern "C"
12941 # endif
12942 int F77_DUMMY_MAIN() { return 1; }
12943 #endif
12945 main ()
12947 #ifndef strtoumax
12948 char *p = (char *) strtoumax;
12949 #endif
12952 return 0;
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_have_decl_strtoumax=yes
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 ac_cv_have_decl_strtoumax=no
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
12976 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
12977 if test $ac_cv_have_decl_strtoumax = yes; then
12979 cat >>confdefs.h <<_ACEOF
12980 #define HAVE_DECL_STRTOUMAX 1
12981 _ACEOF
12984 else
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_DECL_STRTOUMAX 0
12987 _ACEOF
12996 for ac_header in limits.h stdlib.h inttypes.h
12998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13000 echo "$as_me:$LINENO: checking for $ac_header" >&5
13001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13007 else
13008 # Is the header compilable?
13009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13011 cat >conftest.$ac_ext <<_ACEOF
13012 #line $LINENO "configure"
13013 #include "confdefs.h"
13014 $ac_includes_default
13015 #include <$ac_header>
13016 _ACEOF
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_header_compiler=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 ac_header_compiler=no
13035 rm -f conftest.$ac_objext conftest.$ac_ext
13036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13037 echo "${ECHO_T}$ac_header_compiler" >&6
13039 # Is the header present?
13040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13042 cat >conftest.$ac_ext <<_ACEOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13045 #include <$ac_header>
13046 _ACEOF
13047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13049 ac_status=$?
13050 egrep -v '^ *\+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } >/dev/null; then
13055 if test -s conftest.err; then
13056 ac_cpp_err=$ac_c_preproc_warn_flag
13057 else
13058 ac_cpp_err=
13060 else
13061 ac_cpp_err=yes
13063 if test -z "$ac_cpp_err"; then
13064 ac_header_preproc=yes
13065 else
13066 echo "$as_me: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13068 ac_header_preproc=no
13070 rm -f conftest.err conftest.$ac_ext
13071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072 echo "${ECHO_T}$ac_header_preproc" >&6
13074 # So? What about this header?
13075 case $ac_header_compiler:$ac_header_preproc in
13076 yes:no )
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13081 no:yes )
13082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13088 esac
13089 echo "$as_me:$LINENO: checking for $ac_header" >&5
13090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 else
13094 eval "$as_ac_Header=$ac_header_preproc"
13096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13101 cat >>confdefs.h <<_ACEOF
13102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13103 _ACEOF
13107 done
13110 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
13111 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
13112 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115 cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118 #include <inttypes.h>
13119 #ifdef strtoumax
13120 inttypes_h_defines_strtoumax
13121 #endif
13122 _ACEOF
13123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
13125 jm_cv_func_strtoumax_macro=yes
13126 else
13127 jm_cv_func_strtoumax_macro=no
13129 rm -f conftest*
13132 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
13133 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
13135 if test "$jm_cv_func_strtoumax_macro" != yes; then
13137 for ac_func in strtoumax
13139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13140 echo "$as_me:$LINENO: checking for $ac_func" >&5
13141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13142 if eval "test \"\${$as_ac_var+set}\" = set"; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145 cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13147 #include "confdefs.h"
13148 /* System header to define __stub macros and hopefully few prototypes,
13149 which can conflict with char $ac_func (); below. */
13150 #include <assert.h>
13151 /* Override any gcc2 internal prototype to avoid an error. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 /* We use char because int might match the return type of a gcc2
13156 builtin and then its argument prototype would still apply. */
13157 char $ac_func ();
13158 char (*f) ();
13160 #ifdef F77_DUMMY_MAIN
13161 # ifdef __cplusplus
13162 extern "C"
13163 # endif
13164 int F77_DUMMY_MAIN() { return 1; }
13165 #endif
13167 main ()
13169 /* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173 choke me
13174 #else
13175 f = $ac_func;
13176 #endif
13179 return 0;
13181 _ACEOF
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13184 (eval $ac_link) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13191 ac_status=$?
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 eval "$as_ac_var=yes"
13195 else
13196 echo "$as_me: failed program was:" >&5
13197 cat conftest.$ac_ext >&5
13198 eval "$as_ac_var=no"
13200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13204 if test `eval echo '${'$as_ac_var'}'` = yes; then
13205 cat >>confdefs.h <<_ACEOF
13206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13207 _ACEOF
13209 else
13210 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13212 done
13217 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
13218 no,no)
13220 for ac_func in strtoul
13222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 echo "$as_me:$LINENO: checking for $ac_func" >&5
13224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13225 if eval "test \"\${$as_ac_var+set}\" = set"; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 cat >conftest.$ac_ext <<_ACEOF
13229 #line $LINENO "configure"
13230 #include "confdefs.h"
13231 /* System header to define __stub macros and hopefully few prototypes,
13232 which can conflict with char $ac_func (); below. */
13233 #include <assert.h>
13234 /* Override any gcc2 internal prototype to avoid an error. */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 /* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13240 char $ac_func ();
13241 char (*f) ();
13243 #ifdef F77_DUMMY_MAIN
13244 # ifdef __cplusplus
13245 extern "C"
13246 # endif
13247 int F77_DUMMY_MAIN() { return 1; }
13248 #endif
13250 main ()
13252 /* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256 choke me
13257 #else
13258 f = $ac_func;
13259 #endif
13262 return 0;
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267 (eval $ac_link) 2>&5
13268 ac_status=$?
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -s conftest$ac_exeext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 eval "$as_ac_var=yes"
13278 else
13279 echo "$as_me: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 eval "$as_ac_var=no"
13283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13287 if test `eval echo '${'$as_ac_var'}'` = yes; then
13288 cat >>confdefs.h <<_ACEOF
13289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13290 _ACEOF
13292 else
13293 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13295 done
13299 if test "$ac_cv_type_unsigned_long_long" = yes; then
13301 for ac_func in strtoull
13303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13304 echo "$as_me:$LINENO: checking for $ac_func" >&5
13305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13306 if eval "test \"\${$as_ac_var+set}\" = set"; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 cat >conftest.$ac_ext <<_ACEOF
13310 #line $LINENO "configure"
13311 #include "confdefs.h"
13312 /* System header to define __stub macros and hopefully few prototypes,
13313 which can conflict with char $ac_func (); below. */
13314 #include <assert.h>
13315 /* Override any gcc2 internal prototype to avoid an error. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 /* We use char because int might match the return type of a gcc2
13320 builtin and then its argument prototype would still apply. */
13321 char $ac_func ();
13322 char (*f) ();
13324 #ifdef F77_DUMMY_MAIN
13325 # ifdef __cplusplus
13326 extern "C"
13327 # endif
13328 int F77_DUMMY_MAIN() { return 1; }
13329 #endif
13331 main ()
13333 /* The GNU C library defines this for functions which it implements
13334 to always fail with ENOSYS. Some functions are actually named
13335 something starting with __ and the normal name is an alias. */
13336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13337 choke me
13338 #else
13339 f = $ac_func;
13340 #endif
13343 return 0;
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13348 (eval $ac_link) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } &&
13352 { ac_try='test -s conftest$ac_exeext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 eval "$as_ac_var=yes"
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 eval "$as_ac_var=no"
13364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13367 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13368 if test `eval echo '${'$as_ac_var'}'` = yes; then
13369 cat >>confdefs.h <<_ACEOF
13370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13371 _ACEOF
13373 else
13374 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13376 done
13381 esac
13384 # Check for clock_gettime and its library. Solaris puts it in -lrt or
13385 # -lposix4, but we don't want to link that library unless we have to.
13386 diff_saved_libs=$LIBS
13387 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
13388 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
13389 if test "${ac_cv_search_clock_gettime+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392 ac_func_search_save_LIBS=$LIBS
13393 ac_cv_search_clock_gettime=no
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #line $LINENO "configure"
13396 #include "confdefs.h"
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13404 char clock_gettime ();
13405 #ifdef F77_DUMMY_MAIN
13406 # ifdef __cplusplus
13407 extern "C"
13408 # endif
13409 int F77_DUMMY_MAIN() { return 1; }
13410 #endif
13412 main ()
13414 clock_gettime ();
13416 return 0;
13418 _ACEOF
13419 rm -f conftest.$ac_objext conftest$ac_exeext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -s conftest$ac_exeext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_search_clock_gettime="none required"
13432 else
13433 echo "$as_me: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13437 if test "$ac_cv_search_clock_gettime" = no; then
13438 for ac_lib in rt posix4; do
13439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13441 #line $LINENO "configure"
13442 #include "confdefs.h"
13444 /* Override any gcc2 internal prototype to avoid an error. */
13445 #ifdef __cplusplus
13446 extern "C"
13447 #endif
13448 /* We use char because int might match the return type of a gcc2
13449 builtin and then its argument prototype would still apply. */
13450 char clock_gettime ();
13451 #ifdef F77_DUMMY_MAIN
13452 # ifdef __cplusplus
13453 extern "C"
13454 # endif
13455 int F77_DUMMY_MAIN() { return 1; }
13456 #endif
13458 main ()
13460 clock_gettime ();
13462 return 0;
13464 _ACEOF
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13467 (eval $ac_link) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
13471 { ac_try='test -s conftest$ac_exeext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_cv_search_clock_gettime="-l$ac_lib"
13478 break
13479 else
13480 echo "$as_me: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13484 done
13486 LIBS=$ac_func_search_save_LIBS
13488 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
13489 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
13490 if test "$ac_cv_search_clock_gettime" != no; then
13491 test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
13495 case $ac_cv_search_clock_gettime in
13496 no | 'none required')
13497 LIB_CLOCK_GETTIME=;;
13499 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
13500 esac
13503 for ac_func in clock_gettime
13505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13506 echo "$as_me:$LINENO: checking for $ac_func" >&5
13507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13508 if eval "test \"\${$as_ac_var+set}\" = set"; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 else
13511 cat >conftest.$ac_ext <<_ACEOF
13512 #line $LINENO "configure"
13513 #include "confdefs.h"
13514 /* System header to define __stub macros and hopefully few prototypes,
13515 which can conflict with char $ac_func (); below. */
13516 #include <assert.h>
13517 /* Override any gcc2 internal prototype to avoid an error. */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523 char $ac_func ();
13524 char (*f) ();
13526 #ifdef F77_DUMMY_MAIN
13527 # ifdef __cplusplus
13528 extern "C"
13529 # endif
13530 int F77_DUMMY_MAIN() { return 1; }
13531 #endif
13533 main ()
13535 /* The GNU C library defines this for functions which it implements
13536 to always fail with ENOSYS. Some functions are actually named
13537 something starting with __ and the normal name is an alias. */
13538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13539 choke me
13540 #else
13541 f = $ac_func;
13542 #endif
13545 return 0;
13547 _ACEOF
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550 (eval $ac_link) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } &&
13554 { ac_try='test -s conftest$ac_exeext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 eval "$as_ac_var=yes"
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13564 eval "$as_ac_var=no"
13566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13570 if test `eval echo '${'$as_ac_var'}'` = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573 _ACEOF
13576 done
13578 LIBS=$diff_saved_libs
13580 # fnmatch
13581 echo "$as_me:$LINENO: checking for working GNU-style fnmatch" >&5
13582 echo $ECHO_N "checking for working GNU-style fnmatch... $ECHO_C" >&6
13583 if test "${ac_cv_func_fnmatch_works+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 # Some versions of Solaris, SCO, and the GNU C Library
13587 # have a broken or incompatible fnmatch.
13588 # So we run a test program. If we are cross-compiling, take no chance.
13589 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
13590 if test "$cross_compiling" = yes; then
13591 ac_cv_func_fnmatch_works=no
13592 else
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13595 #include "confdefs.h"
13596 #include <fnmatch.h>
13597 #ifdef F77_DUMMY_MAIN
13598 # ifdef __cplusplus
13599 extern "C"
13600 # endif
13601 int F77_DUMMY_MAIN() { return 1; }
13602 #endif
13604 main ()
13606 exit (fnmatch ("a*", "abc", 0) != 0
13607 || fnmatch ("xxXX", "xXxX", FNM_CASEFOLD) != 0
13608 || fnmatch ("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH
13609 || fnmatch ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
13610 || fnmatch ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
13611 || fnmatch ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);
13613 return 0;
13615 _ACEOF
13616 rm -f conftest$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_cv_func_fnmatch_works=yes
13628 else
13629 echo "$as_me: program exited with status $ac_status" >&5
13630 echo "$as_me: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 ( exit $ac_status )
13633 ac_cv_func_fnmatch_works=no
13635 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
13639 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
13640 if test $ac_cv_func_fnmatch_works = yes; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_FNMATCH 1
13644 _ACEOF
13648 if test $ac_cv_func_fnmatch_works = yes; then
13649 rm -f lib/fnmatch.h
13650 else
13651 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
13652 ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.hin"
13656 # regex
13659 # Assume we'll default to using the included regex.c.
13660 ac_use_included_regex=yes
13662 # However, if the system regex support is good enough that it passes the
13663 # the following run test, then default to *not* using the included regex.c.
13664 # If cross compiling, assume the test would fail and use the included
13665 # regex.c. The first failing regular expression is from `Spencer ere
13666 # test #75' in grep-2.3.
13667 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
13668 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
13669 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672 if test "$cross_compiling" = yes; then
13673 jm_cv_func_working_re_compile_pattern=no
13674 else
13675 cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 #include <stdio.h>
13679 #include <regex.h>
13681 main ()
13683 static struct re_pattern_buffer regex;
13684 const char *s;
13685 struct re_registers regs;
13686 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
13687 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
13688 /* This should fail with _Invalid character class name_ error. */
13689 if (!s)
13690 exit (1);
13692 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
13693 s = re_compile_pattern ("{1", 2, &regex);
13695 if (s)
13696 exit (1);
13698 /* The following example is derived from a problem report
13699 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
13700 s = re_compile_pattern ("[anù]*n", 7, &regex);
13701 if (s)
13702 exit (1);
13704 /* This should match, but doesn't for e.g. glibc-2.2.1. */
13705 if (re_match (&regex, "an", 2, 0, &regs) != 2)
13706 exit (1);
13708 exit (0);
13711 _ACEOF
13712 rm -f conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 jm_cv_func_working_re_compile_pattern=yes
13724 else
13725 echo "$as_me: program exited with status $ac_status" >&5
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 ( exit $ac_status )
13729 jm_cv_func_working_re_compile_pattern=no
13731 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13734 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
13735 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
13736 if test $jm_cv_func_working_re_compile_pattern = yes; then
13737 ac_use_included_regex=no
13740 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
13741 echo "$as_me: error: missing argument" >&2;}
13742 { (exit 1); exit 1; }; }
13746 # Check whether --with-included-regex or --without-included-regex was given.
13747 if test "${with_included_regex+set}" = set; then
13748 withval="$with_included_regex"
13749 jm_with_regex=$withval
13750 else
13751 jm_with_regex=$ac_use_included_regex
13753 if test "$jm_with_regex" = yes; then
13754 LIBOBJS="$LIBOBJS regex.$ac_objext"
13759 if test "$jm_with_regex" = yes; then
13760 ac_config_links="$ac_config_links lib/regex.h:lib/regex.hin"
13762 else
13763 rm -f lib/regex.h
13767 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
13768 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
13769 if test "${ac_cv_win_or_dos+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13773 cat >conftest.$ac_ext <<_ACEOF
13774 #line $LINENO "configure"
13775 #include "confdefs.h"
13777 #ifdef F77_DUMMY_MAIN
13778 # ifdef __cplusplus
13779 extern "C"
13780 # endif
13781 int F77_DUMMY_MAIN() { return 1; }
13782 #endif
13784 main ()
13786 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
13787 neither MSDOS nor Windows
13788 #endif
13790 return 0;
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_win_or_dos=yes
13806 else
13807 echo "$as_me: failed program was:" >&5
13808 cat conftest.$ac_ext >&5
13809 ac_cv_win_or_dos=no
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13814 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
13815 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
13817 if test x"$ac_cv_win_or_dos" = xyes; then
13818 ac_fs_accepts_drive_letter_prefix=1
13819 ac_fs_backslash_is_file_name_separator=1
13820 else
13821 ac_fs_accepts_drive_letter_prefix=0
13822 ac_fs_backslash_is_file_name_separator=0
13829 cat >>confdefs.h <<_ACEOF
13830 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
13831 _ACEOF
13838 cat >>confdefs.h <<_ACEOF
13839 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
13840 _ACEOF
13845 for ac_header in fcntl.h unistd.h
13847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13849 echo "$as_me:$LINENO: checking for $ac_header" >&5
13850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856 else
13857 # Is the header compilable?
13858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13860 cat >conftest.$ac_ext <<_ACEOF
13861 #line $LINENO "configure"
13862 #include "confdefs.h"
13863 $ac_includes_default
13864 #include <$ac_header>
13865 _ACEOF
13866 rm -f conftest.$ac_objext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13868 (eval $ac_compile) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_header_compiler=yes
13879 else
13880 echo "$as_me: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 ac_header_compiler=no
13884 rm -f conftest.$ac_objext conftest.$ac_ext
13885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13886 echo "${ECHO_T}$ac_header_compiler" >&6
13888 # Is the header present?
13889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13892 #line $LINENO "configure"
13893 #include "confdefs.h"
13894 #include <$ac_header>
13895 _ACEOF
13896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13898 ac_status=$?
13899 egrep -v '^ *\+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } >/dev/null; then
13904 if test -s conftest.err; then
13905 ac_cpp_err=$ac_c_preproc_warn_flag
13906 else
13907 ac_cpp_err=
13909 else
13910 ac_cpp_err=yes
13912 if test -z "$ac_cpp_err"; then
13913 ac_header_preproc=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 ac_header_preproc=no
13919 rm -f conftest.err conftest.$ac_ext
13920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921 echo "${ECHO_T}$ac_header_preproc" >&6
13923 # So? What about this header?
13924 case $ac_header_compiler:$ac_header_preproc in
13925 yes:no )
13926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13930 no:yes )
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13937 esac
13938 echo "$as_me:$LINENO: checking for $ac_header" >&5
13939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943 eval "$as_ac_Header=$ac_header_preproc"
13945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13952 _ACEOF
13956 done
13958 echo "$as_me:$LINENO: checking for DOS-style setmode" >&5
13959 echo $ECHO_N "checking for DOS-style setmode... $ECHO_C" >&6
13960 if test "${ac_cv_func_setmode_dos+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 cat >conftest.$ac_ext <<_ACEOF
13964 #line $LINENO "configure"
13965 #include "confdefs.h"
13966 #include <io.h>
13967 #if HAVE_FCNTL_H
13968 # include <fcntl.h>
13969 #endif
13970 #if HAVE_UNISTD_H
13971 # include <unistd.h>
13972 #endif
13973 #ifdef F77_DUMMY_MAIN
13974 # ifdef __cplusplus
13975 extern "C"
13976 # endif
13977 int F77_DUMMY_MAIN() { return 1; }
13978 #endif
13980 main ()
13982 int ret = setmode && setmode (1, O_BINARY);
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest$ac_exeext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 ac_cv_func_setmode_dos=yes
14000 else
14001 echo "$as_me: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 ac_cv_func_setmode_dos=no
14005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14007 echo "$as_me:$LINENO: result: $ac_cv_func_setmode_dos" >&5
14008 echo "${ECHO_T}$ac_cv_func_setmode_dos" >&6
14009 if test $ac_cv_func_setmode_dos = yes; then
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_SETMODE_DOS 1
14013 _ACEOF
14017 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile lib/posix/Makefile man/Makefile m4/Makefile ms/Makefile po/Makefile.in src/Makefile"
14019 ac_config_commands="$ac_config_commands default"
14021 cat >confcache <<\_ACEOF
14022 # This file is a shell script that caches the results of configure
14023 # tests run on this system so they can be shared between configure
14024 # scripts and configure runs, see configure's option --config-cache.
14025 # It is not useful on other systems. If it contains results you don't
14026 # want to keep, you may remove or edit it.
14028 # config.status only pays attention to the cache file if you give it
14029 # the --recheck option to rerun configure.
14031 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14032 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14033 # following values.
14035 _ACEOF
14037 # The following way of writing the cache mishandles newlines in values,
14038 # but we know of no workaround that is simple, portable, and efficient.
14039 # So, don't put newlines in cache variables' values.
14040 # Ultrix sh set writes to stderr and can't be redirected directly,
14041 # and sets the high bit in the cache file unless we assign to the vars.
14043 (set) 2>&1 |
14044 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14045 *ac_space=\ *)
14046 # `set' does not quote correctly, so add quotes (double-quote
14047 # substitution turns \\\\ into \\, and sed turns \\ into \).
14048 sed -n \
14049 "s/'/'\\\\''/g;
14050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14053 # `set' quotes correctly as required by POSIX, so do not add quotes.
14054 sed -n \
14055 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14057 esac;
14059 sed '
14060 t clear
14061 : clear
14062 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14063 t end
14064 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14065 : end' >>confcache
14066 if cmp -s $cache_file confcache; then :; else
14067 if test -w $cache_file; then
14068 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14069 cat confcache >$cache_file
14070 else
14071 echo "not updating unwritable cache $cache_file"
14074 rm -f confcache
14076 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14077 # Let make expand exec_prefix.
14078 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14080 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14081 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14082 # trailing colons and then remove the whole line if VPATH becomes empty
14083 # (actually we leave an empty line to preserve line numbers).
14084 if test "x$srcdir" = x.; then
14085 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14086 s/:*\$(srcdir):*/:/;
14087 s/:*\${srcdir}:*/:/;
14088 s/:*@srcdir@:*/:/;
14089 s/^\([^=]*=[ ]*\):*/\1/;
14090 s/:*$//;
14091 s/^[^=]*=[ ]*$//;
14095 DEFS=-DHAVE_CONFIG_H
14097 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14098 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14099 Usually this means the macro was only invoked conditionally." >&5
14100 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14101 Usually this means the macro was only invoked conditionally." >&2;}
14102 { (exit 1); exit 1; }; }
14105 : ${CONFIG_STATUS=./config.status}
14106 ac_clean_files_save=$ac_clean_files
14107 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14108 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14109 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14110 cat >$CONFIG_STATUS <<_ACEOF
14111 #! $SHELL
14112 # Generated by $as_me.
14113 # Run this file to recreate the current configuration.
14114 # Compiler output produced by configure, useful for debugging
14115 # configure, is in config.log if it exists.
14117 debug=false
14118 SHELL=\${CONFIG_SHELL-$SHELL}
14119 _ACEOF
14121 cat >>$CONFIG_STATUS <<\_ACEOF
14123 ## --------------------- ##
14124 ## M4sh Initialization. ##
14125 ## --------------------- ##
14127 # Be Bourne compatible
14128 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14129 emulate sh
14130 NULLCMD=:
14131 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14132 set -o posix
14135 # NLS nuisances.
14136 # Support unset when possible.
14137 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14138 as_unset=unset
14139 else
14140 as_unset=false
14143 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14144 { $as_unset LANG || test "${LANG+set}" != set; } ||
14145 { LANG=C; export LANG; }
14146 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14147 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14148 { LC_ALL=C; export LC_ALL; }
14149 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14150 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14151 { LC_TIME=C; export LC_TIME; }
14152 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14153 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14154 { LC_CTYPE=C; export LC_CTYPE; }
14155 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14156 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14157 { LANGUAGE=C; export LANGUAGE; }
14158 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14159 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14160 { LC_COLLATE=C; export LC_COLLATE; }
14161 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14162 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14163 { LC_NUMERIC=C; export LC_NUMERIC; }
14164 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14165 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14166 { LC_MESSAGES=C; export LC_MESSAGES; }
14169 # Name of the executable.
14170 as_me=`(basename "$0") 2>/dev/null ||
14171 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14172 X"$0" : 'X\(//\)$' \| \
14173 X"$0" : 'X\(/\)$' \| \
14174 . : '\(.\)' 2>/dev/null ||
14175 echo X/"$0" |
14176 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14177 /^X\/\(\/\/\)$/{ s//\1/; q; }
14178 /^X\/\(\/\).*/{ s//\1/; q; }
14179 s/.*/./; q'`
14181 # PATH needs CR, and LINENO needs CR and PATH.
14182 # Avoid depending upon Character Ranges.
14183 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14184 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14185 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14186 as_cr_digits='0123456789'
14187 as_cr_alnum=$as_cr_Letters$as_cr_digits
14189 # The user is always right.
14190 if test "${PATH_SEPARATOR+set}" != set; then
14191 echo "#! /bin/sh" >conftest.sh
14192 echo "exit 0" >>conftest.sh
14193 chmod +x conftest.sh
14194 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14195 PATH_SEPARATOR=';'
14196 else
14197 PATH_SEPARATOR=:
14199 rm -f conftest.sh
14203 as_lineno_1=$LINENO
14204 as_lineno_2=$LINENO
14205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14206 test "x$as_lineno_1" != "x$as_lineno_2" &&
14207 test "x$as_lineno_3" = "x$as_lineno_2" || {
14208 # Find who we are. Look in the path if we contain no path at all
14209 # relative or not.
14210 case $0 in
14211 *[\\/]* ) as_myself=$0 ;;
14212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14218 done
14221 esac
14222 # We did not find ourselves, most probably we were run as `sh COMMAND'
14223 # in which case we are not to be found in the path.
14224 if test "x$as_myself" = x; then
14225 as_myself=$0
14227 if test ! -f "$as_myself"; then
14228 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14229 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14230 { (exit 1); exit 1; }; }
14232 case $CONFIG_SHELL in
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for as_base in sh bash ksh sh5; do
14240 case $as_dir in
14242 if ("$as_dir/$as_base" -c '
14243 as_lineno_1=$LINENO
14244 as_lineno_2=$LINENO
14245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14246 test "x$as_lineno_1" != "x$as_lineno_2" &&
14247 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14248 CONFIG_SHELL=$as_dir/$as_base
14249 export CONFIG_SHELL
14250 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14251 fi;;
14252 esac
14253 done
14254 done
14256 esac
14258 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14259 # uniformly replaced by the line number. The first 'sed' inserts a
14260 # line-number line before each line; the second 'sed' does the real
14261 # work. The second script uses 'N' to pair each line-number line
14262 # with the numbered line, and appends trailing '-' during
14263 # substitution so that $LINENO is not a special case at line end.
14264 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14265 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14266 sed '=' <$as_myself |
14267 sed '
14269 s,$,-,
14270 : loop
14271 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14272 t loop
14273 s,-$,,
14274 s,^['$as_cr_digits']*\n,,
14275 ' >$as_me.lineno &&
14276 chmod +x $as_me.lineno ||
14277 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14278 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14279 { (exit 1); exit 1; }; }
14281 # Don't try to exec as it changes $[0], causing all sort of problems
14282 # (the dirname of $[0] is not the place where we might find the
14283 # original and so on. Autoconf is especially sensible to this).
14284 . ./$as_me.lineno
14285 # Exit status is that of the last command.
14286 exit
14290 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14291 *c*,-n*) ECHO_N= ECHO_C='
14292 ' ECHO_T=' ' ;;
14293 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14294 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14295 esac
14297 if expr a : '\(a\)' >/dev/null 2>&1; then
14298 as_expr=expr
14299 else
14300 as_expr=false
14303 rm -f conf$$ conf$$.exe conf$$.file
14304 echo >conf$$.file
14305 if ln -s conf$$.file conf$$ 2>/dev/null; then
14306 # We could just check for DJGPP; but this test a) works b) is more generic
14307 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14308 if test -f conf$$.exe; then
14309 # Don't use ln at all; we don't have any links
14310 as_ln_s='cp -p'
14311 else
14312 as_ln_s='ln -s'
14314 elif ln conf$$.file conf$$ 2>/dev/null; then
14315 as_ln_s=ln
14316 else
14317 as_ln_s='cp -p'
14319 rm -f conf$$ conf$$.exe conf$$.file
14321 as_executable_p="test -f"
14323 # Sed expression to map a string onto a valid CPP name.
14324 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14326 # Sed expression to map a string onto a valid variable name.
14327 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14330 # IFS
14331 # We need space, tab and new line, in precisely that order.
14332 as_nl='
14334 IFS=" $as_nl"
14336 # CDPATH.
14337 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14339 exec 6>&1
14341 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14342 # report actual input values of CONFIG_FILES etc. instead of their
14343 # values after options handling. Logging --version etc. is OK.
14344 exec 5>>config.log
14346 echo
14347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14348 ## Running $as_me. ##
14349 _ASBOX
14350 } >&5
14351 cat >&5 <<_CSEOF
14353 This file was extended by GNU diffutils $as_me 2.8.1, which was
14354 generated by GNU Autoconf 2.53. Invocation command line was
14356 CONFIG_FILES = $CONFIG_FILES
14357 CONFIG_HEADERS = $CONFIG_HEADERS
14358 CONFIG_LINKS = $CONFIG_LINKS
14359 CONFIG_COMMANDS = $CONFIG_COMMANDS
14360 $ $0 $@
14362 _CSEOF
14363 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14364 echo >&5
14365 _ACEOF
14367 # Files that config.status was made for.
14368 if test -n "$ac_config_files"; then
14369 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14372 if test -n "$ac_config_headers"; then
14373 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14376 if test -n "$ac_config_links"; then
14377 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14380 if test -n "$ac_config_commands"; then
14381 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14384 cat >>$CONFIG_STATUS <<\_ACEOF
14386 ac_cs_usage="\
14387 \`$as_me' instantiates files from templates according to the
14388 current configuration.
14390 Usage: $0 [OPTIONS] [FILE]...
14392 -h, --help print this help, then exit
14393 -V, --version print version number, then exit
14394 -d, --debug don't remove temporary files
14395 --recheck update $as_me by reconfiguring in the same conditions
14396 --file=FILE[:TEMPLATE]
14397 instantiate the configuration file FILE
14398 --header=FILE[:TEMPLATE]
14399 instantiate the configuration header FILE
14401 Configuration files:
14402 $config_files
14404 Configuration headers:
14405 $config_headers
14407 Configuration links:
14408 $config_links
14410 Configuration commands:
14411 $config_commands
14413 Report bugs to <bug-autoconf@gnu.org>."
14414 _ACEOF
14416 cat >>$CONFIG_STATUS <<_ACEOF
14417 ac_cs_version="\\
14418 GNU diffutils config.status 2.8.1
14419 configured by $0, generated by GNU Autoconf 2.53,
14420 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14422 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14423 Free Software Foundation, Inc.
14424 This config.status script is free software; the Free Software Foundation
14425 gives unlimited permission to copy, distribute and modify it."
14426 srcdir=$srcdir
14427 INSTALL="$INSTALL"
14428 _ACEOF
14430 cat >>$CONFIG_STATUS <<\_ACEOF
14431 # If no file are specified by the user, then we need to provide default
14432 # value. By we need to know if files were specified by the user.
14433 ac_need_defaults=:
14434 while test $# != 0
14436 case $1 in
14437 --*=*)
14438 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14439 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14440 shift
14441 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14442 shift
14444 -*);;
14445 *) # This is not an option, so the user has probably given explicit
14446 # arguments.
14447 ac_need_defaults=false;;
14448 esac
14450 case $1 in
14451 # Handling of the options.
14452 _ACEOF
14453 cat >>$CONFIG_STATUS <<_ACEOF
14454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14455 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14456 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14457 _ACEOF
14458 cat >>$CONFIG_STATUS <<\_ACEOF
14459 --version | --vers* | -V )
14460 echo "$ac_cs_version"; exit 0 ;;
14461 --he | --h)
14462 # Conflict between --help and --header
14463 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14464 Try \`$0 --help' for more information." >&5
14465 echo "$as_me: error: ambiguous option: $1
14466 Try \`$0 --help' for more information." >&2;}
14467 { (exit 1); exit 1; }; };;
14468 --help | --hel | -h )
14469 echo "$ac_cs_usage"; exit 0 ;;
14470 --debug | --d* | -d )
14471 debug=: ;;
14472 --file | --fil | --fi | --f )
14473 shift
14474 CONFIG_FILES="$CONFIG_FILES $1"
14475 ac_need_defaults=false;;
14476 --header | --heade | --head | --hea )
14477 shift
14478 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14479 ac_need_defaults=false;;
14481 # This is an error.
14482 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14483 Try \`$0 --help' for more information." >&5
14484 echo "$as_me: error: unrecognized option: $1
14485 Try \`$0 --help' for more information." >&2;}
14486 { (exit 1); exit 1; }; } ;;
14488 *) ac_config_targets="$ac_config_targets $1" ;;
14490 esac
14491 shift
14492 done
14494 _ACEOF
14496 cat >>$CONFIG_STATUS <<_ACEOF
14498 # INIT-COMMANDS section.
14501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14502 # Capture the value of obsolete $ALL_LINGUAS because we need it to compute
14503 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14504 # from automake.
14505 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
14506 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14507 LINGUAS="${LINGUAS-%UNSET%}"
14510 _ACEOF
14514 cat >>$CONFIG_STATUS <<\_ACEOF
14515 for ac_config_target in $ac_config_targets
14517 case "$ac_config_target" in
14518 # Handling of arguments.
14519 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14520 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14521 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14522 "lib/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/posix/Makefile" ;;
14523 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14524 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14525 "ms/Makefile" ) CONFIG_FILES="$CONFIG_FILES ms/Makefile" ;;
14526 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14527 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14528 "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.hin" ;;
14529 "lib/regex.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/regex.h:lib/regex.hin" ;;
14530 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14531 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14532 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14533 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
14534 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14535 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14536 { (exit 1); exit 1; }; };;
14537 esac
14538 done
14540 # If the user did not use the arguments to specify the items to instantiate,
14541 # then the envvar interface is used. Set only those that are not.
14542 # We use the long form for the default assignment because of an extremely
14543 # bizarre bug on SunOS 4.1.3.
14544 if $ac_need_defaults; then
14545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14547 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14548 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14551 # Create a temporary directory, and hook for its removal unless debugging.
14552 $debug ||
14554 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14555 trap '{ (exit 1); exit 1; }' 1 2 13 15
14558 # Create a (secure) tmp directory for tmp files.
14559 : ${TMPDIR=/tmp}
14561 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14562 test -n "$tmp" && test -d "$tmp"
14563 } ||
14565 tmp=$TMPDIR/cs$$-$RANDOM
14566 (umask 077 && mkdir $tmp)
14567 } ||
14569 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14570 { (exit 1); exit 1; }
14573 _ACEOF
14575 cat >>$CONFIG_STATUS <<_ACEOF
14578 # CONFIG_FILES section.
14581 # No need to generate the scripts if there are no CONFIG_FILES.
14582 # This happens for instance when ./config.status config.h
14583 if test -n "\$CONFIG_FILES"; then
14584 # Protect against being on the right side of a sed subst in config.status.
14585 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14586 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14587 s,@SHELL@,$SHELL,;t t
14588 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14589 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14590 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14591 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14592 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14593 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14594 s,@exec_prefix@,$exec_prefix,;t t
14595 s,@prefix@,$prefix,;t t
14596 s,@program_transform_name@,$program_transform_name,;t t
14597 s,@bindir@,$bindir,;t t
14598 s,@sbindir@,$sbindir,;t t
14599 s,@libexecdir@,$libexecdir,;t t
14600 s,@datadir@,$datadir,;t t
14601 s,@sysconfdir@,$sysconfdir,;t t
14602 s,@sharedstatedir@,$sharedstatedir,;t t
14603 s,@localstatedir@,$localstatedir,;t t
14604 s,@libdir@,$libdir,;t t
14605 s,@includedir@,$includedir,;t t
14606 s,@oldincludedir@,$oldincludedir,;t t
14607 s,@infodir@,$infodir,;t t
14608 s,@mandir@,$mandir,;t t
14609 s,@build_alias@,$build_alias,;t t
14610 s,@host_alias@,$host_alias,;t t
14611 s,@target_alias@,$target_alias,;t t
14612 s,@DEFS@,$DEFS,;t t
14613 s,@ECHO_C@,$ECHO_C,;t t
14614 s,@ECHO_N@,$ECHO_N,;t t
14615 s,@ECHO_T@,$ECHO_T,;t t
14616 s,@LIBS@,$LIBS,;t t
14617 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14618 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14619 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14620 s,@PACKAGE@,$PACKAGE,;t t
14621 s,@VERSION@,$VERSION,;t t
14622 s,@ACLOCAL@,$ACLOCAL,;t t
14623 s,@AUTOCONF@,$AUTOCONF,;t t
14624 s,@AUTOMAKE@,$AUTOMAKE,;t t
14625 s,@AUTOHEADER@,$AUTOHEADER,;t t
14626 s,@MAKEINFO@,$MAKEINFO,;t t
14627 s,@AMTAR@,$AMTAR,;t t
14628 s,@install_sh@,$install_sh,;t t
14629 s,@STRIP@,$STRIP,;t t
14630 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14631 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14632 s,@AWK@,$AWK,;t t
14633 s,@SET_MAKE@,$SET_MAKE,;t t
14634 s,@CC@,$CC,;t t
14635 s,@CFLAGS@,$CFLAGS,;t t
14636 s,@LDFLAGS@,$LDFLAGS,;t t
14637 s,@CPPFLAGS@,$CPPFLAGS,;t t
14638 s,@ac_ct_CC@,$ac_ct_CC,;t t
14639 s,@EXEEXT@,$EXEEXT,;t t
14640 s,@OBJEXT@,$OBJEXT,;t t
14641 s,@DEPDIR@,$DEPDIR,;t t
14642 s,@am__include@,$am__include,;t t
14643 s,@am__quote@,$am__quote,;t t
14644 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14645 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14646 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14647 s,@CCDEPMODE@,$CCDEPMODE,;t t
14648 s,@CPP@,$CPP,;t t
14649 s,@HELP2MAN@,$HELP2MAN,;t t
14650 s,@RANLIB@,$RANLIB,;t t
14651 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14652 s,@PR_PROGRAM@,$PR_PROGRAM,;t t
14653 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14654 s,@MSGFMT@,$MSGFMT,;t t
14655 s,@GMSGFMT@,$GMSGFMT,;t t
14656 s,@XGETTEXT@,$XGETTEXT,;t t
14657 s,@MSGMERGE@,$MSGMERGE,;t t
14658 s,@build@,$build,;t t
14659 s,@build_cpu@,$build_cpu,;t t
14660 s,@build_vendor@,$build_vendor,;t t
14661 s,@build_os@,$build_os,;t t
14662 s,@host@,$host,;t t
14663 s,@host_cpu@,$host_cpu,;t t
14664 s,@host_vendor@,$host_vendor,;t t
14665 s,@host_os@,$host_os,;t t
14666 s,@USE_NLS@,$USE_NLS,;t t
14667 s,@LIBICONV@,$LIBICONV,;t t
14668 s,@LTLIBICONV@,$LTLIBICONV,;t t
14669 s,@INTLLIBS@,$INTLLIBS,;t t
14670 s,@LIBINTL@,$LIBINTL,;t t
14671 s,@LTLIBINTL@,$LTLIBINTL,;t t
14672 s,@POSUB@,$POSUB,;t t
14673 s,@LIBOBJS@,$LIBOBJS,;t t
14674 s,@ALLOCA@,$ALLOCA,;t t
14675 s,@U@,$U,;t t
14676 s,@ANSI2KNR@,$ANSI2KNR,;t t
14677 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
14678 CEOF
14680 _ACEOF
14682 cat >>$CONFIG_STATUS <<\_ACEOF
14683 # Split the substitutions into bite-sized pieces for seds with
14684 # small command number limits, like on Digital OSF/1 and HP-UX.
14685 ac_max_sed_lines=48
14686 ac_sed_frag=1 # Number of current file.
14687 ac_beg=1 # First line for current file.
14688 ac_end=$ac_max_sed_lines # Line after last line for current file.
14689 ac_more_lines=:
14690 ac_sed_cmds=
14691 while $ac_more_lines; do
14692 if test $ac_beg -gt 1; then
14693 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14694 else
14695 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14697 if test ! -s $tmp/subs.frag; then
14698 ac_more_lines=false
14699 else
14700 # The purpose of the label and of the branching condition is to
14701 # speed up the sed processing (if there are no `@' at all, there
14702 # is no need to browse any of the substitutions).
14703 # These are the two extra sed commands mentioned above.
14704 (echo ':t
14705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14706 if test -z "$ac_sed_cmds"; then
14707 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14708 else
14709 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14711 ac_sed_frag=`expr $ac_sed_frag + 1`
14712 ac_beg=$ac_end
14713 ac_end=`expr $ac_end + $ac_max_sed_lines`
14715 done
14716 if test -z "$ac_sed_cmds"; then
14717 ac_sed_cmds=cat
14719 fi # test -n "$CONFIG_FILES"
14721 _ACEOF
14722 cat >>$CONFIG_STATUS <<\_ACEOF
14723 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14725 case $ac_file in
14726 - | *:- | *:-:* ) # input from stdin
14727 cat >$tmp/stdin
14728 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14730 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14732 * ) ac_file_in=$ac_file.in ;;
14733 esac
14735 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14736 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14738 X"$ac_file" : 'X\(//\)[^/]' \| \
14739 X"$ac_file" : 'X\(//\)$' \| \
14740 X"$ac_file" : 'X\(/\)' \| \
14741 . : '\(.\)' 2>/dev/null ||
14742 echo X"$ac_file" |
14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14745 /^X\(\/\/\)$/{ s//\1/; q; }
14746 /^X\(\/\).*/{ s//\1/; q; }
14747 s/.*/./; q'`
14748 { if $as_mkdir_p; then
14749 mkdir -p "$ac_dir"
14750 else
14751 as_dir="$ac_dir"
14752 as_dirs=
14753 while test ! -d "$as_dir"; do
14754 as_dirs="$as_dir $as_dirs"
14755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14757 X"$as_dir" : 'X\(//\)[^/]' \| \
14758 X"$as_dir" : 'X\(//\)$' \| \
14759 X"$as_dir" : 'X\(/\)' \| \
14760 . : '\(.\)' 2>/dev/null ||
14761 echo X"$as_dir" |
14762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14764 /^X\(\/\/\)$/{ s//\1/; q; }
14765 /^X\(\/\).*/{ s//\1/; q; }
14766 s/.*/./; q'`
14767 done
14768 test ! -n "$as_dirs" || mkdir $as_dirs
14769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14770 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14771 { (exit 1); exit 1; }; }; }
14773 ac_builddir=.
14775 if test "$ac_dir" != .; then
14776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14777 # A "../" for each directory in $ac_dir_suffix.
14778 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14779 else
14780 ac_dir_suffix= ac_top_builddir=
14783 case $srcdir in
14784 .) # No --srcdir option. We are building in place.
14785 ac_srcdir=.
14786 if test -z "$ac_top_builddir"; then
14787 ac_top_srcdir=.
14788 else
14789 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14790 fi ;;
14791 [\\/]* | ?:[\\/]* ) # Absolute path.
14792 ac_srcdir=$srcdir$ac_dir_suffix;
14793 ac_top_srcdir=$srcdir ;;
14794 *) # Relative path.
14795 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14796 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14797 esac
14798 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14799 # absolute.
14800 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14801 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14802 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14803 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14806 case $INSTALL in
14807 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14808 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14809 esac
14811 if test x"$ac_file" != x-; then
14812 { echo "$as_me:$LINENO: creating $ac_file" >&5
14813 echo "$as_me: creating $ac_file" >&6;}
14814 rm -f "$ac_file"
14816 # Let's still pretend it is `configure' which instantiates (i.e., don't
14817 # use $as_me), people would be surprised to read:
14818 # /* config.h. Generated by config.status. */
14819 if test x"$ac_file" = x-; then
14820 configure_input=
14821 else
14822 configure_input="$ac_file. "
14824 configure_input=$configure_input"Generated from `echo $ac_file_in |
14825 sed 's,.*/,,'` by configure."
14827 # First look for the input files in the build tree, otherwise in the
14828 # src tree.
14829 ac_file_inputs=`IFS=:
14830 for f in $ac_file_in; do
14831 case $f in
14832 -) echo $tmp/stdin ;;
14833 [\\/$]*)
14834 # Absolute (can't be DOS-style, as IFS=:)
14835 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14836 echo "$as_me: error: cannot find input file: $f" >&2;}
14837 { (exit 1); exit 1; }; }
14838 echo $f;;
14839 *) # Relative
14840 if test -f "$f"; then
14841 # Build tree
14842 echo $f
14843 elif test -f "$srcdir/$f"; then
14844 # Source tree
14845 echo $srcdir/$f
14846 else
14847 # /dev/null tree
14848 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14849 echo "$as_me: error: cannot find input file: $f" >&2;}
14850 { (exit 1); exit 1; }; }
14851 fi;;
14852 esac
14853 done` || { (exit 1); exit 1; }
14854 _ACEOF
14855 cat >>$CONFIG_STATUS <<_ACEOF
14856 sed "$ac_vpsub
14857 $extrasub
14858 _ACEOF
14859 cat >>$CONFIG_STATUS <<\_ACEOF
14861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14862 s,@configure_input@,$configure_input,;t t
14863 s,@srcdir@,$ac_srcdir,;t t
14864 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14865 s,@top_srcdir@,$ac_top_srcdir,;t t
14866 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14867 s,@builddir@,$ac_builddir,;t t
14868 s,@abs_builddir@,$ac_abs_builddir,;t t
14869 s,@top_builddir@,$ac_top_builddir,;t t
14870 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14871 s,@INSTALL@,$ac_INSTALL,;t t
14872 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14873 rm -f $tmp/stdin
14874 if test x"$ac_file" != x-; then
14875 mv $tmp/out $ac_file
14876 else
14877 cat $tmp/out
14878 rm -f $tmp/out
14881 done
14882 _ACEOF
14883 cat >>$CONFIG_STATUS <<\_ACEOF
14886 # CONFIG_HEADER section.
14889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14892 # ac_d sets the value in "#define NAME VALUE" lines.
14893 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14894 ac_dB='[ ].*$,\1#\2'
14895 ac_dC=' '
14896 ac_dD=',;t'
14897 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14898 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14899 ac_uB='$,\1#\2define\3'
14900 ac_uC=' '
14901 ac_uD=',;t'
14903 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14904 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14905 case $ac_file in
14906 - | *:- | *:-:* ) # input from stdin
14907 cat >$tmp/stdin
14908 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14909 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14910 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14911 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14912 * ) ac_file_in=$ac_file.in ;;
14913 esac
14915 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14916 echo "$as_me: creating $ac_file" >&6;}
14918 # First look for the input files in the build tree, otherwise in the
14919 # src tree.
14920 ac_file_inputs=`IFS=:
14921 for f in $ac_file_in; do
14922 case $f in
14923 -) echo $tmp/stdin ;;
14924 [\\/$]*)
14925 # Absolute (can't be DOS-style, as IFS=:)
14926 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14927 echo "$as_me: error: cannot find input file: $f" >&2;}
14928 { (exit 1); exit 1; }; }
14929 echo $f;;
14930 *) # Relative
14931 if test -f "$f"; then
14932 # Build tree
14933 echo $f
14934 elif test -f "$srcdir/$f"; then
14935 # Source tree
14936 echo $srcdir/$f
14937 else
14938 # /dev/null tree
14939 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14940 echo "$as_me: error: cannot find input file: $f" >&2;}
14941 { (exit 1); exit 1; }; }
14942 fi;;
14943 esac
14944 done` || { (exit 1); exit 1; }
14945 # Remove the trailing spaces.
14946 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14948 _ACEOF
14950 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14951 # `conftest.undefs', that substitutes the proper values into
14952 # config.h.in to produce config.h. The first handles `#define'
14953 # templates, and the second `#undef' templates.
14954 # And first: Protect against being on the right side of a sed subst in
14955 # config.status. Protect against being in an unquoted here document
14956 # in config.status.
14957 rm -f conftest.defines conftest.undefs
14958 # Using a here document instead of a string reduces the quoting nightmare.
14959 # Putting comments in sed scripts is not portable.
14961 # `end' is used to avoid that the second main sed command (meant for
14962 # 0-ary CPP macros) applies to n-ary macro definitions.
14963 # See the Autoconf documentation for `clear'.
14964 cat >confdef2sed.sed <<\_ACEOF
14965 s/[\\&,]/\\&/g
14966 s,[\\$`],\\&,g
14967 t clear
14968 : clear
14969 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14970 t end
14971 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14972 : end
14973 _ACEOF
14974 # If some macros were called several times there might be several times
14975 # the same #defines, which is useless. Nevertheless, we may not want to
14976 # sort them, since we want the *last* AC-DEFINE to be honored.
14977 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14978 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14979 rm -f confdef2sed.sed
14981 # This sed command replaces #undef with comments. This is necessary, for
14982 # example, in the case of _POSIX_SOURCE, which is predefined and required
14983 # on some systems where configure will not decide to define it.
14984 cat >>conftest.undefs <<\_ACEOF
14985 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14986 _ACEOF
14988 # Break up conftest.defines because some shells have a limit on the size
14989 # of here documents, and old seds have small limits too (100 cmds).
14990 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14991 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14992 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14993 echo ' :' >>$CONFIG_STATUS
14994 rm -f conftest.tail
14995 while grep . conftest.defines >/dev/null
14997 # Write a limited-size here document to $tmp/defines.sed.
14998 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14999 # Speed up: don't consider the non `#define' lines.
15000 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15001 # Work around the forget-to-reset-the-flag bug.
15002 echo 't clr' >>$CONFIG_STATUS
15003 echo ': clr' >>$CONFIG_STATUS
15004 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15005 echo 'CEOF
15006 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15007 rm -f $tmp/in
15008 mv $tmp/out $tmp/in
15009 ' >>$CONFIG_STATUS
15010 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15011 rm -f conftest.defines
15012 mv conftest.tail conftest.defines
15013 done
15014 rm -f conftest.defines
15015 echo ' fi # egrep' >>$CONFIG_STATUS
15016 echo >>$CONFIG_STATUS
15018 # Break up conftest.undefs because some shells have a limit on the size
15019 # of here documents, and old seds have small limits too (100 cmds).
15020 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15021 rm -f conftest.tail
15022 while grep . conftest.undefs >/dev/null
15024 # Write a limited-size here document to $tmp/undefs.sed.
15025 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15026 # Speed up: don't consider the non `#undef'
15027 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15028 # Work around the forget-to-reset-the-flag bug.
15029 echo 't clr' >>$CONFIG_STATUS
15030 echo ': clr' >>$CONFIG_STATUS
15031 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15032 echo 'CEOF
15033 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15034 rm -f $tmp/in
15035 mv $tmp/out $tmp/in
15036 ' >>$CONFIG_STATUS
15037 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15038 rm -f conftest.undefs
15039 mv conftest.tail conftest.undefs
15040 done
15041 rm -f conftest.undefs
15043 cat >>$CONFIG_STATUS <<\_ACEOF
15044 # Let's still pretend it is `configure' which instantiates (i.e., don't
15045 # use $as_me), people would be surprised to read:
15046 # /* config.h. Generated by config.status. */
15047 if test x"$ac_file" = x-; then
15048 echo "/* Generated by configure. */" >$tmp/config.h
15049 else
15050 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15052 cat $tmp/in >>$tmp/config.h
15053 rm -f $tmp/in
15054 if test x"$ac_file" != x-; then
15055 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15056 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15057 echo "$as_me: $ac_file is unchanged" >&6;}
15058 else
15059 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061 X"$ac_file" : 'X\(//\)[^/]' \| \
15062 X"$ac_file" : 'X\(//\)$' \| \
15063 X"$ac_file" : 'X\(/\)' \| \
15064 . : '\(.\)' 2>/dev/null ||
15065 echo X"$ac_file" |
15066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15068 /^X\(\/\/\)$/{ s//\1/; q; }
15069 /^X\(\/\).*/{ s//\1/; q; }
15070 s/.*/./; q'`
15071 { if $as_mkdir_p; then
15072 mkdir -p "$ac_dir"
15073 else
15074 as_dir="$ac_dir"
15075 as_dirs=
15076 while test ! -d "$as_dir"; do
15077 as_dirs="$as_dir $as_dirs"
15078 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15080 X"$as_dir" : 'X\(//\)[^/]' \| \
15081 X"$as_dir" : 'X\(//\)$' \| \
15082 X"$as_dir" : 'X\(/\)' \| \
15083 . : '\(.\)' 2>/dev/null ||
15084 echo X"$as_dir" |
15085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15087 /^X\(\/\/\)$/{ s//\1/; q; }
15088 /^X\(\/\).*/{ s//\1/; q; }
15089 s/.*/./; q'`
15090 done
15091 test ! -n "$as_dirs" || mkdir $as_dirs
15092 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15094 { (exit 1); exit 1; }; }; }
15096 rm -f $ac_file
15097 mv $tmp/config.h $ac_file
15099 else
15100 cat $tmp/config.h
15101 rm -f $tmp/config.h
15103 # Run the commands associated with the file.
15104 case $ac_file in
15105 config.h ) # update the timestamp
15106 echo 'timestamp for config.h:config.hin' >"./stamp-h1"
15108 esac
15109 done
15110 _ACEOF
15111 cat >>$CONFIG_STATUS <<\_ACEOF
15114 # CONFIG_LINKS section.
15117 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
15118 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15119 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15121 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15122 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
15124 if test ! -r $srcdir/$ac_source; then
15125 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15126 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15127 { (exit 1); exit 1; }; }
15129 rm -f $ac_dest
15131 # Make relative symlinks.
15132 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
15133 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15134 X"$ac_dest" : 'X\(//\)[^/]' \| \
15135 X"$ac_dest" : 'X\(//\)$' \| \
15136 X"$ac_dest" : 'X\(/\)' \| \
15137 . : '\(.\)' 2>/dev/null ||
15138 echo X"$ac_dest" |
15139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15140 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15141 /^X\(\/\/\)$/{ s//\1/; q; }
15142 /^X\(\/\).*/{ s//\1/; q; }
15143 s/.*/./; q'`
15144 { if $as_mkdir_p; then
15145 mkdir -p "$ac_dest_dir"
15146 else
15147 as_dir="$ac_dest_dir"
15148 as_dirs=
15149 while test ! -d "$as_dir"; do
15150 as_dirs="$as_dir $as_dirs"
15151 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15153 X"$as_dir" : 'X\(//\)[^/]' \| \
15154 X"$as_dir" : 'X\(//\)$' \| \
15155 X"$as_dir" : 'X\(/\)' \| \
15156 . : '\(.\)' 2>/dev/null ||
15157 echo X"$as_dir" |
15158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15160 /^X\(\/\/\)$/{ s//\1/; q; }
15161 /^X\(\/\).*/{ s//\1/; q; }
15162 s/.*/./; q'`
15163 done
15164 test ! -n "$as_dirs" || mkdir $as_dirs
15165 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
15166 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15167 { (exit 1); exit 1; }; }; }
15169 ac_builddir=.
15171 if test "$ac_dest_dir" != .; then
15172 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
15173 # A "../" for each directory in $ac_dir_suffix.
15174 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15175 else
15176 ac_dir_suffix= ac_top_builddir=
15179 case $srcdir in
15180 .) # No --srcdir option. We are building in place.
15181 ac_srcdir=.
15182 if test -z "$ac_top_builddir"; then
15183 ac_top_srcdir=.
15184 else
15185 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15186 fi ;;
15187 [\\/]* | ?:[\\/]* ) # Absolute path.
15188 ac_srcdir=$srcdir$ac_dir_suffix;
15189 ac_top_srcdir=$srcdir ;;
15190 *) # Relative path.
15191 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15192 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15193 esac
15194 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
15195 # absolute.
15196 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
15197 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
15198 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
15199 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
15202 case $srcdir in
15203 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15204 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
15205 esac
15207 # Make a symlink if possible; otherwise try a hard link.
15208 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
15209 ln $srcdir/$ac_source $ac_dest ||
15210 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
15211 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
15212 { (exit 1); exit 1; }; }
15213 done
15214 _ACEOF
15215 cat >>$CONFIG_STATUS <<\_ACEOF
15218 # CONFIG_COMMANDS section.
15220 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15221 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15222 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15223 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15224 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15225 X"$ac_dest" : 'X\(//\)[^/]' \| \
15226 X"$ac_dest" : 'X\(//\)$' \| \
15227 X"$ac_dest" : 'X\(/\)' \| \
15228 . : '\(.\)' 2>/dev/null ||
15229 echo X"$ac_dest" |
15230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15232 /^X\(\/\/\)$/{ s//\1/; q; }
15233 /^X\(\/\).*/{ s//\1/; q; }
15234 s/.*/./; q'`
15235 ac_builddir=.
15237 if test "$ac_dir" != .; then
15238 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15239 # A "../" for each directory in $ac_dir_suffix.
15240 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15241 else
15242 ac_dir_suffix= ac_top_builddir=
15245 case $srcdir in
15246 .) # No --srcdir option. We are building in place.
15247 ac_srcdir=.
15248 if test -z "$ac_top_builddir"; then
15249 ac_top_srcdir=.
15250 else
15251 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15252 fi ;;
15253 [\\/]* | ?:[\\/]* ) # Absolute path.
15254 ac_srcdir=$srcdir$ac_dir_suffix;
15255 ac_top_srcdir=$srcdir ;;
15256 *) # Relative path.
15257 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15258 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15259 esac
15260 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15261 # absolute.
15262 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15263 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15264 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15265 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15268 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15269 echo "$as_me: executing $ac_dest commands" >&6;}
15270 case $ac_dest in
15271 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15272 # Strip MF so we end up with the name of the file.
15273 mf=`echo "$mf" | sed -e 's/:.*$//'`
15274 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
15275 dirpart=`(dirname "$mf") 2>/dev/null ||
15276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15277 X"$mf" : 'X\(//\)[^/]' \| \
15278 X"$mf" : 'X\(//\)$' \| \
15279 X"$mf" : 'X\(/\)' \| \
15280 . : '\(.\)' 2>/dev/null ||
15281 echo X"$mf" |
15282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15283 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15284 /^X\(\/\/\)$/{ s//\1/; q; }
15285 /^X\(\/\).*/{ s//\1/; q; }
15286 s/.*/./; q'`
15287 else
15288 continue
15290 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15291 # Extract the definition of DEP_FILES from the Makefile without
15292 # running `make'.
15293 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15294 test -z "$DEPDIR" && continue
15295 # When using ansi2knr, U may be empty or an underscore; expand it
15296 U=`sed -n -e '/^U = / s///p' < "$mf"`
15297 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15298 # We invoke sed twice because it is the simplest approach to
15299 # changing $(DEPDIR) to its actual value in the expansion.
15300 for file in `sed -n -e '
15301 /^DEP_FILES = .*\\\\$/ {
15302 s/^DEP_FILES = //
15303 :loop
15304 s/\\\\$//
15307 /\\\\$/ b loop
15310 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15311 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15312 # Make sure the directory exists.
15313 test -f "$dirpart/$file" && continue
15314 fdir=`(dirname "$file") 2>/dev/null ||
15315 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15316 X"$file" : 'X\(//\)[^/]' \| \
15317 X"$file" : 'X\(//\)$' \| \
15318 X"$file" : 'X\(/\)' \| \
15319 . : '\(.\)' 2>/dev/null ||
15320 echo X"$file" |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15323 /^X\(\/\/\)$/{ s//\1/; q; }
15324 /^X\(\/\).*/{ s//\1/; q; }
15325 s/.*/./; q'`
15326 { if $as_mkdir_p; then
15327 mkdir -p $dirpart/$fdir
15328 else
15329 as_dir=$dirpart/$fdir
15330 as_dirs=
15331 while test ! -d "$as_dir"; do
15332 as_dirs="$as_dir $as_dirs"
15333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15335 X"$as_dir" : 'X\(//\)[^/]' \| \
15336 X"$as_dir" : 'X\(//\)$' \| \
15337 X"$as_dir" : 'X\(/\)' \| \
15338 . : '\(.\)' 2>/dev/null ||
15339 echo X"$as_dir" |
15340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15342 /^X\(\/\/\)$/{ s//\1/; q; }
15343 /^X\(\/\).*/{ s//\1/; q; }
15344 s/.*/./; q'`
15345 done
15346 test ! -n "$as_dirs" || mkdir $as_dirs
15347 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15348 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15349 { (exit 1); exit 1; }; }; }
15351 # echo "creating $dirpart/$file"
15352 echo '# dummy' > "$dirpart/$file"
15353 done
15354 done
15356 default-1 )
15357 for ac_file in $CONFIG_FILES; do
15358 # Support "outfile[:infile[:infile...]]"
15359 case "$ac_file" in
15360 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15361 esac
15362 # PO directories have a Makefile.in generated from Makefile.in.in.
15363 case "$ac_file" in */Makefile.in)
15364 # Adjust a relative srcdir.
15365 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15366 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15367 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15368 # In autoconf-2.13 it is called $ac_given_srcdir.
15369 # In autoconf-2.50 it is called $srcdir.
15370 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15371 case "$ac_given_srcdir" in
15372 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15373 /*) top_srcdir="$ac_given_srcdir" ;;
15374 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15375 esac
15376 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15377 rm -f "$ac_dir/POTFILES"
15378 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15379 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15380 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15381 # on $ac_dir but don't depend on user-specified configuration
15382 # parameters.
15383 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15384 # The LINGUAS file contains the set of available languages.
15385 if test -n "$ALL_LINGUAS"; then
15386 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15388 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15389 # Hide the ALL_LINGUAS assigment from automake.
15390 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15392 case "$ac_given_srcdir" in
15393 .) srcdirpre= ;;
15394 *) srcdirpre='$(srcdir)/' ;;
15395 esac
15396 POFILES=
15397 GMOFILES=
15398 UPDATEPOFILES=
15399 DUMMYPOFILES=
15400 for lang in $ALL_LINGUAS; do
15401 POFILES="$POFILES $srcdirpre$lang.po"
15402 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15403 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15404 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15405 done
15406 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15407 # environment variable.
15408 INST_LINGUAS=
15409 if test -n "$ALL_LINGUAS"; then
15410 for presentlang in $ALL_LINGUAS; do
15411 useit=no
15412 if test "%UNSET%" != "$LINGUAS"; then
15413 desiredlanguages="$LINGUAS"
15414 else
15415 desiredlanguages="$ALL_LINGUAS"
15417 for desiredlang in $desiredlanguages; do
15418 # Use the presentlang catalog if desiredlang is
15419 # a. equal to presentlang, or
15420 # b. a variant of presentlang (because in this case,
15421 # presentlang can be used as a fallback for messages
15422 # which are not translated in the desiredlang catalog).
15423 case "$desiredlang" in
15424 "$presentlang"*) useit=yes;;
15425 esac
15426 done
15427 if test $useit = yes; then
15428 INST_LINGUAS="$INST_LINGUAS $presentlang"
15430 done
15432 CATALOGS=
15433 if test -n "$INST_LINGUAS"; then
15434 for lang in $INST_LINGUAS; do
15435 CATALOGS="$CATALOGS $lang.gmo"
15436 done
15438 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15439 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15440 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15441 if test -f "$f"; then
15442 case "$f" in
15443 *.orig | *.bak | *~) ;;
15444 *) cat "$f" >> "$ac_dir/Makefile" ;;
15445 esac
15447 done
15450 esac
15451 done ;;
15452 default ) date > stamp-h ;;
15453 esac
15454 done
15455 _ACEOF
15457 cat >>$CONFIG_STATUS <<\_ACEOF
15459 { (exit 0); exit 0; }
15460 _ACEOF
15461 chmod +x $CONFIG_STATUS
15462 ac_clean_files=$ac_clean_files_save
15465 # configure is writing to config.log, and then calls config.status.
15466 # config.status does its own redirection, appending to config.log.
15467 # Unfortunately, on DOS this fails, as config.log is still kept open
15468 # by configure, so config.status won't be able to write to it; its
15469 # output is simply discarded. So we exec the FD to /dev/null,
15470 # effectively closing config.log, so it can be properly (re)opened and
15471 # appended to by config.status. When coming back to configure, we
15472 # need to make the FD available again.
15473 if test "$no_create" != yes; then
15474 ac_cs_success=:
15475 exec 5>/dev/null
15476 $SHELL $CONFIG_STATUS || ac_cs_success=false
15477 exec 5>>config.log
15478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15479 # would make configure fail if this is the last instruction.
15480 $ac_cs_success || { (exit 1); exit 1; }