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.
4#
5# Report bugs to <bug-gnu-utils@gnu.org>.
6#
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.
11if mkdir -p . 2>/dev/null; then
12  as_mkdir_p=:
13else
14  as_mkdir_p=false
15fi
16
17
18if expr a : '\(a\)' >/dev/null 2>&1; then
19  as_expr=expr
20else
21  as_expr=false
22fi
23
24
25## --------------------- ##
26## M4sh Initialization.  ##
27## --------------------- ##
28
29# Be Bourne compatible
30if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31  emulate sh
32  NULLCMD=:
33elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34  set -o posix
35fi
36
37# NLS nuisances.
38# Support unset when possible.
39if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40  as_unset=unset
41else
42  as_unset=false
43fi
44
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; }
69
70
71# Name of the executable.
72as_me=`(basename "$0") 2>/dev/null ||
73$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74	 X"$0" : 'X\(//\)$' \| \
75	 X"$0" : 'X\(/\)$' \| \
76	 .     : '\(.\)' 2>/dev/null ||
77echo X/"$0" |
78    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
80  	  /^X\/\(\/\).*/{ s//\1/; q; }
81  	  s/.*/./; q'`
82
83# PATH needs CR, and LINENO needs CR and PATH.
84# Avoid depending upon Character Ranges.
85as_cr_letters='abcdefghijklmnopqrstuvwxyz'
86as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
87as_cr_Letters=$as_cr_letters$as_cr_LETTERS
88as_cr_digits='0123456789'
89as_cr_alnum=$as_cr_Letters$as_cr_digits
90
91# The user is always right.
92if 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=:
100  fi
101  rm -f conftest.sh
102fi
103
104
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
115for as_dir in $PATH
116do
117  IFS=$as_save_IFS
118  test -z "$as_dir" && as_dir=.
119  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120done
121
122       ;;
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
128  fi
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; }; }
132  fi
133  case $CONFIG_SHELL in
134  '')
135    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137do
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
142	 /*)
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
155done
156;;
157  esac
158
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 '
169      N
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; }; }
180
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
187}
188
189
190case `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= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221as_executable_p="test -f"
222
223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
225
226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" 	$as_nl"
235
236# CDPATH.
237$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
238
239
240# Name of the host.
241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242# so uname gets run too.
243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245exec 6>&1
246
247#
248# Initializations.
249#
250ac_default_prefix=/usr/local
251cross_compiling=no
252subdirs=
253MFLAGS=
254MAKEFLAGS=
255SHELL=${CONFIG_SHELL-/bin/sh}
256
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}
261
262# Identity of this package.
263PACKAGE_NAME='GNU diffutils'
264PACKAGE_TARNAME='diffutils'
265PACKAGE_VERSION='2.8.1'
266PACKAGE_STRING='GNU diffutils 2.8.1'
267PACKAGE_BUGREPORT='bug-gnu-utils@gnu.org'
268
269ac_unique_file="src/diff.c"
270# Factoring default headers for most tests.
271ac_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"
306
307
308# Initialize some variables set by options.
309ac_init_help=
310ac_init_version=false
311# The variables have the same names as the options, with
312# dashes changed to underlines.
313cache_file=/dev/null
314exec_prefix=NONE
315no_create=
316no_recursion=
317prefix=NONE
318program_prefix=NONE
319program_suffix=NONE
320program_transform_name=s,x,x,
321silent=
322site=
323srcdir=
324verbose=
325x_includes=NONE
326x_libraries=NONE
327
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.
333bindir='${exec_prefix}/bin'
334sbindir='${exec_prefix}/sbin'
335libexecdir='${exec_prefix}/libexec'
336datadir='${prefix}/share'
337sysconfdir='${prefix}/etc'
338sharedstatedir='${prefix}/com'
339localstatedir='${prefix}/var'
340libdir='${exec_prefix}/lib'
341includedir='${prefix}/include'
342oldincludedir='/usr/include'
343infodir='${prefix}/info'
344mandir='${prefix}/man'
345
346ac_prev=
347for ac_option
348do
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
354  fi
355
356  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
357
358  # Accept the important Cygnus configure options, so we can diagnose typos.
359
360  case $ac_option in
361
362  -bindir | --bindir | --bindi | --bind | --bin | --bi)
363    ac_prev=bindir ;;
364  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
365    bindir=$ac_optarg ;;
366
367  -build | --build | --buil | --bui | --bu)
368    ac_prev=build_alias ;;
369  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
370    build_alias=$ac_optarg ;;
371
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 ;;
378
379  --config-cache | -C)
380    cache_file=config.cache ;;
381
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 ;;
387
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" ;;
396
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'" ;;
409
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 ;;
418
419  -gas | --gas | --ga | --g)
420    # Obsolete; use --with-gas.
421    with_gas=yes ;;
422
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 ;;
429
430  -host | --host | --hos | --ho)
431    ac_prev=host_alias ;;
432  -host=* | --host=* | --hos=* | --ho=*)
433    host_alias=$ac_optarg ;;
434
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 ;;
441
442  -infodir | --infodir | --infodi | --infod | --info | --inf)
443    ac_prev=infodir ;;
444  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445    infodir=$ac_optarg ;;
446
447  -libdir | --libdir | --libdi | --libd)
448    ac_prev=libdir ;;
449  -libdir=* | --libdir=* | --libdi=* | --libd=*)
450    libdir=$ac_optarg ;;
451
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 ;;
458
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 ;;
467
468  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
469    ac_prev=mandir ;;
470  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471    mandir=$ac_optarg ;;
472
473  -nfp | --nfp | --nf)
474    # Obsolete; use --without-fp.
475    with_fp=no ;;
476
477  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478  | --no-cr | --no-c | -n)
479    no_create=yes ;;
480
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 ;;
484
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 ;;
493
494  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
495    ac_prev=prefix ;;
496  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
497    prefix=$ac_optarg ;;
498
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 ;;
505
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 ;;
512
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 ;;
529
530  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
531  | -silent | --silent | --silen | --sile | --sil)
532    silent=yes ;;
533
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 ;;
539
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 ;;
550
551  -site | --site | --sit)
552    ac_prev=site ;;
553  -site=* | --site=* | --sit=*)
554    site=$ac_optarg ;;
555
556  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
557    ac_prev=srcdir ;;
558  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
559    srcdir=$ac_optarg ;;
560
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 ;;
567
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 ;;
572
573  -v | -verbose | --verbose | --verbos | --verbo | --verb)
574    verbose=yes ;;
575
576  -version | --version | --versio | --versi | --vers | -V)
577    ac_init_version=: ;;
578
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'" ;;
591
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" ;;
600
601  --x)
602    # Obsolete; use --with-x.
603    with_x=yes ;;
604
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 ;;
611
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 ;;
618
619  -*) { echo "$as_me: error: unrecognized option: $ac_option
620Try \`$0 --help' for more information." >&2
621   { (exit 1); exit 1; }; }
622    ;;
623
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 ;;
633
634  *)
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}
640    ;;
641
642  esac
643done
644
645if 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; }; }
649fi
650
651# Be sure to have absolute paths.
652for ac_var in exec_prefix prefix
653do
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
660done
661
662# Be sure to have absolute paths.
663for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664              localstatedir libdir includedir oldincludedir infodir mandir
665do
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
672done
673
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.
677build=$build_alias
678host=$host_alias
679target=$target_alias
680
681# FIXME: To remove some day.
682if 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
689  fi
690fi
691
692ac_tool_prefix=
693test -n "$host_alias" && ac_tool_prefix=$host_alias-
694
695test "$silent" = yes && exec 6>/dev/null
696
697
698# Find the source files, if location was not specified.
699if 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 ||
708echo 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=..
717  fi
718else
719  ac_srcdir_defaulted=no
720fi
721if 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; }; }
728  fi
729fi
730srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
731ac_env_build_alias_set=${build_alias+set}
732ac_env_build_alias_value=$build_alias
733ac_cv_env_build_alias_set=${build_alias+set}
734ac_cv_env_build_alias_value=$build_alias
735ac_env_host_alias_set=${host_alias+set}
736ac_env_host_alias_value=$host_alias
737ac_cv_env_host_alias_set=${host_alias+set}
738ac_cv_env_host_alias_value=$host_alias
739ac_env_target_alias_set=${target_alias+set}
740ac_env_target_alias_value=$target_alias
741ac_cv_env_target_alias_set=${target_alias+set}
742ac_cv_env_target_alias_value=$target_alias
743ac_env_CC_set=${CC+set}
744ac_env_CC_value=$CC
745ac_cv_env_CC_set=${CC+set}
746ac_cv_env_CC_value=$CC
747ac_env_CFLAGS_set=${CFLAGS+set}
748ac_env_CFLAGS_value=$CFLAGS
749ac_cv_env_CFLAGS_set=${CFLAGS+set}
750ac_cv_env_CFLAGS_value=$CFLAGS
751ac_env_LDFLAGS_set=${LDFLAGS+set}
752ac_env_LDFLAGS_value=$LDFLAGS
753ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
754ac_cv_env_LDFLAGS_value=$LDFLAGS
755ac_env_CPPFLAGS_set=${CPPFLAGS+set}
756ac_env_CPPFLAGS_value=$CPPFLAGS
757ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_cv_env_CPPFLAGS_value=$CPPFLAGS
759ac_env_CPP_set=${CPP+set}
760ac_env_CPP_value=$CPP
761ac_cv_env_CPP_set=${CPP+set}
762ac_cv_env_CPP_value=$CPP
763
764#
765# Report the --help message.
766#
767if 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.
772
773Usage: $0 [OPTION]... [VAR=VALUE]...
774
775To assign environment variables (e.g., CC, CFLAGS...), specify them as
776VAR=VALUE.  See below for descriptions of some of the useful variables.
777
778Defaults for the options are specified in brackets.
779
780Configuration:
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 \`..']
790
791_ACEOF
792
793  cat <<_ACEOF
794Installation 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]
799
800By default, \`make install' will install all the files in
801\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
802an installation prefix other than \`$ac_default_prefix' using \`--prefix',
803for instance \`--prefix=\$HOME'.
804
805For better control, use the options below.
806
807Fine 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
821
822  cat <<\_ACEOF
823
824Program 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
828
829System 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
833fi
834
835if 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
840
841Optional 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
848
849Optional 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)
860
861Some 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
869
870Use these variables to override the choices made by `configure' or to help
871it to find libraries and programs with nonstandard names/locations.
872
873Report bugs to <bug-gnu-utils@gnu.org>.
874_ACEOF
875fi
876
877if 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=.
883
884if 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'`
888else
889  ac_dir_suffix= ac_top_builddir=
890fi
891
892case $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 ;;
906esac
907# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908# absolute.
909ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
910ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
911ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
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
928    fi
929    cd $ac_popdir
930  done
931fi
932
933test -n "$ac_init_help" && exit 0
934if $ac_init_version; then
935  cat <<\_ACEOF
936GNU diffutils configure 2.8.1
937generated by GNU Autoconf 2.53
938
939Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
940Free Software Foundation, Inc.
941This configure script is free software; the Free Software Foundation
942gives unlimited permission to copy, distribute and modify it.
943_ACEOF
944  exit 0
945fi
946exec 5>config.log
947cat >&5 <<_ACEOF
948This file contains any messages produced by compilers while
949running configure, to aid debugging if configure makes a mistake.
950
951It was created by GNU diffutils $as_me 2.8.1, which was
952generated by GNU Autoconf 2.53.  Invocation command line was
953
954  $ $0 $@
955
956_ACEOF
957{
958cat <<_ASUNAME
959## --------- ##
960## Platform. ##
961## --------- ##
962
963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964uname -m = `(uname -m) 2>/dev/null || echo unknown`
965uname -r = `(uname -r) 2>/dev/null || echo unknown`
966uname -s = `(uname -s) 2>/dev/null || echo unknown`
967uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
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`
971
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`
975hostinfo               = `(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`
979
980_ASUNAME
981
982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983for as_dir in $PATH
984do
985  IFS=$as_save_IFS
986  test -z "$as_dir" && as_dir=.
987  echo "PATH: $as_dir"
988done
989
990} >&5
991
992cat >&5 <<_ACEOF
993
994
995## ----------- ##
996## Core tests. ##
997## ----------- ##
998
999_ACEOF
1000
1001
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.
1005ac_configure_args=
1006ac_sep=
1007for ac_arg
1008do
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.
1024done
1025
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.
1031trap 'exit_status=$?
1032  # Save into config.log some information that might help in debugging.
1033  {
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,
1042{
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"
1049      ;;
1050    *)
1051      sed -n \
1052        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053      ;;
1054    esac;
1055}
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
1066    fi
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
1074     ' 0
1075for ac_signal in 1 2 13 15; do
1076  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1077done
1078ac_signal=0
1079
1080# confdefs.h avoids OS command line length limits that DEFS can exceed.
1081rm -rf conftest* confdefs.h
1082# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1083echo >confdefs.h
1084
1085# Predefined preprocessor variables.
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_NAME "$PACKAGE_NAME"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1094_ACEOF
1095
1096
1097cat >>confdefs.h <<_ACEOF
1098#define PACKAGE_VERSION "$PACKAGE_VERSION"
1099_ACEOF
1100
1101
1102cat >>confdefs.h <<_ACEOF
1103#define PACKAGE_STRING "$PACKAGE_STRING"
1104_ACEOF
1105
1106
1107cat >>confdefs.h <<_ACEOF
1108#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1109_ACEOF
1110
1111
1112# Let the site file select an alternate cache file if it wants to.
1113# Prefer explicitly selected file to automatically selected ones.
1114if 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"
1119  fi
1120fi
1121for 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
1124echo "$as_me: loading site script $ac_site_file" >&6;}
1125    sed 's/^/| /' "$ac_site_file" >&5
1126    . "$ac_site_file"
1127  fi
1128done
1129
1130if 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
1135echo "$as_me: loading cache $cache_file" >&6;}
1136    case $cache_file in
1137      [\\/]* | ?:[\\/]* ) . $cache_file;;
1138      *)                      . ./$cache_file;;
1139    esac
1140  fi
1141else
1142  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1143echo "$as_me: creating cache $cache_file" >&6;}
1144  >$cache_file
1145fi
1146
1147# Check that the precious variables saved in the cache have kept the same
1148# value.
1149ac_cache_corrupted=false
1150for 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
1159echo "$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
1163echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1164      ac_cache_corrupted=: ;;
1165    ,);;
1166    *)
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
1169echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1170        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1171echo "$as_me:   former value:  $ac_old_val" >&2;}
1172        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1173echo "$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
1188  fi
1189done
1190if $ac_cache_corrupted; then
1191  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1192echo "$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
1194echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1195   { (exit 1); exit 1; }; }
1196fi
1197
1198ac_ext=c
1199ac_cpp='$CPP $CPPFLAGS'
1200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1202ac_compiler_gnu=$ac_cv_c_compiler_gnu
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231ac_aux_dir=
1232for 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
1245  fi
1246done
1247if test -z "$ac_aux_dir"; then
1248  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1249echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1250   { (exit 1); exit 1; }; }
1251fi
1252ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1253ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1254ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1255
1256# Add the stamp file to the list of files AC keeps track of,
1257# along with our hook.
1258ac_config_headers="$ac_config_headers config.h:config.hin"
1259
1260
1261
1262am__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.
1275echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1276echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1277if test -z "$INSTALL"; then
1278if test "${ac_cv_path_install+set}" = set; then
1279  echo $ECHO_N "(cached) $ECHO_C" >&6
1280else
1281  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282for as_dir in $PATH
1283do
1284  IFS=$as_save_IFS
1285  test -z "$as_dir" && as_dir=.
1286  # Account for people who put trailing slashes in PATH elements.
1287case $as_dir/ in
1288  ./ | .// | /cC/* | \
1289  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1290  /usr/ucb/* ) ;;
1291  *)
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.
1301            :
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.
1305            :
1306          else
1307            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1308            break 3
1309          fi
1310        fi
1311      done
1312    done
1313    ;;
1314esac
1315done
1316
1317
1318fi
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
1327  fi
1328fi
1329echo "$as_me:$LINENO: result: $INSTALL" >&5
1330echo "${ECHO_T}$INSTALL" >&6
1331
1332# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1333# It thinks the first close brace ends the variable substitution.
1334test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1335
1336test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1337
1338test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1339
1340echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1341echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1342# Just in case
1343sleep 1
1344echo 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).
1350if (
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`
1355   fi
1356   rm -f conftest.file
1357   if test "$*" != "X $srcdir/configure conftest.file" \
1358      && test "$*" != "X conftest.file $srcdir/configure"; then
1359
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
1365alias in your environment" >&5
1366echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1367alias in your environment" >&2;}
1368   { (exit 1); exit 1; }; }
1369   fi
1370
1371   test "$2" = conftest.file
1372   )
1373then
1374   # Ok.
1375   :
1376else
1377   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1378Check your system clock" >&5
1379echo "$as_me: error: newly created file is older than distributed files!
1380Check your system clock" >&2;}
1381   { (exit 1); exit 1; }; }
1382fi
1383echo "$as_me:$LINENO: result: yes" >&5
1384echo "${ECHO_T}yes" >&6
1385test "$program_prefix" != NONE &&
1386  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1387# Use a double $ so make ignores it.
1388test "$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.
1392cat <<\_ACEOF >conftest.sed
1393s/[\\$]/&&/g;s/;s,x,x,$//
1394_ACEOF
1395program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1396rm conftest.sed
1397
1398
1399# expand $ac_aux_dir to an absolute path
1400am_aux_dir=`cd $ac_aux_dir && pwd`
1401
1402test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1403# Use eval to expand $SHELL
1404if eval "$MISSING --run true"; then
1405  am_missing_run="$MISSING --run "
1406else
1407  am_missing_run=
1408  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1409echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1410fi
1411
1412for ac_prog in gawk mawk nawk awk
1413do
1414  # Extract the first word of "$ac_prog", so it can be a program name with args.
1415set dummy $ac_prog; ac_word=$2
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418if test "${ac_cv_prog_AWK+set}" = set; then
1419  echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421  if test -n "$AWK"; then
1422  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
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
1434  fi
1435done
1436done
1437
1438fi
1439fi
1440AWK=$ac_cv_prog_AWK
1441if test -n "$AWK"; then
1442  echo "$as_me:$LINENO: result: $AWK" >&5
1443echo "${ECHO_T}$AWK" >&6
1444else
1445  echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
1447fi
1448
1449  test -n "$AWK" && break
1450done
1451
1452echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1453echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1454set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456  echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
1458  cat >conftest.make <<\_ACEOF
1459all:
1460	@echo 'ac_maketemp="${MAKE}"'
1461_ACEOF
1462# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1464if test -n "$ac_maketemp"; then
1465  eval ac_cv_prog_make_${ac_make}_set=yes
1466else
1467  eval ac_cv_prog_make_${ac_make}_set=no
1468fi
1469rm -f conftest.make
1470fi
1471if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1472  echo "$as_me:$LINENO: result: yes" >&5
1473echo "${ECHO_T}yes" >&6
1474  SET_MAKE=
1475else
1476  echo "$as_me:$LINENO: result: no" >&5
1477echo "${ECHO_T}no" >&6
1478  SET_MAKE="MAKE=${MAKE-make}"
1479fi
1480
1481 # test to see if srcdir already configured
1482if 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
1485echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1486   { (exit 1); exit 1; }; }
1487fi
1488
1489# Define the identity of the package.
1490 PACKAGE=diffutils
1491 VERSION=2.8.1
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE "$PACKAGE"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define VERSION "$VERSION"
1501_ACEOF
1502
1503# Some tools Automake needs.
1504
1505ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1506
1507
1508AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1509
1510
1511AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1512
1513
1514AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1515
1516
1517MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1518
1519
1520AMTAR=${AMTAR-"${am_missing_run}tar"}
1521
1522install_sh=${install_sh-"$am_aux_dir/install-sh"}
1523
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.
1528if 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.
1531set dummy ${ac_tool_prefix}strip; ac_word=$2
1532echo "$as_me:$LINENO: checking for $ac_word" >&5
1533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_STRIP+set}" = set; then
1535  echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537  if test -n "$STRIP"; then
1538  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1539else
1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
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
1550  fi
1551done
1552done
1553
1554fi
1555fi
1556STRIP=$ac_cv_prog_STRIP
1557if test -n "$STRIP"; then
1558  echo "$as_me:$LINENO: result: $STRIP" >&5
1559echo "${ECHO_T}$STRIP" >&6
1560else
1561  echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563fi
1564
1565fi
1566if 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.
1569set dummy strip; ac_word=$2
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1573  echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575  if test -n "$ac_ct_STRIP"; then
1576  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1577else
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
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
1588  fi
1589done
1590done
1591
1592  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1593fi
1594fi
1595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1596if test -n "$ac_ct_STRIP"; then
1597  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1598echo "${ECHO_T}$ac_ct_STRIP" >&6
1599else
1600  echo "$as_me:$LINENO: result: no" >&5
1601echo "${ECHO_T}no" >&6
1602fi
1603
1604  STRIP=$ac_ct_STRIP
1605else
1606  STRIP="$ac_cv_prog_STRIP"
1607fi
1608
1609fi
1610INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1611
1612# We need awk for the "check" target.  The system "awk" is bad on
1613# some platforms.
1614
1615
1616
1617
1618for ac_prog in gawk mawk nawk awk
1619do
1620  # Extract the first word of "$ac_prog", so it can be a program name with args.
1621set dummy $ac_prog; ac_word=$2
1622echo "$as_me:$LINENO: checking for $ac_word" >&5
1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624if test "${ac_cv_prog_AWK+set}" = set; then
1625  echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627  if test -n "$AWK"; then
1628  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1629else
1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
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
1640  fi
1641done
1642done
1643
1644fi
1645fi
1646AWK=$ac_cv_prog_AWK
1647if test -n "$AWK"; then
1648  echo "$as_me:$LINENO: result: $AWK" >&5
1649echo "${ECHO_T}$AWK" >&6
1650else
1651  echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
1653fi
1654
1655  test -n "$AWK" && break
1656done
1657
1658ac_ext=c
1659ac_cpp='$CPP $CPPFLAGS'
1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663if 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.
1665set dummy ${ac_tool_prefix}gcc; ac_word=$2
1666echo "$as_me:$LINENO: checking for $ac_word" >&5
1667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668if test "${ac_cv_prog_CC+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  if test -n "$CC"; then
1672  ac_cv_prog_CC="$CC" # Let the user override the test.
1673else
1674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675for as_dir in $PATH
1676do
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
1684  fi
1685done
1686done
1687
1688fi
1689fi
1690CC=$ac_cv_prog_CC
1691if test -n "$CC"; then
1692  echo "$as_me:$LINENO: result: $CC" >&5
1693echo "${ECHO_T}$CC" >&6
1694else
1695  echo "$as_me:$LINENO: result: no" >&5
1696echo "${ECHO_T}no" >&6
1697fi
1698
1699fi
1700if 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.
1703set dummy gcc; ac_word=$2
1704echo "$as_me:$LINENO: checking for $ac_word" >&5
1705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707  echo $ECHO_N "(cached) $ECHO_C" >&6
1708else
1709  if test -n "$ac_ct_CC"; then
1710  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1711else
1712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713for as_dir in $PATH
1714do
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
1722  fi
1723done
1724done
1725
1726fi
1727fi
1728ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729if test -n "$ac_ct_CC"; then
1730  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731echo "${ECHO_T}$ac_ct_CC" >&6
1732else
1733  echo "$as_me:$LINENO: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737  CC=$ac_ct_CC
1738else
1739  CC="$ac_cv_prog_CC"
1740fi
1741
1742if 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.
1745set dummy ${ac_tool_prefix}cc; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_CC+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  if test -n "$CC"; then
1752  ac_cv_prog_CC="$CC" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
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
1764  fi
1765done
1766done
1767
1768fi
1769fi
1770CC=$ac_cv_prog_CC
1771if test -n "$CC"; then
1772  echo "$as_me:$LINENO: result: $CC" >&5
1773echo "${ECHO_T}$CC" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779fi
1780if 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.
1783set dummy cc; ac_word=$2
1784echo "$as_me:$LINENO: checking for $ac_word" >&5
1785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1787  echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789  if test -n "$ac_ct_CC"; then
1790  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1791else
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
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
1802  fi
1803done
1804done
1805
1806fi
1807fi
1808ac_ct_CC=$ac_cv_prog_ac_ct_CC
1809if test -n "$ac_ct_CC"; then
1810  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1811echo "${ECHO_T}$ac_ct_CC" >&6
1812else
1813  echo "$as_me:$LINENO: result: no" >&5
1814echo "${ECHO_T}no" >&6
1815fi
1816
1817  CC=$ac_ct_CC
1818else
1819  CC="$ac_cv_prog_CC"
1820fi
1821
1822fi
1823if test -z "$CC"; then
1824  # Extract the first word of "cc", so it can be a program name with args.
1825set dummy cc; ac_word=$2
1826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828if test "${ac_cv_prog_CC+set}" = set; then
1829  echo $ECHO_N "(cached) $ECHO_C" >&6
1830else
1831  if test -n "$CC"; then
1832  ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
1834  ac_prog_rejected=no
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
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
1845     fi
1846    ac_cv_prog_CC="cc"
1847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848    break 2
1849  fi
1850done
1851done
1852
1853if 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="$@"
1865  fi
1866fi
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878fi
1879if test -z "$CC"; then
1880  if test -n "$ac_tool_prefix"; then
1881  for ac_prog in cl
1882  do
1883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1885echo "$as_me:$LINENO: checking for $ac_word" >&5
1886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887if test "${ac_cv_prog_CC+set}" = set; then
1888  echo $ECHO_N "(cached) $ECHO_C" >&6
1889else
1890  if test -n "$CC"; then
1891  ac_cv_prog_CC="$CC" # Let the user override the test.
1892else
1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894for as_dir in $PATH
1895do
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
1903  fi
1904done
1905done
1906
1907fi
1908fi
1909CC=$ac_cv_prog_CC
1910if test -n "$CC"; then
1911  echo "$as_me:$LINENO: result: $CC" >&5
1912echo "${ECHO_T}$CC" >&6
1913else
1914  echo "$as_me:$LINENO: result: no" >&5
1915echo "${ECHO_T}no" >&6
1916fi
1917
1918    test -n "$CC" && break
1919  done
1920fi
1921if test -z "$CC"; then
1922  ac_ct_CC=$CC
1923  for ac_prog in cl
1924do
1925  # Extract the first word of "$ac_prog", so it can be a program name with args.
1926set dummy $ac_prog; ac_word=$2
1927echo "$as_me:$LINENO: checking for $ac_word" >&5
1928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930  echo $ECHO_N "(cached) $ECHO_C" >&6
1931else
1932  if test -n "$ac_ct_CC"; then
1933  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1934else
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
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
1945  fi
1946done
1947done
1948
1949fi
1950fi
1951ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952if test -n "$ac_ct_CC"; then
1953  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954echo "${ECHO_T}$ac_ct_CC" >&6
1955else
1956  echo "$as_me:$LINENO: result: no" >&5
1957echo "${ECHO_T}no" >&6
1958fi
1959
1960  test -n "$ac_ct_CC" && break
1961done
1962
1963  CC=$ac_ct_CC
1964fi
1965
1966fi
1967
1968
1969test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1970echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1971   { (exit 1); exit 1; }; }
1972
1973# Provide some information about the compiler.
1974echo "$as_me:$LINENO:" \
1975     "checking for C compiler version" >&5
1976ac_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); }
1992
1993cat >conftest.$ac_ext <<_ACEOF
1994#line $LINENO "configure"
1995#include "confdefs.h"
1996
1997#ifdef F77_DUMMY_MAIN
1998#  ifdef __cplusplus
1999     extern "C"
2000#  endif
2001   int F77_DUMMY_MAIN() { return 1; }
2002#endif
2003int
2004main ()
2005{
2006
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011ac_clean_files_save=$ac_clean_files
2012ac_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.
2016echo "$as_me:$LINENO: checking for C compiler default output" >&5
2017echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2018ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019if { (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.
2027
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.
2030ac_cv_exeext=
2031for 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
2045done
2046else
2047  echo "$as_me: failed program was:" >&5
2048cat conftest.$ac_ext >&5
2049{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2050echo "$as_me: error: C compiler cannot create executables" >&2;}
2051   { (exit 77); exit 77; }; }
2052fi
2053
2054ac_exeext=$ac_cv_exeext
2055echo "$as_me:$LINENO: result: $ac_file" >&5
2056echo "${ECHO_T}$ac_file" >&6
2057
2058# Check the compiler produces executables we can run.  If not, either
2059# the compiler is broken, or we cross compile.
2060echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2061echo $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.
2064if 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.
2077If you meant to cross compile, use \`--host'." >&5
2078echo "$as_me: error: cannot run C compiled programs.
2079If you meant to cross compile, use \`--host'." >&2;}
2080   { (exit 1); exit 1; }; }
2081    fi
2082  fi
2083fi
2084echo "$as_me:$LINENO: result: yes" >&5
2085echo "${ECHO_T}yes" >&6
2086
2087rm -f a.out a.exe conftest$ac_cv_exeext
2088ac_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.
2091echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2092echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2093echo "$as_me:$LINENO: result: $cross_compiling" >&5
2094echo "${ECHO_T}$cross_compiling" >&6
2095
2096echo "$as_me:$LINENO: checking for suffix of executables" >&5
2097echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2098if { (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'.
2107for 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
2115done
2116else
2117  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2118echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2119   { (exit 1); exit 1; }; }
2120fi
2121
2122rm -f conftest$ac_cv_exeext
2123echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2124echo "${ECHO_T}$ac_cv_exeext" >&6
2125
2126rm -f conftest.$ac_ext
2127EXEEXT=$ac_cv_exeext
2128ac_exeext=$EXEEXT
2129echo "$as_me:$LINENO: checking for suffix of object files" >&5
2130echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2131if test "${ac_cv_objext+set}" = set; then
2132  echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134  cat >conftest.$ac_ext <<_ACEOF
2135#line $LINENO "configure"
2136#include "confdefs.h"
2137
2138#ifdef F77_DUMMY_MAIN
2139#  ifdef __cplusplus
2140     extern "C"
2141#  endif
2142   int F77_DUMMY_MAIN() { return 1; }
2143#endif
2144int
2145main ()
2146{
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152rm -f conftest.o conftest.obj
2153if { (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
2164done
2165else
2166  echo "$as_me: failed program was:" >&5
2167cat conftest.$ac_ext >&5
2168{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2169echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2170   { (exit 1); exit 1; }; }
2171fi
2172
2173rm -f conftest.$ac_cv_objext conftest.$ac_ext
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2176echo "${ECHO_T}$ac_cv_objext" >&6
2177OBJEXT=$ac_cv_objext
2178ac_objext=$OBJEXT
2179echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2180echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2181if test "${ac_cv_c_compiler_gnu+set}" = set; then
2182  echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184  cat >conftest.$ac_ext <<_ACEOF
2185#line $LINENO "configure"
2186#include "confdefs.h"
2187
2188#ifdef F77_DUMMY_MAIN
2189#  ifdef __cplusplus
2190     extern "C"
2191#  endif
2192   int F77_DUMMY_MAIN() { return 1; }
2193#endif
2194int
2195main ()
2196{
2197#ifndef __GNUC__
2198       choke me
2199#endif
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205rm -f conftest.$ac_objext
2206if { (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
2218else
2219  echo "$as_me: failed program was:" >&5
2220cat conftest.$ac_ext >&5
2221ac_compiler_gnu=no
2222fi
2223rm -f conftest.$ac_objext conftest.$ac_ext
2224ac_cv_c_compiler_gnu=$ac_compiler_gnu
2225
2226fi
2227echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2228echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2229GCC=`test $ac_compiler_gnu = yes && echo yes`
2230ac_test_CFLAGS=${CFLAGS+set}
2231ac_save_CFLAGS=$CFLAGS
2232CFLAGS="-g"
2233echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2234echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2235if test "${ac_cv_prog_cc_g+set}" = set; then
2236  echo $ECHO_N "(cached) $ECHO_C" >&6
2237else
2238  cat >conftest.$ac_ext <<_ACEOF
2239#line $LINENO "configure"
2240#include "confdefs.h"
2241
2242#ifdef F77_DUMMY_MAIN
2243#  ifdef __cplusplus
2244     extern "C"
2245#  endif
2246   int F77_DUMMY_MAIN() { return 1; }
2247#endif
2248int
2249main ()
2250{
2251
2252  ;
2253  return 0;
2254}
2255_ACEOF
2256rm -f conftest.$ac_objext
2257if { (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
2269else
2270  echo "$as_me: failed program was:" >&5
2271cat conftest.$ac_ext >&5
2272ac_cv_prog_cc_g=no
2273fi
2274rm -f conftest.$ac_objext conftest.$ac_ext
2275fi
2276echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2277echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2278if test "$ac_test_CFLAGS" = set; then
2279  CFLAGS=$ac_save_CFLAGS
2280elif test $ac_cv_prog_cc_g = yes; then
2281  if test "$GCC" = yes; then
2282    CFLAGS="-g -O2"
2283  else
2284    CFLAGS="-g"
2285  fi
2286else
2287  if test "$GCC" = yes; then
2288    CFLAGS="-O2"
2289  else
2290    CFLAGS=
2291  fi
2292fi
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.
2297cat >conftest.$ac_ext <<_ACEOF
2298#ifndef __cplusplus
2299  choke me
2300#endif
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (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 \
2315   ''\
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);'
2322do
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
2334int
2335main ()
2336{
2337exit (42);
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (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
2354  :
2355else
2356  echo "$as_me: failed program was:" >&5
2357cat conftest.$ac_ext >&5
2358continue
2359fi
2360rm -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
2371int
2372main ()
2373{
2374exit (42);
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (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
2392else
2393  echo "$as_me: failed program was:" >&5
2394cat conftest.$ac_ext >&5
2395fi
2396rm -f conftest.$ac_objext conftest.$ac_ext
2397done
2398rm -f conftest*
2399if test -n "$ac_declaration"; then
2400  echo '#ifdef __cplusplus' >>confdefs.h
2401  echo $ac_declaration      >>confdefs.h
2402  echo '#endif'             >>confdefs.h
2403fi
2404
2405else
2406  echo "$as_me: failed program was:" >&5
2407cat conftest.$ac_ext >&5
2408fi
2409rm -f conftest.$ac_objext conftest.$ac_ext
2410ac_ext=c
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415rm -f .deps 2>/dev/null
2416mkdir .deps 2>/dev/null
2417if test -d .deps; then
2418  DEPDIR=.deps
2419else
2420  # MS-DOS does not allow filenames that begin with a dot.
2421  DEPDIR=_deps
2422fi
2423rmdir .deps 2>/dev/null
2424
2425
2426ac_config_commands="$ac_config_commands depfiles"
2427
2428
2429am_make=${MAKE-make}
2430cat > confinc << 'END'
2431doit:
2432	@echo done
2433END
2434# If we don't find an include directive, just comment out the code.
2435echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2436echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2437am__include="#"
2438am__quote=
2439_am_result=none
2440# First try GNU make style include.
2441echo "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'.
2447if 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
2451fi
2452# Now try BSD make style include.
2453if 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
2459   fi
2460fi
2461
2462
2463echo "$as_me:$LINENO: result: $_am_result" >&5
2464echo "${ECHO_T}$_am_result" >&6
2465rm -f confinc confmf
2466
2467# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2468if test "${enable_dependency_tracking+set}" = set; then
2469  enableval="$enable_dependency_tracking"
2470
2471fi;
2472if test "x$enable_dependency_tracking" != xno; then
2473  am_depcomp="$ac_aux_dir/depcomp"
2474  AMDEPBACKSLASH='\'
2475fi
2476
2477
2478if test "x$enable_dependency_tracking" != xno; then
2479  AMDEP_TRUE=
2480  AMDEP_FALSE='#'
2481else
2482  AMDEP_TRUE='#'
2483  AMDEP_FALSE=
2484fi
2485
2486
2487
2488
2489depcc="$CC"   am_compiler_list=
2490
2491echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2492echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2493if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2494  echo $ECHO_N "(cached) $ECHO_C" >&6
2495else
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
2507
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`
2511  fi
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
2519
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
2528      fi
2529      ;;
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
2543    fi
2544  done
2545
2546  cd ..
2547  rm -rf conftest.dir
2548else
2549  am_cv_CC_dependencies_compiler_type=none
2550fi
2551
2552fi
2553echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2554echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2555CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2556
2557
2558
2559
2560        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2561echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2562if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2563  echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565  ac_check_lib_save_LIBS=$LIBS
2566LIBS="-lcposix  $LIBS"
2567cat >conftest.$ac_ext <<_ACEOF
2568#line $LINENO "configure"
2569#include "confdefs.h"
2570
2571/* Override any gcc2 internal prototype to avoid an error.  */
2572#ifdef __cplusplus
2573extern "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.  */
2577char strerror ();
2578#ifdef F77_DUMMY_MAIN
2579#  ifdef __cplusplus
2580     extern "C"
2581#  endif
2582   int F77_DUMMY_MAIN() { return 1; }
2583#endif
2584int
2585main ()
2586{
2587strerror ();
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592rm -f conftest.$ac_objext conftest$ac_exeext
2593if { (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
2605else
2606  echo "$as_me: failed program was:" >&5
2607cat conftest.$ac_ext >&5
2608ac_cv_lib_cposix_strerror=no
2609fi
2610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2611LIBS=$ac_check_lib_save_LIBS
2612fi
2613echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2614echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2615if test $ac_cv_lib_cposix_strerror = yes; then
2616  LIBS="$LIBS -lcposix"
2617fi
2618
2619
2620
2621
2622
2623
2624echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2625echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2626if test "${am_cv_prog_cc_stdc+set}" = set; then
2627  echo $ECHO_N "(cached) $ECHO_C" >&6
2628else
2629  am_cv_prog_cc_stdc=no
2630ac_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__
2638for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2639do
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.  */
2649struct buf { int x; };
2650FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651static char *e (p, i)
2652     char **p;
2653     int i;
2654{
2655  return p[i];
2656}
2657static char *f (char * (*g) (char **, int), char **p, ...)
2658{
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;
2665}
2666int test (int i, double x);
2667struct s1 {int (*f) (int a);};
2668struct s2 {int (*f) (double a);};
2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670int argc;
2671char **argv;
2672
2673#ifdef F77_DUMMY_MAIN
2674#  ifdef __cplusplus
2675     extern "C"
2676#  endif
2677   int F77_DUMMY_MAIN() { return 1; }
2678#endif
2679int
2680main ()
2681{
2682
2683return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2684
2685  ;
2686  return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (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
2702else
2703  echo "$as_me: failed program was:" >&5
2704cat conftest.$ac_ext >&5
2705fi
2706rm -f conftest.$ac_objext conftest.$ac_ext
2707done
2708CC="$ac_save_CC"
2709
2710fi
2711
2712if test -z "$am_cv_prog_cc_stdc"; then
2713  echo "$as_me:$LINENO: result: none needed" >&5
2714echo "${ECHO_T}none needed" >&6
2715else
2716  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2717echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2718fi
2719case "x$am_cv_prog_cc_stdc" in
2720  x|xno) ;;
2721  *) CC="$CC $am_cv_prog_cc_stdc" ;;
2722esac
2723
2724ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2730echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2731# On Suns, sometimes $CPP names a directory.
2732if test -n "$CPP" && test -d "$CPP"; then
2733  CPP=
2734fi
2735if test -z "$CPP"; then
2736  if test "${ac_cv_prog_CPP+set}" = set; then
2737  echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
2739      # Double quotes because CPP needs to be expanded
2740    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2741    do
2742      ac_preproc_ok=false
2743for ac_c_preproc_warn_flag in '' yes
2744do
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
2755if { (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=
2767  fi
2768else
2769  ac_cpp_err=yes
2770fi
2771if test -z "$ac_cpp_err"; then
2772  :
2773else
2774  echo "$as_me: failed program was:" >&5
2775  cat conftest.$ac_ext >&5
2776  # Broken: fails on valid input.
2777continue
2778fi
2779rm -f conftest.err conftest.$ac_ext
2780
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
2788if { (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=
2800  fi
2801else
2802  ac_cpp_err=yes
2803fi
2804if test -z "$ac_cpp_err"; then
2805  # Broken: success on invalid input.
2806continue
2807else
2808  echo "$as_me: failed program was:" >&5
2809  cat conftest.$ac_ext >&5
2810  # Passes both tests.
2811ac_preproc_ok=:
2812break
2813fi
2814rm -f conftest.err conftest.$ac_ext
2815
2816done
2817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2818rm -f conftest.err conftest.$ac_ext
2819if $ac_preproc_ok; then
2820  break
2821fi
2822
2823    done
2824    ac_cv_prog_CPP=$CPP
2825
2826fi
2827  CPP=$ac_cv_prog_CPP
2828else
2829  ac_cv_prog_CPP=$CPP
2830fi
2831echo "$as_me:$LINENO: result: $CPP" >&5
2832echo "${ECHO_T}$CPP" >&6
2833ac_preproc_ok=false
2834for ac_c_preproc_warn_flag in '' yes
2835do
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
2846if { (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=
2858  fi
2859else
2860  ac_cpp_err=yes
2861fi
2862if test -z "$ac_cpp_err"; then
2863  :
2864else
2865  echo "$as_me: failed program was:" >&5
2866  cat conftest.$ac_ext >&5
2867  # Broken: fails on valid input.
2868continue
2869fi
2870rm -f conftest.err conftest.$ac_ext
2871
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
2879if { (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=
2891  fi
2892else
2893  ac_cpp_err=yes
2894fi
2895if test -z "$ac_cpp_err"; then
2896  # Broken: success on invalid input.
2897continue
2898else
2899  echo "$as_me: failed program was:" >&5
2900  cat conftest.$ac_ext >&5
2901  # Passes both tests.
2902ac_preproc_ok=:
2903break
2904fi
2905rm -f conftest.err conftest.$ac_ext
2906
2907done
2908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909rm -f conftest.err conftest.$ac_ext
2910if $ac_preproc_ok; then
2911  :
2912else
2913  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2914echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2915   { (exit 1); exit 1; }; }
2916fi
2917
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924
2925HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
2926
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.
2939echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2940echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2941if test -z "$INSTALL"; then
2942if test "${ac_cv_path_install+set}" = set; then
2943  echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950  # Account for people who put trailing slashes in PATH elements.
2951case $as_dir/ in
2952  ./ | .// | /cC/* | \
2953  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954  /usr/ucb/* ) ;;
2955  *)
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.
2965            :
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.
2969            :
2970          else
2971            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2972            break 3
2973          fi
2974        fi
2975      done
2976    done
2977    ;;
2978esac
2979done
2980
2981
2982fi
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
2991  fi
2992fi
2993echo "$as_me:$LINENO: result: $INSTALL" >&5
2994echo "${ECHO_T}$INSTALL" >&6
2995
2996# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997# It thinks the first close brace ends the variable substitution.
2998test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999
3000test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001
3002test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3004if 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.
3006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3007echo "$as_me:$LINENO: checking for $ac_word" >&5
3008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3009if test "${ac_cv_prog_RANLIB+set}" = set; then
3010  echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012  if test -n "$RANLIB"; then
3013  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
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
3025  fi
3026done
3027done
3028
3029fi
3030fi
3031RANLIB=$ac_cv_prog_RANLIB
3032if test -n "$RANLIB"; then
3033  echo "$as_me:$LINENO: result: $RANLIB" >&5
3034echo "${ECHO_T}$RANLIB" >&6
3035else
3036  echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038fi
3039
3040fi
3041if 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.
3044set dummy ranlib; ac_word=$2
3045echo "$as_me:$LINENO: checking for $ac_word" >&5
3046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3048  echo $ECHO_N "(cached) $ECHO_C" >&6
3049else
3050  if test -n "$ac_ct_RANLIB"; then
3051  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
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
3063  fi
3064done
3065done
3066
3067  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3068fi
3069fi
3070ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3071if test -n "$ac_ct_RANLIB"; then
3072  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3073echo "${ECHO_T}$ac_ct_RANLIB" >&6
3074else
3075  echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077fi
3078
3079  RANLIB=$ac_ct_RANLIB
3080else
3081  RANLIB="$ac_cv_prog_RANLIB"
3082fi
3083
3084
3085
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
3094EOF
3095
3096  # Emit this code into config.h.in.
3097  # The ifndef is to avoid redefinition warnings.
3098
3099
3100
3101
3102cat >>confdefs.h <<\_ACEOF
3103#define __EXTENSIONS__ 1
3104_ACEOF
3105
3106# Check whether --enable-largefile or --disable-largefile was given.
3107if test "${enable_largefile+set}" = set; then
3108  enableval="$enable_largefile"
3109
3110fi;
3111if test "$enable_largefile" != no; then
3112
3113  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3114echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3115if test "${ac_cv_sys_largefile_CC+set}" = set; then
3116  echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
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
3142int
3143main ()
3144{
3145
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150     	 rm -f conftest.$ac_objext
3151if { (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
3163else
3164  echo "$as_me: failed program was:" >&5
3165cat conftest.$ac_ext >&5
3166fi
3167rm -f conftest.$ac_objext
3168     	 CC="$CC -n32"
3169     	 rm -f conftest.$ac_objext
3170if { (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
3182else
3183  echo "$as_me: failed program was:" >&5
3184cat conftest.$ac_ext >&5
3185fi
3186rm -f conftest.$ac_objext
3187         break
3188       done
3189       CC=$ac_save_CC
3190       rm -f conftest.$ac_ext
3191    fi
3192fi
3193echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3194echo "${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
3197  fi
3198
3199  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3200echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3201if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3202  echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
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
3224int
3225main ()
3226{
3227
3228  ;
3229  return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (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
3245else
3246  echo "$as_me: failed program was:" >&5
3247cat conftest.$ac_ext >&5
3248fi
3249rm -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
3269int
3270main ()
3271{
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (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
3290else
3291  echo "$as_me: failed program was:" >&5
3292cat conftest.$ac_ext >&5
3293fi
3294rm -f conftest.$ac_objext conftest.$ac_ext
3295  break
3296done
3297fi
3298echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3299echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3300if test "$ac_cv_sys_file_offset_bits" != no; then
3301
3302cat >>confdefs.h <<_ACEOF
3303#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3304_ACEOF
3305
3306fi
3307rm -f conftest*
3308  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3309echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3310if test "${ac_cv_sys_large_files+set}" = set; then
3311  echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
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
3333int
3334main ()
3335{
3336
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (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
3354else
3355  echo "$as_me: failed program was:" >&5
3356cat conftest.$ac_ext >&5
3357fi
3358rm -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
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (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
3399else
3400  echo "$as_me: failed program was:" >&5
3401cat conftest.$ac_ext >&5
3402fi
3403rm -f conftest.$ac_objext conftest.$ac_ext
3404  break
3405done
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3408echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3409if test "$ac_cv_sys_large_files" != no; then
3410
3411cat >>confdefs.h <<_ACEOF
3412#define _LARGE_FILES $ac_cv_sys_large_files
3413_ACEOF
3414
3415fi
3416rm -f conftest*
3417fi
3418
3419
3420echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3421echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3422if test "${ac_cv_prog_cc_stdc+set}" = set; then
3423  echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425  ac_cv_prog_cc_stdc=no
3426ac_save_CC=$CC
3427cat >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.  */
3435struct buf { int x; };
3436FILE * (*rcsopen) (struct buf *, struct stat *, int);
3437static char *e (p, i)
3438     char **p;
3439     int i;
3440{
3441  return p[i];
3442}
3443static char *f (char * (*g) (char **, int), char **p, ...)
3444{
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;
3451}
3452int test (int i, double x);
3453struct s1 {int (*f) (int a);};
3454struct s2 {int (*f) (double a);};
3455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456int argc;
3457char **argv;
3458#ifdef F77_DUMMY_MAIN
3459#  ifdef __cplusplus
3460     extern "C"
3461#  endif
3462   int F77_DUMMY_MAIN() { return 1; }
3463#endif
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3468  ;
3469  return 0;
3470}
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__
3479for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3480do
3481  CC="$ac_save_CC $ac_arg"
3482  rm -f conftest.$ac_objext
3483if { (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
3495break
3496else
3497  echo "$as_me: failed program was:" >&5
3498cat conftest.$ac_ext >&5
3499fi
3500rm -f conftest.$ac_objext
3501done
3502rm -f conftest.$ac_ext conftest.$ac_objext
3503CC=$ac_save_CC
3504
3505fi
3506
3507case "x$ac_cv_prog_cc_stdc" in
3508  x|xno)
3509    echo "$as_me:$LINENO: result: none needed" >&5
3510echo "${ECHO_T}none needed" >&6 ;;
3511  *)
3512    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3513echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3514    CC="$CC $ac_cv_prog_cc_stdc" ;;
3515esac
3516
3517echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3518echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3519if test "${ac_cv_c_const+set}" = set; then
3520  echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522  cat >conftest.$ac_ext <<_ACEOF
3523#line $LINENO "configure"
3524#include "confdefs.h"
3525
3526#ifdef F77_DUMMY_MAIN
3527#  ifdef __cplusplus
3528     extern "C"
3529#  endif
3530   int F77_DUMMY_MAIN() { return 1; }
3531#endif
3532int
3533main ()
3534{
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;
3559
3560    *t++ = 0;
3561  }
3562  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3563    int x[] = {25, 17};
3564    const int *foo = &x[0];
3565    ++foo;
3566  }
3567  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3568    typedef const int *iptr;
3569    iptr p = 0;
3570    ++p;
3571  }
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;
3576  }
3577  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3578    const int foo = 10;
3579  }
3580#endif
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (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
3599else
3600  echo "$as_me: failed program was:" >&5
3601cat conftest.$ac_ext >&5
3602ac_cv_c_const=no
3603fi
3604rm -f conftest.$ac_objext conftest.$ac_ext
3605fi
3606echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3607echo "${ECHO_T}$ac_cv_c_const" >&6
3608if test $ac_cv_c_const = no; then
3609
3610cat >>confdefs.h <<\_ACEOF
3611#define const
3612_ACEOF
3613
3614fi
3615
3616echo "$as_me:$LINENO: checking for inline" >&5
3617echo $ECHO_N "checking for inline... $ECHO_C" >&6
3618if test "${ac_cv_c_inline+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  ac_cv_c_inline=no
3622for ac_kw in inline __inline__ __inline; do
3623  cat >conftest.$ac_ext <<_ACEOF
3624#line $LINENO "configure"
3625#include "confdefs.h"
3626#ifndef __cplusplus
3627static $ac_kw int static_foo () {return 0; }
3628$ac_kw int foo () {return 0; }
3629#endif
3630
3631_ACEOF
3632rm -f conftest.$ac_objext
3633if { (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
3645else
3646  echo "$as_me: failed program was:" >&5
3647cat conftest.$ac_ext >&5
3648fi
3649rm -f conftest.$ac_objext conftest.$ac_ext
3650done
3651
3652fi
3653echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3654echo "${ECHO_T}$ac_cv_c_inline" >&6
3655case $ac_cv_c_inline in
3656  inline | yes) ;;
3657  no)
3658cat >>confdefs.h <<\_ACEOF
3659#define inline
3660_ACEOF
3661 ;;
3662  *)  cat >>confdefs.h <<_ACEOF
3663#define inline $ac_cv_c_inline
3664_ACEOF
3665 ;;
3666esac
3667
3668
3669  echo "$as_me:$LINENO: checking for variable-length arrays" >&5
3670echo $ECHO_N "checking for variable-length arrays... $ECHO_C" >&6
3671if test "${ac_cv_c_vararrays+set}" = set; then
3672  echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674  cat >conftest.$ac_ext <<_ACEOF
3675#line $LINENO "configure"
3676#include "confdefs.h"
3677
3678#ifdef F77_DUMMY_MAIN
3679#  ifdef __cplusplus
3680     extern "C"
3681#  endif
3682   int F77_DUMMY_MAIN() { return 1; }
3683#endif
3684int
3685main ()
3686{
3687static int x; char a[++x]; a[sizeof a - 1] = 0; return a[0];
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (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
3705else
3706  echo "$as_me: failed program was:" >&5
3707cat conftest.$ac_ext >&5
3708ac_cv_c_vararrays=no
3709fi
3710rm -f conftest.$ac_objext conftest.$ac_ext
3711fi
3712echo "$as_me:$LINENO: result: $ac_cv_c_vararrays" >&5
3713echo "${ECHO_T}$ac_cv_c_vararrays" >&6
3714  if test $ac_cv_c_vararrays = yes; then
3715
3716cat >>confdefs.h <<\_ACEOF
3717#define HAVE_C_VARARRAYS 1
3718_ACEOF
3719
3720  fi
3721
3722
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define DEFAULT_DIFF_PROGRAM "diff"
3726_ACEOF
3727
3728
3729
3730cat >>confdefs.h <<\_ACEOF
3731#define DEFAULT_EDITOR_PROGRAM "ed"
3732_ACEOF
3733
3734
3735# Extract the first word of "pr", so it can be a program name with args.
3736set dummy pr; ac_word=$2
3737echo "$as_me:$LINENO: checking for $ac_word" >&5
3738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3739if test "${ac_cv_path_PR_PROGRAM+set}" = set; then
3740  echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742  case $PR_PROGRAM in
3743  [\\/]* | ?:[\\/]*)
3744  ac_cv_path_PR_PROGRAM="$PR_PROGRAM" # Let the user override the test with a path.
3745  ;;
3746  *)
3747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
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
3757  fi
3758done
3759done
3760
3761  test -z "$ac_cv_path_PR_PROGRAM" && ac_cv_path_PR_PROGRAM=""""
3762  ;;
3763esac
3764fi
3765PR_PROGRAM=$ac_cv_path_PR_PROGRAM
3766
3767if test -n "$PR_PROGRAM"; then
3768  echo "$as_me:$LINENO: result: $PR_PROGRAM" >&5
3769echo "${ECHO_T}$PR_PROGRAM" >&6
3770else
3771  echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
3773fi
3774
3775
3776cat >>confdefs.h <<_ACEOF
3777#define PR_PROGRAM "$PR_PROGRAM"
3778_ACEOF
3779
3780
3781echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3782echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3783if test "${ac_cv_header_stdbool_h+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  cat >conftest.$ac_ext <<_ACEOF
3787#line $LINENO "configure"
3788#include "confdefs.h"
3789
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
3803
3804	  struct s { _Bool s: 1; _Bool t; } s;
3805
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];
3815
3816#ifdef F77_DUMMY_MAIN
3817#  ifdef __cplusplus
3818     extern "C"
3819#  endif
3820   int F77_DUMMY_MAIN() { return 1; }
3821#endif
3822int
3823main ()
3824{
3825 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext
3831if { (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
3843else
3844  echo "$as_me: failed program was:" >&5
3845cat conftest.$ac_ext >&5
3846ac_cv_header_stdbool_h=no
3847fi
3848rm -f conftest.$ac_objext conftest.$ac_ext
3849fi
3850echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
3851echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
3852   if test $ac_cv_header_stdbool_h = yes; then
3853
3854cat >>confdefs.h <<\_ACEOF
3855#define HAVE_STDBOOL_H 1
3856_ACEOF
3857
3858   fi
3859
3860echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3861echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3862if test "${ac_cv_header_stdc+set}" = set; then
3863  echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
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>
3872
3873_ACEOF
3874if { (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=
3886  fi
3887else
3888  ac_cpp_err=yes
3889fi
3890if test -z "$ac_cpp_err"; then
3891  ac_cv_header_stdc=yes
3892else
3893  echo "$as_me: failed program was:" >&5
3894  cat conftest.$ac_ext >&5
3895  ac_cv_header_stdc=no
3896fi
3897rm -f conftest.err conftest.$ac_ext
3898
3899if 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>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908  egrep "memchr" >/dev/null 2>&1; then
3909  :
3910else
3911  ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if 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>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926  egrep "free" >/dev/null 2>&1; then
3927  :
3928else
3929  ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if 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
3938  :
3939else
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
3953
3954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955int
3956main ()
3957{
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);
3964}
3965_ACEOF
3966rm -f conftest$ac_exeext
3967if { (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
3977  :
3978else
3979  echo "$as_me: program exited with status $ac_status" >&5
3980echo "$as_me: failed program was:" >&5
3981cat conftest.$ac_ext >&5
3982( exit $ac_status )
3983ac_cv_header_stdc=no
3984fi
3985rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3986fi
3987fi
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990echo "${ECHO_T}$ac_cv_header_stdc" >&6
3991if test $ac_cv_header_stdc = yes; then
3992
3993cat >>confdefs.h <<\_ACEOF
3994#define STDC_HEADERS 1
3995_ACEOF
3996
3997fi
3998
3999# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010                  inttypes.h stdint.h unistd.h
4011do
4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013echo "$as_me:$LINENO: checking for $ac_header" >&5
4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4015if eval "test \"\${$as_ac_Header+set}\" = set"; then
4016  echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018  cat >conftest.$ac_ext <<_ACEOF
4019#line $LINENO "configure"
4020#include "confdefs.h"
4021$ac_includes_default
4022
4023#include <$ac_header>
4024_ACEOF
4025rm -f conftest.$ac_objext
4026if { (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"
4038else
4039  echo "$as_me: failed program was:" >&5
4040cat conftest.$ac_ext >&5
4041eval "$as_ac_Header=no"
4042fi
4043rm -f conftest.$ac_objext conftest.$ac_ext
4044fi
4045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4047if 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
4051
4052fi
4053
4054done
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066for ac_header in fcntl.h libintl.h limits.h locale.h \
4067  stdlib.h string.h sys/file.h time.h unistd.h
4068do
4069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4070if eval "test \"\${$as_ac_Header+set}\" = set"; then
4071  echo "$as_me:$LINENO: checking for $ac_header" >&5
4072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075fi
4076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078else
4079  # Is the header compilable?
4080echo "$as_me:$LINENO: checking $ac_header usability" >&5
4081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4082cat >conftest.$ac_ext <<_ACEOF
4083#line $LINENO "configure"
4084#include "confdefs.h"
4085$ac_includes_default
4086#include <$ac_header>
4087_ACEOF
4088rm -f conftest.$ac_objext
4089if { (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
4101else
4102  echo "$as_me: failed program was:" >&5
4103cat conftest.$ac_ext >&5
4104ac_header_compiler=no
4105fi
4106rm -f conftest.$ac_objext conftest.$ac_ext
4107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4108echo "${ECHO_T}$ac_header_compiler" >&6
4109
4110# Is the header present?
4111echo "$as_me:$LINENO: checking $ac_header presence" >&5
4112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4113cat >conftest.$ac_ext <<_ACEOF
4114#line $LINENO "configure"
4115#include "confdefs.h"
4116#include <$ac_header>
4117_ACEOF
4118if { (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=
4130  fi
4131else
4132  ac_cpp_err=yes
4133fi
4134if test -z "$ac_cpp_err"; then
4135  ac_header_preproc=yes
4136else
4137  echo "$as_me: failed program was:" >&5
4138  cat conftest.$ac_ext >&5
4139  ac_header_preproc=no
4140fi
4141rm -f conftest.err conftest.$ac_ext
4142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4143echo "${ECHO_T}$ac_header_preproc" >&6
4144
4145# So?  What about this header?
4146case $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
4149echo "$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
4151echo "$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
4154echo "$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
4156echo "$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
4158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4159esac
4160echo "$as_me:$LINENO: checking for $ac_header" >&5
4161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4162if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163  echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165  eval "$as_ac_Header=$ac_header_preproc"
4166fi
4167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4169
4170fi
4171if 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
4175
4176fi
4177
4178done
4179
4180echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
4181echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4182if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
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
4195int
4196main ()
4197{
4198static struct stat ac_aggr;
4199if (ac_aggr.st_blksize)
4200return 0;
4201  ;
4202  return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (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
4218else
4219  echo "$as_me: failed program was:" >&5
4220cat conftest.$ac_ext >&5
4221ac_cv_member_struct_stat_st_blksize=no
4222fi
4223rm -f conftest.$ac_objext conftest.$ac_ext
4224fi
4225echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
4226echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4227if test $ac_cv_member_struct_stat_st_blksize = yes; then
4228
4229cat >>confdefs.h <<_ACEOF
4230#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
4231_ACEOF
4232
4233
4234fi
4235
4236echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4237echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
4238if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
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
4251int
4252main ()
4253{
4254static struct stat ac_aggr;
4255if (ac_aggr.st_rdev)
4256return 0;
4257  ;
4258  return 0;
4259}
4260_ACEOF
4261rm -f conftest.$ac_objext
4262if { (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
4274else
4275  echo "$as_me: failed program was:" >&5
4276cat conftest.$ac_ext >&5
4277ac_cv_member_struct_stat_st_rdev=no
4278fi
4279rm -f conftest.$ac_objext conftest.$ac_ext
4280fi
4281echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4282echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
4283if test $ac_cv_member_struct_stat_st_rdev = yes; then
4284
4285cat >>confdefs.h <<_ACEOF
4286#define HAVE_STRUCT_STAT_ST_RDEV 1
4287_ACEOF
4288
4289
4290fi
4291
4292echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4293echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4294if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4295  echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
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
4307int
4308main ()
4309{
4310if ((ptrdiff_t *) 0)
4311  return 0;
4312if (sizeof (ptrdiff_t))
4313  return 0;
4314  ;
4315  return 0;
4316}
4317_ACEOF
4318rm -f conftest.$ac_objext
4319if { (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
4331else
4332  echo "$as_me: failed program was:" >&5
4333cat conftest.$ac_ext >&5
4334ac_cv_type_ptrdiff_t=no
4335fi
4336rm -f conftest.$ac_objext conftest.$ac_ext
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4339echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4340if test $ac_cv_type_ptrdiff_t = yes; then
4341  :
4342else
4343
4344cat >>confdefs.h <<_ACEOF
4345#define ptrdiff_t int
4346_ACEOF
4347
4348fi
4349
4350echo "$as_me:$LINENO: checking for ssize_t" >&5
4351echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4352if test "${ac_cv_type_ssize_t+set}" = set; then
4353  echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
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
4365int
4366main ()
4367{
4368if ((ssize_t *) 0)
4369  return 0;
4370if (sizeof (ssize_t))
4371  return 0;
4372  ;
4373  return 0;
4374}
4375_ACEOF
4376rm -f conftest.$ac_objext
4377if { (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
4389else
4390  echo "$as_me: failed program was:" >&5
4391cat conftest.$ac_ext >&5
4392ac_cv_type_ssize_t=no
4393fi
4394rm -f conftest.$ac_objext conftest.$ac_ext
4395fi
4396echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
4397echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4398if test $ac_cv_type_ssize_t = yes; then
4399  :
4400else
4401
4402cat >>confdefs.h <<_ACEOF
4403#define ssize_t int
4404_ACEOF
4405
4406fi
4407
4408
4409  echo "$as_me:$LINENO: checking for unsigned long long" >&5
4410echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4411if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4412  echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414  cat >conftest.$ac_ext <<_ACEOF
4415#line $LINENO "configure"
4416#include "confdefs.h"
4417unsigned 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
4424int
4425main ()
4426{
4427unsigned long long ullmax = (unsigned long long) -1;
4428     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4429  ;
4430  return 0;
4431}
4432_ACEOF
4433rm -f conftest.$ac_objext conftest$ac_exeext
4434if { (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
4446else
4447  echo "$as_me: failed program was:" >&5
4448cat conftest.$ac_ext >&5
4449ac_cv_type_unsigned_long_long=no
4450fi
4451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4452fi
4453echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4454echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4455  if test $ac_cv_type_unsigned_long_long = yes; then
4456
4457cat >>confdefs.h <<\_ACEOF
4458#define HAVE_UNSIGNED_LONG_LONG 1
4459_ACEOF
4460
4461  fi
4462
4463
4464
4465  echo "$as_me:$LINENO: checking for uintmax_t" >&5
4466echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4467if test "${ac_cv_type_uintmax_t+set}" = set; then
4468  echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
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
4480int
4481main ()
4482{
4483if ((uintmax_t *) 0)
4484  return 0;
4485if (sizeof (uintmax_t))
4486  return 0;
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491rm -f conftest.$ac_objext
4492if { (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
4504else
4505  echo "$as_me: failed program was:" >&5
4506cat conftest.$ac_ext >&5
4507ac_cv_type_uintmax_t=no
4508fi
4509rm -f conftest.$ac_objext conftest.$ac_ext
4510fi
4511echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
4512echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4513if test $ac_cv_type_uintmax_t = yes; then
4514  :
4515else
4516  test $ac_cv_type_unsigned_long_long = yes \
4517       && ac_type='unsigned long long' \
4518       || ac_type='unsigned long'
4519
4520cat >>confdefs.h <<_ACEOF
4521#define uintmax_t $ac_type
4522_ACEOF
4523
4524fi
4525
4526
4527
4528        MKINSTALLDIRS=
4529  if test -n "$ac_aux_dir"; then
4530    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4531  fi
4532  if test -z "$MKINSTALLDIRS"; then
4533    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4534  fi
4535
4536
4537
4538
4539
4540        # Extract the first word of "msgfmt", so it can be a program name with args.
4541set dummy msgfmt; ac_word=$2
4542echo "$as_me:$LINENO: checking for $ac_word" >&5
4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544if test "${ac_cv_path_MSGFMT+set}" = set; then
4545  echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547  case "$MSGFMT" in
4548  /*)
4549  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4550  ;;
4551  *)
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
4560      fi
4561    fi
4562  done
4563  IFS="$ac_save_ifs"
4564  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4565  ;;
4566esac
4567fi
4568MSGFMT="$ac_cv_path_MSGFMT"
4569if test "$MSGFMT" != ":"; then
4570  echo "$as_me:$LINENO: result: $MSGFMT" >&5
4571echo "${ECHO_T}$MSGFMT" >&6
4572else
4573  echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
4577  # Extract the first word of "gmsgfmt", so it can be a program name with args.
4578set dummy gmsgfmt; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_GMSGFMT+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  case $GMSGFMT in
4585  [\\/]* | ?:[\\/]*)
4586  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4587  ;;
4588  *)
4589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
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
4599  fi
4600done
4601done
4602
4603  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4604  ;;
4605esac
4606fi
4607GMSGFMT=$ac_cv_path_GMSGFMT
4608
4609if test -n "$GMSGFMT"; then
4610  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4611echo "${ECHO_T}$GMSGFMT" >&6
4612else
4613  echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617
4618        # Extract the first word of "xgettext", so it can be a program name with args.
4619set dummy xgettext; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_path_XGETTEXT+set}" = set; then
4623  echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625  case "$XGETTEXT" in
4626  /*)
4627  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4628  ;;
4629  *)
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
4638      fi
4639    fi
4640  done
4641  IFS="$ac_save_ifs"
4642  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4643  ;;
4644esac
4645fi
4646XGETTEXT="$ac_cv_path_XGETTEXT"
4647if test "$XGETTEXT" != ":"; then
4648  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4649echo "${ECHO_T}$XGETTEXT" >&6
4650else
4651  echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6
4653fi
4654
4655    rm -f messages.po
4656
4657    # Extract the first word of "msgmerge", so it can be a program name with args.
4658set dummy msgmerge; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_MSGMERGE+set}" = set; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  case "$MSGMERGE" in
4665  /*)
4666  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4667  ;;
4668  *)
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
4676      fi
4677    fi
4678  done
4679  IFS="$ac_save_ifs"
4680  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4681  ;;
4682esac
4683fi
4684MSGMERGE="$ac_cv_path_MSGMERGE"
4685if test "$MSGMERGE" != ":"; then
4686  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4687echo "${ECHO_T}$MSGMERGE" >&6
4688else
4689  echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6
4691fi
4692
4693
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
4697      : ;
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
4701echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4702      GMSGFMT=":"
4703    fi
4704  fi
4705
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
4709      : ;
4710    else
4711      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4712echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4713      XGETTEXT=":"
4714    fi
4715        rm -f messages.po
4716  fi
4717
4718  ac_config_commands="$ac_config_commands default-1"
4719
4720
4721
4722      if test "X$prefix" = "XNONE"; then
4723    acl_final_prefix="$ac_default_prefix"
4724  else
4725    acl_final_prefix="$prefix"
4726  fi
4727  if test "X$exec_prefix" = "XNONE"; then
4728    acl_final_exec_prefix='${prefix}'
4729  else
4730    acl_final_exec_prefix="$exec_prefix"
4731  fi
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"
4736
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
4740echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4741   { (exit 1); exit 1; }; }
4742
4743echo "$as_me:$LINENO: checking build system type" >&5
4744echo $ECHO_N "checking build system type... $ECHO_C" >&6
4745if test "${ac_cv_build+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  ac_cv_build_alias=$build_alias
4749test -z "$ac_cv_build_alias" &&
4750  ac_cv_build_alias=`$ac_config_guess`
4751test -z "$ac_cv_build_alias" &&
4752  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4753echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4754   { (exit 1); exit 1; }; }
4755ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4756  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4757echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4758   { (exit 1); exit 1; }; }
4759
4760fi
4761echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4762echo "${ECHO_T}$ac_cv_build" >&6
4763build=$ac_cv_build
4764build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4765build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4766build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4767
4768
4769echo "$as_me:$LINENO: checking host system type" >&5
4770echo $ECHO_N "checking host system type... $ECHO_C" >&6
4771if test "${ac_cv_host+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  ac_cv_host_alias=$host_alias
4775test -z "$ac_cv_host_alias" &&
4776  ac_cv_host_alias=$ac_cv_build_alias
4777ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4778  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4779echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4780   { (exit 1); exit 1; }; }
4781
4782fi
4783echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4784echo "${ECHO_T}$ac_cv_host" >&6
4785host=$ac_cv_host
4786host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4787host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4788host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4789
4790
4791
4792# Check whether --with-gnu-ld or --without-gnu-ld was given.
4793if test "${with_gnu_ld+set}" = set; then
4794  withval="$with_gnu_ld"
4795  test "$withval" = no || with_gnu_ld=yes
4796else
4797  with_gnu_ld=no
4798fi;
4799ac_prog=ld
4800if 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
4803echo $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'` ;;
4808  *)
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"
4821      ;;
4822  "")
4823    # If it fails, then pretend we aren't using GCC.
4824    ac_prog=ld
4825    ;;
4826  *)
4827    # If it is relative, then search for the first ld in PATH.
4828    with_gnu_ld=unknown
4829    ;;
4830  esac
4831elif test "$with_gnu_ld" = yes; then
4832  echo "$as_me:$LINENO: checking for GNU ld" >&5
4833echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4834else
4835  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4836echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4837fi
4838if test "${acl_cv_path_LD+set}" = set; then
4839  echo $ECHO_N "(cached) $ECHO_C" >&6
4840else
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
4854      fi
4855    fi
4856  done
4857  IFS="$ac_save_ifs"
4858else
4859  acl_cv_path_LD="$LD" # Let the user override the test with a path.
4860fi
4861fi
4862
4863LD="$acl_cv_path_LD"
4864if test -n "$LD"; then
4865  echo "$as_me:$LINENO: result: $LD" >&5
4866echo "${ECHO_T}$LD" >&6
4867else
4868  echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
4870fi
4871test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4872echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4873   { (exit 1); exit 1; }; }
4874echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4875echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4876if test "${acl_cv_prog_gnu_ld+set}" = set; then
4877  echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4880if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4881  acl_cv_prog_gnu_ld=yes
4882else
4883  acl_cv_prog_gnu_ld=no
4884fi
4885fi
4886echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4887echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4888with_gnu_ld=$acl_cv_prog_gnu_ld
4889
4890
4891
4892                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4893echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4894if test "${acl_cv_rpath+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897
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
4903
4904fi
4905echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4906echo "${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"
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4929echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4930    # Check whether --enable-nls or --disable-nls was given.
4931if test "${enable_nls+set}" = set; then
4932  enableval="$enable_nls"
4933  USE_NLS=$enableval
4934else
4935  USE_NLS=yes
4936fi;
4937  echo "$as_me:$LINENO: result: $USE_NLS" >&5
4938echo "${ECHO_T}$USE_NLS" >&6
4939
4940
4941
4942  LIBINTL=
4943  LTLIBINTL=
4944  POSUB=
4945
4946    if test "$USE_NLS" = "yes"; then
4947    gt_use_preinstalled_gnugettext=no
4948
4949
4950
4951
4952
4953
4954        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4955echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4956if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  cat >conftest.$ac_ext <<_ACEOF
4960#line $LINENO "configure"
4961#include "confdefs.h"
4962#include <libintl.h>
4963extern int _nl_msg_cat_cntr;
4964extern 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
4971int
4972main ()
4973{
4974bindtextdomain ("", "");
4975return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4976  ;
4977  return 0;
4978}
4979_ACEOF
4980rm -f conftest.$ac_objext conftest$ac_exeext
4981if { (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
4993else
4994  echo "$as_me: failed program was:" >&5
4995cat conftest.$ac_ext >&5
4996gt_cv_func_gnugettext1_libc=no
4997fi
4998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4999fi
5000echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5001echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5002
5003        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5004
5005
5006
5007
5008
5009
5010
5011
5012    use_additional=yes
5013
5014  acl_save_prefix="$prefix"
5015  prefix="$acl_final_prefix"
5016  acl_save_exec_prefix="$exec_prefix"
5017  exec_prefix="$acl_final_exec_prefix"
5018
5019    eval additional_includedir=\"$includedir\"
5020    eval additional_libdir=\"$libdir\"
5021
5022  exec_prefix="$acl_save_exec_prefix"
5023  prefix="$acl_save_prefix"
5024
5025
5026# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5027if test "${with_libiconv_prefix+set}" = set; then
5028  withval="$with_libiconv_prefix"
5029
5030    if test "X$withval" = "Xno"; then
5031      use_additional=no
5032    else
5033      if test "X$withval" = "X"; then
5034
5035  acl_save_prefix="$prefix"
5036  prefix="$acl_final_prefix"
5037  acl_save_exec_prefix="$exec_prefix"
5038  exec_prefix="$acl_final_exec_prefix"
5039
5040          eval additional_includedir=\"$includedir\"
5041          eval additional_libdir=\"$libdir\"
5042
5043  exec_prefix="$acl_save_exec_prefix"
5044  prefix="$acl_save_prefix"
5045
5046      else
5047        additional_includedir="$withval/include"
5048        additional_libdir="$withval/lib"
5049      fi
5050    fi
5051
5052fi;
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
5069        fi
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
5082                                    :
5083          fi
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"
5095              fi
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"
5102                fi
5103              fi
5104            fi
5105          fi
5106          if test "X$found_dir" = "X"; then
5107            for x in $LDFLAGS $LTLIBICONV; do
5108
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"
5116
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"
5125                    fi
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"
5132                      fi
5133                    fi
5134                  fi
5135                  ;;
5136              esac
5137              if test "X$found_dir" != "X"; then
5138                break
5139              fi
5140            done
5141          fi
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
5153                  fi
5154                done
5155                if test -z "$haveit"; then
5156                  ltrpathdirs="$ltrpathdirs $found_dir"
5157                fi
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
5168                      fi
5169                    done
5170                    if test -z "$haveit"; then
5171                      rpathdirs="$rpathdirs $found_dir"
5172                    fi
5173                  else
5174                                                                                haveit=
5175                    for x in $LDFLAGS $LIBICONV; do
5176
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"
5184
5185                      if test "X$x" = "X-L$found_dir"; then
5186                        haveit=yes
5187                        break
5188                      fi
5189                    done
5190                    if test -z "$haveit"; then
5191                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5192                    fi
5193                    if test "$hardcode_minus_L" != no; then
5194                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5195                    else
5196                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5197                    fi
5198                  fi
5199                fi
5200              fi
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"
5206              fi
5207            fi
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"
5213                ;;
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
5223                  fi
5224                fi
5225                if test -z "$haveit"; then
5226                  for x in $CPPFLAGS $INCICONV; do
5227
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"
5235
5236                    if test "X$x" = "X-I$additional_includedir"; then
5237                      haveit=yes
5238                      break
5239                    fi
5240                  done
5241                  if test -z "$haveit"; then
5242                    if test -d "$additional_includedir"; then
5243                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5244                    fi
5245                  fi
5246                fi
5247              fi
5248            fi
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
5267                        fi
5268                      fi
5269                      if test -z "$haveit"; then
5270                        haveit=
5271                        for x in $LDFLAGS $LIBICONV; do
5272
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"
5280
5281                          if test "X$x" = "X-L$additional_libdir"; then
5282                            haveit=yes
5283                            break
5284                          fi
5285                        done
5286                        if test -z "$haveit"; then
5287                          if test -d "$additional_libdir"; then
5288                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5289                          fi
5290                        fi
5291                        haveit=
5292                        for x in $LDFLAGS $LTLIBICONV; do
5293
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"
5301
5302                          if test "X$x" = "X-L$additional_libdir"; then
5303                            haveit=yes
5304                            break
5305                          fi
5306                        done
5307                        if test -z "$haveit"; then
5308                          if test -d "$additional_libdir"; then
5309                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5310                          fi
5311                        fi
5312                      fi
5313                    fi
5314                    ;;
5315                  -l*)
5316                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5317                    ;;
5318                  *.la)
5319                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5320                    ;;
5321                  *)
5322                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5323                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5324                    ;;
5325                esac
5326              done
5327            fi
5328          else
5329                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5330            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5331          fi
5332        fi
5333      fi
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
5355    fi
5356  fi
5357  if test "X$ltrpathdirs" != "X"; then
5358            for found_dir in $ltrpathdirs; do
5359      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5360    done
5361  fi
5362
5363
5364          am_save_CPPFLAGS="$CPPFLAGS"
5365
5366  for element in $INCICONV; do
5367    haveit=
5368    for x in $CPPFLAGS; do
5369
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"
5377
5378      if test "X$x" = "X$element"; then
5379        haveit=yes
5380        break
5381      fi
5382    done
5383    if test -z "$haveit"; then
5384      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5385    fi
5386  done
5387
5388
5389  echo "$as_me:$LINENO: checking for iconv" >&5
5390echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5391if test "${am_cv_func_iconv+set}" = set; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394
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
5408int
5409main ()
5410{
5411iconv_t cd = iconv_open("","");
5412       iconv(cd,NULL,NULL,NULL,NULL);
5413       iconv_close(cd);
5414  ;
5415  return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext conftest$ac_exeext
5419if { (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
5431else
5432  echo "$as_me: failed program was:" >&5
5433cat conftest.$ac_ext >&5
5434fi
5435rm -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
5450int
5451main ()
5452{
5453iconv_t cd = iconv_open("","");
5454         iconv(cd,NULL,NULL,NULL,NULL);
5455         iconv_close(cd);
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext conftest$ac_exeext
5461if { (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
5474else
5475  echo "$as_me: failed program was:" >&5
5476cat conftest.$ac_ext >&5
5477fi
5478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479      LIBS="$am_save_LIBS"
5480    fi
5481
5482fi
5483echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
5484echo "${ECHO_T}$am_cv_func_iconv" >&6
5485  if test "$am_cv_func_iconv" = yes; then
5486
5487cat >>confdefs.h <<\_ACEOF
5488#define HAVE_ICONV 1
5489_ACEOF
5490
5491  fi
5492  if test "$am_cv_lib_iconv" = yes; then
5493    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5494echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5495    echo "$as_me:$LINENO: result: $LIBICONV" >&5
5496echo "${ECHO_T}$LIBICONV" >&6
5497  else
5498            CPPFLAGS="$am_save_CPPFLAGS"
5499    LIBICONV=
5500    LTLIBICONV=
5501  fi
5502
5503
5504
5505
5506
5507
5508    use_additional=yes
5509
5510  acl_save_prefix="$prefix"
5511  prefix="$acl_final_prefix"
5512  acl_save_exec_prefix="$exec_prefix"
5513  exec_prefix="$acl_final_exec_prefix"
5514
5515    eval additional_includedir=\"$includedir\"
5516    eval additional_libdir=\"$libdir\"
5517
5518  exec_prefix="$acl_save_exec_prefix"
5519  prefix="$acl_save_prefix"
5520
5521
5522# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5523if test "${with_libintl_prefix+set}" = set; then
5524  withval="$with_libintl_prefix"
5525
5526    if test "X$withval" = "Xno"; then
5527      use_additional=no
5528    else
5529      if test "X$withval" = "X"; then
5530
5531  acl_save_prefix="$prefix"
5532  prefix="$acl_final_prefix"
5533  acl_save_exec_prefix="$exec_prefix"
5534  exec_prefix="$acl_final_exec_prefix"
5535
5536          eval additional_includedir=\"$includedir\"
5537          eval additional_libdir=\"$libdir\"
5538
5539  exec_prefix="$acl_save_exec_prefix"
5540  prefix="$acl_save_prefix"
5541
5542      else
5543        additional_includedir="$withval/include"
5544        additional_libdir="$withval/lib"
5545      fi
5546    fi
5547
5548fi;
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
5565        fi
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
5578                                    :
5579          fi
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"
5591              fi
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"
5598                fi
5599              fi
5600            fi
5601          fi
5602          if test "X$found_dir" = "X"; then
5603            for x in $LDFLAGS $LTLIBINTL; do
5604
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"
5612
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"
5621                    fi
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"
5628                      fi
5629                    fi
5630                  fi
5631                  ;;
5632              esac
5633              if test "X$found_dir" != "X"; then
5634                break
5635              fi
5636            done
5637          fi
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
5649                  fi
5650                done
5651                if test -z "$haveit"; then
5652                  ltrpathdirs="$ltrpathdirs $found_dir"
5653                fi
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
5664                      fi
5665                    done
5666                    if test -z "$haveit"; then
5667                      rpathdirs="$rpathdirs $found_dir"
5668                    fi
5669                  else
5670                                                                                haveit=
5671                    for x in $LDFLAGS $LIBINTL; do
5672
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"
5680
5681                      if test "X$x" = "X-L$found_dir"; then
5682                        haveit=yes
5683                        break
5684                      fi
5685                    done
5686                    if test -z "$haveit"; then
5687                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5688                    fi
5689                    if test "$hardcode_minus_L" != no; then
5690                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5691                    else
5692                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5693                    fi
5694                  fi
5695                fi
5696              fi
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"
5702              fi
5703            fi
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"
5709                ;;
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
5719                  fi
5720                fi
5721                if test -z "$haveit"; then
5722                  for x in $CPPFLAGS $INCINTL; do
5723
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"
5731
5732                    if test "X$x" = "X-I$additional_includedir"; then
5733                      haveit=yes
5734                      break
5735                    fi
5736                  done
5737                  if test -z "$haveit"; then
5738                    if test -d "$additional_includedir"; then
5739                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5740                    fi
5741                  fi
5742                fi
5743              fi
5744            fi
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
5763                        fi
5764                      fi
5765                      if test -z "$haveit"; then
5766                        haveit=
5767                        for x in $LDFLAGS $LIBINTL; do
5768
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"
5776
5777                          if test "X$x" = "X-L$additional_libdir"; then
5778                            haveit=yes
5779                            break
5780                          fi
5781                        done
5782                        if test -z "$haveit"; then
5783                          if test -d "$additional_libdir"; then
5784                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5785                          fi
5786                        fi
5787                        haveit=
5788                        for x in $LDFLAGS $LTLIBINTL; do
5789
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"
5797
5798                          if test "X$x" = "X-L$additional_libdir"; then
5799                            haveit=yes
5800                            break
5801                          fi
5802                        done
5803                        if test -z "$haveit"; then
5804                          if test -d "$additional_libdir"; then
5805                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5806                          fi
5807                        fi
5808                      fi
5809                    fi
5810                    ;;
5811                  -l*)
5812                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5813                    ;;
5814                  *.la)
5815                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5816                    ;;
5817                  *)
5818                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5819                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5820                    ;;
5821                esac
5822              done
5823            fi
5824          else
5825                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5826            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5827          fi
5828        fi
5829      fi
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
5851    fi
5852  fi
5853  if test "X$ltrpathdirs" != "X"; then
5854            for found_dir in $ltrpathdirs; do
5855      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5856    done
5857  fi
5858
5859          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5860echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5861if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
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>
5872extern int _nl_msg_cat_cntr;
5873extern int *_nl_domain_bindings;
5874extern
5875#ifdef __cplusplus
5876"C"
5877#endif
5878const 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
5885int
5886main ()
5887{
5888bindtextdomain ("", "");
5889return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
5890  ;
5891  return 0;
5892}
5893_ACEOF
5894rm -f conftest.$ac_objext conftest$ac_exeext
5895if { (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
5907else
5908  echo "$as_me: failed program was:" >&5
5909cat conftest.$ac_ext >&5
5910gt_cv_func_gnugettext1_libintl=no
5911fi
5912rm -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>
5919extern int _nl_msg_cat_cntr;
5920extern int *_nl_domain_bindings;
5921extern
5922#ifdef __cplusplus
5923"C"
5924#endif
5925const 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
5932int
5933main ()
5934{
5935bindtextdomain ("", "");
5936return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings + *_nl_expand_alias (0)
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941rm -f conftest.$ac_objext conftest$ac_exeext
5942if { (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
5956
5957else
5958  echo "$as_me: failed program was:" >&5
5959cat conftest.$ac_ext >&5
5960fi
5961rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5962            fi
5963            CPPFLAGS="$gt_save_CPPFLAGS"
5964            LIBS="$gt_save_LIBS"
5965fi
5966echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
5967echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5968        fi
5969
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=
5978        fi
5979
5980
5981
5982    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5983       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5984
5985cat >>confdefs.h <<\_ACEOF
5986#define ENABLE_NLS 1
5987_ACEOF
5988
5989    else
5990      USE_NLS=no
5991    fi
5992  fi
5993
5994  if test "$USE_NLS" = "yes"; then
5995
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
5999echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6000        echo "$as_me:$LINENO: result: $LIBINTL" >&5
6001echo "${ECHO_T}$LIBINTL" >&6
6002
6003  for element in $INCINTL; do
6004    haveit=
6005    for x in $CPPFLAGS; do
6006
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"
6014
6015      if test "X$x" = "X$element"; then
6016        haveit=yes
6017        break
6018      fi
6019    done
6020    if test -z "$haveit"; then
6021      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6022    fi
6023  done
6024
6025      fi
6026
6027
6028cat >>confdefs.h <<\_ACEOF
6029#define HAVE_GETTEXT 1
6030_ACEOF
6031
6032
6033cat >>confdefs.h <<\_ACEOF
6034#define HAVE_DCGETTEXT 1
6035_ACEOF
6036
6037    fi
6038
6039        POSUB=po
6040  fi
6041
6042
6043
6044    INTLLIBS="$LIBINTL"
6045
6046
6047
6048
6049
6050
6051XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
6052
6053
6054
6055
6056
6057ac_header_dirent=no
6058for 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`
6060echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6061echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6062if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063  echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065  cat >conftest.$ac_ext <<_ACEOF
6066#line $LINENO "configure"
6067#include "confdefs.h"
6068#include <sys/types.h>
6069#include <$ac_hdr>
6070
6071#ifdef F77_DUMMY_MAIN
6072#  ifdef __cplusplus
6073     extern "C"
6074#  endif
6075   int F77_DUMMY_MAIN() { return 1; }
6076#endif
6077int
6078main ()
6079{
6080if ((DIR *) 0)
6081return 0;
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext
6087if { (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"
6099else
6100  echo "$as_me: failed program was:" >&5
6101cat conftest.$ac_ext >&5
6102eval "$as_ac_Header=no"
6103fi
6104rm -f conftest.$ac_objext conftest.$ac_ext
6105fi
6106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6108if 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
6112
6113ac_header_dirent=$ac_hdr; break
6114fi
6115
6116done
6117# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6118if test $ac_header_dirent = dirent.h; then
6119  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6120echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6121if test "${ac_cv_search_opendir+set}" = set; then
6122  echo $ECHO_N "(cached) $ECHO_C" >&6
6123else
6124  ac_func_search_save_LIBS=$LIBS
6125ac_cv_search_opendir=no
6126cat >conftest.$ac_ext <<_ACEOF
6127#line $LINENO "configure"
6128#include "confdefs.h"
6129
6130/* Override any gcc2 internal prototype to avoid an error.  */
6131#ifdef __cplusplus
6132extern "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.  */
6136char opendir ();
6137#ifdef F77_DUMMY_MAIN
6138#  ifdef __cplusplus
6139     extern "C"
6140#  endif
6141   int F77_DUMMY_MAIN() { return 1; }
6142#endif
6143int
6144main ()
6145{
6146opendir ();
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext conftest$ac_exeext
6152if { (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"
6164else
6165  echo "$as_me: failed program was:" >&5
6166cat conftest.$ac_ext >&5
6167fi
6168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169if 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"
6175
6176/* Override any gcc2 internal prototype to avoid an error.  */
6177#ifdef __cplusplus
6178extern "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.  */
6182char opendir ();
6183#ifdef F77_DUMMY_MAIN
6184#  ifdef __cplusplus
6185     extern "C"
6186#  endif
6187   int F77_DUMMY_MAIN() { return 1; }
6188#endif
6189int
6190main ()
6191{
6192opendir ();
6193  ;
6194  return 0;
6195}
6196_ACEOF
6197rm -f conftest.$ac_objext conftest$ac_exeext
6198if { (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"
6210break
6211else
6212  echo "$as_me: failed program was:" >&5
6213cat conftest.$ac_ext >&5
6214fi
6215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216  done
6217fi
6218LIBS=$ac_func_search_save_LIBS
6219fi
6220echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6221echo "${ECHO_T}$ac_cv_search_opendir" >&6
6222if test "$ac_cv_search_opendir" != no; then
6223  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6224
6225fi
6226
6227else
6228  echo "$as_me:$LINENO: checking for library containing opendir" >&5
6229echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6230if test "${ac_cv_search_opendir+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  ac_func_search_save_LIBS=$LIBS
6234ac_cv_search_opendir=no
6235cat >conftest.$ac_ext <<_ACEOF
6236#line $LINENO "configure"
6237#include "confdefs.h"
6238
6239/* Override any gcc2 internal prototype to avoid an error.  */
6240#ifdef __cplusplus
6241extern "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.  */
6245char opendir ();
6246#ifdef F77_DUMMY_MAIN
6247#  ifdef __cplusplus
6248     extern "C"
6249#  endif
6250   int F77_DUMMY_MAIN() { return 1; }
6251#endif
6252int
6253main ()
6254{
6255opendir ();
6256  ;
6257  return 0;
6258}
6259_ACEOF
6260rm -f conftest.$ac_objext conftest$ac_exeext
6261if { (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"
6273else
6274  echo "$as_me: failed program was:" >&5
6275cat conftest.$ac_ext >&5
6276fi
6277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6278if 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"
6284
6285/* Override any gcc2 internal prototype to avoid an error.  */
6286#ifdef __cplusplus
6287extern "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.  */
6291char opendir ();
6292#ifdef F77_DUMMY_MAIN
6293#  ifdef __cplusplus
6294     extern "C"
6295#  endif
6296   int F77_DUMMY_MAIN() { return 1; }
6297#endif
6298int
6299main ()
6300{
6301opendir ();
6302  ;
6303  return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext conftest$ac_exeext
6307if { (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"
6319break
6320else
6321  echo "$as_me: failed program was:" >&5
6322cat conftest.$ac_ext >&5
6323fi
6324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325  done
6326fi
6327LIBS=$ac_func_search_save_LIBS
6328fi
6329echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6330echo "${ECHO_T}$ac_cv_search_opendir" >&6
6331if test "$ac_cv_search_opendir" != no; then
6332  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6333
6334fi
6335
6336fi
6337
6338echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6339echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6340if test "${ac_cv_header_stat_broken+set}" = set; then
6341  echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343  cat >conftest.$ac_ext <<_ACEOF
6344#line $LINENO "configure"
6345#include "confdefs.h"
6346#include <sys/types.h>
6347#include <sys/stat.h>
6348
6349#if defined(S_ISBLK) && defined(S_IFDIR)
6350# if S_ISBLK (S_IFDIR)
6351You lose.
6352# endif
6353#endif
6354
6355#if defined(S_ISBLK) && defined(S_IFCHR)
6356# if S_ISBLK (S_IFCHR)
6357You lose.
6358# endif
6359#endif
6360
6361#if defined(S_ISLNK) && defined(S_IFREG)
6362# if S_ISLNK (S_IFREG)
6363You lose.
6364# endif
6365#endif
6366
6367#if defined(S_ISSOCK) && defined(S_IFREG)
6368# if S_ISSOCK (S_IFREG)
6369You lose.
6370# endif
6371#endif
6372
6373_ACEOF
6374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375  egrep "You lose" >/dev/null 2>&1; then
6376  ac_cv_header_stat_broken=yes
6377else
6378  ac_cv_header_stat_broken=no
6379fi
6380rm -f conftest*
6381
6382fi
6383echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6384echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6385if test $ac_cv_header_stat_broken = yes; then
6386
6387cat >>confdefs.h <<\_ACEOF
6388#define STAT_MACROS_BROKEN 1
6389_ACEOF
6390
6391fi
6392
6393echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6394echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6395if test "${ac_cv_header_sys_wait_h+set}" = set; then
6396  echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
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
6409
6410#ifdef F77_DUMMY_MAIN
6411#  ifdef __cplusplus
6412     extern "C"
6413#  endif
6414   int F77_DUMMY_MAIN() { return 1; }
6415#endif
6416int
6417main ()
6418{
6419  int s;
6420  wait (&s);
6421  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext
6427if { (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
6439else
6440  echo "$as_me: failed program was:" >&5
6441cat conftest.$ac_ext >&5
6442ac_cv_header_sys_wait_h=no
6443fi
6444rm -f conftest.$ac_objext conftest.$ac_ext
6445fi
6446echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6447echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6448if test $ac_cv_header_sys_wait_h = yes; then
6449
6450cat >>confdefs.h <<\_ACEOF
6451#define HAVE_SYS_WAIT_H 1
6452_ACEOF
6453
6454fi
6455
6456echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6457echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6458if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
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
6481int
6482main ()
6483{
6484struct stat s; s.st_mtim.ST_MTIM_NSEC;
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489rm -f conftest.$ac_objext
6490if { (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
6502else
6503  echo "$as_me: failed program was:" >&5
6504cat conftest.$ac_ext >&5
6505fi
6506rm -f conftest.$ac_objext conftest.$ac_ext
6507    done
6508    CPPFLAGS="$ac_save_CPPFLAGS"
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6511echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6512
6513  if test $ac_cv_struct_st_mtim_nsec != no; then
6514
6515cat >>confdefs.h <<_ACEOF
6516#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6517_ACEOF
6518
6519  fi
6520
6521
6522echo "$as_me:$LINENO: checking for pid_t" >&5
6523echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6524if test "${ac_cv_type_pid_t+set}" = set; then
6525  echo $ECHO_N "(cached) $ECHO_C" >&6
6526else
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
6537int
6538main ()
6539{
6540if ((pid_t *) 0)
6541  return 0;
6542if (sizeof (pid_t))
6543  return 0;
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548rm -f conftest.$ac_objext
6549if { (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
6561else
6562  echo "$as_me: failed program was:" >&5
6563cat conftest.$ac_ext >&5
6564ac_cv_type_pid_t=no
6565fi
6566rm -f conftest.$ac_objext conftest.$ac_ext
6567fi
6568echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6569echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6570if test $ac_cv_type_pid_t = yes; then
6571  :
6572else
6573
6574cat >>confdefs.h <<_ACEOF
6575#define pid_t int
6576_ACEOF
6577
6578fi
6579
6580echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6581echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6582if test "${ac_cv_type_signal+set}" = set; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
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
6594extern "C" void (*signal (int, void (*)(int)))(int);
6595#else
6596void (*signal ()) ();
6597#endif
6598
6599#ifdef F77_DUMMY_MAIN
6600#  ifdef __cplusplus
6601     extern "C"
6602#  endif
6603   int F77_DUMMY_MAIN() { return 1; }
6604#endif
6605int
6606main ()
6607{
6608int i;
6609  ;
6610  return 0;
6611}
6612_ACEOF
6613rm -f conftest.$ac_objext
6614if { (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
6626else
6627  echo "$as_me: failed program was:" >&5
6628cat conftest.$ac_ext >&5
6629ac_cv_type_signal=int
6630fi
6631rm -f conftest.$ac_objext conftest.$ac_ext
6632fi
6633echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6634echo "${ECHO_T}$ac_cv_type_signal" >&6
6635
6636cat >>confdefs.h <<_ACEOF
6637#define RETSIGTYPE $ac_cv_type_signal
6638_ACEOF
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650for ac_func in diraccess dup2 gettimeofday \
6651  sigaction sigprocmask strchr strerror tmpnam
6652do
6653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654echo "$as_me:$LINENO: checking for $ac_func" >&5
6655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6656if eval "test \"\${$as_ac_var+set}\" = set"; then
6657  echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
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
6667extern "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.  */
6671char $ac_func ();
6672char (*f) ();
6673
6674#ifdef F77_DUMMY_MAIN
6675#  ifdef __cplusplus
6676     extern "C"
6677#  endif
6678   int F77_DUMMY_MAIN() { return 1; }
6679#endif
6680int
6681main ()
6682{
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)
6687choke me
6688#else
6689f = $ac_func;
6690#endif
6691
6692  ;
6693  return 0;
6694}
6695_ACEOF
6696rm -f conftest.$ac_objext conftest$ac_exeext
6697if { (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"
6709else
6710  echo "$as_me: failed program was:" >&5
6711cat conftest.$ac_ext >&5
6712eval "$as_ac_var=no"
6713fi
6714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6715fi
6716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6718if 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
6722
6723fi
6724done
6725
6726
6727
6728
6729
6730for ac_func in memchr mkstemp strcasecmp waitpid
6731do
6732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6733echo "$as_me:$LINENO: checking for $ac_func" >&5
6734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6735if eval "test \"\${$as_ac_var+set}\" = set"; then
6736  echo $ECHO_N "(cached) $ECHO_C" >&6
6737else
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
6746extern "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.  */
6750char $ac_func ();
6751char (*f) ();
6752
6753#ifdef F77_DUMMY_MAIN
6754#  ifdef __cplusplus
6755     extern "C"
6756#  endif
6757   int F77_DUMMY_MAIN() { return 1; }
6758#endif
6759int
6760main ()
6761{
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)
6766choke me
6767#else
6768f = $ac_func;
6769#endif
6770
6771  ;
6772  return 0;
6773}
6774_ACEOF
6775rm -f conftest.$ac_objext conftest$ac_exeext
6776if { (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"
6788else
6789  echo "$as_me: failed program was:" >&5
6790cat conftest.$ac_ext >&5
6791eval "$as_ac_var=no"
6792fi
6793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6794fi
6795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6797if 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
6801
6802else
6803  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6804fi
6805done
6806
6807
6808if test $ac_cv_func_mkstemp != yes; then
6809  LIBOBJS="$LIBOBJS tempname.$ac_objext"
6810fi
6811echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6812echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
6813if test "${ac_cv_func_closedir_void+set}" = set; then
6814  echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816  if test "$cross_compiling" = yes; then
6817  ac_cv_func_closedir_void=yes
6818else
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
6825int closedir ();
6826#endif
6827
6828#ifdef F77_DUMMY_MAIN
6829#  ifdef __cplusplus
6830     extern "C"
6831#  endif
6832   int F77_DUMMY_MAIN() { return 1; }
6833#endif
6834int
6835main ()
6836{
6837exit (closedir (opendir (".")) != 0);
6838  ;
6839  return 0;
6840}
6841_ACEOF
6842rm -f conftest$ac_exeext
6843if { (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
6854else
6855  echo "$as_me: program exited with status $ac_status" >&5
6856echo "$as_me: failed program was:" >&5
6857cat conftest.$ac_ext >&5
6858( exit $ac_status )
6859ac_cv_func_closedir_void=yes
6860fi
6861rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6862fi
6863fi
6864echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6865echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
6866if test $ac_cv_func_closedir_void = yes; then
6867
6868cat >>confdefs.h <<\_ACEOF
6869#define CLOSEDIR_VOID 1
6870_ACEOF
6871
6872fi
6873
6874
6875
6876for ac_header in unistd.h vfork.h
6877do
6878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879if eval "test \"\${$as_ac_Header+set}\" = set"; then
6880  echo "$as_me:$LINENO: checking for $ac_header" >&5
6881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6882if eval "test \"\${$as_ac_Header+set}\" = set"; then
6883  echo $ECHO_N "(cached) $ECHO_C" >&6
6884fi
6885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6887else
6888  # Is the header compilable?
6889echo "$as_me:$LINENO: checking $ac_header usability" >&5
6890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6891cat >conftest.$ac_ext <<_ACEOF
6892#line $LINENO "configure"
6893#include "confdefs.h"
6894$ac_includes_default
6895#include <$ac_header>
6896_ACEOF
6897rm -f conftest.$ac_objext
6898if { (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
6910else
6911  echo "$as_me: failed program was:" >&5
6912cat conftest.$ac_ext >&5
6913ac_header_compiler=no
6914fi
6915rm -f conftest.$ac_objext conftest.$ac_ext
6916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6917echo "${ECHO_T}$ac_header_compiler" >&6
6918
6919# Is the header present?
6920echo "$as_me:$LINENO: checking $ac_header presence" >&5
6921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6922cat >conftest.$ac_ext <<_ACEOF
6923#line $LINENO "configure"
6924#include "confdefs.h"
6925#include <$ac_header>
6926_ACEOF
6927if { (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=
6939  fi
6940else
6941  ac_cpp_err=yes
6942fi
6943if test -z "$ac_cpp_err"; then
6944  ac_header_preproc=yes
6945else
6946  echo "$as_me: failed program was:" >&5
6947  cat conftest.$ac_ext >&5
6948  ac_header_preproc=no
6949fi
6950rm -f conftest.err conftest.$ac_ext
6951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6952echo "${ECHO_T}$ac_header_preproc" >&6
6953
6954# So?  What about this header?
6955case $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
6958echo "$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
6960echo "$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
6963echo "$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
6965echo "$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
6967echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6968esac
6969echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974  eval "$as_ac_Header=$ac_header_preproc"
6975fi
6976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6978
6979fi
6980if 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
6984
6985fi
6986
6987done
6988
6989
6990
6991for ac_func in fork vfork
6992do
6993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6994echo "$as_me:$LINENO: checking for $ac_func" >&5
6995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6996if eval "test \"\${$as_ac_var+set}\" = set"; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
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
7007extern "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.  */
7011char $ac_func ();
7012char (*f) ();
7013
7014#ifdef F77_DUMMY_MAIN
7015#  ifdef __cplusplus
7016     extern "C"
7017#  endif
7018   int F77_DUMMY_MAIN() { return 1; }
7019#endif
7020int
7021main ()
7022{
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)
7027choke me
7028#else
7029f = $ac_func;
7030#endif
7031
7032  ;
7033  return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext conftest$ac_exeext
7037if { (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"
7049else
7050  echo "$as_me: failed program was:" >&5
7051cat conftest.$ac_ext >&5
7052eval "$as_ac_var=no"
7053fi
7054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7055fi
7056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7058if 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
7062
7063fi
7064done
7065
7066ac_cv_func_fork_works=$ac_cv_func_fork
7067if test "x$ac_cv_func_fork" = xyes; then
7068  echo "$as_me:$LINENO: checking for working fork" >&5
7069echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7070if test "${ac_cv_func_fork_works+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  if test "$cross_compiling" = yes; then
7074  ac_cv_func_fork_works=cross
7075else
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 ()
7084      {
7085        if (fork() < 0)
7086          exit (1);
7087        exit (0);
7088      }
7089_ACEOF
7090rm -f conftest$ac_exeext
7091if { (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
7102else
7103  echo "$as_me: program exited with status $ac_status" >&5
7104echo "$as_me: failed program was:" >&5
7105cat conftest.$ac_ext >&5
7106( exit $ac_status )
7107ac_cv_func_fork_works=no
7108fi
7109rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7110fi
7111fi
7112echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7113echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7114
7115fi
7116if 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
7121      ;;
7122    *)
7123      ac_cv_func_fork_works=yes
7124      ;;
7125  esac
7126  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7127echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7128fi
7129ac_cv_func_vfork_works=$ac_cv_func_vfork
7130if test "x$ac_cv_func_vfork" = xyes; then
7131  echo "$as_me:$LINENO: checking for working vfork" >&5
7132echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7133if test "${ac_cv_func_vfork_works+set}" = set; then
7134  echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136  if test "$cross_compiling" = yes; then
7137  ac_cv_func_vfork_works=cross
7138else
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.  */
7158static
7159#ifdef __cplusplus
7160sparc_address_test (int arg)
7161# else
7162sparc_address_test (arg) int arg;
7163#endif
7164{
7165  static pid_t child;
7166  if (!child) {
7167    child = vfork ();
7168    if (child < 0) {
7169      perror ("vfork");
7170      _exit(2);
7171    }
7172    if (!child) {
7173      arg = getpid();
7174      write(-1, "", 0);
7175      _exit (arg);
7176    }
7177  }
7178}
7179
7180int
7181main ()
7182{
7183  pid_t parent = getpid ();
7184  pid_t child;
7185
7186  sparc_address_test ();
7187
7188  child = vfork ();
7189
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);
7208
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;
7217
7218    while (wait(&status) != child)
7219      ;
7220    exit(
7221	 /* Was there some problem with vforking?  */
7222	 child < 0
7223
7224	 /* Did the child fail?  (This shouldn't happen.)  */
7225	 || status
7226
7227	 /* Did the vfork/compiler bug occur?  */
7228	 || parent != getpid()
7229
7230	 /* Did the file descriptor bug occur?  */
7231	 || fstat(fileno(stdout), &st) != 0
7232	 );
7233  }
7234}
7235_ACEOF
7236rm -f conftest$ac_exeext
7237if { (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
7248else
7249  echo "$as_me: program exited with status $ac_status" >&5
7250echo "$as_me: failed program was:" >&5
7251cat conftest.$ac_ext >&5
7252( exit $ac_status )
7253ac_cv_func_vfork_works=no
7254fi
7255rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256fi
7257fi
7258echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7259echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7260
7261fi;
7262if 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
7265echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7266fi
7267
7268if test "x$ac_cv_func_vfork_works" = xyes; then
7269
7270cat >>confdefs.h <<\_ACEOF
7271#define HAVE_WORKING_VFORK 1
7272_ACEOF
7273
7274else
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define vfork fork
7278_ACEOF
7279
7280fi
7281if test "x$ac_cv_func_fork_works" = xyes; then
7282
7283cat >>confdefs.h <<\_ACEOF
7284#define HAVE_WORKING_FORK 1
7285_ACEOF
7286
7287fi
7288
7289
7290for ac_func in vprintf
7291do
7292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7293echo "$as_me:$LINENO: checking for $ac_func" >&5
7294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7295if eval "test \"\${$as_ac_var+set}\" = set"; then
7296  echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
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
7306extern "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.  */
7310char $ac_func ();
7311char (*f) ();
7312
7313#ifdef F77_DUMMY_MAIN
7314#  ifdef __cplusplus
7315     extern "C"
7316#  endif
7317   int F77_DUMMY_MAIN() { return 1; }
7318#endif
7319int
7320main ()
7321{
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)
7326choke me
7327#else
7328f = $ac_func;
7329#endif
7330
7331  ;
7332  return 0;
7333}
7334_ACEOF
7335rm -f conftest.$ac_objext conftest$ac_exeext
7336if { (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"
7348else
7349  echo "$as_me: failed program was:" >&5
7350cat conftest.$ac_ext >&5
7351eval "$as_ac_var=no"
7352fi
7353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7354fi
7355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7357if 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
7361
7362echo "$as_me:$LINENO: checking for _doprnt" >&5
7363echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7364if test "${ac_cv_func__doprnt+set}" = set; then
7365  echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
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
7375extern "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.  */
7379char _doprnt ();
7380char (*f) ();
7381
7382#ifdef F77_DUMMY_MAIN
7383#  ifdef __cplusplus
7384     extern "C"
7385#  endif
7386   int F77_DUMMY_MAIN() { return 1; }
7387#endif
7388int
7389main ()
7390{
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)
7395choke me
7396#else
7397f = _doprnt;
7398#endif
7399
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404rm -f conftest.$ac_objext conftest$ac_exeext
7405if { (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
7417else
7418  echo "$as_me: failed program was:" >&5
7419cat conftest.$ac_ext >&5
7420ac_cv_func__doprnt=no
7421fi
7422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7423fi
7424echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7425echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7426if test $ac_cv_func__doprnt = yes; then
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define HAVE_DOPRNT 1
7430_ACEOF
7431
7432fi
7433
7434fi
7435done
7436
7437
7438echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
7439echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
7440if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
7441  echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
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
7453int
7454main ()
7455{
7456#ifndef clearerr_unlocked
7457  char *p = (char *) clearerr_unlocked;
7458#endif
7459
7460  ;
7461  return 0;
7462}
7463_ACEOF
7464rm -f conftest.$ac_objext
7465if { (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
7477else
7478  echo "$as_me: failed program was:" >&5
7479cat conftest.$ac_ext >&5
7480ac_cv_have_decl_clearerr_unlocked=no
7481fi
7482rm -f conftest.$ac_objext conftest.$ac_ext
7483fi
7484echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
7485echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
7486if test $ac_cv_have_decl_clearerr_unlocked = yes; then
7487
7488cat >>confdefs.h <<_ACEOF
7489#define HAVE_DECL_CLEARERR_UNLOCKED 1
7490_ACEOF
7491
7492
7493else
7494  cat >>confdefs.h <<_ACEOF
7495#define HAVE_DECL_CLEARERR_UNLOCKED 0
7496_ACEOF
7497
7498
7499fi
7500echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
7501echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
7502if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
7503  echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
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
7515int
7516main ()
7517{
7518#ifndef feof_unlocked
7519  char *p = (char *) feof_unlocked;
7520#endif
7521
7522  ;
7523  return 0;
7524}
7525_ACEOF
7526rm -f conftest.$ac_objext
7527if { (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
7539else
7540  echo "$as_me: failed program was:" >&5
7541cat conftest.$ac_ext >&5
7542ac_cv_have_decl_feof_unlocked=no
7543fi
7544rm -f conftest.$ac_objext conftest.$ac_ext
7545fi
7546echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
7547echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
7548if test $ac_cv_have_decl_feof_unlocked = yes; then
7549
7550cat >>confdefs.h <<_ACEOF
7551#define HAVE_DECL_FEOF_UNLOCKED 1
7552_ACEOF
7553
7554
7555else
7556  cat >>confdefs.h <<_ACEOF
7557#define HAVE_DECL_FEOF_UNLOCKED 0
7558_ACEOF
7559
7560
7561fi
7562echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
7563echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
7564if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
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
7577int
7578main ()
7579{
7580#ifndef ferror_unlocked
7581  char *p = (char *) ferror_unlocked;
7582#endif
7583
7584  ;
7585  return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext
7589if { (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
7601else
7602  echo "$as_me: failed program was:" >&5
7603cat conftest.$ac_ext >&5
7604ac_cv_have_decl_ferror_unlocked=no
7605fi
7606rm -f conftest.$ac_objext conftest.$ac_ext
7607fi
7608echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
7609echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
7610if test $ac_cv_have_decl_ferror_unlocked = yes; then
7611
7612cat >>confdefs.h <<_ACEOF
7613#define HAVE_DECL_FERROR_UNLOCKED 1
7614_ACEOF
7615
7616
7617else
7618  cat >>confdefs.h <<_ACEOF
7619#define HAVE_DECL_FERROR_UNLOCKED 0
7620_ACEOF
7621
7622
7623fi
7624echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
7625echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
7626if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
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
7639int
7640main ()
7641{
7642#ifndef fflush_unlocked
7643  char *p = (char *) fflush_unlocked;
7644#endif
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (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
7663else
7664  echo "$as_me: failed program was:" >&5
7665cat conftest.$ac_ext >&5
7666ac_cv_have_decl_fflush_unlocked=no
7667fi
7668rm -f conftest.$ac_objext conftest.$ac_ext
7669fi
7670echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
7671echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
7672if test $ac_cv_have_decl_fflush_unlocked = yes; then
7673
7674cat >>confdefs.h <<_ACEOF
7675#define HAVE_DECL_FFLUSH_UNLOCKED 1
7676_ACEOF
7677
7678
7679else
7680  cat >>confdefs.h <<_ACEOF
7681#define HAVE_DECL_FFLUSH_UNLOCKED 0
7682_ACEOF
7683
7684
7685fi
7686echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
7687echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
7688if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
7689  echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
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
7701int
7702main ()
7703{
7704#ifndef fgets_unlocked
7705  char *p = (char *) fgets_unlocked;
7706#endif
7707
7708  ;
7709  return 0;
7710}
7711_ACEOF
7712rm -f conftest.$ac_objext
7713if { (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
7725else
7726  echo "$as_me: failed program was:" >&5
7727cat conftest.$ac_ext >&5
7728ac_cv_have_decl_fgets_unlocked=no
7729fi
7730rm -f conftest.$ac_objext conftest.$ac_ext
7731fi
7732echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
7733echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
7734if test $ac_cv_have_decl_fgets_unlocked = yes; then
7735
7736cat >>confdefs.h <<_ACEOF
7737#define HAVE_DECL_FGETS_UNLOCKED 1
7738_ACEOF
7739
7740
7741else
7742  cat >>confdefs.h <<_ACEOF
7743#define HAVE_DECL_FGETS_UNLOCKED 0
7744_ACEOF
7745
7746
7747fi
7748echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
7749echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
7750if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
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
7763int
7764main ()
7765{
7766#ifndef fputc_unlocked
7767  char *p = (char *) fputc_unlocked;
7768#endif
7769
7770  ;
7771  return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext
7775if { (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
7787else
7788  echo "$as_me: failed program was:" >&5
7789cat conftest.$ac_ext >&5
7790ac_cv_have_decl_fputc_unlocked=no
7791fi
7792rm -f conftest.$ac_objext conftest.$ac_ext
7793fi
7794echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
7795echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
7796if test $ac_cv_have_decl_fputc_unlocked = yes; then
7797
7798cat >>confdefs.h <<_ACEOF
7799#define HAVE_DECL_FPUTC_UNLOCKED 1
7800_ACEOF
7801
7802
7803else
7804  cat >>confdefs.h <<_ACEOF
7805#define HAVE_DECL_FPUTC_UNLOCKED 0
7806_ACEOF
7807
7808
7809fi
7810echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
7811echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
7812if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
7813  echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
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
7825int
7826main ()
7827{
7828#ifndef fputs_unlocked
7829  char *p = (char *) fputs_unlocked;
7830#endif
7831
7832  ;
7833  return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext
7837if { (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
7849else
7850  echo "$as_me: failed program was:" >&5
7851cat conftest.$ac_ext >&5
7852ac_cv_have_decl_fputs_unlocked=no
7853fi
7854rm -f conftest.$ac_objext conftest.$ac_ext
7855fi
7856echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
7857echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
7858if test $ac_cv_have_decl_fputs_unlocked = yes; then
7859
7860cat >>confdefs.h <<_ACEOF
7861#define HAVE_DECL_FPUTS_UNLOCKED 1
7862_ACEOF
7863
7864
7865else
7866  cat >>confdefs.h <<_ACEOF
7867#define HAVE_DECL_FPUTS_UNLOCKED 0
7868_ACEOF
7869
7870
7871fi
7872echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
7873echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
7874if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
7875  echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
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
7887int
7888main ()
7889{
7890#ifndef fread_unlocked
7891  char *p = (char *) fread_unlocked;
7892#endif
7893
7894  ;
7895  return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext
7899if { (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
7911else
7912  echo "$as_me: failed program was:" >&5
7913cat conftest.$ac_ext >&5
7914ac_cv_have_decl_fread_unlocked=no
7915fi
7916rm -f conftest.$ac_objext conftest.$ac_ext
7917fi
7918echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
7919echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
7920if test $ac_cv_have_decl_fread_unlocked = yes; then
7921
7922cat >>confdefs.h <<_ACEOF
7923#define HAVE_DECL_FREAD_UNLOCKED 1
7924_ACEOF
7925
7926
7927else
7928  cat >>confdefs.h <<_ACEOF
7929#define HAVE_DECL_FREAD_UNLOCKED 0
7930_ACEOF
7931
7932
7933fi
7934echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
7935echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
7936if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
7937  echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
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
7949int
7950main ()
7951{
7952#ifndef fwrite_unlocked
7953  char *p = (char *) fwrite_unlocked;
7954#endif
7955
7956  ;
7957  return 0;
7958}
7959_ACEOF
7960rm -f conftest.$ac_objext
7961if { (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
7973else
7974  echo "$as_me: failed program was:" >&5
7975cat conftest.$ac_ext >&5
7976ac_cv_have_decl_fwrite_unlocked=no
7977fi
7978rm -f conftest.$ac_objext conftest.$ac_ext
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
7981echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
7982if test $ac_cv_have_decl_fwrite_unlocked = yes; then
7983
7984cat >>confdefs.h <<_ACEOF
7985#define HAVE_DECL_FWRITE_UNLOCKED 1
7986_ACEOF
7987
7988
7989else
7990  cat >>confdefs.h <<_ACEOF
7991#define HAVE_DECL_FWRITE_UNLOCKED 0
7992_ACEOF
7993
7994
7995fi
7996echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
7997echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
7998if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
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
8011int
8012main ()
8013{
8014#ifndef getc_unlocked
8015  char *p = (char *) getc_unlocked;
8016#endif
8017
8018  ;
8019  return 0;
8020}
8021_ACEOF
8022rm -f conftest.$ac_objext
8023if { (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
8035else
8036  echo "$as_me: failed program was:" >&5
8037cat conftest.$ac_ext >&5
8038ac_cv_have_decl_getc_unlocked=no
8039fi
8040rm -f conftest.$ac_objext conftest.$ac_ext
8041fi
8042echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8043echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8044if test $ac_cv_have_decl_getc_unlocked = yes; then
8045
8046cat >>confdefs.h <<_ACEOF
8047#define HAVE_DECL_GETC_UNLOCKED 1
8048_ACEOF
8049
8050
8051else
8052  cat >>confdefs.h <<_ACEOF
8053#define HAVE_DECL_GETC_UNLOCKED 0
8054_ACEOF
8055
8056
8057fi
8058echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
8059echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
8060if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
8061  echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
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
8073int
8074main ()
8075{
8076#ifndef getchar_unlocked
8077  char *p = (char *) getchar_unlocked;
8078#endif
8079
8080  ;
8081  return 0;
8082}
8083_ACEOF
8084rm -f conftest.$ac_objext
8085if { (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
8097else
8098  echo "$as_me: failed program was:" >&5
8099cat conftest.$ac_ext >&5
8100ac_cv_have_decl_getchar_unlocked=no
8101fi
8102rm -f conftest.$ac_objext conftest.$ac_ext
8103fi
8104echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
8105echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
8106if test $ac_cv_have_decl_getchar_unlocked = yes; then
8107
8108cat >>confdefs.h <<_ACEOF
8109#define HAVE_DECL_GETCHAR_UNLOCKED 1
8110_ACEOF
8111
8112
8113else
8114  cat >>confdefs.h <<_ACEOF
8115#define HAVE_DECL_GETCHAR_UNLOCKED 0
8116_ACEOF
8117
8118
8119fi
8120echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
8121echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
8122if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
8123  echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
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
8135int
8136main ()
8137{
8138#ifndef putc_unlocked
8139  char *p = (char *) putc_unlocked;
8140#endif
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext
8147if { (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
8159else
8160  echo "$as_me: failed program was:" >&5
8161cat conftest.$ac_ext >&5
8162ac_cv_have_decl_putc_unlocked=no
8163fi
8164rm -f conftest.$ac_objext conftest.$ac_ext
8165fi
8166echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
8167echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
8168if test $ac_cv_have_decl_putc_unlocked = yes; then
8169
8170cat >>confdefs.h <<_ACEOF
8171#define HAVE_DECL_PUTC_UNLOCKED 1
8172_ACEOF
8173
8174
8175else
8176  cat >>confdefs.h <<_ACEOF
8177#define HAVE_DECL_PUTC_UNLOCKED 0
8178_ACEOF
8179
8180
8181fi
8182echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
8183echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
8184if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
8185  echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
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
8197int
8198main ()
8199{
8200#ifndef putchar_unlocked
8201  char *p = (char *) putchar_unlocked;
8202#endif
8203
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext
8209if { (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
8221else
8222  echo "$as_me: failed program was:" >&5
8223cat conftest.$ac_ext >&5
8224ac_cv_have_decl_putchar_unlocked=no
8225fi
8226rm -f conftest.$ac_objext conftest.$ac_ext
8227fi
8228echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
8229echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
8230if test $ac_cv_have_decl_putchar_unlocked = yes; then
8231
8232cat >>confdefs.h <<_ACEOF
8233#define HAVE_DECL_PUTCHAR_UNLOCKED 1
8234_ACEOF
8235
8236
8237else
8238  cat >>confdefs.h <<_ACEOF
8239#define HAVE_DECL_PUTCHAR_UNLOCKED 0
8240_ACEOF
8241
8242
8243fi
8244
8245
8246echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8247echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8248if test "${ac_cv_header_time+set}" = set; then
8249  echo $ECHO_N "(cached) $ECHO_C" >&6
8250else
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>
8257
8258#ifdef F77_DUMMY_MAIN
8259#  ifdef __cplusplus
8260     extern "C"
8261#  endif
8262   int F77_DUMMY_MAIN() { return 1; }
8263#endif
8264int
8265main ()
8266{
8267if ((struct tm *) 0)
8268return 0;
8269  ;
8270  return 0;
8271}
8272_ACEOF
8273rm -f conftest.$ac_objext
8274if { (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
8286else
8287  echo "$as_me: failed program was:" >&5
8288cat conftest.$ac_ext >&5
8289ac_cv_header_time=no
8290fi
8291rm -f conftest.$ac_objext conftest.$ac_ext
8292fi
8293echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8294echo "${ECHO_T}$ac_cv_header_time" >&6
8295if test $ac_cv_header_time = yes; then
8296
8297cat >>confdefs.h <<\_ACEOF
8298#define TIME_WITH_SYS_TIME 1
8299_ACEOF
8300
8301fi
8302
8303echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8304echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8305if test "${ac_cv_struct_tm+set}" = set; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  cat >conftest.$ac_ext <<_ACEOF
8309#line $LINENO "configure"
8310#include "confdefs.h"
8311#include <sys/types.h>
8312#include <time.h>
8313
8314#ifdef F77_DUMMY_MAIN
8315#  ifdef __cplusplus
8316     extern "C"
8317#  endif
8318   int F77_DUMMY_MAIN() { return 1; }
8319#endif
8320int
8321main ()
8322{
8323struct tm *tp; tp->tm_sec;
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext
8329if { (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
8341else
8342  echo "$as_me: failed program was:" >&5
8343cat conftest.$ac_ext >&5
8344ac_cv_struct_tm=sys/time.h
8345fi
8346rm -f conftest.$ac_objext conftest.$ac_ext
8347fi
8348echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8349echo "${ECHO_T}$ac_cv_struct_tm" >&6
8350if test $ac_cv_struct_tm = sys/time.h; then
8351
8352cat >>confdefs.h <<\_ACEOF
8353#define TM_IN_SYS_TIME 1
8354_ACEOF
8355
8356fi
8357
8358
8359
8360
8361
8362for ac_func in localtime_r strftime
8363do
8364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8365echo "$as_me:$LINENO: checking for $ac_func" >&5
8366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8367if eval "test \"\${$as_ac_var+set}\" = set"; then
8368  echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
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
8378extern "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.  */
8382char $ac_func ();
8383char (*f) ();
8384
8385#ifdef F77_DUMMY_MAIN
8386#  ifdef __cplusplus
8387     extern "C"
8388#  endif
8389   int F77_DUMMY_MAIN() { return 1; }
8390#endif
8391int
8392main ()
8393{
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)
8398choke me
8399#else
8400f = $ac_func;
8401#endif
8402
8403  ;
8404  return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext conftest$ac_exeext
8408if { (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"
8420else
8421  echo "$as_me: failed program was:" >&5
8422cat conftest.$ac_ext >&5
8423eval "$as_ac_var=no"
8424fi
8425rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8426fi
8427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8429if 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
8433
8434fi
8435done
8436
8437
8438
8439for ac_header in limits.h
8440do
8441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8442if eval "test \"\${$as_ac_Header+set}\" = set"; then
8443  echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445if eval "test \"\${$as_ac_Header+set}\" = set"; then
8446  echo $ECHO_N "(cached) $ECHO_C" >&6
8447fi
8448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8450else
8451  # Is the header compilable?
8452echo "$as_me:$LINENO: checking $ac_header usability" >&5
8453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8454cat >conftest.$ac_ext <<_ACEOF
8455#line $LINENO "configure"
8456#include "confdefs.h"
8457$ac_includes_default
8458#include <$ac_header>
8459_ACEOF
8460rm -f conftest.$ac_objext
8461if { (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
8473else
8474  echo "$as_me: failed program was:" >&5
8475cat conftest.$ac_ext >&5
8476ac_header_compiler=no
8477fi
8478rm -f conftest.$ac_objext conftest.$ac_ext
8479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8480echo "${ECHO_T}$ac_header_compiler" >&6
8481
8482# Is the header present?
8483echo "$as_me:$LINENO: checking $ac_header presence" >&5
8484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8485cat >conftest.$ac_ext <<_ACEOF
8486#line $LINENO "configure"
8487#include "confdefs.h"
8488#include <$ac_header>
8489_ACEOF
8490if { (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=
8502  fi
8503else
8504  ac_cpp_err=yes
8505fi
8506if test -z "$ac_cpp_err"; then
8507  ac_header_preproc=yes
8508else
8509  echo "$as_me: failed program was:" >&5
8510  cat conftest.$ac_ext >&5
8511  ac_header_preproc=no
8512fi
8513rm -f conftest.err conftest.$ac_ext
8514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8515echo "${ECHO_T}$ac_header_preproc" >&6
8516
8517# So?  What about this header?
8518case $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
8521echo "$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
8523echo "$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
8526echo "$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
8528echo "$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
8530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8531esac
8532echo "$as_me:$LINENO: checking for $ac_header" >&5
8533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534if eval "test \"\${$as_ac_Header+set}\" = set"; then
8535  echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537  eval "$as_ac_Header=$ac_header_preproc"
8538fi
8539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8541
8542fi
8543if 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
8547
8548fi
8549
8550done
8551
8552
8553
8554
8555
8556
8557for ac_func in bcopy tzset mempcpy memcpy memset
8558do
8559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8560echo "$as_me:$LINENO: checking for $ac_func" >&5
8561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8562if eval "test \"\${$as_ac_var+set}\" = set"; then
8563  echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
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
8573extern "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.  */
8577char $ac_func ();
8578char (*f) ();
8579
8580#ifdef F77_DUMMY_MAIN
8581#  ifdef __cplusplus
8582     extern "C"
8583#  endif
8584   int F77_DUMMY_MAIN() { return 1; }
8585#endif
8586int
8587main ()
8588{
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)
8593choke me
8594#else
8595f = $ac_func;
8596#endif
8597
8598  ;
8599  return 0;
8600}
8601_ACEOF
8602rm -f conftest.$ac_objext conftest$ac_exeext
8603if { (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"
8615else
8616  echo "$as_me: failed program was:" >&5
8617cat conftest.$ac_ext >&5
8618eval "$as_ac_var=no"
8619fi
8620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621fi
8622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8624if 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
8628
8629fi
8630done
8631
8632
8633 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
8634 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8635echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8636if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
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>
8644
8645
8646#ifdef F77_DUMMY_MAIN
8647#  ifdef __cplusplus
8648     extern "C"
8649#  endif
8650   int F77_DUMMY_MAIN() { return 1; }
8651#endif
8652int
8653main ()
8654{
8655static struct tm ac_aggr;
8656if (ac_aggr.tm_zone)
8657return 0;
8658  ;
8659  return 0;
8660}
8661_ACEOF
8662rm -f conftest.$ac_objext
8663if { (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
8675else
8676  echo "$as_me: failed program was:" >&5
8677cat conftest.$ac_ext >&5
8678ac_cv_member_struct_tm_tm_zone=no
8679fi
8680rm -f conftest.$ac_objext conftest.$ac_ext
8681fi
8682echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8683echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8684if test $ac_cv_member_struct_tm_tm_zone = yes; then
8685
8686cat >>confdefs.h <<_ACEOF
8687#define HAVE_STRUCT_TM_TM_ZONE 1
8688_ACEOF
8689
8690
8691fi
8692
8693if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8694
8695cat >>confdefs.h <<\_ACEOF
8696#define HAVE_TM_ZONE 1
8697_ACEOF
8698
8699else
8700  echo "$as_me:$LINENO: checking for tzname" >&5
8701echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8702if test "${ac_cv_var_tzname+set}" = set; then
8703  echo $ECHO_N "(cached) $ECHO_C" >&6
8704else
8705  cat >conftest.$ac_ext <<_ACEOF
8706#line $LINENO "configure"
8707#include "confdefs.h"
8708#include <time.h>
8709#ifndef tzname /* For SGI.  */
8710extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
8711#endif
8712
8713#ifdef F77_DUMMY_MAIN
8714#  ifdef __cplusplus
8715     extern "C"
8716#  endif
8717   int F77_DUMMY_MAIN() { return 1; }
8718#endif
8719int
8720main ()
8721{
8722atoi(*tzname);
8723  ;
8724  return 0;
8725}
8726_ACEOF
8727rm -f conftest.$ac_objext conftest$ac_exeext
8728if { (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
8740else
8741  echo "$as_me: failed program was:" >&5
8742cat conftest.$ac_ext >&5
8743ac_cv_var_tzname=no
8744fi
8745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8746fi
8747echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8748echo "${ECHO_T}$ac_cv_var_tzname" >&6
8749  if test $ac_cv_var_tzname = yes; then
8750
8751cat >>confdefs.h <<\_ACEOF
8752#define HAVE_TZNAME 1
8753_ACEOF
8754
8755  fi
8756fi
8757
8758
8759
8760
8761for ac_func in mblen mbrlen
8762do
8763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764echo "$as_me:$LINENO: checking for $ac_func" >&5
8765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766if eval "test \"\${$as_ac_var+set}\" = set"; then
8767  echo $ECHO_N "(cached) $ECHO_C" >&6
8768else
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
8777extern "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.  */
8781char $ac_func ();
8782char (*f) ();
8783
8784#ifdef F77_DUMMY_MAIN
8785#  ifdef __cplusplus
8786     extern "C"
8787#  endif
8788   int F77_DUMMY_MAIN() { return 1; }
8789#endif
8790int
8791main ()
8792{
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)
8797choke me
8798#else
8799f = $ac_func;
8800#endif
8801
8802  ;
8803  return 0;
8804}
8805_ACEOF
8806rm -f conftest.$ac_objext conftest$ac_exeext
8807if { (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"
8819else
8820  echo "$as_me: failed program was:" >&5
8821cat conftest.$ac_ext >&5
8822eval "$as_ac_var=no"
8823fi
8824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8825fi
8826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8828if 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
8832
8833fi
8834done
8835
8836
8837 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8838echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
8839if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8840  echo $ECHO_N "(cached) $ECHO_C" >&6
8841else
8842  cat >conftest.$ac_ext <<_ACEOF
8843#line $LINENO "configure"
8844#include "confdefs.h"
8845#include <time.h>
8846
8847#ifdef F77_DUMMY_MAIN
8848#  ifdef __cplusplus
8849     extern "C"
8850#  endif
8851   int F77_DUMMY_MAIN() { return 1; }
8852#endif
8853int
8854main ()
8855{
8856static struct tm ac_aggr;
8857if (ac_aggr.tm_gmtoff)
8858return 0;
8859  ;
8860  return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
8864if { (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
8876else
8877  echo "$as_me: failed program was:" >&5
8878cat conftest.$ac_ext >&5
8879ac_cv_member_struct_tm_tm_gmtoff=no
8880fi
8881rm -f conftest.$ac_objext conftest.$ac_ext
8882fi
8883echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8884echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
8885if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8886
8887cat >>confdefs.h <<\_ACEOF
8888#define HAVE_TM_GMTOFF 1
8889_ACEOF
8890
8891fi
8892
8893
8894
8895
8896for ac_header in sys/time.h
8897do
8898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8899if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900  echo "$as_me:$LINENO: checking for $ac_header" >&5
8901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8902if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904fi
8905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8907else
8908  # Is the header compilable?
8909echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8911cat >conftest.$ac_ext <<_ACEOF
8912#line $LINENO "configure"
8913#include "confdefs.h"
8914$ac_includes_default
8915#include <$ac_header>
8916_ACEOF
8917rm -f conftest.$ac_objext
8918if { (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
8930else
8931  echo "$as_me: failed program was:" >&5
8932cat conftest.$ac_ext >&5
8933ac_header_compiler=no
8934fi
8935rm -f conftest.$ac_objext conftest.$ac_ext
8936echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937echo "${ECHO_T}$ac_header_compiler" >&6
8938
8939# Is the header present?
8940echo "$as_me:$LINENO: checking $ac_header presence" >&5
8941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8942cat >conftest.$ac_ext <<_ACEOF
8943#line $LINENO "configure"
8944#include "confdefs.h"
8945#include <$ac_header>
8946_ACEOF
8947if { (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=
8959  fi
8960else
8961  ac_cpp_err=yes
8962fi
8963if test -z "$ac_cpp_err"; then
8964  ac_header_preproc=yes
8965else
8966  echo "$as_me: failed program was:" >&5
8967  cat conftest.$ac_ext >&5
8968  ac_header_preproc=no
8969fi
8970rm -f conftest.err conftest.$ac_ext
8971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8972echo "${ECHO_T}$ac_header_preproc" >&6
8973
8974# So?  What about this header?
8975case $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
8978echo "$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
8980echo "$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
8983echo "$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
8985echo "$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
8987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8988esac
8989echo "$as_me:$LINENO: checking for $ac_header" >&5
8990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8991if eval "test \"\${$as_ac_Header+set}\" = set"; then
8992  echo $ECHO_N "(cached) $ECHO_C" >&6
8993else
8994  eval "$as_ac_Header=$ac_header_preproc"
8995fi
8996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8998
8999fi
9000if 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
9004
9005fi
9006
9007done
9008
9009
9010cat >>confdefs.h <<\_ACEOF
9011#define my_strftime nstrftime
9012_ACEOF
9013
9014
9015# No need for AC_FUNC_MEMCMP, since memcmp is used only to test for equality.
9016
9017
9018cat >>confdefs.h <<\_ACEOF
9019#define HAVE_DONE_WORKING_MALLOC_CHECK 1
9020_ACEOF
9021
9022
9023 echo "$as_me:$LINENO: checking for working malloc" >&5
9024echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
9025if test "${jm_cv_func_working_malloc+set}" = set; then
9026  echo $ECHO_N "(cached) $ECHO_C" >&6
9027else
9028  if test "$cross_compiling" = yes; then
9029  	 jm_cv_func_working_malloc=no
9030else
9031  cat >conftest.$ac_ext <<_ACEOF
9032#line $LINENO "configure"
9033#include "confdefs.h"
9034
9035    char *malloc ();
9036    int
9037    main ()
9038    {
9039      exit (malloc (0) ? 0 : 1);
9040    }
9041
9042_ACEOF
9043rm -f conftest$ac_exeext
9044if { (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
9055else
9056  echo "$as_me: program exited with status $ac_status" >&5
9057echo "$as_me: failed program was:" >&5
9058cat conftest.$ac_ext >&5
9059( exit $ac_status )
9060jm_cv_func_working_malloc=no
9061fi
9062rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9063fi
9064
9065fi
9066echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5
9067echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
9068  if test $jm_cv_func_working_malloc = no; then
9069    LIBOBJS="$LIBOBJS malloc.$ac_objext"
9070
9071cat >>confdefs.h <<\_ACEOF
9072#define malloc rpl_malloc
9073_ACEOF
9074
9075  fi
9076
9077
9078
9079cat >>confdefs.h <<\_ACEOF
9080#define HAVE_DONE_WORKING_REALLOC_CHECK 1
9081_ACEOF
9082
9083
9084 echo "$as_me:$LINENO: checking for working realloc" >&5
9085echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
9086if test "${jm_cv_func_working_realloc+set}" = set; then
9087  echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089  if test "$cross_compiling" = yes; then
9090  	 jm_cv_func_working_realloc=no
9091else
9092  cat >conftest.$ac_ext <<_ACEOF
9093#line $LINENO "configure"
9094#include "confdefs.h"
9095
9096    char *realloc ();
9097    int
9098    main ()
9099    {
9100      exit (realloc (0, 0) ? 0 : 1);
9101    }
9102
9103_ACEOF
9104rm -f conftest$ac_exeext
9105if { (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
9116else
9117  echo "$as_me: program exited with status $ac_status" >&5
9118echo "$as_me: failed program was:" >&5
9119cat conftest.$ac_ext >&5
9120( exit $ac_status )
9121jm_cv_func_working_realloc=no
9122fi
9123rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9124fi
9125
9126fi
9127echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5
9128echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
9129  if test $jm_cv_func_working_realloc = no; then
9130    LIBOBJS="$LIBOBJS realloc.$ac_objext"
9131
9132cat >>confdefs.h <<\_ACEOF
9133#define realloc rpl_realloc
9134_ACEOF
9135
9136  fi
9137
9138# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9139# for constant arguments.  Useless!
9140echo "$as_me:$LINENO: checking for working alloca.h" >&5
9141echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9142if test "${ac_cv_working_alloca_h+set}" = set; then
9143  echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
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
9155int
9156main ()
9157{
9158char *p = (char *) alloca (2 * sizeof (int));
9159  ;
9160  return 0;
9161}
9162_ACEOF
9163rm -f conftest.$ac_objext conftest$ac_exeext
9164if { (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
9176else
9177  echo "$as_me: failed program was:" >&5
9178cat conftest.$ac_ext >&5
9179ac_cv_working_alloca_h=no
9180fi
9181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9182fi
9183echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9184echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9185if test $ac_cv_working_alloca_h = yes; then
9186
9187cat >>confdefs.h <<\_ACEOF
9188#define HAVE_ALLOCA_H 1
9189_ACEOF
9190
9191fi
9192
9193echo "$as_me:$LINENO: checking for alloca" >&5
9194echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9195if test "${ac_cv_func_alloca_works+set}" = set; then
9196  echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
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 */
9215char *alloca ();
9216#    endif
9217#   endif
9218#  endif
9219# endif
9220#endif
9221
9222#ifdef F77_DUMMY_MAIN
9223#  ifdef __cplusplus
9224     extern "C"
9225#  endif
9226   int F77_DUMMY_MAIN() { return 1; }
9227#endif
9228int
9229main ()
9230{
9231char *p = (char *) alloca (1);
9232  ;
9233  return 0;
9234}
9235_ACEOF
9236rm -f conftest.$ac_objext conftest$ac_exeext
9237if { (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
9249else
9250  echo "$as_me: failed program was:" >&5
9251cat conftest.$ac_ext >&5
9252ac_cv_func_alloca_works=no
9253fi
9254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255fi
9256echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9257echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9258
9259if test $ac_cv_func_alloca_works = yes; then
9260
9261cat >>confdefs.h <<\_ACEOF
9262#define HAVE_ALLOCA 1
9263_ACEOF
9264
9265else
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.
9270
9271ALLOCA=alloca.$ac_objext
9272
9273cat >>confdefs.h <<\_ACEOF
9274#define C_ALLOCA 1
9275_ACEOF
9276
9277
9278echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9279echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9280if test "${ac_cv_os_cray+set}" = set; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282else
9283  cat >conftest.$ac_ext <<_ACEOF
9284#line $LINENO "configure"
9285#include "confdefs.h"
9286#if defined(CRAY) && ! defined(CRAY2)
9287webecray
9288#else
9289wenotbecray
9290#endif
9291
9292_ACEOF
9293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294  egrep "webecray" >/dev/null 2>&1; then
9295  ac_cv_os_cray=yes
9296else
9297  ac_cv_os_cray=no
9298fi
9299rm -f conftest*
9300
9301fi
9302echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9303echo "${ECHO_T}$ac_cv_os_cray" >&6
9304if 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`
9307echo "$as_me:$LINENO: checking for $ac_func" >&5
9308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9309if eval "test \"\${$as_ac_var+set}\" = set"; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
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
9320extern "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.  */
9324char $ac_func ();
9325char (*f) ();
9326
9327#ifdef F77_DUMMY_MAIN
9328#  ifdef __cplusplus
9329     extern "C"
9330#  endif
9331   int F77_DUMMY_MAIN() { return 1; }
9332#endif
9333int
9334main ()
9335{
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)
9340choke me
9341#else
9342f = $ac_func;
9343#endif
9344
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
9350if { (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"
9362else
9363  echo "$as_me: failed program was:" >&5
9364cat conftest.$ac_ext >&5
9365eval "$as_ac_var=no"
9366fi
9367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368fi
9369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9371if test `eval echo '${'$as_ac_var'}'` = yes; then
9372
9373cat >>confdefs.h <<_ACEOF
9374#define CRAY_STACKSEG_END $ac_func
9375_ACEOF
9376
9377    break
9378fi
9379
9380  done
9381fi
9382
9383echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9384echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9385if test "${ac_cv_c_stack_direction+set}" = set; then
9386  echo $ECHO_N "(cached) $ECHO_C" >&6
9387else
9388  if test "$cross_compiling" = yes; then
9389  ac_cv_c_stack_direction=0
9390else
9391  cat >conftest.$ac_ext <<_ACEOF
9392#line $LINENO "configure"
9393#include "confdefs.h"
9394int
9395find_stack_direction ()
9396{
9397  static char *addr = 0;
9398  auto char dummy;
9399  if (addr == 0)
9400    {
9401      addr = &dummy;
9402      return find_stack_direction ();
9403    }
9404  else
9405    return (&dummy > addr) ? 1 : -1;
9406}
9407
9408int
9409main ()
9410{
9411  exit (find_stack_direction () < 0);
9412}
9413_ACEOF
9414rm -f conftest$ac_exeext
9415if { (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
9426else
9427  echo "$as_me: program exited with status $ac_status" >&5
9428echo "$as_me: failed program was:" >&5
9429cat conftest.$ac_ext >&5
9430( exit $ac_status )
9431ac_cv_c_stack_direction=-1
9432fi
9433rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9434fi
9435fi
9436echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9437echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9438
9439cat >>confdefs.h <<_ACEOF
9440#define STACK_DIRECTION $ac_cv_c_stack_direction
9441_ACEOF
9442
9443
9444fi
9445
9446# for STACK_DIRECTION
9447
9448
9449   echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
9450echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
9451if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
9452  echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454  if test "$cross_compiling" = yes; then
9455  ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
9456else
9457  cat >conftest.$ac_ext <<_ACEOF
9458#line $LINENO "configure"
9459#include "confdefs.h"
9460
9461	 #include <signal.h>
9462	 #include <ucontext.h>
9463
9464	 static union
9465	 {
9466	   char buffer[SIGSTKSZ];
9467	   long double ld;
9468	   uintmax_t u;
9469	   void *p;
9470	 } alternate_signal_stack;
9471
9472	 #if STACK_DIRECTION
9473	 # define find_stack_direction(ptr) STACK_DIRECTION
9474	 #else
9475	 static int
9476	 find_stack_direction (char const *addr)
9477	 {
9478	   char dummy;
9479	   return (! addr ? find_stack_direction (&dummy)
9480		   : addr < &dummy ? 1 : -1);
9481	 }
9482	 #endif
9483
9484	 static void
9485	 segv_handler (int signo, siginfo_t *info, void *context)
9486	 {
9487	   if (0 < info->si_code)
9488	     {
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);
9499	     }
9500
9501	   _exit (1);
9502	 }
9503
9504	 static int
9505	 c_stack_action (void)
9506	 {
9507	   stack_t st;
9508	   struct sigaction act;
9509	   int r;
9510
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;
9517
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);
9522	 }
9523
9524	 static int
9525	 recurse (char *p)
9526	 {
9527	   char array[500];
9528	   array[0] = 1;
9529	   return *p + recurse (array);
9530	 }
9531
9532	 int
9533	 main (void)
9534	 {
9535	   c_stack_action ();
9536	   return recurse ("\1");
9537	 }
9538
9539_ACEOF
9540rm -f conftest$ac_exeext
9541if { (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
9552else
9553  echo "$as_me: program exited with status $ac_status" >&5
9554echo "$as_me: failed program was:" >&5
9555cat conftest.$ac_ext >&5
9556( exit $ac_status )
9557ac_cv_sys_xsi_stack_overflow_heuristic=no
9558fi
9559rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9560fi
9561fi
9562echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
9563echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
9564
9565   if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
9566
9567cat >>confdefs.h <<\_ACEOF
9568#define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
9569_ACEOF
9570
9571   fi
9572
9573
9574
9575   # for STACK_DIRECTION
9576
9577
9578
9579for ac_header in unistd.h
9580do
9581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9582if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583  echo "$as_me:$LINENO: checking for $ac_header" >&5
9584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585if eval "test \"\${$as_ac_Header+set}\" = set"; then
9586  echo $ECHO_N "(cached) $ECHO_C" >&6
9587fi
9588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590else
9591  # Is the header compilable?
9592echo "$as_me:$LINENO: checking $ac_header usability" >&5
9593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9594cat >conftest.$ac_ext <<_ACEOF
9595#line $LINENO "configure"
9596#include "confdefs.h"
9597$ac_includes_default
9598#include <$ac_header>
9599_ACEOF
9600rm -f conftest.$ac_objext
9601if { (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
9613else
9614  echo "$as_me: failed program was:" >&5
9615cat conftest.$ac_ext >&5
9616ac_header_compiler=no
9617fi
9618rm -f conftest.$ac_objext conftest.$ac_ext
9619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620echo "${ECHO_T}$ac_header_compiler" >&6
9621
9622# Is the header present?
9623echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9625cat >conftest.$ac_ext <<_ACEOF
9626#line $LINENO "configure"
9627#include "confdefs.h"
9628#include <$ac_header>
9629_ACEOF
9630if { (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=
9642  fi
9643else
9644  ac_cpp_err=yes
9645fi
9646if test -z "$ac_cpp_err"; then
9647  ac_header_preproc=yes
9648else
9649  echo "$as_me: failed program was:" >&5
9650  cat conftest.$ac_ext >&5
9651  ac_header_preproc=no
9652fi
9653rm -f conftest.err conftest.$ac_ext
9654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9655echo "${ECHO_T}$ac_header_preproc" >&6
9656
9657# So?  What about this header?
9658case $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
9661echo "$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
9663echo "$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
9666echo "$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
9668echo "$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
9670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9671esac
9672echo "$as_me:$LINENO: checking for $ac_header" >&5
9673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9674if eval "test \"\${$as_ac_Header+set}\" = set"; then
9675  echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677  eval "$as_ac_Header=$ac_header_preproc"
9678fi
9679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9681
9682fi
9683if 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
9687
9688fi
9689
9690done
9691
9692
9693   echo "$as_me:$LINENO: checking for siginfo_t" >&5
9694echo $ECHO_N "checking for siginfo_t... $ECHO_C" >&6
9695if test "${ac_cv_type_siginfo_t+set}" = set; then
9696  echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698  cat >conftest.$ac_ext <<_ACEOF
9699#line $LINENO "configure"
9700#include "confdefs.h"
9701#include <signal.h>
9702
9703#ifdef F77_DUMMY_MAIN
9704#  ifdef __cplusplus
9705     extern "C"
9706#  endif
9707   int F77_DUMMY_MAIN() { return 1; }
9708#endif
9709int
9710main ()
9711{
9712if ((siginfo_t *) 0)
9713  return 0;
9714if (sizeof (siginfo_t))
9715  return 0;
9716  ;
9717  return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext
9721if { (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
9733else
9734  echo "$as_me: failed program was:" >&5
9735cat conftest.$ac_ext >&5
9736ac_cv_type_siginfo_t=no
9737fi
9738rm -f conftest.$ac_objext conftest.$ac_ext
9739fi
9740echo "$as_me:$LINENO: result: $ac_cv_type_siginfo_t" >&5
9741echo "${ECHO_T}$ac_cv_type_siginfo_t" >&6
9742if test $ac_cv_type_siginfo_t = yes; then
9743
9744cat >>confdefs.h <<_ACEOF
9745#define HAVE_SIGINFO_T 1
9746_ACEOF
9747
9748
9749fi
9750echo "$as_me:$LINENO: checking for stack_t" >&5
9751echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
9752if test "${ac_cv_type_stack_t+set}" = set; then
9753  echo $ECHO_N "(cached) $ECHO_C" >&6
9754else
9755  cat >conftest.$ac_ext <<_ACEOF
9756#line $LINENO "configure"
9757#include "confdefs.h"
9758#include <signal.h>
9759
9760#ifdef F77_DUMMY_MAIN
9761#  ifdef __cplusplus
9762     extern "C"
9763#  endif
9764   int F77_DUMMY_MAIN() { return 1; }
9765#endif
9766int
9767main ()
9768{
9769if ((stack_t *) 0)
9770  return 0;
9771if (sizeof (stack_t))
9772  return 0;
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext
9778if { (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
9790else
9791  echo "$as_me: failed program was:" >&5
9792cat conftest.$ac_ext >&5
9793ac_cv_type_stack_t=no
9794fi
9795rm -f conftest.$ac_objext conftest.$ac_ext
9796fi
9797echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
9798echo "${ECHO_T}$ac_cv_type_stack_t" >&6
9799if test $ac_cv_type_stack_t = yes; then
9800
9801cat >>confdefs.h <<_ACEOF
9802#define HAVE_STACK_T 1
9803_ACEOF
9804
9805
9806fi
9807
9808
9809
9810
9811
9812for ac_func in strerror vprintf doprnt
9813do
9814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9815echo "$as_me:$LINENO: checking for $ac_func" >&5
9816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9817if eval "test \"\${$as_ac_var+set}\" = set"; then
9818  echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
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
9828extern "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.  */
9832char $ac_func ();
9833char (*f) ();
9834
9835#ifdef F77_DUMMY_MAIN
9836#  ifdef __cplusplus
9837     extern "C"
9838#  endif
9839   int F77_DUMMY_MAIN() { return 1; }
9840#endif
9841int
9842main ()
9843{
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)
9848choke me
9849#else
9850f = $ac_func;
9851#endif
9852
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (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"
9870else
9871  echo "$as_me: failed program was:" >&5
9872cat conftest.$ac_ext >&5
9873eval "$as_ac_var=no"
9874fi
9875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9876fi
9877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9879if 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
9883
9884fi
9885done
9886
9887  echo "$as_me:$LINENO: checking whether strerror is declared" >&5
9888echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
9889if test "${ac_cv_have_decl_strerror+set}" = set; then
9890  echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
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
9902int
9903main ()
9904{
9905#ifndef strerror
9906  char *p = (char *) strerror;
9907#endif
9908
9909  ;
9910  return 0;
9911}
9912_ACEOF
9913rm -f conftest.$ac_objext
9914if { (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
9926else
9927  echo "$as_me: failed program was:" >&5
9928cat conftest.$ac_ext >&5
9929ac_cv_have_decl_strerror=no
9930fi
9931rm -f conftest.$ac_objext conftest.$ac_ext
9932fi
9933echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
9934echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
9935if test $ac_cv_have_decl_strerror = yes; then
9936
9937cat >>confdefs.h <<_ACEOF
9938#define HAVE_DECL_STRERROR 1
9939_ACEOF
9940
9941
9942else
9943  cat >>confdefs.h <<_ACEOF
9944#define HAVE_DECL_STRERROR 0
9945_ACEOF
9946
9947
9948fi
9949
9950
9951  echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
9952echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
9953if test "${ac_cv_have_decl_strerror_r+set}" = set; then
9954  echo $ECHO_N "(cached) $ECHO_C" >&6
9955else
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
9966int
9967main ()
9968{
9969#ifndef strerror_r
9970  char *p = (char *) strerror_r;
9971#endif
9972
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext
9978if { (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
9990else
9991  echo "$as_me: failed program was:" >&5
9992cat conftest.$ac_ext >&5
9993ac_cv_have_decl_strerror_r=no
9994fi
9995rm -f conftest.$ac_objext conftest.$ac_ext
9996fi
9997echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
9998echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
9999if test $ac_cv_have_decl_strerror_r = yes; then
10000
10001cat >>confdefs.h <<_ACEOF
10002#define HAVE_DECL_STRERROR_R 1
10003_ACEOF
10004
10005
10006else
10007  cat >>confdefs.h <<_ACEOF
10008#define HAVE_DECL_STRERROR_R 0
10009_ACEOF
10010
10011
10012fi
10013
10014
10015
10016for ac_func in strerror_r
10017do
10018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10019echo "$as_me:$LINENO: checking for $ac_func" >&5
10020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10021if eval "test \"\${$as_ac_var+set}\" = set"; then
10022  echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
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
10032extern "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.  */
10036char $ac_func ();
10037char (*f) ();
10038
10039#ifdef F77_DUMMY_MAIN
10040#  ifdef __cplusplus
10041     extern "C"
10042#  endif
10043   int F77_DUMMY_MAIN() { return 1; }
10044#endif
10045int
10046main ()
10047{
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)
10052choke me
10053#else
10054f = $ac_func;
10055#endif
10056
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (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"
10074else
10075  echo "$as_me: failed program was:" >&5
10076cat conftest.$ac_ext >&5
10077eval "$as_ac_var=no"
10078fi
10079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080fi
10081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10083if 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
10087
10088fi
10089done
10090
10091echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
10092echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
10093if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
10094  echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096
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
10109int
10110main ()
10111{
10112
10113	  char buf[100];
10114	  char x = *strerror_r (0, buf, sizeof buf);
10115	  char *p = strerror_r (0, buf, sizeof buf);
10116
10117  ;
10118  return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext
10122if { (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
10134else
10135  echo "$as_me: failed program was:" >&5
10136cat conftest.$ac_ext >&5
10137fi
10138rm -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
10147  :
10148else
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
10160int
10161main ()
10162{
10163char buf[100];
10164	  char x = *strerror_r (0, buf, sizeof buf);
10165	  exit (!isalpha (x));
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest$ac_exeext
10171if { (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
10182else
10183  echo "$as_me: program exited with status $ac_status" >&5
10184echo "$as_me: failed program was:" >&5
10185cat conftest.$ac_ext >&5
10186fi
10187rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10188fi
10189    fi
10190
10191fi
10192echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
10193echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
10194if test $ac_cv_func_strerror_r_char_p = yes; then
10195
10196cat >>confdefs.h <<\_ACEOF
10197#define STRERROR_R_CHAR_P 1
10198_ACEOF
10199
10200fi
10201
10202  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10203echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10204if test "${ac_cv_header_stdc+set}" = set; then
10205  echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
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>
10214
10215_ACEOF
10216if { (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=
10228  fi
10229else
10230  ac_cpp_err=yes
10231fi
10232if test -z "$ac_cpp_err"; then
10233  ac_cv_header_stdc=yes
10234else
10235  echo "$as_me: failed program was:" >&5
10236  cat conftest.$ac_ext >&5
10237  ac_cv_header_stdc=no
10238fi
10239rm -f conftest.err conftest.$ac_ext
10240
10241if 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>
10247
10248_ACEOF
10249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10250  egrep "memchr" >/dev/null 2>&1; then
10251  :
10252else
10253  ac_cv_header_stdc=no
10254fi
10255rm -f conftest*
10256
10257fi
10258
10259if 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>
10265
10266_ACEOF
10267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268  egrep "free" >/dev/null 2>&1; then
10269  :
10270else
10271  ac_cv_header_stdc=no
10272fi
10273rm -f conftest*
10274
10275fi
10276
10277if 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
10280  :
10281else
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
10295
10296#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10297int
10298main ()
10299{
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);
10306}
10307_ACEOF
10308rm -f conftest$ac_exeext
10309if { (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
10319  :
10320else
10321  echo "$as_me: program exited with status $ac_status" >&5
10322echo "$as_me: failed program was:" >&5
10323cat conftest.$ac_ext >&5
10324( exit $ac_status )
10325ac_cv_header_stdc=no
10326fi
10327rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10328fi
10329fi
10330fi
10331echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10332echo "${ECHO_T}$ac_cv_header_stdc" >&6
10333if test $ac_cv_header_stdc = yes; then
10334
10335cat >>confdefs.h <<\_ACEOF
10336#define STDC_HEADERS 1
10337_ACEOF
10338
10339fi
10340
10341
10342
10343  echo "$as_me:$LINENO: checking for function prototypes" >&5
10344echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
10345if test "$ac_cv_prog_cc_stdc" != no; then
10346  echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
10348
10349cat >>confdefs.h <<\_ACEOF
10350#define PROTOTYPES 1
10351_ACEOF
10352
10353
10354cat >>confdefs.h <<\_ACEOF
10355#define __PROTOTYPES 1
10356_ACEOF
10357
10358else
10359  echo "$as_me:$LINENO: result: no" >&5
10360echo "${ECHO_T}no" >&6
10361fi
10362
10363
10364for ac_func in setlocale
10365do
10366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10367echo "$as_me:$LINENO: checking for $ac_func" >&5
10368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10369if eval "test \"\${$as_ac_var+set}\" = set"; then
10370  echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
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
10380extern "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.  */
10384char $ac_func ();
10385char (*f) ();
10386
10387#ifdef F77_DUMMY_MAIN
10388#  ifdef __cplusplus
10389     extern "C"
10390#  endif
10391   int F77_DUMMY_MAIN() { return 1; }
10392#endif
10393int
10394main ()
10395{
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)
10400choke me
10401#else
10402f = $ac_func;
10403#endif
10404
10405  ;
10406  return 0;
10407}
10408_ACEOF
10409rm -f conftest.$ac_objext conftest$ac_exeext
10410if { (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"
10422else
10423  echo "$as_me: failed program was:" >&5
10424cat conftest.$ac_ext >&5
10425eval "$as_ac_var=no"
10426fi
10427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10428fi
10429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10431if 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
10435
10436fi
10437done
10438
10439
10440
10441
10442for ac_header in locale.h stdlib.h string.h
10443do
10444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446  echo "$as_me:$LINENO: checking for $ac_header" >&5
10447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449  echo $ECHO_N "(cached) $ECHO_C" >&6
10450fi
10451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453else
10454  # Is the header compilable?
10455echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457cat >conftest.$ac_ext <<_ACEOF
10458#line $LINENO "configure"
10459#include "confdefs.h"
10460$ac_includes_default
10461#include <$ac_header>
10462_ACEOF
10463rm -f conftest.$ac_objext
10464if { (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
10476else
10477  echo "$as_me: failed program was:" >&5
10478cat conftest.$ac_ext >&5
10479ac_header_compiler=no
10480fi
10481rm -f conftest.$ac_objext conftest.$ac_ext
10482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10483echo "${ECHO_T}$ac_header_compiler" >&6
10484
10485# Is the header present?
10486echo "$as_me:$LINENO: checking $ac_header presence" >&5
10487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10488cat >conftest.$ac_ext <<_ACEOF
10489#line $LINENO "configure"
10490#include "confdefs.h"
10491#include <$ac_header>
10492_ACEOF
10493if { (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=
10505  fi
10506else
10507  ac_cpp_err=yes
10508fi
10509if test -z "$ac_cpp_err"; then
10510  ac_header_preproc=yes
10511else
10512  echo "$as_me: failed program was:" >&5
10513  cat conftest.$ac_ext >&5
10514  ac_header_preproc=no
10515fi
10516rm -f conftest.err conftest.$ac_ext
10517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518echo "${ECHO_T}$ac_header_preproc" >&6
10519
10520# So?  What about this header?
10521case $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
10524echo "$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
10526echo "$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
10529echo "$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
10531echo "$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
10533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10534esac
10535echo "$as_me:$LINENO: checking for $ac_header" >&5
10536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10537if eval "test \"\${$as_ac_Header+set}\" = set"; then
10538  echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540  eval "$as_ac_Header=$ac_header_preproc"
10541fi
10542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10544
10545fi
10546if 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
10550
10551fi
10552
10553done
10554
10555
10556
10557
10558
10559for ac_func in isascii iswprint
10560do
10561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10562echo "$as_me:$LINENO: checking for $ac_func" >&5
10563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10564if eval "test \"\${$as_ac_var+set}\" = set"; then
10565  echo $ECHO_N "(cached) $ECHO_C" >&6
10566else
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
10575extern "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.  */
10579char $ac_func ();
10580char (*f) ();
10581
10582#ifdef F77_DUMMY_MAIN
10583#  ifdef __cplusplus
10584     extern "C"
10585#  endif
10586   int F77_DUMMY_MAIN() { return 1; }
10587#endif
10588int
10589main ()
10590{
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)
10595choke me
10596#else
10597f = $ac_func;
10598#endif
10599
10600  ;
10601  return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (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"
10617else
10618  echo "$as_me: failed program was:" >&5
10619cat conftest.$ac_ext >&5
10620eval "$as_ac_var=no"
10621fi
10622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623fi
10624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10626if 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
10630
10631fi
10632done
10633
10634
10635  echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
10636echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
10637if test "${jm_cv_func_mbrtowc+set}" = set; then
10638  echo $ECHO_N "(cached) $ECHO_C" >&6
10639else
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
10650int
10651main ()
10652{
10653mbstate_t state; return ! (sizeof state && mbrtowc);
10654  ;
10655  return 0;
10656}
10657_ACEOF
10658rm -f conftest.$ac_objext conftest$ac_exeext
10659if { (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
10671else
10672  echo "$as_me: failed program was:" >&5
10673cat conftest.$ac_ext >&5
10674jm_cv_func_mbrtowc=no
10675fi
10676rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677fi
10678echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
10679echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
10680  if test $jm_cv_func_mbrtowc = yes; then
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define HAVE_MBRTOWC 1
10684_ACEOF
10685
10686  fi
10687
10688
10689
10690
10691
10692
10693
10694for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
10695do
10696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698  echo "$as_me:$LINENO: checking for $ac_header" >&5
10699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701  echo $ECHO_N "(cached) $ECHO_C" >&6
10702fi
10703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705else
10706  # Is the header compilable?
10707echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709cat >conftest.$ac_ext <<_ACEOF
10710#line $LINENO "configure"
10711#include "confdefs.h"
10712$ac_includes_default
10713#include <$ac_header>
10714_ACEOF
10715rm -f conftest.$ac_objext
10716if { (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
10728else
10729  echo "$as_me: failed program was:" >&5
10730cat conftest.$ac_ext >&5
10731ac_header_compiler=no
10732fi
10733rm -f conftest.$ac_objext conftest.$ac_ext
10734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735echo "${ECHO_T}$ac_header_compiler" >&6
10736
10737# Is the header present?
10738echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10740cat >conftest.$ac_ext <<_ACEOF
10741#line $LINENO "configure"
10742#include "confdefs.h"
10743#include <$ac_header>
10744_ACEOF
10745if { (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=
10757  fi
10758else
10759  ac_cpp_err=yes
10760fi
10761if test -z "$ac_cpp_err"; then
10762  ac_header_preproc=yes
10763else
10764  echo "$as_me: failed program was:" >&5
10765  cat conftest.$ac_ext >&5
10766  ac_header_preproc=no
10767fi
10768rm -f conftest.err conftest.$ac_ext
10769echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10770echo "${ECHO_T}$ac_header_preproc" >&6
10771
10772# So?  What about this header?
10773case $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
10776echo "$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
10778echo "$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
10781echo "$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
10783echo "$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
10785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10786esac
10787echo "$as_me:$LINENO: checking for $ac_header" >&5
10788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10789if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790  echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792  eval "$as_ac_Header=$ac_header_preproc"
10793fi
10794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10796
10797fi
10798if 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
10802
10803fi
10804
10805done
10806
10807  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10809if test "${ac_cv_header_stdc+set}" = set; then
10810  echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
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>
10819
10820_ACEOF
10821if { (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=
10833  fi
10834else
10835  ac_cpp_err=yes
10836fi
10837if test -z "$ac_cpp_err"; then
10838  ac_cv_header_stdc=yes
10839else
10840  echo "$as_me: failed program was:" >&5
10841  cat conftest.$ac_ext >&5
10842  ac_cv_header_stdc=no
10843fi
10844rm -f conftest.err conftest.$ac_ext
10845
10846if 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>
10852
10853_ACEOF
10854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10855  egrep "memchr" >/dev/null 2>&1; then
10856  :
10857else
10858  ac_cv_header_stdc=no
10859fi
10860rm -f conftest*
10861
10862fi
10863
10864if 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>
10870
10871_ACEOF
10872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10873  egrep "free" >/dev/null 2>&1; then
10874  :
10875else
10876  ac_cv_header_stdc=no
10877fi
10878rm -f conftest*
10879
10880fi
10881
10882if 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
10885  :
10886else
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
10900
10901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10902int
10903main ()
10904{
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);
10911}
10912_ACEOF
10913rm -f conftest$ac_exeext
10914if { (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
10924  :
10925else
10926  echo "$as_me: program exited with status $ac_status" >&5
10927echo "$as_me: failed program was:" >&5
10928cat conftest.$ac_ext >&5
10929( exit $ac_status )
10930ac_cv_header_stdc=no
10931fi
10932rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10933fi
10934fi
10935fi
10936echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10937echo "${ECHO_T}$ac_cv_header_stdc" >&6
10938if test $ac_cv_header_stdc = yes; then
10939
10940cat >>confdefs.h <<\_ACEOF
10941#define STDC_HEADERS 1
10942_ACEOF
10943
10944fi
10945
10946
10947  echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
10948echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
10949if test "${ac_cv_c_backslash_a+set}" = set; then
10950  echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952  cat >conftest.$ac_ext <<_ACEOF
10953#line $LINENO "configure"
10954#include "confdefs.h"
10955
10956#ifdef F77_DUMMY_MAIN
10957#  ifdef __cplusplus
10958     extern "C"
10959#  endif
10960   int F77_DUMMY_MAIN() { return 1; }
10961#endif
10962int
10963main ()
10964{
10965
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];
10972
10973  ;
10974  return 0;
10975}
10976_ACEOF
10977rm -f conftest.$ac_objext
10978if { (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
10990else
10991  echo "$as_me: failed program was:" >&5
10992cat conftest.$ac_ext >&5
10993ac_cv_c_backslash_a=no
10994fi
10995rm -f conftest.$ac_objext conftest.$ac_ext
10996fi
10997echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
10998echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
10999  if test $ac_cv_c_backslash_a = yes; then
11000
11001cat >>confdefs.h <<\_ACEOF
11002#define HAVE_C_BACKSLASH_A 1
11003_ACEOF
11004
11005  fi
11006
11007
11008
11009for ac_header in stdlib.h
11010do
11011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012if eval "test \"\${$as_ac_Header+set}\" = set"; then
11013  echo "$as_me:$LINENO: checking for $ac_header" >&5
11014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11015if eval "test \"\${$as_ac_Header+set}\" = set"; then
11016  echo $ECHO_N "(cached) $ECHO_C" >&6
11017fi
11018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11020else
11021  # Is the header compilable?
11022echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11024cat >conftest.$ac_ext <<_ACEOF
11025#line $LINENO "configure"
11026#include "confdefs.h"
11027$ac_includes_default
11028#include <$ac_header>
11029_ACEOF
11030rm -f conftest.$ac_objext
11031if { (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
11043else
11044  echo "$as_me: failed program was:" >&5
11045cat conftest.$ac_ext >&5
11046ac_header_compiler=no
11047fi
11048rm -f conftest.$ac_objext conftest.$ac_ext
11049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11050echo "${ECHO_T}$ac_header_compiler" >&6
11051
11052# Is the header present?
11053echo "$as_me:$LINENO: checking $ac_header presence" >&5
11054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11055cat >conftest.$ac_ext <<_ACEOF
11056#line $LINENO "configure"
11057#include "confdefs.h"
11058#include <$ac_header>
11059_ACEOF
11060if { (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=
11072  fi
11073else
11074  ac_cpp_err=yes
11075fi
11076if test -z "$ac_cpp_err"; then
11077  ac_header_preproc=yes
11078else
11079  echo "$as_me: failed program was:" >&5
11080  cat conftest.$ac_ext >&5
11081  ac_header_preproc=no
11082fi
11083rm -f conftest.err conftest.$ac_ext
11084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11085echo "${ECHO_T}$ac_header_preproc" >&6
11086
11087# So?  What about this header?
11088case $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
11091echo "$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
11093echo "$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
11096echo "$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
11098echo "$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
11100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11101esac
11102echo "$as_me:$LINENO: checking for $ac_header" >&5
11103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11104if eval "test \"\${$as_ac_Header+set}\" = set"; then
11105  echo $ECHO_N "(cached) $ECHO_C" >&6
11106else
11107  eval "$as_ac_Header=$ac_header_preproc"
11108fi
11109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11111
11112fi
11113if 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
11117
11118fi
11119
11120done
11121
11122
11123   echo "$as_me:$LINENO: checking for mbstate_t" >&5
11124echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
11125if test "${ac_cv_type_mbstate_t+set}" = set; then
11126  echo $ECHO_N "(cached) $ECHO_C" >&6
11127else
11128  cat >conftest.$ac_ext <<_ACEOF
11129#line $LINENO "configure"
11130#include "confdefs.h"
11131
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
11142int
11143main ()
11144{
11145mbstate_t x; return sizeof x;
11146  ;
11147  return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext
11151if { (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
11163else
11164  echo "$as_me: failed program was:" >&5
11165cat conftest.$ac_ext >&5
11166ac_cv_type_mbstate_t=no
11167fi
11168rm -f conftest.$ac_objext conftest.$ac_ext
11169fi
11170echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
11171echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
11172   if test $ac_cv_type_mbstate_t = no; then
11173
11174cat >>confdefs.h <<\_ACEOF
11175#define mbstate_t int
11176_ACEOF
11177
11178   fi
11179
11180
11181echo "$as_me:$LINENO: checking for function prototypes" >&5
11182echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11183if test "$am_cv_prog_cc_stdc" != no; then
11184  echo "$as_me:$LINENO: result: yes" >&5
11185echo "${ECHO_T}yes" >&6
11186
11187cat >>confdefs.h <<\_ACEOF
11188#define PROTOTYPES 1
11189_ACEOF
11190
11191  U= ANSI2KNR=
11192else
11193  echo "$as_me:$LINENO: result: no" >&5
11194echo "${ECHO_T}no" >&6
11195  U=_ ANSI2KNR=./ansi2knr
11196fi
11197# Ensure some checks needed by ansi2knr itself.
11198echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11199echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11200if test "${ac_cv_header_stdc+set}" = set; then
11201  echo $ECHO_N "(cached) $ECHO_C" >&6
11202else
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>
11210
11211_ACEOF
11212if { (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=
11224  fi
11225else
11226  ac_cpp_err=yes
11227fi
11228if test -z "$ac_cpp_err"; then
11229  ac_cv_header_stdc=yes
11230else
11231  echo "$as_me: failed program was:" >&5
11232  cat conftest.$ac_ext >&5
11233  ac_cv_header_stdc=no
11234fi
11235rm -f conftest.err conftest.$ac_ext
11236
11237if 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>
11243
11244_ACEOF
11245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11246  egrep "memchr" >/dev/null 2>&1; then
11247  :
11248else
11249  ac_cv_header_stdc=no
11250fi
11251rm -f conftest*
11252
11253fi
11254
11255if 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>
11261
11262_ACEOF
11263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264  egrep "free" >/dev/null 2>&1; then
11265  :
11266else
11267  ac_cv_header_stdc=no
11268fi
11269rm -f conftest*
11270
11271fi
11272
11273if 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
11276  :
11277else
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
11291
11292#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11293int
11294main ()
11295{
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);
11302}
11303_ACEOF
11304rm -f conftest$ac_exeext
11305if { (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
11315  :
11316else
11317  echo "$as_me: program exited with status $ac_status" >&5
11318echo "$as_me: failed program was:" >&5
11319cat conftest.$ac_ext >&5
11320( exit $ac_status )
11321ac_cv_header_stdc=no
11322fi
11323rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11324fi
11325fi
11326fi
11327echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11328echo "${ECHO_T}$ac_cv_header_stdc" >&6
11329if test $ac_cv_header_stdc = yes; then
11330
11331cat >>confdefs.h <<\_ACEOF
11332#define STDC_HEADERS 1
11333_ACEOF
11334
11335fi
11336
11337
11338for ac_header in string.h
11339do
11340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11341if eval "test \"\${$as_ac_Header+set}\" = set"; then
11342  echo "$as_me:$LINENO: checking for $ac_header" >&5
11343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11344if eval "test \"\${$as_ac_Header+set}\" = set"; then
11345  echo $ECHO_N "(cached) $ECHO_C" >&6
11346fi
11347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11349else
11350  # Is the header compilable?
11351echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11353cat >conftest.$ac_ext <<_ACEOF
11354#line $LINENO "configure"
11355#include "confdefs.h"
11356$ac_includes_default
11357#include <$ac_header>
11358_ACEOF
11359rm -f conftest.$ac_objext
11360if { (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
11372else
11373  echo "$as_me: failed program was:" >&5
11374cat conftest.$ac_ext >&5
11375ac_header_compiler=no
11376fi
11377rm -f conftest.$ac_objext conftest.$ac_ext
11378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379echo "${ECHO_T}$ac_header_compiler" >&6
11380
11381# Is the header present?
11382echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11384cat >conftest.$ac_ext <<_ACEOF
11385#line $LINENO "configure"
11386#include "confdefs.h"
11387#include <$ac_header>
11388_ACEOF
11389if { (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=
11401  fi
11402else
11403  ac_cpp_err=yes
11404fi
11405if test -z "$ac_cpp_err"; then
11406  ac_header_preproc=yes
11407else
11408  echo "$as_me: failed program was:" >&5
11409  cat conftest.$ac_ext >&5
11410  ac_header_preproc=no
11411fi
11412rm -f conftest.err conftest.$ac_ext
11413echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414echo "${ECHO_T}$ac_header_preproc" >&6
11415
11416# So?  What about this header?
11417case $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
11420echo "$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
11422echo "$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
11425echo "$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
11427echo "$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
11429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11430esac
11431echo "$as_me:$LINENO: checking for $ac_header" >&5
11432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11433if eval "test \"\${$as_ac_Header+set}\" = set"; then
11434  echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436  eval "$as_ac_Header=$ac_header_preproc"
11437fi
11438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11440
11441fi
11442if 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
11446
11447fi
11448
11449done
11450
11451
11452
11453
11454
11455
11456
11457
11458for ac_func in bzero bcopy isascii btowc
11459do
11460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11461echo "$as_me:$LINENO: checking for $ac_func" >&5
11462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11463if eval "test \"\${$as_ac_var+set}\" = set"; then
11464  echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
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
11474extern "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.  */
11478char $ac_func ();
11479char (*f) ();
11480
11481#ifdef F77_DUMMY_MAIN
11482#  ifdef __cplusplus
11483     extern "C"
11484#  endif
11485   int F77_DUMMY_MAIN() { return 1; }
11486#endif
11487int
11488main ()
11489{
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)
11494choke me
11495#else
11496f = $ac_func;
11497#endif
11498
11499  ;
11500  return 0;
11501}
11502_ACEOF
11503rm -f conftest.$ac_objext conftest$ac_exeext
11504if { (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"
11516else
11517  echo "$as_me: failed program was:" >&5
11518cat conftest.$ac_ext >&5
11519eval "$as_ac_var=no"
11520fi
11521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11522fi
11523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11525if 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
11529
11530fi
11531done
11532
11533
11534
11535
11536
11537for ac_header in alloca.h libintl.h wctype.h wchar.h
11538do
11539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11540if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541  echo "$as_me:$LINENO: checking for $ac_header" >&5
11542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11543if eval "test \"\${$as_ac_Header+set}\" = set"; then
11544  echo $ECHO_N "(cached) $ECHO_C" >&6
11545fi
11546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11548else
11549  # Is the header compilable?
11550echo "$as_me:$LINENO: checking $ac_header usability" >&5
11551echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11552cat >conftest.$ac_ext <<_ACEOF
11553#line $LINENO "configure"
11554#include "confdefs.h"
11555$ac_includes_default
11556#include <$ac_header>
11557_ACEOF
11558rm -f conftest.$ac_objext
11559if { (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
11571else
11572  echo "$as_me: failed program was:" >&5
11573cat conftest.$ac_ext >&5
11574ac_header_compiler=no
11575fi
11576rm -f conftest.$ac_objext conftest.$ac_ext
11577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11578echo "${ECHO_T}$ac_header_compiler" >&6
11579
11580# Is the header present?
11581echo "$as_me:$LINENO: checking $ac_header presence" >&5
11582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11583cat >conftest.$ac_ext <<_ACEOF
11584#line $LINENO "configure"
11585#include "confdefs.h"
11586#include <$ac_header>
11587_ACEOF
11588if { (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=
11600  fi
11601else
11602  ac_cpp_err=yes
11603fi
11604if test -z "$ac_cpp_err"; then
11605  ac_header_preproc=yes
11606else
11607  echo "$as_me: failed program was:" >&5
11608  cat conftest.$ac_ext >&5
11609  ac_header_preproc=no
11610fi
11611rm -f conftest.err conftest.$ac_ext
11612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11613echo "${ECHO_T}$ac_header_preproc" >&6
11614
11615# So?  What about this header?
11616case $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
11619echo "$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
11621echo "$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
11624echo "$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
11626echo "$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
11628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11629esac
11630echo "$as_me:$LINENO: checking for $ac_header" >&5
11631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11632if eval "test \"\${$as_ac_Header+set}\" = set"; then
11633  echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635  eval "$as_ac_Header=$ac_header_preproc"
11636fi
11637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11638echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11639
11640fi
11641if 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
11645
11646fi
11647
11648done
11649
11650  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11651echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11652if test "${ac_cv_header_stdc+set}" = set; then
11653  echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
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>
11662
11663_ACEOF
11664if { (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=
11676  fi
11677else
11678  ac_cpp_err=yes
11679fi
11680if test -z "$ac_cpp_err"; then
11681  ac_cv_header_stdc=yes
11682else
11683  echo "$as_me: failed program was:" >&5
11684  cat conftest.$ac_ext >&5
11685  ac_cv_header_stdc=no
11686fi
11687rm -f conftest.err conftest.$ac_ext
11688
11689if 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>
11695
11696_ACEOF
11697if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11698  egrep "memchr" >/dev/null 2>&1; then
11699  :
11700else
11701  ac_cv_header_stdc=no
11702fi
11703rm -f conftest*
11704
11705fi
11706
11707if 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>
11713
11714_ACEOF
11715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11716  egrep "free" >/dev/null 2>&1; then
11717  :
11718else
11719  ac_cv_header_stdc=no
11720fi
11721rm -f conftest*
11722
11723fi
11724
11725if 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
11728  :
11729else
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
11743
11744#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11745int
11746main ()
11747{
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);
11754}
11755_ACEOF
11756rm -f conftest$ac_exeext
11757if { (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
11767  :
11768else
11769  echo "$as_me: program exited with status $ac_status" >&5
11770echo "$as_me: failed program was:" >&5
11771cat conftest.$ac_ext >&5
11772( exit $ac_status )
11773ac_cv_header_stdc=no
11774fi
11775rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11776fi
11777fi
11778fi
11779echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11780echo "${ECHO_T}$ac_cv_header_stdc" >&6
11781if test $ac_cv_header_stdc = yes; then
11782
11783cat >>confdefs.h <<\_ACEOF
11784#define STDC_HEADERS 1
11785_ACEOF
11786
11787fi
11788
11789  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11790# for constant arguments.  Useless!
11791echo "$as_me:$LINENO: checking for working alloca.h" >&5
11792echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11793if test "${ac_cv_working_alloca_h+set}" = set; then
11794  echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
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
11806int
11807main ()
11808{
11809char *p = (char *) alloca (2 * sizeof (int));
11810  ;
11811  return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext conftest$ac_exeext
11815if { (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
11827else
11828  echo "$as_me: failed program was:" >&5
11829cat conftest.$ac_ext >&5
11830ac_cv_working_alloca_h=no
11831fi
11832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11833fi
11834echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11835echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11836if test $ac_cv_working_alloca_h = yes; then
11837
11838cat >>confdefs.h <<\_ACEOF
11839#define HAVE_ALLOCA_H 1
11840_ACEOF
11841
11842fi
11843
11844echo "$as_me:$LINENO: checking for alloca" >&5
11845echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11846if test "${ac_cv_func_alloca_works+set}" = set; then
11847  echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
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 */
11866char *alloca ();
11867#    endif
11868#   endif
11869#  endif
11870# endif
11871#endif
11872
11873#ifdef F77_DUMMY_MAIN
11874#  ifdef __cplusplus
11875     extern "C"
11876#  endif
11877   int F77_DUMMY_MAIN() { return 1; }
11878#endif
11879int
11880main ()
11881{
11882char *p = (char *) alloca (1);
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext conftest$ac_exeext
11888if { (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
11900else
11901  echo "$as_me: failed program was:" >&5
11902cat conftest.$ac_ext >&5
11903ac_cv_func_alloca_works=no
11904fi
11905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906fi
11907echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11908echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11909
11910if test $ac_cv_func_alloca_works = yes; then
11911
11912cat >>confdefs.h <<\_ACEOF
11913#define HAVE_ALLOCA 1
11914_ACEOF
11915
11916else
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.
11921
11922ALLOCA=alloca.$ac_objext
11923
11924cat >>confdefs.h <<\_ACEOF
11925#define C_ALLOCA 1
11926_ACEOF
11927
11928
11929echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11930echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11931if test "${ac_cv_os_cray+set}" = set; then
11932  echo $ECHO_N "(cached) $ECHO_C" >&6
11933else
11934  cat >conftest.$ac_ext <<_ACEOF
11935#line $LINENO "configure"
11936#include "confdefs.h"
11937#if defined(CRAY) && ! defined(CRAY2)
11938webecray
11939#else
11940wenotbecray
11941#endif
11942
11943_ACEOF
11944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11945  egrep "webecray" >/dev/null 2>&1; then
11946  ac_cv_os_cray=yes
11947else
11948  ac_cv_os_cray=no
11949fi
11950rm -f conftest*
11951
11952fi
11953echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11954echo "${ECHO_T}$ac_cv_os_cray" >&6
11955if 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`
11958echo "$as_me:$LINENO: checking for $ac_func" >&5
11959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11960if eval "test \"\${$as_ac_var+set}\" = set"; then
11961  echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
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
11971extern "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.  */
11975char $ac_func ();
11976char (*f) ();
11977
11978#ifdef F77_DUMMY_MAIN
11979#  ifdef __cplusplus
11980     extern "C"
11981#  endif
11982   int F77_DUMMY_MAIN() { return 1; }
11983#endif
11984int
11985main ()
11986{
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)
11991choke me
11992#else
11993f = $ac_func;
11994#endif
11995
11996  ;
11997  return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext conftest$ac_exeext
12001if { (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"
12013else
12014  echo "$as_me: failed program was:" >&5
12015cat conftest.$ac_ext >&5
12016eval "$as_ac_var=no"
12017fi
12018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12019fi
12020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022if test `eval echo '${'$as_ac_var'}'` = yes; then
12023
12024cat >>confdefs.h <<_ACEOF
12025#define CRAY_STACKSEG_END $ac_func
12026_ACEOF
12027
12028    break
12029fi
12030
12031  done
12032fi
12033
12034echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12035echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12036if test "${ac_cv_c_stack_direction+set}" = set; then
12037  echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039  if test "$cross_compiling" = yes; then
12040  ac_cv_c_stack_direction=0
12041else
12042  cat >conftest.$ac_ext <<_ACEOF
12043#line $LINENO "configure"
12044#include "confdefs.h"
12045int
12046find_stack_direction ()
12047{
12048  static char *addr = 0;
12049  auto char dummy;
12050  if (addr == 0)
12051    {
12052      addr = &dummy;
12053      return find_stack_direction ();
12054    }
12055  else
12056    return (&dummy > addr) ? 1 : -1;
12057}
12058
12059int
12060main ()
12061{
12062  exit (find_stack_direction () < 0);
12063}
12064_ACEOF
12065rm -f conftest$ac_exeext
12066if { (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
12077else
12078  echo "$as_me: program exited with status $ac_status" >&5
12079echo "$as_me: failed program was:" >&5
12080cat conftest.$ac_ext >&5
12081( exit $ac_status )
12082ac_cv_c_stack_direction=-1
12083fi
12084rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12085fi
12086fi
12087echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12088echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12089
12090cat >>confdefs.h <<_ACEOF
12091#define STACK_DIRECTION $ac_cv_c_stack_direction
12092_ACEOF
12093
12094
12095fi
12096
12097
12098
12099cat >>confdefs.h <<\_ACEOF
12100#define REGEX_MALLOC 1
12101_ACEOF
12102
12103
12104  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12105echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12106if test "${ac_cv_header_stdc+set}" = set; then
12107  echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
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>
12116
12117_ACEOF
12118if { (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=
12130  fi
12131else
12132  ac_cpp_err=yes
12133fi
12134if test -z "$ac_cpp_err"; then
12135  ac_cv_header_stdc=yes
12136else
12137  echo "$as_me: failed program was:" >&5
12138  cat conftest.$ac_ext >&5
12139  ac_cv_header_stdc=no
12140fi
12141rm -f conftest.err conftest.$ac_ext
12142
12143if 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>
12149
12150_ACEOF
12151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12152  egrep "memchr" >/dev/null 2>&1; then
12153  :
12154else
12155  ac_cv_header_stdc=no
12156fi
12157rm -f conftest*
12158
12159fi
12160
12161if 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>
12167
12168_ACEOF
12169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12170  egrep "free" >/dev/null 2>&1; then
12171  :
12172else
12173  ac_cv_header_stdc=no
12174fi
12175rm -f conftest*
12176
12177fi
12178
12179if 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
12182  :
12183else
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
12197
12198#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12199int
12200main ()
12201{
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);
12208}
12209_ACEOF
12210rm -f conftest$ac_exeext
12211if { (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
12221  :
12222else
12223  echo "$as_me: program exited with status $ac_status" >&5
12224echo "$as_me: failed program was:" >&5
12225cat conftest.$ac_ext >&5
12226( exit $ac_status )
12227ac_cv_header_stdc=no
12228fi
12229rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12230fi
12231fi
12232fi
12233echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12234echo "${ECHO_T}$ac_cv_header_stdc" >&6
12235if test $ac_cv_header_stdc = yes; then
12236
12237cat >>confdefs.h <<\_ACEOF
12238#define STDC_HEADERS 1
12239_ACEOF
12240
12241fi
12242
12243  echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12244echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12245if test "${ac_cv_header_stat_broken+set}" = set; then
12246  echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
12248  cat >conftest.$ac_ext <<_ACEOF
12249#line $LINENO "configure"
12250#include "confdefs.h"
12251#include <sys/types.h>
12252#include <sys/stat.h>
12253
12254#if defined(S_ISBLK) && defined(S_IFDIR)
12255# if S_ISBLK (S_IFDIR)
12256You lose.
12257# endif
12258#endif
12259
12260#if defined(S_ISBLK) && defined(S_IFCHR)
12261# if S_ISBLK (S_IFCHR)
12262You lose.
12263# endif
12264#endif
12265
12266#if defined(S_ISLNK) && defined(S_IFREG)
12267# if S_ISLNK (S_IFREG)
12268You lose.
12269# endif
12270#endif
12271
12272#if defined(S_ISSOCK) && defined(S_IFREG)
12273# if S_ISSOCK (S_IFREG)
12274You lose.
12275# endif
12276#endif
12277
12278_ACEOF
12279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12280  egrep "You lose" >/dev/null 2>&1; then
12281  ac_cv_header_stat_broken=yes
12282else
12283  ac_cv_header_stat_broken=no
12284fi
12285rm -f conftest*
12286
12287fi
12288echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12289echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12290if test $ac_cv_header_stat_broken = yes; then
12291
12292cat >>confdefs.h <<\_ACEOF
12293#define STAT_MACROS_BROKEN 1
12294_ACEOF
12295
12296fi
12297
12298
12299
12300
12301
12302for ac_header in fcntl.h sys/time.h stdint.h unistd.h
12303do
12304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12305if eval "test \"\${$as_ac_Header+set}\" = set"; then
12306  echo "$as_me:$LINENO: checking for $ac_header" >&5
12307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12308if eval "test \"\${$as_ac_Header+set}\" = set"; then
12309  echo $ECHO_N "(cached) $ECHO_C" >&6
12310fi
12311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12313else
12314  # Is the header compilable?
12315echo "$as_me:$LINENO: checking $ac_header usability" >&5
12316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12317cat >conftest.$ac_ext <<_ACEOF
12318#line $LINENO "configure"
12319#include "confdefs.h"
12320$ac_includes_default
12321#include <$ac_header>
12322_ACEOF
12323rm -f conftest.$ac_objext
12324if { (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
12336else
12337  echo "$as_me: failed program was:" >&5
12338cat conftest.$ac_ext >&5
12339ac_header_compiler=no
12340fi
12341rm -f conftest.$ac_objext conftest.$ac_ext
12342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12343echo "${ECHO_T}$ac_header_compiler" >&6
12344
12345# Is the header present?
12346echo "$as_me:$LINENO: checking $ac_header presence" >&5
12347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12348cat >conftest.$ac_ext <<_ACEOF
12349#line $LINENO "configure"
12350#include "confdefs.h"
12351#include <$ac_header>
12352_ACEOF
12353if { (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=
12365  fi
12366else
12367  ac_cpp_err=yes
12368fi
12369if test -z "$ac_cpp_err"; then
12370  ac_header_preproc=yes
12371else
12372  echo "$as_me: failed program was:" >&5
12373  cat conftest.$ac_ext >&5
12374  ac_header_preproc=no
12375fi
12376rm -f conftest.err conftest.$ac_ext
12377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12378echo "${ECHO_T}$ac_header_preproc" >&6
12379
12380# So?  What about this header?
12381case $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
12384echo "$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
12386echo "$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
12389echo "$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
12391echo "$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
12393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12394esac
12395echo "$as_me:$LINENO: checking for $ac_header" >&5
12396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12397if eval "test \"\${$as_ac_Header+set}\" = set"; then
12398  echo $ECHO_N "(cached) $ECHO_C" >&6
12399else
12400  eval "$as_ac_Header=$ac_header_preproc"
12401fi
12402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12404
12405fi
12406if 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
12410
12411fi
12412
12413done
12414
12415
12416
12417for ac_func in __secure_getenv gettimeofday
12418do
12419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12420echo "$as_me:$LINENO: checking for $ac_func" >&5
12421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12422if eval "test \"\${$as_ac_var+set}\" = set"; then
12423  echo $ECHO_N "(cached) $ECHO_C" >&6
12424else
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
12433extern "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.  */
12437char $ac_func ();
12438char (*f) ();
12439
12440#ifdef F77_DUMMY_MAIN
12441#  ifdef __cplusplus
12442     extern "C"
12443#  endif
12444   int F77_DUMMY_MAIN() { return 1; }
12445#endif
12446int
12447main ()
12448{
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)
12453choke me
12454#else
12455f = $ac_func;
12456#endif
12457
12458  ;
12459  return 0;
12460}
12461_ACEOF
12462rm -f conftest.$ac_objext conftest$ac_exeext
12463if { (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"
12475else
12476  echo "$as_me: failed program was:" >&5
12477cat conftest.$ac_ext >&5
12478eval "$as_ac_var=no"
12479fi
12480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12481fi
12482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12483echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12484if 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
12488
12489fi
12490done
12491
12492  echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12493echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12494if test "${ac_cv_have_decl_getenv+set}" = set; then
12495  echo $ECHO_N "(cached) $ECHO_C" >&6
12496else
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
12507int
12508main ()
12509{
12510#ifndef getenv
12511  char *p = (char *) getenv;
12512#endif
12513
12514  ;
12515  return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext
12519if { (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
12531else
12532  echo "$as_me: failed program was:" >&5
12533cat conftest.$ac_ext >&5
12534ac_cv_have_decl_getenv=no
12535fi
12536rm -f conftest.$ac_objext conftest.$ac_ext
12537fi
12538echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12539echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12540if test $ac_cv_have_decl_getenv = yes; then
12541
12542cat >>confdefs.h <<_ACEOF
12543#define HAVE_DECL_GETENV 1
12544_ACEOF
12545
12546
12547else
12548  cat >>confdefs.h <<_ACEOF
12549#define HAVE_DECL_GETENV 0
12550_ACEOF
12551
12552
12553fi
12554
12555
12556
12557
12558  echo "$as_me:$LINENO: checking for long long" >&5
12559echo $ECHO_N "checking for long long... $ECHO_C" >&6
12560if test "${ac_cv_type_long_long+set}" = set; then
12561  echo $ECHO_N "(cached) $ECHO_C" >&6
12562else
12563  cat >conftest.$ac_ext <<_ACEOF
12564#line $LINENO "configure"
12565#include "confdefs.h"
12566long 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
12573int
12574main ()
12575{
12576long long llmax = (long long) -1;
12577     return ll << i | ll >> i | llmax / ll | llmax % ll;
12578  ;
12579  return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (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
12595else
12596  echo "$as_me: failed program was:" >&5
12597cat conftest.$ac_ext >&5
12598ac_cv_type_long_long=no
12599fi
12600rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12601fi
12602echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12603echo "${ECHO_T}$ac_cv_type_long_long" >&6
12604  if test $ac_cv_type_long_long = yes; then
12605
12606cat >>confdefs.h <<\_ACEOF
12607#define HAVE_LONG_LONG 1
12608_ACEOF
12609
12610  fi
12611
12612
12613
12614  echo "$as_me:$LINENO: checking for intmax_t" >&5
12615echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12616if test "${ac_cv_type_intmax_t+set}" = set; then
12617  echo $ECHO_N "(cached) $ECHO_C" >&6
12618else
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
12629int
12630main ()
12631{
12632if ((intmax_t *) 0)
12633  return 0;
12634if (sizeof (intmax_t))
12635  return 0;
12636  ;
12637  return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext
12641if { (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
12653else
12654  echo "$as_me: failed program was:" >&5
12655cat conftest.$ac_ext >&5
12656ac_cv_type_intmax_t=no
12657fi
12658rm -f conftest.$ac_objext conftest.$ac_ext
12659fi
12660echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12661echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12662if test $ac_cv_type_intmax_t = yes; then
12663  :
12664else
12665  test $ac_cv_type_long_long = yes \
12666       && ac_type='long long' \
12667       || ac_type='long'
12668
12669cat >>confdefs.h <<_ACEOF
12670#define intmax_t $ac_type
12671_ACEOF
12672
12673fi
12674
12675
12676
12677
12678
12679
12680
12681  echo "$as_me:$LINENO: checking whether strtol is declared" >&5
12682echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
12683if test "${ac_cv_have_decl_strtol+set}" = set; then
12684  echo $ECHO_N "(cached) $ECHO_C" >&6
12685else
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
12696int
12697main ()
12698{
12699#ifndef strtol
12700  char *p = (char *) strtol;
12701#endif
12702
12703  ;
12704  return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (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
12720else
12721  echo "$as_me: failed program was:" >&5
12722cat conftest.$ac_ext >&5
12723ac_cv_have_decl_strtol=no
12724fi
12725rm -f conftest.$ac_objext conftest.$ac_ext
12726fi
12727echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
12728echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
12729if test $ac_cv_have_decl_strtol = yes; then
12730
12731cat >>confdefs.h <<_ACEOF
12732#define HAVE_DECL_STRTOL 1
12733_ACEOF
12734
12735
12736else
12737  cat >>confdefs.h <<_ACEOF
12738#define HAVE_DECL_STRTOL 0
12739_ACEOF
12740
12741
12742fi
12743echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
12744echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
12745if test "${ac_cv_have_decl_strtoul+set}" = set; then
12746  echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
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
12758int
12759main ()
12760{
12761#ifndef strtoul
12762  char *p = (char *) strtoul;
12763#endif
12764
12765  ;
12766  return 0;
12767}
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (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
12782else
12783  echo "$as_me: failed program was:" >&5
12784cat conftest.$ac_ext >&5
12785ac_cv_have_decl_strtoul=no
12786fi
12787rm -f conftest.$ac_objext conftest.$ac_ext
12788fi
12789echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
12790echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
12791if test $ac_cv_have_decl_strtoul = yes; then
12792
12793cat >>confdefs.h <<_ACEOF
12794#define HAVE_DECL_STRTOUL 1
12795_ACEOF
12796
12797
12798else
12799  cat >>confdefs.h <<_ACEOF
12800#define HAVE_DECL_STRTOUL 0
12801_ACEOF
12802
12803
12804fi
12805echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
12806echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
12807if test "${ac_cv_have_decl_strtoull+set}" = set; then
12808  echo $ECHO_N "(cached) $ECHO_C" >&6
12809else
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
12820int
12821main ()
12822{
12823#ifndef strtoull
12824  char *p = (char *) strtoull;
12825#endif
12826
12827  ;
12828  return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (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
12844else
12845  echo "$as_me: failed program was:" >&5
12846cat conftest.$ac_ext >&5
12847ac_cv_have_decl_strtoull=no
12848fi
12849rm -f conftest.$ac_objext conftest.$ac_ext
12850fi
12851echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
12852echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
12853if test $ac_cv_have_decl_strtoull = yes; then
12854
12855cat >>confdefs.h <<_ACEOF
12856#define HAVE_DECL_STRTOULL 1
12857_ACEOF
12858
12859
12860else
12861  cat >>confdefs.h <<_ACEOF
12862#define HAVE_DECL_STRTOULL 0
12863_ACEOF
12864
12865
12866fi
12867echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
12868echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
12869if test "${ac_cv_have_decl_strtoimax+set}" = set; then
12870  echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
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
12882int
12883main ()
12884{
12885#ifndef strtoimax
12886  char *p = (char *) strtoimax;
12887#endif
12888
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (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
12906else
12907  echo "$as_me: failed program was:" >&5
12908cat conftest.$ac_ext >&5
12909ac_cv_have_decl_strtoimax=no
12910fi
12911rm -f conftest.$ac_objext conftest.$ac_ext
12912fi
12913echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
12914echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
12915if test $ac_cv_have_decl_strtoimax = yes; then
12916
12917cat >>confdefs.h <<_ACEOF
12918#define HAVE_DECL_STRTOIMAX 1
12919_ACEOF
12920
12921
12922else
12923  cat >>confdefs.h <<_ACEOF
12924#define HAVE_DECL_STRTOIMAX 0
12925_ACEOF
12926
12927
12928fi
12929echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
12930echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
12931if test "${ac_cv_have_decl_strtoumax+set}" = set; then
12932  echo $ECHO_N "(cached) $ECHO_C" >&6
12933else
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
12944int
12945main ()
12946{
12947#ifndef strtoumax
12948  char *p = (char *) strtoumax;
12949#endif
12950
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955rm -f conftest.$ac_objext
12956if { (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
12968else
12969  echo "$as_me: failed program was:" >&5
12970cat conftest.$ac_ext >&5
12971ac_cv_have_decl_strtoumax=no
12972fi
12973rm -f conftest.$ac_objext conftest.$ac_ext
12974fi
12975echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
12976echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
12977if test $ac_cv_have_decl_strtoumax = yes; then
12978
12979cat >>confdefs.h <<_ACEOF
12980#define HAVE_DECL_STRTOUMAX 1
12981_ACEOF
12982
12983
12984else
12985  cat >>confdefs.h <<_ACEOF
12986#define HAVE_DECL_STRTOUMAX 0
12987_ACEOF
12988
12989
12990fi
12991
12992
12993
12994
12995
12996for ac_header in limits.h stdlib.h inttypes.h
12997do
12998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12999if eval "test \"\${$as_ac_Header+set}\" = set"; then
13000  echo "$as_me:$LINENO: checking for $ac_header" >&5
13001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003  echo $ECHO_N "(cached) $ECHO_C" >&6
13004fi
13005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13007else
13008  # Is the header compilable?
13009echo "$as_me:$LINENO: checking $ac_header usability" >&5
13010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13011cat >conftest.$ac_ext <<_ACEOF
13012#line $LINENO "configure"
13013#include "confdefs.h"
13014$ac_includes_default
13015#include <$ac_header>
13016_ACEOF
13017rm -f conftest.$ac_objext
13018if { (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
13030else
13031  echo "$as_me: failed program was:" >&5
13032cat conftest.$ac_ext >&5
13033ac_header_compiler=no
13034fi
13035rm -f conftest.$ac_objext conftest.$ac_ext
13036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13037echo "${ECHO_T}$ac_header_compiler" >&6
13038
13039# Is the header present?
13040echo "$as_me:$LINENO: checking $ac_header presence" >&5
13041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13042cat >conftest.$ac_ext <<_ACEOF
13043#line $LINENO "configure"
13044#include "confdefs.h"
13045#include <$ac_header>
13046_ACEOF
13047if { (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=
13059  fi
13060else
13061  ac_cpp_err=yes
13062fi
13063if test -z "$ac_cpp_err"; then
13064  ac_header_preproc=yes
13065else
13066  echo "$as_me: failed program was:" >&5
13067  cat conftest.$ac_ext >&5
13068  ac_header_preproc=no
13069fi
13070rm -f conftest.err conftest.$ac_ext
13071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072echo "${ECHO_T}$ac_header_preproc" >&6
13073
13074# So?  What about this header?
13075case $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
13078echo "$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
13080echo "$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
13083echo "$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
13085echo "$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
13087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13088esac
13089echo "$as_me:$LINENO: checking for $ac_header" >&5
13090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13091if eval "test \"\${$as_ac_Header+set}\" = set"; then
13092  echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094  eval "$as_ac_Header=$ac_header_preproc"
13095fi
13096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13098
13099fi
13100if 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
13104
13105fi
13106
13107done
13108
13109
13110  echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
13111echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
13112if test "${jm_cv_func_strtoumax_macro+set}" = set; then
13113  echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
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
13123if (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
13126else
13127  jm_cv_func_strtoumax_macro=no
13128fi
13129rm -f conftest*
13130
13131fi
13132echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
13133echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
13134
13135  if test "$jm_cv_func_strtoumax_macro" != yes; then
13136
13137for ac_func in strtoumax
13138do
13139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13140echo "$as_me:$LINENO: checking for $ac_func" >&5
13141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13142if eval "test \"\${$as_ac_var+set}\" = set"; then
13143  echo $ECHO_N "(cached) $ECHO_C" >&6
13144else
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
13153extern "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.  */
13157char $ac_func ();
13158char (*f) ();
13159
13160#ifdef F77_DUMMY_MAIN
13161#  ifdef __cplusplus
13162     extern "C"
13163#  endif
13164   int F77_DUMMY_MAIN() { return 1; }
13165#endif
13166int
13167main ()
13168{
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)
13173choke me
13174#else
13175f = $ac_func;
13176#endif
13177
13178  ;
13179  return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext conftest$ac_exeext
13183if { (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"
13195else
13196  echo "$as_me: failed program was:" >&5
13197cat conftest.$ac_ext >&5
13198eval "$as_ac_var=no"
13199fi
13200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13201fi
13202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13204if 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
13208
13209else
13210  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13211fi
13212done
13213
13214
13215  fi
13216
13217      case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
13218    no,no)
13219
13220for ac_func in strtoul
13221do
13222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223echo "$as_me:$LINENO: checking for $ac_func" >&5
13224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13225if eval "test \"\${$as_ac_var+set}\" = set"; then
13226  echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
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
13236extern "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.  */
13240char $ac_func ();
13241char (*f) ();
13242
13243#ifdef F77_DUMMY_MAIN
13244#  ifdef __cplusplus
13245     extern "C"
13246#  endif
13247   int F77_DUMMY_MAIN() { return 1; }
13248#endif
13249int
13250main ()
13251{
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)
13256choke me
13257#else
13258f = $ac_func;
13259#endif
13260
13261  ;
13262  return 0;
13263}
13264_ACEOF
13265rm -f conftest.$ac_objext conftest$ac_exeext
13266if { (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"
13278else
13279  echo "$as_me: failed program was:" >&5
13280cat conftest.$ac_ext >&5
13281eval "$as_ac_var=no"
13282fi
13283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13284fi
13285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13287if 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
13291
13292else
13293  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13294fi
13295done
13296
13297
13298
13299                  if test "$ac_cv_type_unsigned_long_long" = yes; then
13300
13301for ac_func in strtoull
13302do
13303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13304echo "$as_me:$LINENO: checking for $ac_func" >&5
13305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13306if eval "test \"\${$as_ac_var+set}\" = set"; then
13307  echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
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
13317extern "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.  */
13321char $ac_func ();
13322char (*f) ();
13323
13324#ifdef F77_DUMMY_MAIN
13325#  ifdef __cplusplus
13326     extern "C"
13327#  endif
13328   int F77_DUMMY_MAIN() { return 1; }
13329#endif
13330int
13331main ()
13332{
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)
13337choke me
13338#else
13339f = $ac_func;
13340#endif
13341
13342  ;
13343  return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext conftest$ac_exeext
13347if { (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"
13359else
13360  echo "$as_me: failed program was:" >&5
13361cat conftest.$ac_ext >&5
13362eval "$as_ac_var=no"
13363fi
13364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13368if 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
13372
13373else
13374  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13375fi
13376done
13377
13378
13379      fi
13380      ;;
13381  esac
13382
13383
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.
13386diff_saved_libs=$LIBS
13387echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
13388echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
13389if test "${ac_cv_search_clock_gettime+set}" = set; then
13390  echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392  ac_func_search_save_LIBS=$LIBS
13393ac_cv_search_clock_gettime=no
13394cat >conftest.$ac_ext <<_ACEOF
13395#line $LINENO "configure"
13396#include "confdefs.h"
13397
13398/* Override any gcc2 internal prototype to avoid an error.  */
13399#ifdef __cplusplus
13400extern "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.  */
13404char clock_gettime ();
13405#ifdef F77_DUMMY_MAIN
13406#  ifdef __cplusplus
13407     extern "C"
13408#  endif
13409   int F77_DUMMY_MAIN() { return 1; }
13410#endif
13411int
13412main ()
13413{
13414clock_gettime ();
13415  ;
13416  return 0;
13417}
13418_ACEOF
13419rm -f conftest.$ac_objext conftest$ac_exeext
13420if { (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"
13432else
13433  echo "$as_me: failed program was:" >&5
13434cat conftest.$ac_ext >&5
13435fi
13436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13437if 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"
13443
13444/* Override any gcc2 internal prototype to avoid an error.  */
13445#ifdef __cplusplus
13446extern "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.  */
13450char clock_gettime ();
13451#ifdef F77_DUMMY_MAIN
13452#  ifdef __cplusplus
13453     extern "C"
13454#  endif
13455   int F77_DUMMY_MAIN() { return 1; }
13456#endif
13457int
13458main ()
13459{
13460clock_gettime ();
13461  ;
13462  return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext conftest$ac_exeext
13466if { (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"
13478break
13479else
13480  echo "$as_me: failed program was:" >&5
13481cat conftest.$ac_ext >&5
13482fi
13483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13484  done
13485fi
13486LIBS=$ac_func_search_save_LIBS
13487fi
13488echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
13489echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
13490if test "$ac_cv_search_clock_gettime" != no; then
13491  test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
13492
13493fi
13494
13495case $ac_cv_search_clock_gettime in
13496no | 'none required')
13497  LIB_CLOCK_GETTIME=;;
13498*)
13499  LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
13500esac
13501
13502
13503for ac_func in clock_gettime
13504do
13505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13506echo "$as_me:$LINENO: checking for $ac_func" >&5
13507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13508if eval "test \"\${$as_ac_var+set}\" = set"; then
13509  echo $ECHO_N "(cached) $ECHO_C" >&6
13510else
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
13519extern "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.  */
13523char $ac_func ();
13524char (*f) ();
13525
13526#ifdef F77_DUMMY_MAIN
13527#  ifdef __cplusplus
13528     extern "C"
13529#  endif
13530   int F77_DUMMY_MAIN() { return 1; }
13531#endif
13532int
13533main ()
13534{
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)
13539choke me
13540#else
13541f = $ac_func;
13542#endif
13543
13544  ;
13545  return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (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"
13561else
13562  echo "$as_me: failed program was:" >&5
13563cat conftest.$ac_ext >&5
13564eval "$as_ac_var=no"
13565fi
13566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13567fi
13568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13570if 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
13574
13575fi
13576done
13577
13578LIBS=$diff_saved_libs
13579
13580# fnmatch
13581echo "$as_me:$LINENO: checking for working GNU-style fnmatch" >&5
13582echo $ECHO_N "checking for working GNU-style fnmatch... $ECHO_C" >&6
13583if test "${ac_cv_func_fnmatch_works+set}" = set; then
13584  echo $ECHO_N "(cached) $ECHO_C" >&6
13585else
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.
13590if test "$cross_compiling" = yes; then
13591  ac_cv_func_fnmatch_works=no
13592else
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
13603int
13604main ()
13605{
13606exit (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);
13612  ;
13613  return 0;
13614}
13615_ACEOF
13616rm -f conftest$ac_exeext
13617if { (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
13628else
13629  echo "$as_me: program exited with status $ac_status" >&5
13630echo "$as_me: failed program was:" >&5
13631cat conftest.$ac_ext >&5
13632( exit $ac_status )
13633ac_cv_func_fnmatch_works=no
13634fi
13635rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13636fi
13637fi
13638echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
13639echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
13640if test $ac_cv_func_fnmatch_works = yes; then
13641
13642cat >>confdefs.h <<\_ACEOF
13643#define HAVE_FNMATCH 1
13644_ACEOF
13645
13646fi
13647
13648if test $ac_cv_func_fnmatch_works = yes; then
13649  rm -f lib/fnmatch.h
13650else
13651  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
13652  ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.hin"
13653
13654fi
13655
13656# regex
13657
13658
13659    # Assume we'll default to using the included regex.c.
13660    ac_use_included_regex=yes
13661
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
13668echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
13669if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
13670  echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672  if test "$cross_compiling" = yes; then
13673  	       jm_cv_func_working_re_compile_pattern=no
13674else
13675  cat >conftest.$ac_ext <<_ACEOF
13676#line $LINENO "configure"
13677#include "confdefs.h"
13678#include <stdio.h>
13679#include <regex.h>
13680	  int
13681	  main ()
13682	  {
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);
13691
13692	    /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
13693	    s = re_compile_pattern ("{1", 2, &regex);
13694
13695	    if (s)
13696	      exit (1);
13697
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);
13703
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);
13707
13708	    exit (0);
13709	  }
13710
13711_ACEOF
13712rm -f conftest$ac_exeext
13713if { (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
13724else
13725  echo "$as_me: program exited with status $ac_status" >&5
13726echo "$as_me: failed program was:" >&5
13727cat conftest.$ac_ext >&5
13728( exit $ac_status )
13729jm_cv_func_working_re_compile_pattern=no
13730fi
13731rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13732fi
13733fi
13734echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
13735echo "${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
13738    fi
13739
13740    test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
13741echo "$as_me: error: missing argument" >&2;}
13742   { (exit 1); exit 1; }; }
13743
13744
13745
13746# Check whether --with-included-regex or --without-included-regex was given.
13747if test "${with_included_regex+set}" = set; then
13748  withval="$with_included_regex"
13749  jm_with_regex=$withval
13750else
13751  jm_with_regex=$ac_use_included_regex
13752fi;
13753	if test "$jm_with_regex" = yes; then
13754	  LIBOBJS="$LIBOBJS regex.$ac_objext"
13755	fi
13756
13757
13758
13759if test "$jm_with_regex" = yes; then
13760  ac_config_links="$ac_config_links lib/regex.h:lib/regex.hin"
13761
13762else
13763  rm -f lib/regex.h
13764fi
13765
13766
13767    echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
13768echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
13769if test "${ac_cv_win_or_dos+set}" = set; then
13770  echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772
13773        cat >conftest.$ac_ext <<_ACEOF
13774#line $LINENO "configure"
13775#include "confdefs.h"
13776
13777#ifdef F77_DUMMY_MAIN
13778#  ifdef __cplusplus
13779     extern "C"
13780#  endif
13781   int F77_DUMMY_MAIN() { return 1; }
13782#endif
13783int
13784main ()
13785{
13786#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
13787neither MSDOS nor Windows
13788#endif
13789  ;
13790  return 0;
13791}
13792_ACEOF
13793rm -f conftest.$ac_objext
13794if { (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
13806else
13807  echo "$as_me: failed program was:" >&5
13808cat conftest.$ac_ext >&5
13809ac_cv_win_or_dos=no
13810fi
13811rm -f conftest.$ac_objext conftest.$ac_ext
13812
13813fi
13814echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
13815echo "${ECHO_T}$ac_cv_win_or_dos" >&6
13816
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
13823    fi
13824
13825
13826
13827
13828
13829cat >>confdefs.h <<_ACEOF
13830#define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
13831_ACEOF
13832
13833
13834
13835
13836
13837
13838cat >>confdefs.h <<_ACEOF
13839#define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
13840_ACEOF
13841
13842
13843
13844
13845for ac_header in fcntl.h unistd.h
13846do
13847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848if eval "test \"\${$as_ac_Header+set}\" = set"; then
13849  echo "$as_me:$LINENO: checking for $ac_header" >&5
13850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13851if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852  echo $ECHO_N "(cached) $ECHO_C" >&6
13853fi
13854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13856else
13857  # Is the header compilable?
13858echo "$as_me:$LINENO: checking $ac_header usability" >&5
13859echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13860cat >conftest.$ac_ext <<_ACEOF
13861#line $LINENO "configure"
13862#include "confdefs.h"
13863$ac_includes_default
13864#include <$ac_header>
13865_ACEOF
13866rm -f conftest.$ac_objext
13867if { (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
13879else
13880  echo "$as_me: failed program was:" >&5
13881cat conftest.$ac_ext >&5
13882ac_header_compiler=no
13883fi
13884rm -f conftest.$ac_objext conftest.$ac_ext
13885echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13886echo "${ECHO_T}$ac_header_compiler" >&6
13887
13888# Is the header present?
13889echo "$as_me:$LINENO: checking $ac_header presence" >&5
13890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13891cat >conftest.$ac_ext <<_ACEOF
13892#line $LINENO "configure"
13893#include "confdefs.h"
13894#include <$ac_header>
13895_ACEOF
13896if { (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=
13908  fi
13909else
13910  ac_cpp_err=yes
13911fi
13912if test -z "$ac_cpp_err"; then
13913  ac_header_preproc=yes
13914else
13915  echo "$as_me: failed program was:" >&5
13916  cat conftest.$ac_ext >&5
13917  ac_header_preproc=no
13918fi
13919rm -f conftest.err conftest.$ac_ext
13920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921echo "${ECHO_T}$ac_header_preproc" >&6
13922
13923# So?  What about this header?
13924case $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
13927echo "$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
13929echo "$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
13932echo "$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
13934echo "$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
13936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13937esac
13938echo "$as_me:$LINENO: checking for $ac_header" >&5
13939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13940if eval "test \"\${$as_ac_Header+set}\" = set"; then
13941  echo $ECHO_N "(cached) $ECHO_C" >&6
13942else
13943  eval "$as_ac_Header=$ac_header_preproc"
13944fi
13945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13947
13948fi
13949if 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
13953
13954fi
13955
13956done
13957
13958   echo "$as_me:$LINENO: checking for DOS-style setmode" >&5
13959echo $ECHO_N "checking for DOS-style setmode... $ECHO_C" >&6
13960if test "${ac_cv_func_setmode_dos+set}" = set; then
13961  echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
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
13979int
13980main ()
13981{
13982int ret = setmode && setmode (1, O_BINARY);
13983  ;
13984  return 0;
13985}
13986_ACEOF
13987rm -f conftest.$ac_objext conftest$ac_exeext
13988if { (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
14000else
14001  echo "$as_me: failed program was:" >&5
14002cat conftest.$ac_ext >&5
14003ac_cv_func_setmode_dos=no
14004fi
14005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14006fi
14007echo "$as_me:$LINENO: result: $ac_cv_func_setmode_dos" >&5
14008echo "${ECHO_T}$ac_cv_func_setmode_dos" >&6
14009   if test $ac_cv_func_setmode_dos = yes; then
14010
14011cat >>confdefs.h <<\_ACEOF
14012#define HAVE_SETMODE_DOS 1
14013_ACEOF
14014
14015   fi
14016
14017ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile lib/posix/Makefile man/Makefile m4/Makefile ms/Makefile po/Makefile.in src/Makefile"
14018
14019ac_config_commands="$ac_config_commands default"
14020
14021cat >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.
14027#
14028# config.status only pays attention to the cache file if you give it
14029# the --recheck option to rerun configure.
14030#
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.
14034
14035_ACEOF
14036
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.
14042{
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"
14051      ;;
14052    *)
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"
14056      ;;
14057    esac;
14058} |
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
14066if 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"
14072  fi
14073fi
14074rm -f confcache
14075
14076test "x$prefix" = xNONE && prefix=$ac_default_prefix
14077# Let make expand exec_prefix.
14078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14079
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).
14084if test "x$srcdir" = x.; then
14085  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
14086s/:*\$(srcdir):*/:/;
14087s/:*\${srcdir}:*/:/;
14088s/:*@srcdir@:*/:/;
14089s/^\([^=]*=[ 	]*\):*/\1/;
14090s/:*$//;
14091s/^[^=]*=[ 	]*$//;
14092}'
14093fi
14094
14095DEFS=-DHAVE_CONFIG_H
14096
14097if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14098  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14099Usually this means the macro was only invoked conditionally." >&5
14100echo "$as_me: error: conditional \"AMDEP\" was never defined.
14101Usually this means the macro was only invoked conditionally." >&2;}
14102   { (exit 1); exit 1; }; }
14103fi
14104
14105: ${CONFIG_STATUS=./config.status}
14106ac_clean_files_save=$ac_clean_files
14107ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14108{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14109echo "$as_me: creating $CONFIG_STATUS" >&6;}
14110cat >$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.
14116
14117debug=false
14118SHELL=\${CONFIG_SHELL-$SHELL}
14119_ACEOF
14120
14121cat >>$CONFIG_STATUS <<\_ACEOF
14122
14123## --------------------- ##
14124## M4sh Initialization.  ##
14125## --------------------- ##
14126
14127# Be Bourne compatible
14128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14129  emulate sh
14130  NULLCMD=:
14131elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14132  set -o posix
14133fi
14134
14135# NLS nuisances.
14136# Support unset when possible.
14137if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14138  as_unset=unset
14139else
14140  as_unset=false
14141fi
14142
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; }
14167
14168
14169# Name of the executable.
14170as_me=`(basename "$0") 2>/dev/null ||
14171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14172	 X"$0" : 'X\(//\)$' \| \
14173	 X"$0" : 'X\(/\)$' \| \
14174	 .     : '\(.\)' 2>/dev/null ||
14175echo X/"$0" |
14176    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14177  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
14178  	  /^X\/\(\/\).*/{ s//\1/; q; }
14179  	  s/.*/./; q'`
14180
14181# PATH needs CR, and LINENO needs CR and PATH.
14182# Avoid depending upon Character Ranges.
14183as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14184as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14185as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14186as_cr_digits='0123456789'
14187as_cr_alnum=$as_cr_Letters$as_cr_digits
14188
14189# The user is always right.
14190if 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=:
14198  fi
14199  rm -f conftest.sh
14200fi
14201
14202
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
14213for as_dir in $PATH
14214do
14215  IFS=$as_save_IFS
14216  test -z "$as_dir" && as_dir=.
14217  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14218done
14219
14220       ;;
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
14226  fi
14227  if test ! -f "$as_myself"; then
14228    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14229echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14230   { (exit 1); exit 1; }; }
14231  fi
14232  case $CONFIG_SHELL in
14233  '')
14234    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14236do
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
14241	 /*)
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
14254done
14255;;
14256  esac
14257
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 '
14268      N
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
14278echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14279   { (exit 1); exit 1; }; }
14280
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
14287}
14288
14289
14290case `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= ;;
14295esac
14296
14297if expr a : '\(a\)' >/dev/null 2>&1; then
14298  as_expr=expr
14299else
14300  as_expr=false
14301fi
14302
14303rm -f conf$$ conf$$.exe conf$$.file
14304echo >conf$$.file
14305if 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'
14313  fi
14314elif ln conf$$.file conf$$ 2>/dev/null; then
14315  as_ln_s=ln
14316else
14317  as_ln_s='cp -p'
14318fi
14319rm -f conf$$ conf$$.exe conf$$.file
14320
14321as_executable_p="test -f"
14322
14323# Sed expression to map a string onto a valid CPP name.
14324as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14325
14326# Sed expression to map a string onto a valid variable name.
14327as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14328
14329
14330# IFS
14331# We need space, tab and new line, in precisely that order.
14332as_nl='
14333'
14334IFS=" 	$as_nl"
14335
14336# CDPATH.
14337$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14338
14339exec 6>&1
14340
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.
14344exec 5>>config.log
14345{
14346  echo
14347  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14348## Running $as_me. ##
14349_ASBOX
14350} >&5
14351cat >&5 <<_CSEOF
14352
14353This file was extended by GNU diffutils $as_me 2.8.1, which was
14354generated by GNU Autoconf 2.53.  Invocation command line was
14355
14356  CONFIG_FILES    = $CONFIG_FILES
14357  CONFIG_HEADERS  = $CONFIG_HEADERS
14358  CONFIG_LINKS    = $CONFIG_LINKS
14359  CONFIG_COMMANDS = $CONFIG_COMMANDS
14360  $ $0 $@
14361
14362_CSEOF
14363echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14364echo >&5
14365_ACEOF
14366
14367# Files that config.status was made for.
14368if test -n "$ac_config_files"; then
14369  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14370fi
14371
14372if test -n "$ac_config_headers"; then
14373  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14374fi
14375
14376if test -n "$ac_config_links"; then
14377  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14378fi
14379
14380if test -n "$ac_config_commands"; then
14381  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14382fi
14383
14384cat >>$CONFIG_STATUS <<\_ACEOF
14385
14386ac_cs_usage="\
14387\`$as_me' instantiates files from templates according to the
14388current configuration.
14389
14390Usage: $0 [OPTIONS] [FILE]...
14391
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
14400
14401Configuration files:
14402$config_files
14403
14404Configuration headers:
14405$config_headers
14406
14407Configuration links:
14408$config_links
14409
14410Configuration commands:
14411$config_commands
14412
14413Report bugs to <bug-autoconf@gnu.org>."
14414_ACEOF
14415
14416cat >>$CONFIG_STATUS <<_ACEOF
14417ac_cs_version="\\
14418GNU diffutils config.status 2.8.1
14419configured by $0, generated by GNU Autoconf 2.53,
14420  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14421
14422Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14423Free Software Foundation, Inc.
14424This config.status script is free software; the Free Software Foundation
14425gives unlimited permission to copy, distribute and modify it."
14426srcdir=$srcdir
14427INSTALL="$INSTALL"
14428_ACEOF
14429
14430cat >>$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.
14433ac_need_defaults=:
14434while test $# != 0
14435do
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
14443    ;;
14444  -*);;
14445  *) # This is not an option, so the user has probably given explicit
14446     # arguments.
14447     ac_need_defaults=false;;
14448  esac
14449
14450  case $1 in
14451  # Handling of the options.
14452_ACEOF
14453cat >>$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
14458cat >>$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
14464Try \`$0 --help' for more information." >&5
14465echo "$as_me: error: ambiguous option: $1
14466Try \`$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;;
14480
14481  # This is an error.
14482  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14483Try \`$0 --help' for more information." >&5
14484echo "$as_me: error: unrecognized option: $1
14485Try \`$0 --help' for more information." >&2;}
14486   { (exit 1); exit 1; }; } ;;
14487
14488  *) ac_config_targets="$ac_config_targets $1" ;;
14489
14490  esac
14491  shift
14492done
14493
14494_ACEOF
14495
14496cat >>$CONFIG_STATUS <<_ACEOF
14497#
14498# INIT-COMMANDS section.
14499#
14500
14501AMDEP_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%}"
14508
14509
14510_ACEOF
14511
14512
14513
14514cat >>$CONFIG_STATUS <<\_ACEOF
14515for ac_config_target in $ac_config_targets
14516do
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
14535echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14536   { (exit 1); exit 1; }; };;
14537  esac
14538done
14539
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.
14544if $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
14549fi
14550
14551# Create a temporary directory, and hook for its removal unless debugging.
14552$debug ||
14553{
14554  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14555  trap '{ (exit 1); exit 1; }' 1 2 13 15
14556}
14557
14558# Create a (secure) tmp directory for tmp files.
14559: ${TMPDIR=/tmp}
14560{
14561  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14562  test -n "$tmp" && test -d "$tmp"
14563}  ||
14564{
14565  tmp=$TMPDIR/cs$$-$RANDOM
14566  (umask 077 && mkdir $tmp)
14567} ||
14568{
14569   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14570   { (exit 1); exit 1; }
14571}
14572
14573_ACEOF
14574
14575cat >>$CONFIG_STATUS <<_ACEOF
14576
14577#
14578# CONFIG_FILES section.
14579#
14580
14581# No need to generate the scripts if there are no CONFIG_FILES.
14582# This happens for instance when ./config.status config.h
14583if 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
14587s,@SHELL@,$SHELL,;t t
14588s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14589s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14590s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14591s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14592s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14593s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14594s,@exec_prefix@,$exec_prefix,;t t
14595s,@prefix@,$prefix,;t t
14596s,@program_transform_name@,$program_transform_name,;t t
14597s,@bindir@,$bindir,;t t
14598s,@sbindir@,$sbindir,;t t
14599s,@libexecdir@,$libexecdir,;t t
14600s,@datadir@,$datadir,;t t
14601s,@sysconfdir@,$sysconfdir,;t t
14602s,@sharedstatedir@,$sharedstatedir,;t t
14603s,@localstatedir@,$localstatedir,;t t
14604s,@libdir@,$libdir,;t t
14605s,@includedir@,$includedir,;t t
14606s,@oldincludedir@,$oldincludedir,;t t
14607s,@infodir@,$infodir,;t t
14608s,@mandir@,$mandir,;t t
14609s,@build_alias@,$build_alias,;t t
14610s,@host_alias@,$host_alias,;t t
14611s,@target_alias@,$target_alias,;t t
14612s,@DEFS@,$DEFS,;t t
14613s,@ECHO_C@,$ECHO_C,;t t
14614s,@ECHO_N@,$ECHO_N,;t t
14615s,@ECHO_T@,$ECHO_T,;t t
14616s,@LIBS@,$LIBS,;t t
14617s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14618s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14619s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14620s,@PACKAGE@,$PACKAGE,;t t
14621s,@VERSION@,$VERSION,;t t
14622s,@ACLOCAL@,$ACLOCAL,;t t
14623s,@AUTOCONF@,$AUTOCONF,;t t
14624s,@AUTOMAKE@,$AUTOMAKE,;t t
14625s,@AUTOHEADER@,$AUTOHEADER,;t t
14626s,@MAKEINFO@,$MAKEINFO,;t t
14627s,@AMTAR@,$AMTAR,;t t
14628s,@install_sh@,$install_sh,;t t
14629s,@STRIP@,$STRIP,;t t
14630s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14631s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14632s,@AWK@,$AWK,;t t
14633s,@SET_MAKE@,$SET_MAKE,;t t
14634s,@CC@,$CC,;t t
14635s,@CFLAGS@,$CFLAGS,;t t
14636s,@LDFLAGS@,$LDFLAGS,;t t
14637s,@CPPFLAGS@,$CPPFLAGS,;t t
14638s,@ac_ct_CC@,$ac_ct_CC,;t t
14639s,@EXEEXT@,$EXEEXT,;t t
14640s,@OBJEXT@,$OBJEXT,;t t
14641s,@DEPDIR@,$DEPDIR,;t t
14642s,@am__include@,$am__include,;t t
14643s,@am__quote@,$am__quote,;t t
14644s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14645s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14646s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14647s,@CCDEPMODE@,$CCDEPMODE,;t t
14648s,@CPP@,$CPP,;t t
14649s,@HELP2MAN@,$HELP2MAN,;t t
14650s,@RANLIB@,$RANLIB,;t t
14651s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14652s,@PR_PROGRAM@,$PR_PROGRAM,;t t
14653s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14654s,@MSGFMT@,$MSGFMT,;t t
14655s,@GMSGFMT@,$GMSGFMT,;t t
14656s,@XGETTEXT@,$XGETTEXT,;t t
14657s,@MSGMERGE@,$MSGMERGE,;t t
14658s,@build@,$build,;t t
14659s,@build_cpu@,$build_cpu,;t t
14660s,@build_vendor@,$build_vendor,;t t
14661s,@build_os@,$build_os,;t t
14662s,@host@,$host,;t t
14663s,@host_cpu@,$host_cpu,;t t
14664s,@host_vendor@,$host_vendor,;t t
14665s,@host_os@,$host_os,;t t
14666s,@USE_NLS@,$USE_NLS,;t t
14667s,@LIBICONV@,$LIBICONV,;t t
14668s,@LTLIBICONV@,$LTLIBICONV,;t t
14669s,@INTLLIBS@,$INTLLIBS,;t t
14670s,@LIBINTL@,$LIBINTL,;t t
14671s,@LTLIBINTL@,$LTLIBINTL,;t t
14672s,@POSUB@,$POSUB,;t t
14673s,@LIBOBJS@,$LIBOBJS,;t t
14674s,@ALLOCA@,$ALLOCA,;t t
14675s,@U@,$U,;t t
14676s,@ANSI2KNR@,$ANSI2KNR,;t t
14677s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
14678CEOF
14679
14680_ACEOF
14681
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
14696    fi
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"
14710      fi
14711      ac_sed_frag=`expr $ac_sed_frag + 1`
14712      ac_beg=$ac_end
14713      ac_end=`expr $ac_end + $ac_max_sed_lines`
14714    fi
14715  done
14716  if test -z "$ac_sed_cmds"; then
14717    ac_sed_cmds=cat
14718  fi
14719fi # test -n "$CONFIG_FILES"
14720
14721_ACEOF
14722cat >>$CONFIG_STATUS <<\_ACEOF
14723for 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
14734
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 ||
14742echo 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 ||
14761echo 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
14770echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14771   { (exit 1); exit 1; }; }; }
14772
14773  ac_builddir=.
14774
14775if 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'`
14779else
14780  ac_dir_suffix= ac_top_builddir=
14781fi
14782
14783case $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 ;;
14797esac
14798# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14799# absolute.
14800ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14801ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14802ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14803ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14804
14805
14806  case $INSTALL in
14807  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14808  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14809  esac
14810
14811  if test x"$ac_file" != x-; then
14812    { echo "$as_me:$LINENO: creating $ac_file" >&5
14813echo "$as_me: creating $ac_file" >&6;}
14814    rm -f "$ac_file"
14815  fi
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.  "
14823  fi
14824  configure_input=$configure_input"Generated from `echo $ac_file_in |
14825                                     sed 's,.*/,,'` by configure."
14826
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
14836echo "$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
14849echo "$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
14855cat >>$CONFIG_STATUS <<_ACEOF
14856  sed "$ac_vpsub
14857$extrasub
14858_ACEOF
14859cat >>$CONFIG_STATUS <<\_ACEOF
14860:t
14861/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14862s,@configure_input@,$configure_input,;t t
14863s,@srcdir@,$ac_srcdir,;t t
14864s,@abs_srcdir@,$ac_abs_srcdir,;t t
14865s,@top_srcdir@,$ac_top_srcdir,;t t
14866s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14867s,@builddir@,$ac_builddir,;t t
14868s,@abs_builddir@,$ac_abs_builddir,;t t
14869s,@top_builddir@,$ac_top_builddir,;t t
14870s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14871s,@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
14879  fi
14880
14881done
14882_ACEOF
14883cat >>$CONFIG_STATUS <<\_ACEOF
14884
14885#
14886# CONFIG_HEADER section.
14887#
14888
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.
14891#
14892# ac_d sets the value in "#define NAME VALUE" lines.
14893ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
14894ac_dB='[ 	].*$,\1#\2'
14895ac_dC=' '
14896ac_dD=',;t'
14897# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14898ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
14899ac_uB='$,\1#\2define\3'
14900ac_uC=' '
14901ac_uD=',;t'
14902
14903for 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
14914
14915  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14916echo "$as_me: creating $ac_file" >&6;}
14917
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
14927echo "$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
14940echo "$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
14947
14948_ACEOF
14949
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.
14957rm -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.
14960#
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'.
14964cat >confdef2sed.sed <<\_ACEOF
14965s/[\\&,]/\\&/g
14966s,[\\$`],\\&,g
14967t clear
14968: clear
14969s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14970t end
14971s,^[ 	]*#[ 	]*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.
14977uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14978sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14979rm -f confdef2sed.sed
14980
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.
14984cat >>conftest.undefs <<\_ACEOF
14985s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14986_ACEOF
14987
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).
14990echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14991echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14992echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14993echo '  :' >>$CONFIG_STATUS
14994rm -f conftest.tail
14995while grep . conftest.defines >/dev/null
14996do
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
15013done
15014rm -f conftest.defines
15015echo '  fi # egrep' >>$CONFIG_STATUS
15016echo >>$CONFIG_STATUS
15017
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).
15020echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15021rm -f conftest.tail
15022while grep . conftest.undefs >/dev/null
15023do
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
15040done
15041rm -f conftest.undefs
15042
15043cat >>$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
15051  fi
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
15057echo "$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 ||
15065echo 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 ||
15084echo 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
15093echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15094   { (exit 1); exit 1; }; }; }
15095
15096      rm -f $ac_file
15097      mv $tmp/config.h $ac_file
15098    fi
15099  else
15100    cat $tmp/config.h
15101    rm -f $tmp/config.h
15102  fi
15103  # Run the commands associated with the file.
15104  case $ac_file in
15105    config.h ) # update the timestamp
15106echo 'timestamp for config.h:config.hin' >"./stamp-h1"
15107 ;;
15108  esac
15109done
15110_ACEOF
15111cat >>$CONFIG_STATUS <<\_ACEOF
15112
15113#
15114# CONFIG_LINKS section.
15115#
15116
15117for 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,[^:]*:,,'`
15120
15121  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15122echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
15123
15124  if test ! -r $srcdir/$ac_source; then
15125    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15126echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15127   { (exit 1); exit 1; }; }
15128  fi
15129  rm -f $ac_dest
15130
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 ||
15138echo 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 ||
15157echo 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
15166echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15167   { (exit 1); exit 1; }; }; }
15168
15169  ac_builddir=.
15170
15171if 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'`
15175else
15176  ac_dir_suffix= ac_top_builddir=
15177fi
15178
15179case $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 ;;
15193esac
15194# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
15195# absolute.
15196ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
15197ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
15198ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
15199ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
15200
15201
15202  case $srcdir in
15203  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
15204      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
15205  esac
15206
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
15211echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
15212   { (exit 1); exit 1; }; }
15213done
15214_ACEOF
15215cat >>$CONFIG_STATUS <<\_ACEOF
15216
15217#
15218# CONFIG_COMMANDS section.
15219#
15220for 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 ||
15229echo 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=.
15236
15237if 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'`
15241else
15242  ac_dir_suffix= ac_top_builddir=
15243fi
15244
15245case $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 ;;
15259esac
15260# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15261# absolute.
15262ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15263ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15264ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15265ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15266
15267
15268  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15269echo "$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 ||
15281echo 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
15289  fi
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/\\\\$//
15305	p
15306	n
15307	/\\\\$/ b loop
15308      p
15309    }
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 ||
15320echo 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 ||
15339echo 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
15348echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15349   { (exit 1); exit 1; }; }; }
15350
15351    # echo "creating $dirpart/$file"
15352    echo '# dummy' > "$dirpart/$file"
15353  done
15354done
15355 ;;
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"
15387            fi
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_'
15391          fi
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"
15416              fi
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"
15429              fi
15430            done
15431          fi
15432          CATALOGS=
15433          if test -n "$INST_LINGUAS"; then
15434            for lang in $INST_LINGUAS; do
15435              CATALOGS="$CATALOGS $lang.gmo"
15436            done
15437          fi
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
15446            fi
15447          done
15448        fi
15449        ;;
15450      esac
15451    done ;;
15452    default ) date > stamp-h ;;
15453  esac
15454done
15455_ACEOF
15456
15457cat >>$CONFIG_STATUS <<\_ACEOF
15458
15459{ (exit 0); exit 0; }
15460_ACEOF
15461chmod +x $CONFIG_STATUS
15462ac_clean_files=$ac_clean_files_save
15463
15464
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.
15473if 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; }
15481fi
15482
15483