remove obsolete yaml files
[toolchains/gawk.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Awk 3.1.5.
4 #
5 # Report bugs to <bug-gawk@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU Awk'
271 PACKAGE_TARNAME='gawk'
272 PACKAGE_VERSION='3.1.5'
273 PACKAGE_STRING='GNU Awk 3.1.5'
274 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
275
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar EGREP YACC LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RANLIB ac_ct_RANLIB U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS SOCKET_LIBS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
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     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures GNU Awk 3.1.5 to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834
835 Program names:
836   --program-prefix=PREFIX            prepend PREFIX to installed program names
837   --program-suffix=SUFFIX            append SUFFIX to installed program names
838   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
839
840 System types:
841   --build=BUILD     configure for building on BUILD [guessed]
842   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847   case $ac_init_help in
848      short | recursive ) echo "Configuration of GNU Awk 3.1.5:";;
849    esac
850   cat <<\_ACEOF
851
852 Optional Features:
853   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855   --enable-portals      Enable /p as path prefix for portals
856   --disable-lint        Disable gawk lint checking
857   --enable-switch       Enable switch statements for awk programs
858   --disable-dependency-tracking  speeds up one-time build
859   --enable-dependency-tracking   do not reject slow dependency extractors
860   --disable-largefile     omit support for large files
861   --disable-nls           do not use Native Language Support
862   --disable-rpath         do not hardcode runtime library paths
863
864 Optional Packages:
865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867   --with-whiny-user-strftime    Force use of included version of strftime for deficient systems
868   --with-gnu-ld           assume the C compiler uses GNU ld default=no
869   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
870   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
871   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
872   --without-libintl-prefix     don't search for libintl in includedir and libdir
873
874 Some influential environment variables:
875   CC          C compiler command
876   CFLAGS      C compiler flags
877   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
878               nonstandard directory <lib dir>
879   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
880               headers in a nonstandard directory <include dir>
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 Report bugs to <bug-gawk@gnu.org>.
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891   # If there are subdirs, report their specific --help.
892   ac_popdir=`pwd`
893   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894     test -d $ac_dir || continue
895     ac_builddir=.
896
897 if test "$ac_dir" != .; then
898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899   # A "../" for each directory in $ac_dir_suffix.
900   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902   ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906   .)  # No --srcdir option.  We are building in place.
907     ac_srcdir=.
908     if test -z "$ac_top_builddir"; then
909        ac_top_srcdir=.
910     else
911        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912     fi ;;
913   [\\/]* | ?:[\\/]* )  # Absolute path.
914     ac_srcdir=$srcdir$ac_dir_suffix;
915     ac_top_srcdir=$srcdir ;;
916   *) # Relative path.
917     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918     ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926   case "$ac_dir" in
927   .) ac_abs_builddir=`pwd`;;
928   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929   *) ac_abs_builddir=`pwd`/"$ac_dir";;
930   esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935   case ${ac_top_builddir}. in
936   .) ac_abs_top_builddir=$ac_abs_builddir;;
937   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944   case $ac_srcdir in
945   .) ac_abs_srcdir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953   case $ac_top_srcdir in
954   .) ac_abs_top_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957   esac;;
958 esac
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982 GNU Awk configure 3.1.5
983 generated by GNU Autoconf 2.59
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by GNU Awk $as_me 3.1.5, which was
997 generated by GNU Autoconf 2.59.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 # This is a hack. Different versions of install on different systems
1334 # are just too different. Chuck it and use install-sh.
1335 #
1336 # If the user supplies $INSTALL, figure they know what they're doing.
1337 #
1338 # With Autoconf 2.5x, this needs to come very early on, but *after*
1339 # the INIT macro. Sigh.
1340
1341 if test "x$INSTALL" = "x"
1342 then
1343         INSTALL="$srcdir/install-sh -c"
1344         export INSTALL
1345 fi
1346
1347
1348 am__api_version="1.9"
1349 ac_aux_dir=
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351   if test -f $ac_dir/install-sh; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/install-sh -c"
1354     break
1355   elif test -f $ac_dir/install.sh; then
1356     ac_aux_dir=$ac_dir
1357     ac_install_sh="$ac_aux_dir/install.sh -c"
1358     break
1359   elif test -f $ac_dir/shtool; then
1360     ac_aux_dir=$ac_dir
1361     ac_install_sh="$ac_aux_dir/shtool install -c"
1362     break
1363   fi
1364 done
1365 if test -z "$ac_aux_dir"; then
1366   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1373
1374 # Find a good install program.  We prefer a C program (faster),
1375 # so one script is as good as another.  But avoid the broken or
1376 # incompatible versions:
1377 # SysV /etc/install, /usr/sbin/install
1378 # SunOS /usr/etc/install
1379 # IRIX /sbin/install
1380 # AIX /bin/install
1381 # AmigaOS /C/install, which installs bootblocks on floppy discs
1382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1385 # OS/2's system install, which has a completely different semantic
1386 # ./install, which can be erroneously created by make from ./install.sh.
1387 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1389 if test -z "$INSTALL"; then
1390 if test "${ac_cv_path_install+set}" = set; then
1391   echo $ECHO_N "(cached) $ECHO_C" >&6
1392 else
1393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 for as_dir in $PATH
1395 do
1396   IFS=$as_save_IFS
1397   test -z "$as_dir" && as_dir=.
1398   # Account for people who put trailing slashes in PATH elements.
1399 case $as_dir/ in
1400   ./ | .// | /cC/* | \
1401   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1402   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1403   /usr/ucb/* ) ;;
1404   *)
1405     # OSF1 and SCO ODT 3.0 have their own names for install.
1406     # Don't use installbsd from OSF since it installs stuff as root
1407     # by default.
1408     for ac_prog in ginstall scoinst install; do
1409       for ac_exec_ext in '' $ac_executable_extensions; do
1410         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1411           if test $ac_prog = install &&
1412             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1413             # AIX install.  It has an incompatible calling convention.
1414             :
1415           elif test $ac_prog = install &&
1416             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1417             # program-specific install script used by HP pwplus--don't use.
1418             :
1419           else
1420             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1421             break 3
1422           fi
1423         fi
1424       done
1425     done
1426     ;;
1427 esac
1428 done
1429
1430
1431 fi
1432   if test "${ac_cv_path_install+set}" = set; then
1433     INSTALL=$ac_cv_path_install
1434   else
1435     # As a last resort, use the slow shell script.  We don't cache a
1436     # path for INSTALL within a source directory, because that will
1437     # break other packages using the cache if that directory is
1438     # removed, or if the path is relative.
1439     INSTALL=$ac_install_sh
1440   fi
1441 fi
1442 echo "$as_me:$LINENO: result: $INSTALL" >&5
1443 echo "${ECHO_T}$INSTALL" >&6
1444
1445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1446 # It thinks the first close brace ends the variable substitution.
1447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1448
1449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1450
1451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1452
1453 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1454 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1455 # Just in case
1456 sleep 1
1457 echo timestamp > conftest.file
1458 # Do `set' in a subshell so we don't clobber the current shell's
1459 # arguments.  Must try -L first in case configure is actually a
1460 # symlink; some systems play weird games with the mod time of symlinks
1461 # (eg FreeBSD returns the mod time of the symlink's containing
1462 # directory).
1463 if (
1464    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1465    if test "$*" = "X"; then
1466       # -L didn't work.
1467       set X `ls -t $srcdir/configure conftest.file`
1468    fi
1469    rm -f conftest.file
1470    if test "$*" != "X $srcdir/configure conftest.file" \
1471       && test "$*" != "X conftest.file $srcdir/configure"; then
1472
1473       # If neither matched, then we have a broken ls.  This can happen
1474       # if, for instance, CONFIG_SHELL is bash and it inherits a
1475       # broken ls alias from the environment.  This has actually
1476       # happened.  Such a system could not be considered "sane".
1477       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1478 alias in your environment" >&5
1479 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1480 alias in your environment" >&2;}
1481    { (exit 1); exit 1; }; }
1482    fi
1483
1484    test "$2" = conftest.file
1485    )
1486 then
1487    # Ok.
1488    :
1489 else
1490    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1491 Check your system clock" >&5
1492 echo "$as_me: error: newly created file is older than distributed files!
1493 Check your system clock" >&2;}
1494    { (exit 1); exit 1; }; }
1495 fi
1496 echo "$as_me:$LINENO: result: yes" >&5
1497 echo "${ECHO_T}yes" >&6
1498 test "$program_prefix" != NONE &&
1499   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1500 # Use a double $ so make ignores it.
1501 test "$program_suffix" != NONE &&
1502   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1503 # Double any \ or $.  echo might interpret backslashes.
1504 # By default was `s,x,x', remove it if useless.
1505 cat <<\_ACEOF >conftest.sed
1506 s/[\\$]/&&/g;s/;s,x,x,$//
1507 _ACEOF
1508 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1509 rm conftest.sed
1510
1511 # expand $ac_aux_dir to an absolute path
1512 am_aux_dir=`cd $ac_aux_dir && pwd`
1513
1514 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1515 # Use eval to expand $SHELL
1516 if eval "$MISSING --run true"; then
1517   am_missing_run="$MISSING --run "
1518 else
1519   am_missing_run=
1520   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1521 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1522 fi
1523
1524 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1525   # We used to keeping the `.' as first argument, in order to
1526   # allow $(mkdir_p) to be used without argument.  As in
1527   #   $(mkdir_p) $(somedir)
1528   # where $(somedir) is conditionally defined.  However this is wrong
1529   # for two reasons:
1530   #  1. if the package is installed by a user who cannot write `.'
1531   #     make install will fail,
1532   #  2. the above comment should most certainly read
1533   #     $(mkdir_p) $(DESTDIR)$(somedir)
1534   #     so it does not work when $(somedir) is undefined and
1535   #     $(DESTDIR) is not.
1536   #  To support the latter case, we have to write
1537   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1538   #  so the `.' trick is pointless.
1539   mkdir_p='mkdir -p --'
1540 else
1541   # On NextStep and OpenStep, the `mkdir' command does not
1542   # recognize any option.  It will interpret all options as
1543   # directories to create, and then abort because `.' already
1544   # exists.
1545   for d in ./-p ./--version;
1546   do
1547     test -d $d && rmdir $d
1548   done
1549   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1550   if test -f "$ac_aux_dir/mkinstalldirs"; then
1551     mkdir_p='$(mkinstalldirs)'
1552   else
1553     mkdir_p='$(install_sh) -d'
1554   fi
1555 fi
1556
1557 for ac_prog in gawk mawk nawk awk
1558 do
1559   # Extract the first word of "$ac_prog", so it can be a program name with args.
1560 set dummy $ac_prog; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_AWK+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   if test -n "$AWK"; then
1567   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1571 do
1572   IFS=$as_save_IFS
1573   test -z "$as_dir" && as_dir=.
1574   for ac_exec_ext in '' $ac_executable_extensions; do
1575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576     ac_cv_prog_AWK="$ac_prog"
1577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578     break 2
1579   fi
1580 done
1581 done
1582
1583 fi
1584 fi
1585 AWK=$ac_cv_prog_AWK
1586 if test -n "$AWK"; then
1587   echo "$as_me:$LINENO: result: $AWK" >&5
1588 echo "${ECHO_T}$AWK" >&6
1589 else
1590   echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1592 fi
1593
1594   test -n "$AWK" && break
1595 done
1596
1597 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1598 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1599 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1600 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   cat >conftest.make <<\_ACEOF
1604 all:
1605         @echo 'ac_maketemp="$(MAKE)"'
1606 _ACEOF
1607 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1608 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1609 if test -n "$ac_maketemp"; then
1610   eval ac_cv_prog_make_${ac_make}_set=yes
1611 else
1612   eval ac_cv_prog_make_${ac_make}_set=no
1613 fi
1614 rm -f conftest.make
1615 fi
1616 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1617   echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1619   SET_MAKE=
1620 else
1621   echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1623   SET_MAKE="MAKE=${MAKE-make}"
1624 fi
1625
1626 rm -rf .tst 2>/dev/null
1627 mkdir .tst 2>/dev/null
1628 if test -d .tst; then
1629   am__leading_dot=.
1630 else
1631   am__leading_dot=_
1632 fi
1633 rmdir .tst 2>/dev/null
1634
1635 # test to see if srcdir already configured
1636 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1637    test -f $srcdir/config.status; then
1638   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1639 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1640    { (exit 1); exit 1; }; }
1641 fi
1642
1643 # test whether we have cygpath
1644 if test -z "$CYGPATH_W"; then
1645   if (cygpath --version) >/dev/null 2>/dev/null; then
1646     CYGPATH_W='cygpath -w'
1647   else
1648     CYGPATH_W=echo
1649   fi
1650 fi
1651
1652
1653 # Define the identity of the package.
1654  PACKAGE='gawk'
1655  VERSION='3.1.5'
1656
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE "$PACKAGE"
1660 _ACEOF
1661
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define VERSION "$VERSION"
1665 _ACEOF
1666
1667 # Some tools Automake needs.
1668
1669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1670
1671
1672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1673
1674
1675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1676
1677
1678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1679
1680
1681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1682
1683 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1684
1685 # Installed binaries are usually stripped using `strip' when the user
1686 # run `make install-strip'.  However `strip' might not be the right
1687 # tool to use in cross-compilation environments, therefore Automake
1688 # will honor the `STRIP' environment variable to overrule this program.
1689 if test "$cross_compiling" != no; then
1690   if test -n "$ac_tool_prefix"; then
1691   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}strip; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_STRIP+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$STRIP"; then
1699   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 STRIP=$ac_cv_prog_STRIP
1718 if test -n "$STRIP"; then
1719   echo "$as_me:$LINENO: result: $STRIP" >&5
1720 echo "${ECHO_T}$STRIP" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726 fi
1727 if test -z "$ac_cv_prog_STRIP"; then
1728   ac_ct_STRIP=$STRIP
1729   # Extract the first word of "strip", so it can be a program name with args.
1730 set dummy strip; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$ac_ct_STRIP"; then
1737   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_ac_ct_STRIP="strip"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1754 fi
1755 fi
1756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1757 if test -n "$ac_ct_STRIP"; then
1758   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1759 echo "${ECHO_T}$ac_ct_STRIP" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765   STRIP=$ac_ct_STRIP
1766 else
1767   STRIP="$ac_cv_prog_STRIP"
1768 fi
1769
1770 fi
1771 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1772
1773 # We need awk for the "check" target.  The system "awk" is bad on
1774 # some platforms.
1775 # Always define AMTAR for backward compatibility.
1776
1777 AMTAR=${AMTAR-"${am_missing_run}tar"}
1778
1779 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1780
1781
1782
1783
1784
1785
1786 # Check whether --enable-portals or --disable-portals was given.
1787 if test "${enable_portals+set}" = set; then
1788   enableval="$enable_portals"
1789   if test "$enableval" = yes
1790         then
1791
1792 cat >>confdefs.h <<\_ACEOF
1793 #define HAVE_PORTALS 1
1794 _ACEOF
1795
1796         fi
1797
1798 fi;
1799
1800 # Check whether --with-whiny-user-strftime or --without-whiny-user-strftime was given.
1801 if test "${with_whiny_user_strftime+set}" = set; then
1802   withval="$with_whiny_user_strftime"
1803   if test "$withval" = yes
1804         then
1805
1806 cat >>confdefs.h <<\_ACEOF
1807 #define USE_INCLUDED_STRFTIME 1
1808 _ACEOF
1809
1810         fi
1811
1812 fi;
1813 # Check whether --enable-lint or --disable-lint was given.
1814 if test "${enable_lint+set}" = set; then
1815   enableval="$enable_lint"
1816   if test "$enableval" = no
1817         then
1818
1819 cat >>confdefs.h <<\_ACEOF
1820 #define NO_LINT 1
1821 _ACEOF
1822
1823         fi
1824
1825 fi;
1826 # Check whether --enable-switch or --disable-switch was given.
1827 if test "${enable_switch+set}" = set; then
1828   enableval="$enable_switch"
1829   if test "$enableval" = yes
1830         then
1831
1832 cat >>confdefs.h <<\_ACEOF
1833 #define ALLOW_SWITCH 1
1834 _ACEOF
1835
1836         fi
1837
1838 fi;
1839
1840 echo "$as_me:$LINENO: checking for egrep" >&5
1841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1842 if test "${ac_cv_prog_egrep+set}" = set; then
1843   echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1846     then ac_cv_prog_egrep='grep -E'
1847     else ac_cv_prog_egrep='egrep'
1848     fi
1849 fi
1850 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1851 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1852  EGREP=$ac_cv_prog_egrep
1853
1854
1855 for ac_prog in 'bison -y' byacc
1856 do
1857   # Extract the first word of "$ac_prog", so it can be a program name with args.
1858 set dummy $ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_YACC+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   if test -n "$YACC"; then
1865   ac_cv_prog_YACC="$YACC" # Let the user override the test.
1866 else
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1868 for as_dir in $PATH
1869 do
1870   IFS=$as_save_IFS
1871   test -z "$as_dir" && as_dir=.
1872   for ac_exec_ext in '' $ac_executable_extensions; do
1873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874     ac_cv_prog_YACC="$ac_prog"
1875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1876     break 2
1877   fi
1878 done
1879 done
1880
1881 fi
1882 fi
1883 YACC=$ac_cv_prog_YACC
1884 if test -n "$YACC"; then
1885   echo "$as_me:$LINENO: result: $YACC" >&5
1886 echo "${ECHO_T}$YACC" >&6
1887 else
1888   echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 fi
1891
1892   test -n "$YACC" && break
1893 done
1894 test -n "$YACC" || YACC="yacc"
1895
1896 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1897 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1898 LN_S=$as_ln_s
1899 if test "$LN_S" = "ln -s"; then
1900   echo "$as_me:$LINENO: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1904 echo "${ECHO_T}no, using $LN_S" >&6
1905 fi
1906
1907 ac_ext=c
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950   ac_ct_CC=$CC
1951   # Extract the first word of "gcc", so it can be a program name with args.
1952 set dummy gcc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="gcc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   CC=$ac_ct_CC
1987 else
1988   CC="$ac_cv_prog_CC"
1989 fi
1990
1991 if test -z "$CC"; then
1992   if test -n "$ac_tool_prefix"; then
1993   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1994 set dummy ${ac_tool_prefix}cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$CC"; then
2001   ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   for ac_exec_ext in '' $ac_executable_extensions; do
2009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010     ac_cv_prog_CC="${ac_tool_prefix}cc"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013   fi
2014 done
2015 done
2016
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021   echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 fi
2029 if test -z "$ac_cv_prog_CC"; then
2030   ac_ct_CC=$CC
2031   # Extract the first word of "cc", so it can be a program name with args.
2032 set dummy cc; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$ac_ct_CC"; then
2039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048     ac_cv_prog_ac_ct_CC="cc"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054
2055 fi
2056 fi
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2061 else
2062   echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2064 fi
2065
2066   CC=$ac_ct_CC
2067 else
2068   CC="$ac_cv_prog_CC"
2069 fi
2070
2071 fi
2072 if test -z "$CC"; then
2073   # Extract the first word of "cc", so it can be a program name with args.
2074 set dummy cc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   if test -n "$CC"; then
2081   ac_cv_prog_CC="$CC" # Let the user override the test.
2082 else
2083   ac_prog_rejected=no
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087   IFS=$as_save_IFS
2088   test -z "$as_dir" && as_dir=.
2089   for ac_exec_ext in '' $ac_executable_extensions; do
2090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2092        ac_prog_rejected=yes
2093        continue
2094      fi
2095     ac_cv_prog_CC="cc"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101
2102 if test $ac_prog_rejected = yes; then
2103   # We found a bogon in the path, so make sure we never use it.
2104   set dummy $ac_cv_prog_CC
2105   shift
2106   if test $# != 0; then
2107     # We chose a different compiler from the bogus one.
2108     # However, it has the same basename, so the bogon will be chosen
2109     # first if we set CC to just the basename; use the full file name.
2110     shift
2111     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2112   fi
2113 fi
2114 fi
2115 fi
2116 CC=$ac_cv_prog_CC
2117 if test -n "$CC"; then
2118   echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6
2120 else
2121   echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2123 fi
2124
2125 fi
2126 if test -z "$CC"; then
2127   if test -n "$ac_tool_prefix"; then
2128   for ac_prog in cl
2129   do
2130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2160 else
2161   echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165     test -n "$CC" && break
2166   done
2167 fi
2168 if test -z "$CC"; then
2169   ac_ct_CC=$CC
2170   for ac_prog in cl
2171 do
2172   # Extract the first word of "$ac_prog", so it can be a program name with args.
2173 set dummy $ac_prog; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$ac_ct_CC"; then
2180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189     ac_cv_prog_ac_ct_CC="$ac_prog"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195
2196 fi
2197 fi
2198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199 if test -n "$ac_ct_CC"; then
2200   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201 echo "${ECHO_T}$ac_ct_CC" >&6
2202 else
2203   echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2205 fi
2206
2207   test -n "$ac_ct_CC" && break
2208 done
2209
2210   CC=$ac_ct_CC
2211 fi
2212
2213 fi
2214
2215
2216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: no acceptable C compiler found in \$PATH
2219 See \`config.log' for more details." >&2;}
2220    { (exit 1); exit 1; }; }
2221
2222 # Provide some information about the compiler.
2223 echo "$as_me:$LINENO:" \
2224      "checking for C compiler version" >&5
2225 ac_compiler=`set X $ac_compile; echo $2`
2226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2227   (eval $ac_compiler --version </dev/null >&5) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }
2231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2232   (eval $ac_compiler -v </dev/null >&5) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }
2236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2237   (eval $ac_compiler -V </dev/null >&5) 2>&5
2238   ac_status=$?
2239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240   (exit $ac_status); }
2241
2242 cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 ac_clean_files_save=$ac_clean_files
2258 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2259 # Try to create an executable without -o first, disregard a.out.
2260 # It will help us diagnose broken compilers, and finding out an intuition
2261 # of exeext.
2262 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2263 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2264 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2265 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2266   (eval $ac_link_default) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; then
2270   # Find the output, starting from the most likely.  This scheme is
2271 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2272 # resort.
2273
2274 # Be careful to initialize this variable, since it used to be cached.
2275 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2276 ac_cv_exeext=
2277 # b.out is created by i960 compilers.
2278 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2279 do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2283         ;;
2284     conftest.$ac_ext )
2285         # This is the source file.
2286         ;;
2287     [ab].out )
2288         # We found the default executable, but exeext='' is most
2289         # certainly right.
2290         break;;
2291     *.* )
2292         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293         # FIXME: I believe we export ac_cv_exeext for Libtool,
2294         # but it would be cool to find out if it's true.  Does anybody
2295         # maintain Libtool? --akim.
2296         export ac_cv_exeext
2297         break;;
2298     * )
2299         break;;
2300   esac
2301 done
2302 else
2303   echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: C compiler cannot create executables
2309 See \`config.log' for more details." >&2;}
2310    { (exit 77); exit 77; }; }
2311 fi
2312
2313 ac_exeext=$ac_cv_exeext
2314 echo "$as_me:$LINENO: result: $ac_file" >&5
2315 echo "${ECHO_T}$ac_file" >&6
2316
2317 # Check the compiler produces executables we can run.  If not, either
2318 # the compiler is broken, or we cross compile.
2319 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2320 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2321 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2322 # If not cross compiling, check that we can run a simple program.
2323 if test "$cross_compiling" != yes; then
2324   if { ac_try='./$ac_file'
2325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326   (eval $ac_try) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; }; then
2330     cross_compiling=no
2331   else
2332     if test "$cross_compiling" = maybe; then
2333         cross_compiling=yes
2334     else
2335         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&2;}
2341    { (exit 1); exit 1; }; }
2342     fi
2343   fi
2344 fi
2345 echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6
2347
2348 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2349 ac_clean_files=$ac_clean_files_save
2350 # Check the compiler produces executables we can run.  If not, either
2351 # the compiler is broken, or we cross compile.
2352 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2353 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2354 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2355 echo "${ECHO_T}$cross_compiling" >&6
2356
2357 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2358 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2360   (eval $ac_link) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 # `rm'.
2368 for ac_file in conftest.exe conftest conftest.*; do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373           export ac_cv_exeext
2374           break;;
2375     * ) break;;
2376   esac
2377 done
2378 else
2379   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2382 See \`config.log' for more details." >&2;}
2383    { (exit 1); exit 1; }; }
2384 fi
2385
2386 rm -f conftest$ac_cv_exeext
2387 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2388 echo "${ECHO_T}$ac_cv_exeext" >&6
2389
2390 rm -f conftest.$ac_ext
2391 EXEEXT=$ac_cv_exeext
2392 ac_exeext=$EXEEXT
2393 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2394 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2395 if test "${ac_cv_objext+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404
2405 int
2406 main ()
2407 {
2408
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.o conftest.obj
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; then
2419   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2420   case $ac_file in
2421     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2422     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2423        break;;
2424   esac
2425 done
2426 else
2427   echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2433 See \`config.log' for more details." >&2;}
2434    { (exit 1); exit 1; }; }
2435 fi
2436
2437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2438 fi
2439 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2440 echo "${ECHO_T}$ac_cv_objext" >&6
2441 OBJEXT=$ac_cv_objext
2442 ac_objext=$OBJEXT
2443 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2444 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2445 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458 #ifndef __GNUC__
2459        choke me
2460 #endif
2461
2462   ;
2463   return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468   (eval $ac_compile) 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag"
2476                          || test ! -s conftest.err'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_compiler_gnu=yes
2489 else
2490   echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 ac_compiler_gnu=no
2494 fi
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2497
2498 fi
2499 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2500 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2501 GCC=`test $ac_compiler_gnu = yes && echo yes`
2502 ac_test_CFLAGS=${CFLAGS+set}
2503 ac_save_CFLAGS=$CFLAGS
2504 CFLAGS="-g"
2505 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2506 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_g+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   cat >conftest.$ac_ext <<_ACEOF
2511 /* confdefs.h.  */
2512 _ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h.  */
2516
2517 int
2518 main ()
2519 {
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>conftest.er1
2528   ac_status=$?
2529   grep -v '^ *+' conftest.er1 >conftest.err
2530   rm -f conftest.er1
2531   cat conftest.err >&5
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); } &&
2534          { ac_try='test -z "$ac_c_werror_flag"
2535                          || test ! -s conftest.err'
2536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537   (eval $ac_try) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; } &&
2541          { ac_try='test -s conftest.$ac_objext'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; }; then
2547   ac_cv_prog_cc_g=yes
2548 else
2549   echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552 ac_cv_prog_cc_g=no
2553 fi
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555 fi
2556 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2558 if test "$ac_test_CFLAGS" = set; then
2559   CFLAGS=$ac_save_CFLAGS
2560 elif test $ac_cv_prog_cc_g = yes; then
2561   if test "$GCC" = yes; then
2562     CFLAGS="-g -O2"
2563   else
2564     CFLAGS="-g"
2565   fi
2566 else
2567   if test "$GCC" = yes; then
2568     CFLAGS="-O2"
2569   else
2570     CFLAGS=
2571   fi
2572 fi
2573 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2574 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2575 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   ac_cv_prog_cc_stdc=no
2579 ac_save_CC=$CC
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586 #include <stdarg.h>
2587 #include <stdio.h>
2588 #include <sys/types.h>
2589 #include <sys/stat.h>
2590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2591 struct buf { int x; };
2592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2593 static char *e (p, i)
2594      char **p;
2595      int i;
2596 {
2597   return p[i];
2598 }
2599 static char *f (char * (*g) (char **, int), char **p, ...)
2600 {
2601   char *s;
2602   va_list v;
2603   va_start (v,p);
2604   s = g (p, va_arg (v,int));
2605   va_end (v);
2606   return s;
2607 }
2608
2609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2610    function prototypes and stuff, but not '\xHH' hex character constants.
2611    These don't provoke an error unfortunately, instead are silently treated
2612    as 'x'.  The following induces an error, until -std1 is added to get
2613    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2614    array size at least.  It's necessary to write '\x00'==0 to get something
2615    that's true only with -std1.  */
2616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2617
2618 int test (int i, double x);
2619 struct s1 {int (*f) (int a);};
2620 struct s2 {int (*f) (double a);};
2621 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2622 int argc;
2623 char **argv;
2624 int
2625 main ()
2626 {
2627 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 # Don't try gcc -ansi; that turns off useful extensions and
2633 # breaks some systems' header files.
2634 # AIX                   -qlanglvl=ansi
2635 # Ultrix and OSF/1      -std1
2636 # HP-UX 10.20 and later -Ae
2637 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2638 # SVR4                  -Xc -D__EXTENSIONS__
2639 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2640 do
2641   CC="$ac_save_CC $ac_arg"
2642   rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644   (eval $ac_compile) 2>conftest.er1
2645   ac_status=$?
2646   grep -v '^ *+' conftest.er1 >conftest.err
2647   rm -f conftest.er1
2648   cat conftest.err >&5
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); } &&
2651          { ac_try='test -z "$ac_c_werror_flag"
2652                          || test ! -s conftest.err'
2653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654   (eval $ac_try) 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }; } &&
2658          { ac_try='test -s conftest.$ac_objext'
2659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660   (eval $ac_try) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; }; then
2664   ac_cv_prog_cc_stdc=$ac_arg
2665 break
2666 else
2667   echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2669
2670 fi
2671 rm -f conftest.err conftest.$ac_objext
2672 done
2673 rm -f conftest.$ac_ext conftest.$ac_objext
2674 CC=$ac_save_CC
2675
2676 fi
2677
2678 case "x$ac_cv_prog_cc_stdc" in
2679   x|xno)
2680     echo "$as_me:$LINENO: result: none needed" >&5
2681 echo "${ECHO_T}none needed" >&6 ;;
2682   *)
2683     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2684 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2685     CC="$CC $ac_cv_prog_cc_stdc" ;;
2686 esac
2687
2688 # Some people use a C++ compiler to compile C.  Since we use `exit',
2689 # in C++ we need to declare it.  In case someone uses the same compiler
2690 # for both compiling C and C++ we need to have the C++ compiler decide
2691 # the declaration of exit, since it's the most demanding environment.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 #ifndef __cplusplus
2694   choke me
2695 #endif
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699   (eval $ac_compile) 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } &&
2706          { ac_try='test -z "$ac_c_werror_flag"
2707                          || test ! -s conftest.err'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; } &&
2713          { ac_try='test -s conftest.$ac_objext'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; }; then
2719   for ac_declaration in \
2720    '' \
2721    'extern "C" void std::exit (int) throw (); using std::exit;' \
2722    'extern "C" void std::exit (int); using std::exit;' \
2723    'extern "C" void exit (int) throw ();' \
2724    'extern "C" void exit (int);' \
2725    'void exit (int);'
2726 do
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733 $ac_declaration
2734 #include <stdlib.h>
2735 int
2736 main ()
2737 {
2738 exit (42);
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_c_werror_flag"
2753                          || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   :
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 continue
2771 fi
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779 $ac_declaration
2780 int
2781 main ()
2782 {
2783 exit (42);
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -z "$ac_c_werror_flag"
2798                          || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   break
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 fi
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 done
2818 rm -f conftest*
2819 if test -n "$ac_declaration"; then
2820   echo '#ifdef __cplusplus' >>confdefs.h
2821   echo $ac_declaration      >>confdefs.h
2822   echo '#endif'             >>confdefs.h
2823 fi
2824
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 fi
2830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 DEPDIR="${am__leading_dot}deps"
2837
2838           ac_config_commands="$ac_config_commands depfiles"
2839
2840
2841 am_make=${MAKE-make}
2842 cat > confinc << 'END'
2843 am__doit:
2844         @echo done
2845 .PHONY: am__doit
2846 END
2847 # If we don't find an include directive, just comment out the code.
2848 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2849 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2850 am__include="#"
2851 am__quote=
2852 _am_result=none
2853 # First try GNU make style include.
2854 echo "include confinc" > confmf
2855 # We grep out `Entering directory' and `Leaving directory'
2856 # messages which can occur if `w' ends up in MAKEFLAGS.
2857 # In particular we don't look at `^make:' because GNU make might
2858 # be invoked under some other name (usually "gmake"), in which
2859 # case it prints its new name instead of `make'.
2860 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2861    am__include=include
2862    am__quote=
2863    _am_result=GNU
2864 fi
2865 # Now try BSD make style include.
2866 if test "$am__include" = "#"; then
2867    echo '.include "confinc"' > confmf
2868    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2869       am__include=.include
2870       am__quote="\""
2871       _am_result=BSD
2872    fi
2873 fi
2874
2875
2876 echo "$as_me:$LINENO: result: $_am_result" >&5
2877 echo "${ECHO_T}$_am_result" >&6
2878 rm -f confinc confmf
2879
2880 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2881 if test "${enable_dependency_tracking+set}" = set; then
2882   enableval="$enable_dependency_tracking"
2883
2884 fi;
2885 if test "x$enable_dependency_tracking" != xno; then
2886   am_depcomp="$ac_aux_dir/depcomp"
2887   AMDEPBACKSLASH='\'
2888 fi
2889
2890
2891 if test "x$enable_dependency_tracking" != xno; then
2892   AMDEP_TRUE=
2893   AMDEP_FALSE='#'
2894 else
2895   AMDEP_TRUE='#'
2896   AMDEP_FALSE=
2897 fi
2898
2899
2900
2901
2902 depcc="$CC"   am_compiler_list=
2903
2904 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2905 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2906 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2907   echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2910   # We make a subdir and do the tests there.  Otherwise we can end up
2911   # making bogus files that we don't know about and never remove.  For
2912   # instance it was reported that on HP-UX the gcc test will end up
2913   # making a dummy file named `D' -- because `-MD' means `put the output
2914   # in D'.
2915   mkdir conftest.dir
2916   # Copy depcomp to subdir because otherwise we won't find it if we're
2917   # using a relative directory.
2918   cp "$am_depcomp" conftest.dir
2919   cd conftest.dir
2920   # We will build objects and dependencies in a subdirectory because
2921   # it helps to detect inapplicable dependency modes.  For instance
2922   # both Tru64's cc and ICC support -MD to output dependencies as a
2923   # side effect of compilation, but ICC will put the dependencies in
2924   # the current directory while Tru64 will put them in the object
2925   # directory.
2926   mkdir sub
2927
2928   am_cv_CC_dependencies_compiler_type=none
2929   if test "$am_compiler_list" = ""; then
2930      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2931   fi
2932   for depmode in $am_compiler_list; do
2933     # Setup a source with many dependencies, because some compilers
2934     # like to wrap large dependency lists on column 80 (with \), and
2935     # we should not choose a depcomp mode which is confused by this.
2936     #
2937     # We need to recreate these files for each test, as the compiler may
2938     # overwrite some of them when testing with obscure command lines.
2939     # This happens at least with the AIX C compiler.
2940     : > sub/conftest.c
2941     for i in 1 2 3 4 5 6; do
2942       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2943       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2944       # Solaris 8's {/usr,}/bin/sh.
2945       touch sub/conftst$i.h
2946     done
2947     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2948
2949     case $depmode in
2950     nosideeffect)
2951       # after this tag, mechanisms are not by side-effect, so they'll
2952       # only be used when explicitly requested
2953       if test "x$enable_dependency_tracking" = xyes; then
2954         continue
2955       else
2956         break
2957       fi
2958       ;;
2959     none) break ;;
2960     esac
2961     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2962     # mode.  It turns out that the SunPro C++ compiler does not properly
2963     # handle `-M -o', and we need to detect this.
2964     if depmode=$depmode \
2965        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2966        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2967        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2968          >/dev/null 2>conftest.err &&
2969        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2970        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2971        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2972       # icc doesn't choke on unknown options, it will just issue warnings
2973       # or remarks (even with -Werror).  So we grep stderr for any message
2974       # that says an option was ignored or not supported.
2975       # When given -MP, icc 7.0 and 7.1 complain thusly:
2976       #   icc: Command line warning: ignoring option '-M'; no argument required
2977       # The diagnosis changed in icc 8.0:
2978       #   icc: Command line remark: option '-MP' not supported
2979       if (grep 'ignoring option' conftest.err ||
2980           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2981         am_cv_CC_dependencies_compiler_type=$depmode
2982         break
2983       fi
2984     fi
2985   done
2986
2987   cd ..
2988   rm -rf conftest.dir
2989 else
2990   am_cv_CC_dependencies_compiler_type=none
2991 fi
2992
2993 fi
2994 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2995 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2996 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2997
2998
2999
3000 if
3001   test "x$enable_dependency_tracking" != xno \
3002   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3003   am__fastdepCC_TRUE=
3004   am__fastdepCC_FALSE='#'
3005 else
3006   am__fastdepCC_TRUE='#'
3007   am__fastdepCC_FALSE=
3008 fi
3009
3010
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3018 # On Suns, sometimes $CPP names a directory.
3019 if test -n "$CPP" && test -d "$CPP"; then
3020   CPP=
3021 fi
3022 if test -z "$CPP"; then
3023   if test "${ac_cv_prog_CPP+set}" = set; then
3024   echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026       # Double quotes because CPP needs to be expanded
3027     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3028     do
3029       ac_preproc_ok=false
3030 for ac_c_preproc_warn_flag in '' yes
3031 do
3032   # Use a header file that comes with gcc, so configuring glibc
3033   # with a fresh cross-compiler works.
3034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035   # <limits.h> exists even on freestanding compilers.
3036   # On the NeXT, cc -E runs the code through the compiler's parser,
3037   # not just through cpp. "Syntax error" is here to catch this case.
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044 #ifdef __STDC__
3045 # include <limits.h>
3046 #else
3047 # include <assert.h>
3048 #endif
3049                      Syntax error
3050 _ACEOF
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } >/dev/null; then
3059   if test -s conftest.err; then
3060     ac_cpp_err=$ac_c_preproc_warn_flag
3061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062   else
3063     ac_cpp_err=
3064   fi
3065 else
3066   ac_cpp_err=yes
3067 fi
3068 if test -z "$ac_cpp_err"; then
3069   :
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074   # Broken: fails on valid input.
3075 continue
3076 fi
3077 rm -f conftest.err conftest.$ac_ext
3078
3079   # OK, works on sane cases.  Now check whether non-existent headers
3080   # can be detected and how.
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087 #include <ac_nonexistent.h>
3088 _ACEOF
3089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } >/dev/null; then
3097   if test -s conftest.err; then
3098     ac_cpp_err=$ac_c_preproc_warn_flag
3099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100   else
3101     ac_cpp_err=
3102   fi
3103 else
3104   ac_cpp_err=yes
3105 fi
3106 if test -z "$ac_cpp_err"; then
3107   # Broken: success on invalid input.
3108 continue
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113   # Passes both tests.
3114 ac_preproc_ok=:
3115 break
3116 fi
3117 rm -f conftest.err conftest.$ac_ext
3118
3119 done
3120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3121 rm -f conftest.err conftest.$ac_ext
3122 if $ac_preproc_ok; then
3123   break
3124 fi
3125
3126     done
3127     ac_cv_prog_CPP=$CPP
3128
3129 fi
3130   CPP=$ac_cv_prog_CPP
3131 else
3132   ac_cv_prog_CPP=$CPP
3133 fi
3134 echo "$as_me:$LINENO: result: $CPP" >&5
3135 echo "${ECHO_T}$CPP" >&6
3136 ac_preproc_ok=false
3137 for ac_c_preproc_warn_flag in '' yes
3138 do
3139   # Use a header file that comes with gcc, so configuring glibc
3140   # with a fresh cross-compiler works.
3141   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3142   # <limits.h> exists even on freestanding compilers.
3143   # On the NeXT, cc -E runs the code through the compiler's parser,
3144   # not just through cpp. "Syntax error" is here to catch this case.
3145   cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h.  */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h.  */
3151 #ifdef __STDC__
3152 # include <limits.h>
3153 #else
3154 # include <assert.h>
3155 #endif
3156                      Syntax error
3157 _ACEOF
3158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } >/dev/null; then
3166   if test -s conftest.err; then
3167     ac_cpp_err=$ac_c_preproc_warn_flag
3168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169   else
3170     ac_cpp_err=
3171   fi
3172 else
3173   ac_cpp_err=yes
3174 fi
3175 if test -z "$ac_cpp_err"; then
3176   :
3177 else
3178   echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181   # Broken: fails on valid input.
3182 continue
3183 fi
3184 rm -f conftest.err conftest.$ac_ext
3185
3186   # OK, works on sane cases.  Now check whether non-existent headers
3187   # can be detected and how.
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 #include <ac_nonexistent.h>
3195 _ACEOF
3196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } >/dev/null; then
3204   if test -s conftest.err; then
3205     ac_cpp_err=$ac_c_preproc_warn_flag
3206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207   else
3208     ac_cpp_err=
3209   fi
3210 else
3211   ac_cpp_err=yes
3212 fi
3213 if test -z "$ac_cpp_err"; then
3214   # Broken: success on invalid input.
3215 continue
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220   # Passes both tests.
3221 ac_preproc_ok=:
3222 break
3223 fi
3224 rm -f conftest.err conftest.$ac_ext
3225
3226 done
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228 rm -f conftest.err conftest.$ac_ext
3229 if $ac_preproc_ok; then
3230   :
3231 else
3232   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&5
3234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3235 See \`config.log' for more details." >&2;}
3236    { (exit 1); exit 1; }; }
3237 fi
3238
3239 ac_ext=c
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
3245 if test -n "$ac_tool_prefix"; then
3246   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_RANLIB+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   if test -n "$RANLIB"; then
3254   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261   for ac_exec_ext in '' $ac_executable_extensions; do
3262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268 done
3269
3270 fi
3271 fi
3272 RANLIB=$ac_cv_prog_RANLIB
3273 if test -n "$RANLIB"; then
3274   echo "$as_me:$LINENO: result: $RANLIB" >&5
3275 echo "${ECHO_T}$RANLIB" >&6
3276 else
3277   echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 fi
3280
3281 fi
3282 if test -z "$ac_cv_prog_RANLIB"; then
3283   ac_ct_RANLIB=$RANLIB
3284   # Extract the first word of "ranlib", so it can be a program name with args.
3285 set dummy ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$ac_ct_RANLIB"; then
3292   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_ac_ct_RANLIB="ranlib"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3309 fi
3310 fi
3311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3312 if test -n "$ac_ct_RANLIB"; then
3313   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3314 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3315 else
3316   echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3318 fi
3319
3320   RANLIB=$ac_ct_RANLIB
3321 else
3322   RANLIB="$ac_cv_prog_RANLIB"
3323 fi
3324
3325
3326
3327
3328
3329 # Find a good install program.  We prefer a C program (faster),
3330 # so one script is as good as another.  But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3335 # AIX /bin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3344 if test -z "$INSTALL"; then
3345 if test "${ac_cv_path_install+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   # Account for people who put trailing slashes in PATH elements.
3354 case $as_dir/ in
3355   ./ | .// | /cC/* | \
3356   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3357   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3358   /usr/ucb/* ) ;;
3359   *)
3360     # OSF1 and SCO ODT 3.0 have their own names for install.
3361     # Don't use installbsd from OSF since it installs stuff as root
3362     # by default.
3363     for ac_prog in ginstall scoinst install; do
3364       for ac_exec_ext in '' $ac_executable_extensions; do
3365         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3366           if test $ac_prog = install &&
3367             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3368             # AIX install.  It has an incompatible calling convention.
3369             :
3370           elif test $ac_prog = install &&
3371             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3372             # program-specific install script used by HP pwplus--don't use.
3373             :
3374           else
3375             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3376             break 3
3377           fi
3378         fi
3379       done
3380     done
3381     ;;
3382 esac
3383 done
3384
3385
3386 fi
3387   if test "${ac_cv_path_install+set}" = set; then
3388     INSTALL=$ac_cv_path_install
3389   else
3390     # As a last resort, use the slow shell script.  We don't cache a
3391     # path for INSTALL within a source directory, because that will
3392     # break other packages using the cache if that directory is
3393     # removed, or if the path is relative.
3394     INSTALL=$ac_install_sh
3395   fi
3396 fi
3397 echo "$as_me:$LINENO: result: $INSTALL" >&5
3398 echo "${ECHO_T}$INSTALL" >&6
3399
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3403
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3405
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3407
3408
3409 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3410 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3411 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3412 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   cat >conftest.make <<\_ACEOF
3416 all:
3417         @echo 'ac_maketemp="$(MAKE)"'
3418 _ACEOF
3419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3420 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3421 if test -n "$ac_maketemp"; then
3422   eval ac_cv_prog_make_${ac_make}_set=yes
3423 else
3424   eval ac_cv_prog_make_${ac_make}_set=no
3425 fi
3426 rm -f conftest.make
3427 fi
3428 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3429   echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3431   SET_MAKE=
3432 else
3433   echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435   SET_MAKE="MAKE=${MAKE-make}"
3436 fi
3437
3438
3439 # This is mainly for my use during testing and development.
3440 # Yes, it's a bit of a hack.
3441 echo "$as_me:$LINENO: checking for special development options" >&5
3442 echo $ECHO_N "checking for special development options... $ECHO_C" >&6
3443 if test -f $srcdir/.developing
3444 then
3445         # add other debug flags as appropriate, save GAWKDEBUG for emergencies
3446         CFLAGS="$CFLAGS -DARRAYDEBUG"
3447         if grep dbug $srcdir/.developing
3448         then
3449                 CFLAGS="$CFLAGS -DDBUG"
3450                 LIBS="$LIBS dbug/libdbug.a"
3451         fi
3452         # turn on compiler warnings if we're doing development
3453         if test "$GCC" = yes
3454         then
3455                 CFLAGS="$CFLAGS -Wall"
3456         fi
3457         echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3459 else
3460         echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464
3465
3466
3467
3468
3469 echo "$as_me:$LINENO: checking for AIX" >&5
3470 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #ifdef _AIX
3478   yes
3479 #endif
3480
3481 _ACEOF
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483   $EGREP "yes" >/dev/null 2>&1; then
3484   echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 cat >>confdefs.h <<\_ACEOF
3487 #define _ALL_SOURCE 1
3488 _ACEOF
3489
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494 rm -f conftest*
3495
3496
3497 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3498 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3499 if test "${ac_cv_search_strerror+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   ac_func_search_save_LIBS=$LIBS
3503 ac_cv_search_strerror=no
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510
3511 /* Override any gcc2 internal prototype to avoid an error.  */
3512 #ifdef __cplusplus
3513 extern "C"
3514 #endif
3515 /* We use char because int might match the return type of a gcc2
3516    builtin and then its argument prototype would still apply.  */
3517 char strerror ();
3518 int
3519 main ()
3520 {
3521 strerror ();
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext conftest$ac_exeext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528   (eval $ac_link) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } &&
3535          { ac_try='test -z "$ac_c_werror_flag"
3536                          || test ! -s conftest.err'
3537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538   (eval $ac_try) 2>&5
3539   ac_status=$?
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); }; } &&
3542          { ac_try='test -s conftest$ac_exeext'
3543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544   (eval $ac_try) 2>&5
3545   ac_status=$?
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); }; }; then
3548   ac_cv_search_strerror="none required"
3549 else
3550   echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 fi
3554 rm -f conftest.err conftest.$ac_objext \
3555       conftest$ac_exeext conftest.$ac_ext
3556 if test "$ac_cv_search_strerror" = no; then
3557   for ac_lib in cposix; do
3558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3559     cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h.  */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h.  */
3565
3566 /* Override any gcc2 internal prototype to avoid an error.  */
3567 #ifdef __cplusplus
3568 extern "C"
3569 #endif
3570 /* We use char because int might match the return type of a gcc2
3571    builtin and then its argument prototype would still apply.  */
3572 char strerror ();
3573 int
3574 main ()
3575 {
3576 strerror ();
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 rm -f conftest.$ac_objext conftest$ac_exeext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583   (eval $ac_link) 2>conftest.er1
3584   ac_status=$?
3585   grep -v '^ *+' conftest.er1 >conftest.err
3586   rm -f conftest.er1
3587   cat conftest.err >&5
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); } &&
3590          { ac_try='test -z "$ac_c_werror_flag"
3591                          || test ! -s conftest.err'
3592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593   (eval $ac_try) 2>&5
3594   ac_status=$?
3595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596   (exit $ac_status); }; } &&
3597          { ac_try='test -s conftest$ac_exeext'
3598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599   (eval $ac_try) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; }; then
3603   ac_cv_search_strerror="-l$ac_lib"
3604 break
3605 else
3606   echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 fi
3610 rm -f conftest.err conftest.$ac_objext \
3611       conftest$ac_exeext conftest.$ac_ext
3612   done
3613 fi
3614 LIBS=$ac_func_search_save_LIBS
3615 fi
3616 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3617 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3618 if test "$ac_cv_search_strerror" != no; then
3619   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3620
3621 fi
3622
3623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3625 if test "${ac_cv_header_stdc+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #include <stdlib.h>
3635 #include <stdarg.h>
3636 #include <string.h>
3637 #include <float.h>
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649   (eval $ac_compile) 2>conftest.er1
3650   ac_status=$?
3651   grep -v '^ *+' conftest.er1 >conftest.err
3652   rm -f conftest.er1
3653   cat conftest.err >&5
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); } &&
3656          { ac_try='test -z "$ac_c_werror_flag"
3657                          || test ! -s conftest.err'
3658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659   (eval $ac_try) 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }; } &&
3663          { ac_try='test -s conftest.$ac_objext'
3664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665   (eval $ac_try) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); }; }; then
3669   ac_cv_header_stdc=yes
3670 else
3671   echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3673
3674 ac_cv_header_stdc=no
3675 fi
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3677
3678 if test $ac_cv_header_stdc = yes; then
3679   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3680   cat >conftest.$ac_ext <<_ACEOF
3681 /* confdefs.h.  */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h.  */
3686 #include <string.h>
3687
3688 _ACEOF
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690   $EGREP "memchr" >/dev/null 2>&1; then
3691   :
3692 else
3693   ac_cv_header_stdc=no
3694 fi
3695 rm -f conftest*
3696
3697 fi
3698
3699 if test $ac_cv_header_stdc = yes; then
3700   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3701   cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h.  */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h.  */
3707 #include <stdlib.h>
3708
3709 _ACEOF
3710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711   $EGREP "free" >/dev/null 2>&1; then
3712   :
3713 else
3714   ac_cv_header_stdc=no
3715 fi
3716 rm -f conftest*
3717
3718 fi
3719
3720 if test $ac_cv_header_stdc = yes; then
3721   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3722   if test "$cross_compiling" = yes; then
3723   :
3724 else
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 #include <ctype.h>
3732 #if ((' ' & 0x0FF) == 0x020)
3733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3735 #else
3736 # define ISLOWER(c) \
3737                    (('a' <= (c) && (c) <= 'i') \
3738                      || ('j' <= (c) && (c) <= 'r') \
3739                      || ('s' <= (c) && (c) <= 'z'))
3740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3741 #endif
3742
3743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3744 int
3745 main ()
3746 {
3747   int i;
3748   for (i = 0; i < 256; i++)
3749     if (XOR (islower (i), ISLOWER (i))
3750         || toupper (i) != TOUPPER (i))
3751       exit(2);
3752   exit (0);
3753 }
3754 _ACEOF
3755 rm -f conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757   (eval $ac_link) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762   (eval $ac_try) 2>&5
3763   ac_status=$?
3764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765   (exit $ac_status); }; }; then
3766   :
3767 else
3768   echo "$as_me: program exited with status $ac_status" >&5
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3771
3772 ( exit $ac_status )
3773 ac_cv_header_stdc=no
3774 fi
3775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3776 fi
3777 fi
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3780 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3781 if test $ac_cv_header_stdc = yes; then
3782
3783 cat >>confdefs.h <<\_ACEOF
3784 #define STDC_HEADERS 1
3785 _ACEOF
3786
3787 fi
3788
3789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3800                   inttypes.h stdint.h unistd.h
3801 do
3802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3803 echo "$as_me:$LINENO: checking for $ac_header" >&5
3804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814 $ac_includes_default
3815
3816 #include <$ac_header>
3817 _ACEOF
3818 rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820   (eval $ac_compile) 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } &&
3827          { ac_try='test -z "$ac_c_werror_flag"
3828                          || test ! -s conftest.err'
3829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830   (eval $ac_try) 2>&5
3831   ac_status=$?
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); }; } &&
3834          { ac_try='test -s conftest.$ac_objext'
3835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836   (eval $ac_try) 2>&5
3837   ac_status=$?
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); }; }; then
3840   eval "$as_ac_Header=yes"
3841 else
3842   echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3844
3845 eval "$as_ac_Header=no"
3846 fi
3847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852   cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3854 _ACEOF
3855
3856 fi
3857
3858 done
3859
3860
3861 if test "${ac_cv_header_minix_config_h+set}" = set; then
3862   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3863 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3864 if test "${ac_cv_header_minix_config_h+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 fi
3867 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3868 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3869 else
3870   # Is the header compilable?
3871 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3872 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879 $ac_includes_default
3880 #include <minix/config.h>
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884   (eval $ac_compile) 2>conftest.er1
3885   ac_status=$?
3886   grep -v '^ *+' conftest.er1 >conftest.err
3887   rm -f conftest.er1
3888   cat conftest.err >&5
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } &&
3891          { ac_try='test -z "$ac_c_werror_flag"
3892                          || test ! -s conftest.err'
3893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894   (eval $ac_try) 2>&5
3895   ac_status=$?
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); }; } &&
3898          { ac_try='test -s conftest.$ac_objext'
3899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900   (eval $ac_try) 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }; }; then
3904   ac_header_compiler=yes
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909 ac_header_compiler=no
3910 fi
3911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3913 echo "${ECHO_T}$ac_header_compiler" >&6
3914
3915 # Is the header present?
3916 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3917 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <minix/config.h>
3925 _ACEOF
3926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3928   ac_status=$?
3929   grep -v '^ *+' conftest.er1 >conftest.err
3930   rm -f conftest.er1
3931   cat conftest.err >&5
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); } >/dev/null; then
3934   if test -s conftest.err; then
3935     ac_cpp_err=$ac_c_preproc_warn_flag
3936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3937   else
3938     ac_cpp_err=
3939   fi
3940 else
3941   ac_cpp_err=yes
3942 fi
3943 if test -z "$ac_cpp_err"; then
3944   ac_header_preproc=yes
3945 else
3946   echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949   ac_header_preproc=no
3950 fi
3951 rm -f conftest.err conftest.$ac_ext
3952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3953 echo "${ECHO_T}$ac_header_preproc" >&6
3954
3955 # So?  What about this header?
3956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3957   yes:no: )
3958     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3959 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3960     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3961 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3962     ac_header_preproc=yes
3963     ;;
3964   no:yes:* )
3965     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3966 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3967     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3968 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3969     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3970 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3971     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3972 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3973     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3974 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3975     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3976 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3977     (
3978       cat <<\_ASBOX
3979 ## ------------------------------- ##
3980 ## Report this to bug-gawk@gnu.org ##
3981 ## ------------------------------- ##
3982 _ASBOX
3983     ) |
3984       sed "s/^/$as_me: WARNING:     /" >&2
3985     ;;
3986 esac
3987 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3988 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3989 if test "${ac_cv_header_minix_config_h+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   ac_cv_header_minix_config_h=$ac_header_preproc
3993 fi
3994 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3995 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3996
3997 fi
3998 if test $ac_cv_header_minix_config_h = yes; then
3999   MINIX=yes
4000 else
4001   MINIX=
4002 fi
4003
4004
4005 if test "$MINIX" = yes; then
4006
4007 cat >>confdefs.h <<\_ACEOF
4008 #define _POSIX_SOURCE 1
4009 _ACEOF
4010
4011
4012 cat >>confdefs.h <<\_ACEOF
4013 #define _POSIX_1_SOURCE 2
4014 _ACEOF
4015
4016
4017 cat >>confdefs.h <<\_ACEOF
4018 #define _MINIX 1
4019 _ACEOF
4020
4021 fi
4022
4023 # Check whether --enable-largefile or --disable-largefile was given.
4024 if test "${enable_largefile+set}" = set; then
4025   enableval="$enable_largefile"
4026
4027 fi;
4028 if test "$enable_largefile" != no; then
4029
4030   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4031 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4032 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035   ac_cv_sys_largefile_CC=no
4036      if test "$GCC" != yes; then
4037        ac_save_CC=$CC
4038        while :; do
4039          # IRIX 6.2 and later do not support large files by default,
4040          # so use the C compiler's -n32 option if that helps.
4041          cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <sys/types.h>
4048  /* Check that off_t can represent 2**63 - 1 correctly.
4049     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050     since some C++ compilers masquerading as C compilers
4051     incorrectly reject 9223372036854775807.  */
4052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4053   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054                        && LARGE_OFF_T % 2147483647 == 1)
4055                       ? 1 : -1];
4056 int
4057 main ()
4058 {
4059
4060   ;
4061   return 0;
4062 }
4063 _ACEOF
4064          rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066   (eval $ac_compile) 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -z "$ac_c_werror_flag"
4074                          || test ! -s conftest.err'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; } &&
4080          { ac_try='test -s conftest.$ac_objext'
4081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082   (eval $ac_try) 2>&5
4083   ac_status=$?
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); }; }; then
4086   break
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 fi
4092 rm -f conftest.err conftest.$ac_objext
4093          CC="$CC -n32"
4094          rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096   (eval $ac_compile) 2>conftest.er1
4097   ac_status=$?
4098   grep -v '^ *+' conftest.er1 >conftest.err
4099   rm -f conftest.er1
4100   cat conftest.err >&5
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); } &&
4103          { ac_try='test -z "$ac_c_werror_flag"
4104                          || test ! -s conftest.err'
4105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106   (eval $ac_try) 2>&5
4107   ac_status=$?
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); }; } &&
4110          { ac_try='test -s conftest.$ac_objext'
4111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112   (eval $ac_try) 2>&5
4113   ac_status=$?
4114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115   (exit $ac_status); }; }; then
4116   ac_cv_sys_largefile_CC=' -n32'; break
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121 fi
4122 rm -f conftest.err conftest.$ac_objext
4123          break
4124        done
4125        CC=$ac_save_CC
4126        rm -f conftest.$ac_ext
4127     fi
4128 fi
4129 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4130 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4131   if test "$ac_cv_sys_largefile_CC" != no; then
4132     CC=$CC$ac_cv_sys_largefile_CC
4133   fi
4134
4135   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4136 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   while :; do
4141   ac_cv_sys_file_offset_bits=no
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <sys/types.h>
4149  /* Check that off_t can represent 2**63 - 1 correctly.
4150     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151     since some C++ compilers masquerading as C compilers
4152     incorrectly reject 9223372036854775807.  */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155                        && LARGE_OFF_T % 2147483647 == 1)
4156                       ? 1 : -1];
4157 int
4158 main ()
4159 {
4160
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167   (eval $ac_compile) 2>conftest.er1
4168   ac_status=$?
4169   grep -v '^ *+' conftest.er1 >conftest.err
4170   rm -f conftest.er1
4171   cat conftest.err >&5
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); } &&
4174          { ac_try='test -z "$ac_c_werror_flag"
4175                          || test ! -s conftest.err'
4176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177   (eval $ac_try) 2>&5
4178   ac_status=$?
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); }; } &&
4181          { ac_try='test -s conftest.$ac_objext'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   break
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192 fi
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194   cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h.  */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h.  */
4200 #define _FILE_OFFSET_BITS 64
4201 #include <sys/types.h>
4202  /* Check that off_t can represent 2**63 - 1 correctly.
4203     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4204     since some C++ compilers masquerading as C compilers
4205     incorrectly reject 9223372036854775807.  */
4206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4207   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4208                        && LARGE_OFF_T % 2147483647 == 1)
4209                       ? 1 : -1];
4210 int
4211 main ()
4212 {
4213
4214   ;
4215   return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220   (eval $ac_compile) 2>conftest.er1
4221   ac_status=$?
4222   grep -v '^ *+' conftest.er1 >conftest.err
4223   rm -f conftest.er1
4224   cat conftest.err >&5
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); } &&
4227          { ac_try='test -z "$ac_c_werror_flag"
4228                          || test ! -s conftest.err'
4229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230   (eval $ac_try) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; } &&
4234          { ac_try='test -s conftest.$ac_objext'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; }; then
4240   ac_cv_sys_file_offset_bits=64; break
4241 else
4242   echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 fi
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247   break
4248 done
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4251 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4252 if test "$ac_cv_sys_file_offset_bits" != no; then
4253
4254 cat >>confdefs.h <<_ACEOF
4255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4256 _ACEOF
4257
4258 fi
4259 rm -f conftest*
4260   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4261 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4262 if test "${ac_cv_sys_large_files+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   while :; do
4266   ac_cv_sys_large_files=no
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <sys/types.h>
4274  /* Check that off_t can represent 2**63 - 1 correctly.
4275     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4276     since some C++ compilers masquerading as C compilers
4277     incorrectly reject 9223372036854775807.  */
4278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4279   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4280                        && LARGE_OFF_T % 2147483647 == 1)
4281                       ? 1 : -1];
4282 int
4283 main ()
4284 {
4285
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest.$ac_objext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   break
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 fi
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319   cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #define _LARGE_FILES 1
4326 #include <sys/types.h>
4327  /* Check that off_t can represent 2**63 - 1 correctly.
4328     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4329     since some C++ compilers masquerading as C compilers
4330     incorrectly reject 9223372036854775807.  */
4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4332   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4333                        && LARGE_OFF_T % 2147483647 == 1)
4334                       ? 1 : -1];
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_sys_large_files=1; break
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 fi
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4372   break
4373 done
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4376 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4377 if test "$ac_cv_sys_large_files" != no; then
4378
4379 cat >>confdefs.h <<_ACEOF
4380 #define _LARGE_FILES $ac_cv_sys_large_files
4381 _ACEOF
4382
4383 fi
4384 rm -f conftest*
4385 fi
4386
4387
4388 echo "$as_me:$LINENO: checking for AIX compilation hacks" >&5
4389 echo $ECHO_N "checking for AIX compilation hacks... $ECHO_C" >&6
4390 if test "${gawk_cv_aix_hack+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393
4394 if test -d /lpp
4395 then
4396         CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
4397         gawk_cv_aix_hack=yes
4398 else
4399         gawk_cv_aix_hack=no
4400 fi
4401
4402 fi
4403 echo "$as_me:$LINENO: result: ${gawk_cv_aix_hack}" >&5
4404 echo "${ECHO_T}${gawk_cv_aix_hack}" >&6
4405
4406
4407 echo "$as_me:$LINENO: checking for Linux/Alpha compilation hacks" >&5
4408 echo $ECHO_N "checking for Linux/Alpha compilation hacks... $ECHO_C" >&6
4409 if test "${gawk_cv_linux_alpha_hack+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412
4413 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
4414 then
4415         # this isn't necessarily always true,
4416         # the vendor's compiler is also often found
4417         if test "$GCC" = yes
4418         then
4419                 CFLAGS="$CFLAGS -mieee"
4420                 gawk_cv_linux_alpha_hack=yes
4421         else
4422                 gawk_cv_linux_alpha_hack=no
4423         fi
4424 else
4425         gawk_cv_linux_alpha_hack=no
4426 fi
4427
4428 fi
4429 echo "$as_me:$LINENO: result: ${gawk_cv_linux_alpha_hack}" >&5
4430 echo "${ECHO_T}${gawk_cv_linux_alpha_hack}" >&6
4431
4432
4433 if test "$ISC" = 1      # will be set by test for ISC
4434 then
4435         CFLAGS="$CFLAGS -D_SYSV3"
4436 fi
4437
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 if test -n "$ac_tool_prefix"; then
4444   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   if test -n "$CC"; then
4452   ac_cv_prog_CC="$CC" # Let the user override the test.
4453 else
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457   IFS=$as_save_IFS
4458   test -z "$as_dir" && as_dir=.
4459   for ac_exec_ext in '' $ac_executable_extensions; do
4460   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463     break 2
4464   fi
4465 done
4466 done
4467
4468 fi
4469 fi
4470 CC=$ac_cv_prog_CC
4471 if test -n "$CC"; then
4472   echo "$as_me:$LINENO: result: $CC" >&5
4473 echo "${ECHO_T}$CC" >&6
4474 else
4475   echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4477 fi
4478
4479 fi
4480 if test -z "$ac_cv_prog_CC"; then
4481   ac_ct_CC=$CC
4482   # Extract the first word of "gcc", so it can be a program name with args.
4483 set dummy gcc; ac_word=$2
4484 echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   if test -n "$ac_ct_CC"; then
4490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499     ac_cv_prog_ac_ct_CC="gcc"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505
4506 fi
4507 fi
4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4509 if test -n "$ac_ct_CC"; then
4510   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4511 echo "${ECHO_T}$ac_ct_CC" >&6
4512 else
4513   echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4515 fi
4516
4517   CC=$ac_ct_CC
4518 else
4519   CC="$ac_cv_prog_CC"
4520 fi
4521
4522 if test -z "$CC"; then
4523   if test -n "$ac_tool_prefix"; then
4524   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}cc; ac_word=$2
4526 echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_CC+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if test -n "$CC"; then
4532   ac_cv_prog_CC="$CC" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541     ac_cv_prog_CC="${ac_tool_prefix}cc"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547
4548 fi
4549 fi
4550 CC=$ac_cv_prog_CC
4551 if test -n "$CC"; then
4552   echo "$as_me:$LINENO: result: $CC" >&5
4553 echo "${ECHO_T}$CC" >&6
4554 else
4555   echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4557 fi
4558
4559 fi
4560 if test -z "$ac_cv_prog_CC"; then
4561   ac_ct_CC=$CC
4562   # Extract the first word of "cc", so it can be a program name with args.
4563 set dummy cc; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   if test -n "$ac_ct_CC"; then
4570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577   for ac_exec_ext in '' $ac_executable_extensions; do
4578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579     ac_cv_prog_ac_ct_CC="cc"
4580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584 done
4585
4586 fi
4587 fi
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6
4592 else
4593   echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4595 fi
4596
4597   CC=$ac_ct_CC
4598 else
4599   CC="$ac_cv_prog_CC"
4600 fi
4601
4602 fi
4603 if test -z "$CC"; then
4604   # Extract the first word of "cc", so it can be a program name with args.
4605 set dummy cc; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_CC+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   if test -n "$CC"; then
4612   ac_cv_prog_CC="$CC" # Let the user override the test.
4613 else
4614   ac_prog_rejected=no
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4623        ac_prog_rejected=yes
4624        continue
4625      fi
4626     ac_cv_prog_CC="cc"
4627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631 done
4632
4633 if test $ac_prog_rejected = yes; then
4634   # We found a bogon in the path, so make sure we never use it.
4635   set dummy $ac_cv_prog_CC
4636   shift
4637   if test $# != 0; then
4638     # We chose a different compiler from the bogus one.
4639     # However, it has the same basename, so the bogon will be chosen
4640     # first if we set CC to just the basename; use the full file name.
4641     shift
4642     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4643   fi
4644 fi
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649   echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6
4651 else
4652   echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4654 fi
4655
4656 fi
4657 if test -z "$CC"; then
4658   if test -n "$ac_tool_prefix"; then
4659   for ac_prog in cl
4660   do
4661     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$CC"; then
4669   ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684
4685 fi
4686 fi
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689   echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6
4691 else
4692   echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 fi
4695
4696     test -n "$CC" && break
4697   done
4698 fi
4699 if test -z "$CC"; then
4700   ac_ct_CC=$CC
4701   for ac_prog in cl
4702 do
4703   # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   if test -n "$ac_ct_CC"; then
4711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720     ac_cv_prog_ac_ct_CC="$ac_prog"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726
4727 fi
4728 fi
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 echo "${ECHO_T}$ac_ct_CC" >&6
4733 else
4734   echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4736 fi
4737
4738   test -n "$ac_ct_CC" && break
4739 done
4740
4741   CC=$ac_ct_CC
4742 fi
4743
4744 fi
4745
4746
4747 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: no acceptable C compiler found in \$PATH
4750 See \`config.log' for more details." >&2;}
4751    { (exit 1); exit 1; }; }
4752
4753 # Provide some information about the compiler.
4754 echo "$as_me:$LINENO:" \
4755      "checking for C compiler version" >&5
4756 ac_compiler=`set X $ac_compile; echo $2`
4757 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4758   (eval $ac_compiler --version </dev/null >&5) 2>&5
4759   ac_status=$?
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); }
4762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4763   (eval $ac_compiler -v </dev/null >&5) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }
4767 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4768   (eval $ac_compiler -V </dev/null >&5) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }
4772
4773 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4774 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4775 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778   cat >conftest.$ac_ext <<_ACEOF
4779 /* confdefs.h.  */
4780 _ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h.  */
4784
4785 int
4786 main ()
4787 {
4788 #ifndef __GNUC__
4789        choke me
4790 #endif
4791
4792   ;
4793   return 0;
4794 }
4795 _ACEOF
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798   (eval $ac_compile) 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -z "$ac_c_werror_flag"
4806                          || test ! -s conftest.err'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; } &&
4812          { ac_try='test -s conftest.$ac_objext'
4813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814   (eval $ac_try) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   ac_compiler_gnu=yes
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 ac_compiler_gnu=no
4824 fi
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4827
4828 fi
4829 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4831 GCC=`test $ac_compiler_gnu = yes && echo yes`
4832 ac_test_CFLAGS=${CFLAGS+set}
4833 ac_save_CFLAGS=$CFLAGS
4834 CFLAGS="-g"
4835 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4836 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4837 if test "${ac_cv_prog_cc_g+set}" = set; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846
4847 int
4848 main ()
4849 {
4850
4851   ;
4852   return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } &&
4864          { ac_try='test -z "$ac_c_werror_flag"
4865                          || test ! -s conftest.err'
4866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867   (eval $ac_try) 2>&5
4868   ac_status=$?
4869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; } &&
4871          { ac_try='test -s conftest.$ac_objext'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   ac_cv_prog_cc_g=yes
4878 else
4879   echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_cv_prog_cc_g=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 fi
4886 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4888 if test "$ac_test_CFLAGS" = set; then
4889   CFLAGS=$ac_save_CFLAGS
4890 elif test $ac_cv_prog_cc_g = yes; then
4891   if test "$GCC" = yes; then
4892     CFLAGS="-g -O2"
4893   else
4894     CFLAGS="-g"
4895   fi
4896 else
4897   if test "$GCC" = yes; then
4898     CFLAGS="-O2"
4899   else
4900     CFLAGS=
4901   fi
4902 fi
4903 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4904 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4905 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   ac_cv_prog_cc_stdc=no
4909 ac_save_CC=$CC
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916 #include <stdarg.h>
4917 #include <stdio.h>
4918 #include <sys/types.h>
4919 #include <sys/stat.h>
4920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4921 struct buf { int x; };
4922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4923 static char *e (p, i)
4924      char **p;
4925      int i;
4926 {
4927   return p[i];
4928 }
4929 static char *f (char * (*g) (char **, int), char **p, ...)
4930 {
4931   char *s;
4932   va_list v;
4933   va_start (v,p);
4934   s = g (p, va_arg (v,int));
4935   va_end (v);
4936   return s;
4937 }
4938
4939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4940    function prototypes and stuff, but not '\xHH' hex character constants.
4941    These don't provoke an error unfortunately, instead are silently treated
4942    as 'x'.  The following induces an error, until -std1 is added to get
4943    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4944    array size at least.  It's necessary to write '\x00'==0 to get something
4945    that's true only with -std1.  */
4946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4947
4948 int test (int i, double x);
4949 struct s1 {int (*f) (int a);};
4950 struct s2 {int (*f) (double a);};
4951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4952 int argc;
4953 char **argv;
4954 int
4955 main ()
4956 {
4957 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4958   ;
4959   return 0;
4960 }
4961 _ACEOF
4962 # Don't try gcc -ansi; that turns off useful extensions and
4963 # breaks some systems' header files.
4964 # AIX                   -qlanglvl=ansi
4965 # Ultrix and OSF/1      -std1
4966 # HP-UX 10.20 and later -Ae
4967 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4968 # SVR4                  -Xc -D__EXTENSIONS__
4969 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4970 do
4971   CC="$ac_save_CC $ac_arg"
4972   rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974   (eval $ac_compile) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } &&
4981          { ac_try='test -z "$ac_c_werror_flag"
4982                          || test ! -s conftest.err'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   ac_cv_prog_cc_stdc=$ac_arg
4995 break
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 fi
5001 rm -f conftest.err conftest.$ac_objext
5002 done
5003 rm -f conftest.$ac_ext conftest.$ac_objext
5004 CC=$ac_save_CC
5005
5006 fi
5007
5008 case "x$ac_cv_prog_cc_stdc" in
5009   x|xno)
5010     echo "$as_me:$LINENO: result: none needed" >&5
5011 echo "${ECHO_T}none needed" >&6 ;;
5012   *)
5013     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5014 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5015     CC="$CC $ac_cv_prog_cc_stdc" ;;
5016 esac
5017
5018 # Some people use a C++ compiler to compile C.  Since we use `exit',
5019 # in C++ we need to declare it.  In case someone uses the same compiler
5020 # for both compiling C and C++ we need to have the C++ compiler decide
5021 # the declaration of exit, since it's the most demanding environment.
5022 cat >conftest.$ac_ext <<_ACEOF
5023 #ifndef __cplusplus
5024   choke me
5025 #endif
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029   (eval $ac_compile) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag"
5037                          || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   for ac_declaration in \
5050    '' \
5051    'extern "C" void std::exit (int) throw (); using std::exit;' \
5052    'extern "C" void std::exit (int); using std::exit;' \
5053    'extern "C" void exit (int) throw ();' \
5054    'extern "C" void exit (int);' \
5055    'void exit (int);'
5056 do
5057   cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 $ac_declaration
5064 #include <stdlib.h>
5065 int
5066 main ()
5067 {
5068 exit (42);
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075   (eval $ac_compile) 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -z "$ac_c_werror_flag"
5083                          || test ! -s conftest.err'
5084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085   (eval $ac_try) 2>&5
5086   ac_status=$?
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); }; } &&
5089          { ac_try='test -s conftest.$ac_objext'
5090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091   (eval $ac_try) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); }; }; then
5095   :
5096 else
5097   echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 continue
5101 fi
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103   cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h.  */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h.  */
5109 $ac_declaration
5110 int
5111 main ()
5112 {
5113 exit (42);
5114   ;
5115   return 0;
5116 }
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120   (eval $ac_compile) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } &&
5127          { ac_try='test -z "$ac_c_werror_flag"
5128                          || test ! -s conftest.err'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; } &&
5134          { ac_try='test -s conftest.$ac_objext'
5135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136   (eval $ac_try) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); }; }; then
5140   break
5141 else
5142   echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145 fi
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 done
5148 rm -f conftest*
5149 if test -n "$ac_declaration"; then
5150   echo '#ifdef __cplusplus' >>confdefs.h
5151   echo $ac_declaration      >>confdefs.h
5152   echo '#endif'             >>confdefs.h
5153 fi
5154
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 fi
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167 depcc="$CC"   am_compiler_list=
5168
5169 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5170 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5171 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5175   # We make a subdir and do the tests there.  Otherwise we can end up
5176   # making bogus files that we don't know about and never remove.  For
5177   # instance it was reported that on HP-UX the gcc test will end up
5178   # making a dummy file named `D' -- because `-MD' means `put the output
5179   # in D'.
5180   mkdir conftest.dir
5181   # Copy depcomp to subdir because otherwise we won't find it if we're
5182   # using a relative directory.
5183   cp "$am_depcomp" conftest.dir
5184   cd conftest.dir
5185   # We will build objects and dependencies in a subdirectory because
5186   # it helps to detect inapplicable dependency modes.  For instance
5187   # both Tru64's cc and ICC support -MD to output dependencies as a
5188   # side effect of compilation, but ICC will put the dependencies in
5189   # the current directory while Tru64 will put them in the object
5190   # directory.
5191   mkdir sub
5192
5193   am_cv_CC_dependencies_compiler_type=none
5194   if test "$am_compiler_list" = ""; then
5195      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5196   fi
5197   for depmode in $am_compiler_list; do
5198     # Setup a source with many dependencies, because some compilers
5199     # like to wrap large dependency lists on column 80 (with \), and
5200     # we should not choose a depcomp mode which is confused by this.
5201     #
5202     # We need to recreate these files for each test, as the compiler may
5203     # overwrite some of them when testing with obscure command lines.
5204     # This happens at least with the AIX C compiler.
5205     : > sub/conftest.c
5206     for i in 1 2 3 4 5 6; do
5207       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5208       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5209       # Solaris 8's {/usr,}/bin/sh.
5210       touch sub/conftst$i.h
5211     done
5212     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5213
5214     case $depmode in
5215     nosideeffect)
5216       # after this tag, mechanisms are not by side-effect, so they'll
5217       # only be used when explicitly requested
5218       if test "x$enable_dependency_tracking" = xyes; then
5219         continue
5220       else
5221         break
5222       fi
5223       ;;
5224     none) break ;;
5225     esac
5226     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5227     # mode.  It turns out that the SunPro C++ compiler does not properly
5228     # handle `-M -o', and we need to detect this.
5229     if depmode=$depmode \
5230        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5231        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5232        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5233          >/dev/null 2>conftest.err &&
5234        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5235        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5236        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5237       # icc doesn't choke on unknown options, it will just issue warnings
5238       # or remarks (even with -Werror).  So we grep stderr for any message
5239       # that says an option was ignored or not supported.
5240       # When given -MP, icc 7.0 and 7.1 complain thusly:
5241       #   icc: Command line warning: ignoring option '-M'; no argument required
5242       # The diagnosis changed in icc 8.0:
5243       #   icc: Command line remark: option '-MP' not supported
5244       if (grep 'ignoring option' conftest.err ||
5245           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5246         am_cv_CC_dependencies_compiler_type=$depmode
5247         break
5248       fi
5249     fi
5250   done
5251
5252   cd ..
5253   rm -rf conftest.dir
5254 else
5255   am_cv_CC_dependencies_compiler_type=none
5256 fi
5257
5258 fi
5259 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5260 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5261 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5262
5263
5264
5265 if
5266   test "x$enable_dependency_tracking" != xno \
5267   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5268   am__fastdepCC_TRUE=
5269   am__fastdepCC_FALSE='#'
5270 else
5271   am__fastdepCC_TRUE='#'
5272   am__fastdepCC_FALSE=
5273 fi
5274
5275
5276
5277 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5278
5279 echo "$as_me:$LINENO: checking for function prototypes" >&5
5280 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5281 if test "$ac_cv_prog_cc_stdc" != no; then
5282   echo "$as_me:$LINENO: result: yes" >&5
5283 echo "${ECHO_T}yes" >&6
5284
5285 cat >>confdefs.h <<\_ACEOF
5286 #define PROTOTYPES 1
5287 _ACEOF
5288
5289
5290 cat >>confdefs.h <<\_ACEOF
5291 #define __PROTOTYPES 1
5292 _ACEOF
5293
5294 else
5295   echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5297 fi
5298
5299
5300 if test "$ac_cv_prog_cc_stdc" != no; then
5301   U= ANSI2KNR=
5302 else
5303   U=_ ANSI2KNR=./ansi2knr
5304 fi
5305 # Ensure some checks needed by ansi2knr itself.
5306
5307
5308 for ac_header in string.h
5309 do
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312   echo "$as_me:$LINENO: checking for $ac_header" >&5
5313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 fi
5317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319 else
5320   # Is the header compilable?
5321 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } &&
5341          { ac_try='test -z "$ac_c_werror_flag"
5342                          || test ! -s conftest.err'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; } &&
5348          { ac_try='test -s conftest.$ac_objext'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; }; then
5354   ac_header_compiler=yes
5355 else
5356   echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5358
5359 ac_header_compiler=no
5360 fi
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6
5364
5365 # Is the header present?
5366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <$ac_header>
5375 _ACEOF
5376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378   ac_status=$?
5379   grep -v '^ *+' conftest.er1 >conftest.err
5380   rm -f conftest.er1
5381   cat conftest.err >&5
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } >/dev/null; then
5384   if test -s conftest.err; then
5385     ac_cpp_err=$ac_c_preproc_warn_flag
5386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387   else
5388     ac_cpp_err=
5389   fi
5390 else
5391   ac_cpp_err=yes
5392 fi
5393 if test -z "$ac_cpp_err"; then
5394   ac_header_preproc=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399   ac_header_preproc=no
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5403 echo "${ECHO_T}$ac_header_preproc" >&6
5404
5405 # So?  What about this header?
5406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5407   yes:no: )
5408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5412     ac_header_preproc=yes
5413     ;;
5414   no:yes:* )
5415     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5417     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5418 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5419     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5421     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5422 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5425     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5427     (
5428       cat <<\_ASBOX
5429 ## ------------------------------- ##
5430 ## Report this to bug-gawk@gnu.org ##
5431 ## ------------------------------- ##
5432 _ASBOX
5433     ) |
5434       sed "s/^/$as_me: WARNING:     /" >&2
5435     ;;
5436 esac
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442   eval "$as_ac_Header=\$ac_header_preproc"
5443 fi
5444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5446
5447 fi
5448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449   cat >>confdefs.h <<_ACEOF
5450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 _ACEOF
5452
5453 fi
5454
5455 done
5456
5457
5458
5459 case `(uname) 2> /dev/null` in
5460 *CYGWIN*)
5461         with_libiconv_prefix=no
5462         with_libintl_prefix=no
5463         ;;
5464 *)
5465         ;;
5466 esac
5467
5468
5469
5470         MKINSTALLDIRS=
5471   if test -n "$ac_aux_dir"; then
5472     case "$ac_aux_dir" in
5473       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5474       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5475     esac
5476   fi
5477   if test -z "$MKINSTALLDIRS"; then
5478     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5479   fi
5480
5481
5482
5483   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5484 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5485     # Check whether --enable-nls or --disable-nls was given.
5486 if test "${enable_nls+set}" = set; then
5487   enableval="$enable_nls"
5488   USE_NLS=$enableval
5489 else
5490   USE_NLS=yes
5491 fi;
5492   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5493 echo "${ECHO_T}$USE_NLS" >&6
5494
5495
5496
5497
5498
5499
5500 # Prepare PATH_SEPARATOR.
5501 # The user is always right.
5502 if test "${PATH_SEPARATOR+set}" != set; then
5503   echo "#! /bin/sh" >conf$$.sh
5504   echo  "exit 0"   >>conf$$.sh
5505   chmod +x conf$$.sh
5506   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5507     PATH_SEPARATOR=';'
5508   else
5509     PATH_SEPARATOR=:
5510   fi
5511   rm -f conf$$.sh
5512 fi
5513
5514 # Find out how to test for executable files. Don't use a zero-byte file,
5515 # as systems may use methods other than mode bits to determine executability.
5516 cat >conf$$.file <<_ASEOF
5517 #! /bin/sh
5518 exit 0
5519 _ASEOF
5520 chmod +x conf$$.file
5521 if test -x conf$$.file >/dev/null 2>&1; then
5522   ac_executable_p="test -x"
5523 else
5524   ac_executable_p="test -f"
5525 fi
5526 rm -f conf$$.file
5527
5528 # Extract the first word of "msgfmt", so it can be a program name with args.
5529 set dummy msgfmt; ac_word=$2
5530 echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_path_MSGFMT+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   case "$MSGFMT" in
5536   [\\/]* | ?:[\\/]*)
5537     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5538     ;;
5539   *)
5540     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5541     for ac_dir in $PATH; do
5542       IFS="$ac_save_IFS"
5543       test -z "$ac_dir" && ac_dir=.
5544       for ac_exec_ext in '' $ac_executable_extensions; do
5545         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5546           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5547           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5548      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5549             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5550             break 2
5551           fi
5552         fi
5553       done
5554     done
5555     IFS="$ac_save_IFS"
5556   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5557     ;;
5558 esac
5559 fi
5560 MSGFMT="$ac_cv_path_MSGFMT"
5561 if test "$MSGFMT" != ":"; then
5562   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5563 echo "${ECHO_T}$MSGFMT" >&6
5564 else
5565   echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5567 fi
5568
5569   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5570 set dummy gmsgfmt; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   case $GMSGFMT in
5577   [\\/]* | ?:[\\/]*)
5578   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5579   ;;
5580   *)
5581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584   IFS=$as_save_IFS
5585   test -z "$as_dir" && as_dir=.
5586   for ac_exec_ext in '' $ac_executable_extensions; do
5587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590     break 2
5591   fi
5592 done
5593 done
5594
5595   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5596   ;;
5597 esac
5598 fi
5599 GMSGFMT=$ac_cv_path_GMSGFMT
5600
5601 if test -n "$GMSGFMT"; then
5602   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5603 echo "${ECHO_T}$GMSGFMT" >&6
5604 else
5605   echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5607 fi
5608
5609
5610
5611 # Prepare PATH_SEPARATOR.
5612 # The user is always right.
5613 if test "${PATH_SEPARATOR+set}" != set; then
5614   echo "#! /bin/sh" >conf$$.sh
5615   echo  "exit 0"   >>conf$$.sh
5616   chmod +x conf$$.sh
5617   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5618     PATH_SEPARATOR=';'
5619   else
5620     PATH_SEPARATOR=:
5621   fi
5622   rm -f conf$$.sh
5623 fi
5624
5625 # Find out how to test for executable files. Don't use a zero-byte file,
5626 # as systems may use methods other than mode bits to determine executability.
5627 cat >conf$$.file <<_ASEOF
5628 #! /bin/sh
5629 exit 0
5630 _ASEOF
5631 chmod +x conf$$.file
5632 if test -x conf$$.file >/dev/null 2>&1; then
5633   ac_executable_p="test -x"
5634 else
5635   ac_executable_p="test -f"
5636 fi
5637 rm -f conf$$.file
5638
5639 # Extract the first word of "xgettext", so it can be a program name with args.
5640 set dummy xgettext; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646   case "$XGETTEXT" in
5647   [\\/]* | ?:[\\/]*)
5648     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5649     ;;
5650   *)
5651     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5652     for ac_dir in $PATH; do
5653       IFS="$ac_save_IFS"
5654       test -z "$ac_dir" && ac_dir=.
5655       for ac_exec_ext in '' $ac_executable_extensions; do
5656         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5657           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5658           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5659      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5660             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5661             break 2
5662           fi
5663         fi
5664       done
5665     done
5666     IFS="$ac_save_IFS"
5667   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5668     ;;
5669 esac
5670 fi
5671 XGETTEXT="$ac_cv_path_XGETTEXT"
5672 if test "$XGETTEXT" != ":"; then
5673   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5674 echo "${ECHO_T}$XGETTEXT" >&6
5675 else
5676   echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5678 fi
5679
5680     rm -f messages.po
5681
5682
5683 # Prepare PATH_SEPARATOR.
5684 # The user is always right.
5685 if test "${PATH_SEPARATOR+set}" != set; then
5686   echo "#! /bin/sh" >conf$$.sh
5687   echo  "exit 0"   >>conf$$.sh
5688   chmod +x conf$$.sh
5689   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5690     PATH_SEPARATOR=';'
5691   else
5692     PATH_SEPARATOR=:
5693   fi
5694   rm -f conf$$.sh
5695 fi
5696
5697 # Find out how to test for executable files. Don't use a zero-byte file,
5698 # as systems may use methods other than mode bits to determine executability.
5699 cat >conf$$.file <<_ASEOF
5700 #! /bin/sh
5701 exit 0
5702 _ASEOF
5703 chmod +x conf$$.file
5704 if test -x conf$$.file >/dev/null 2>&1; then
5705   ac_executable_p="test -x"
5706 else
5707   ac_executable_p="test -f"
5708 fi
5709 rm -f conf$$.file
5710
5711 # Extract the first word of "msgmerge", so it can be a program name with args.
5712 set dummy msgmerge; ac_word=$2
5713 echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5715 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   case "$MSGMERGE" in
5719   [\\/]* | ?:[\\/]*)
5720     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5721     ;;
5722   *)
5723     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5724     for ac_dir in $PATH; do
5725       IFS="$ac_save_IFS"
5726       test -z "$ac_dir" && ac_dir=.
5727       for ac_exec_ext in '' $ac_executable_extensions; do
5728         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5729           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5730           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5731             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5732             break 2
5733           fi
5734         fi
5735       done
5736     done
5737     IFS="$ac_save_IFS"
5738   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5739     ;;
5740 esac
5741 fi
5742 MSGMERGE="$ac_cv_path_MSGMERGE"
5743 if test "$MSGMERGE" != ":"; then
5744   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5745 echo "${ECHO_T}$MSGMERGE" >&6
5746 else
5747   echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5749 fi
5750
5751
5752       if test "$GMSGFMT" != ":"; then
5753             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5754        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5755       : ;
5756     else
5757       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5758       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5759 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5760       GMSGFMT=":"
5761     fi
5762   fi
5763
5764       if test "$XGETTEXT" != ":"; then
5765             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5766        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5767       : ;
5768     else
5769       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5770 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5771       XGETTEXT=":"
5772     fi
5773         rm -f messages.po
5774   fi
5775
5776             ac_config_commands="$ac_config_commands default-1"
5777
5778
5779
5780       if test "X$prefix" = "XNONE"; then
5781     acl_final_prefix="$ac_default_prefix"
5782   else
5783     acl_final_prefix="$prefix"
5784   fi
5785   if test "X$exec_prefix" = "XNONE"; then
5786     acl_final_exec_prefix='${prefix}'
5787   else
5788     acl_final_exec_prefix="$exec_prefix"
5789   fi
5790   acl_save_prefix="$prefix"
5791   prefix="$acl_final_prefix"
5792   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5793   prefix="$acl_save_prefix"
5794
5795 # Make sure we can run config.sub.
5796 $ac_config_sub sun4 >/dev/null 2>&1 ||
5797   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5799    { (exit 1); exit 1; }; }
5800
5801 echo "$as_me:$LINENO: checking build system type" >&5
5802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5803 if test "${ac_cv_build+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_cv_build_alias=$build_alias
5807 test -z "$ac_cv_build_alias" &&
5808   ac_cv_build_alias=`$ac_config_guess`
5809 test -z "$ac_cv_build_alias" &&
5810   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5812    { (exit 1); exit 1; }; }
5813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5814   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5816    { (exit 1); exit 1; }; }
5817
5818 fi
5819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5820 echo "${ECHO_T}$ac_cv_build" >&6
5821 build=$ac_cv_build
5822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5825
5826
5827 echo "$as_me:$LINENO: checking host system type" >&5
5828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5829 if test "${ac_cv_host+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   ac_cv_host_alias=$host_alias
5833 test -z "$ac_cv_host_alias" &&
5834   ac_cv_host_alias=$ac_cv_build_alias
5835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5836   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5838    { (exit 1); exit 1; }; }
5839
5840 fi
5841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5842 echo "${ECHO_T}$ac_cv_host" >&6
5843 host=$ac_cv_host
5844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5847
5848
5849
5850 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5851 if test "${with_gnu_ld+set}" = set; then
5852   withval="$with_gnu_ld"
5853   test "$withval" = no || with_gnu_ld=yes
5854 else
5855   with_gnu_ld=no
5856 fi;
5857 # Prepare PATH_SEPARATOR.
5858 # The user is always right.
5859 if test "${PATH_SEPARATOR+set}" != set; then
5860   echo "#! /bin/sh" >conf$$.sh
5861   echo  "exit 0"   >>conf$$.sh
5862   chmod +x conf$$.sh
5863   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5864     PATH_SEPARATOR=';'
5865   else
5866     PATH_SEPARATOR=:
5867   fi
5868   rm -f conf$$.sh
5869 fi
5870 ac_prog=ld
5871 if test "$GCC" = yes; then
5872   # Check if gcc -print-prog-name=ld gives a path.
5873   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5874 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5875   case $host in
5876   *-*-mingw*)
5877     # gcc leaves a trailing carriage return which upsets mingw
5878     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5879   *)
5880     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5881   esac
5882   case $ac_prog in
5883     # Accept absolute paths.
5884     [\\/]* | [A-Za-z]:[\\/]*)
5885       re_direlt='/[^/][^/]*/\.\./'
5886       # Canonicalize the path of ld
5887       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5888       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5889         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5890       done
5891       test -z "$LD" && LD="$ac_prog"
5892       ;;
5893   "")
5894     # If it fails, then pretend we aren't using GCC.
5895     ac_prog=ld
5896     ;;
5897   *)
5898     # If it is relative, then search for the first ld in PATH.
5899     with_gnu_ld=unknown
5900     ;;
5901   esac
5902 elif test "$with_gnu_ld" = yes; then
5903   echo "$as_me:$LINENO: checking for GNU ld" >&5
5904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5905 else
5906   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5908 fi
5909 if test "${acl_cv_path_LD+set}" = set; then
5910   echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912   if test -z "$LD"; then
5913   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5914   for ac_dir in $PATH; do
5915     test -z "$ac_dir" && ac_dir=.
5916     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5917       acl_cv_path_LD="$ac_dir/$ac_prog"
5918       # Check to see if the program is GNU ld.  I'd rather use --version,
5919       # but apparently some GNU ld's only accept -v.
5920       # Break only if it was the GNU/non-GNU ld that we prefer.
5921       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5922       *GNU* | *'with BFD'*)
5923         test "$with_gnu_ld" != no && break ;;
5924       *)
5925         test "$with_gnu_ld" != yes && break ;;
5926       esac
5927     fi
5928   done
5929   IFS="$ac_save_ifs"
5930 else
5931   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5932 fi
5933 fi
5934
5935 LD="$acl_cv_path_LD"
5936 if test -n "$LD"; then
5937   echo "$as_me:$LINENO: result: $LD" >&5
5938 echo "${ECHO_T}$LD" >&6
5939 else
5940   echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5942 fi
5943 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5944 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5945    { (exit 1); exit 1; }; }
5946 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5947 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5948 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5952 case `$LD -v 2>&1 </dev/null` in
5953 *GNU* | *'with BFD'*)
5954   acl_cv_prog_gnu_ld=yes ;;
5955 *)
5956   acl_cv_prog_gnu_ld=no ;;
5957 esac
5958 fi
5959 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5960 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5961 with_gnu_ld=$acl_cv_prog_gnu_ld
5962
5963
5964
5965
5966                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5967 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5968 if test "${acl_cv_rpath+set}" = set; then
5969   echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971
5972     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5973     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5974     . ./conftest.sh
5975     rm -f ./conftest.sh
5976     acl_cv_rpath=done
5977
5978 fi
5979 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5980 echo "${ECHO_T}$acl_cv_rpath" >&6
5981   wl="$acl_cv_wl"
5982   libext="$acl_cv_libext"
5983   shlibext="$acl_cv_shlibext"
5984   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5985   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5986   hardcode_direct="$acl_cv_hardcode_direct"
5987   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5988     # Check whether --enable-rpath or --disable-rpath was given.
5989 if test "${enable_rpath+set}" = set; then
5990   enableval="$enable_rpath"
5991   :
5992 else
5993   enable_rpath=yes
5994 fi;
5995
5996
5997
5998
5999
6000
6001
6002     use_additional=yes
6003
6004   acl_save_prefix="$prefix"
6005   prefix="$acl_final_prefix"
6006   acl_save_exec_prefix="$exec_prefix"
6007   exec_prefix="$acl_final_exec_prefix"
6008
6009     eval additional_includedir=\"$includedir\"
6010     eval additional_libdir=\"$libdir\"
6011
6012   exec_prefix="$acl_save_exec_prefix"
6013   prefix="$acl_save_prefix"
6014
6015
6016 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6017 if test "${with_libiconv_prefix+set}" = set; then
6018   withval="$with_libiconv_prefix"
6019
6020     if test "X$withval" = "Xno"; then
6021       use_additional=no
6022     else
6023       if test "X$withval" = "X"; then
6024
6025   acl_save_prefix="$prefix"
6026   prefix="$acl_final_prefix"
6027   acl_save_exec_prefix="$exec_prefix"
6028   exec_prefix="$acl_final_exec_prefix"
6029
6030           eval additional_includedir=\"$includedir\"
6031           eval additional_libdir=\"$libdir\"
6032
6033   exec_prefix="$acl_save_exec_prefix"
6034   prefix="$acl_save_prefix"
6035
6036       else
6037         additional_includedir="$withval/include"
6038         additional_libdir="$withval/lib"
6039       fi
6040     fi
6041
6042 fi;
6043       LIBICONV=
6044   LTLIBICONV=
6045   INCICONV=
6046   rpathdirs=
6047   ltrpathdirs=
6048   names_already_handled=
6049   names_next_round='iconv '
6050   while test -n "$names_next_round"; do
6051     names_this_round="$names_next_round"
6052     names_next_round=
6053     for name in $names_this_round; do
6054       already_handled=
6055       for n in $names_already_handled; do
6056         if test "$n" = "$name"; then
6057           already_handled=yes
6058           break
6059         fi
6060       done
6061       if test -z "$already_handled"; then
6062         names_already_handled="$names_already_handled $name"
6063                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6064         eval value=\"\$HAVE_LIB$uppername\"
6065         if test -n "$value"; then
6066           if test "$value" = yes; then
6067             eval value=\"\$LIB$uppername\"
6068             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6069             eval value=\"\$LTLIB$uppername\"
6070             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6071           else
6072                                     :
6073           fi
6074         else
6075                               found_dir=
6076           found_la=
6077           found_so=
6078           found_a=
6079           if test $use_additional = yes; then
6080             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6081               found_dir="$additional_libdir"
6082               found_so="$additional_libdir/lib$name.$shlibext"
6083               if test -f "$additional_libdir/lib$name.la"; then
6084                 found_la="$additional_libdir/lib$name.la"
6085               fi
6086             else
6087               if test -f "$additional_libdir/lib$name.$libext"; then
6088                 found_dir="$additional_libdir"
6089                 found_a="$additional_libdir/lib$name.$libext"
6090                 if test -f "$additional_libdir/lib$name.la"; then
6091                   found_la="$additional_libdir/lib$name.la"
6092                 fi
6093               fi
6094             fi
6095           fi
6096           if test "X$found_dir" = "X"; then
6097             for x in $LDFLAGS $LTLIBICONV; do
6098
6099   acl_save_prefix="$prefix"
6100   prefix="$acl_final_prefix"
6101   acl_save_exec_prefix="$exec_prefix"
6102   exec_prefix="$acl_final_exec_prefix"
6103   eval x=\"$x\"
6104   exec_prefix="$acl_save_exec_prefix"
6105   prefix="$acl_save_prefix"
6106
6107               case "$x" in
6108                 -L*)
6109                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6110                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6111                     found_dir="$dir"
6112                     found_so="$dir/lib$name.$shlibext"
6113                     if test -f "$dir/lib$name.la"; then
6114                       found_la="$dir/lib$name.la"
6115                     fi
6116                   else
6117                     if test -f "$dir/lib$name.$libext"; then
6118                       found_dir="$dir"
6119                       found_a="$dir/lib$name.$libext"
6120                       if test -f "$dir/lib$name.la"; then
6121                         found_la="$dir/lib$name.la"
6122                       fi
6123                     fi
6124                   fi
6125                   ;;
6126               esac
6127               if test "X$found_dir" != "X"; then
6128                 break
6129               fi
6130             done
6131           fi
6132           if test "X$found_dir" != "X"; then
6133                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6134             if test "X$found_so" != "X"; then
6135                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6136                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6137               else
6138                                                                                 haveit=
6139                 for x in $ltrpathdirs; do
6140                   if test "X$x" = "X$found_dir"; then
6141                     haveit=yes
6142                     break
6143                   fi
6144                 done
6145                 if test -z "$haveit"; then
6146                   ltrpathdirs="$ltrpathdirs $found_dir"
6147                 fi
6148                                 if test "$hardcode_direct" = yes; then
6149                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6150                 else
6151                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6152                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6153                                                             haveit=
6154                     for x in $rpathdirs; do
6155                       if test "X$x" = "X$found_dir"; then
6156                         haveit=yes
6157                         break
6158                       fi
6159                     done
6160                     if test -z "$haveit"; then
6161                       rpathdirs="$rpathdirs $found_dir"
6162                     fi
6163                   else
6164                                                                                 haveit=
6165                     for x in $LDFLAGS $LIBICONV; do
6166
6167   acl_save_prefix="$prefix"
6168   prefix="$acl_final_prefix"
6169   acl_save_exec_prefix="$exec_prefix"
6170   exec_prefix="$acl_final_exec_prefix"
6171   eval x=\"$x\"
6172   exec_prefix="$acl_save_exec_prefix"
6173   prefix="$acl_save_prefix"
6174
6175                       if test "X$x" = "X-L$found_dir"; then
6176                         haveit=yes
6177                         break
6178                       fi
6179                     done
6180                     if test -z "$haveit"; then
6181                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6182                     fi
6183                     if test "$hardcode_minus_L" != no; then
6184                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6185                     else
6186                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6187                     fi
6188                   fi
6189                 fi
6190               fi
6191             else
6192               if test "X$found_a" != "X"; then
6193                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6194               else
6195                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6196               fi
6197             fi
6198                         additional_includedir=
6199             case "$found_dir" in
6200               */lib | */lib/)
6201                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6202                 additional_includedir="$basedir/include"
6203                 ;;
6204             esac
6205             if test "X$additional_includedir" != "X"; then
6206                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6207                 haveit=
6208                 if test "X$additional_includedir" = "X/usr/local/include"; then
6209                   if test -n "$GCC"; then
6210                     case $host_os in
6211                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6212                     esac
6213                   fi
6214                 fi
6215                 if test -z "$haveit"; then
6216                   for x in $CPPFLAGS $INCICONV; do
6217
6218   acl_save_prefix="$prefix"
6219   prefix="$acl_final_prefix"
6220   acl_save_exec_prefix="$exec_prefix"
6221   exec_prefix="$acl_final_exec_prefix"
6222   eval x=\"$x\"
6223   exec_prefix="$acl_save_exec_prefix"
6224   prefix="$acl_save_prefix"
6225
6226                     if test "X$x" = "X-I$additional_includedir"; then
6227                       haveit=yes
6228                       break
6229                     fi
6230                   done
6231                   if test -z "$haveit"; then
6232                     if test -d "$additional_includedir"; then
6233                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6234                     fi
6235                   fi
6236                 fi
6237               fi
6238             fi
6239                         if test -n "$found_la"; then
6240                                                         save_libdir="$libdir"
6241               case "$found_la" in
6242                 */* | *\\*) . "$found_la" ;;
6243                 *) . "./$found_la" ;;
6244               esac
6245               libdir="$save_libdir"
6246                             for dep in $dependency_libs; do
6247                 case "$dep" in
6248                   -L*)
6249                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6250                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6251                       haveit=
6252                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6253                         if test -n "$GCC"; then
6254                           case $host_os in
6255                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6256                           esac
6257                         fi
6258                       fi
6259                       if test -z "$haveit"; then
6260                         haveit=
6261                         for x in $LDFLAGS $LIBICONV; do
6262
6263   acl_save_prefix="$prefix"
6264   prefix="$acl_final_prefix"
6265   acl_save_exec_prefix="$exec_prefix"
6266   exec_prefix="$acl_final_exec_prefix"
6267   eval x=\"$x\"
6268   exec_prefix="$acl_save_exec_prefix"
6269   prefix="$acl_save_prefix"
6270
6271                           if test "X$x" = "X-L$additional_libdir"; then
6272                             haveit=yes
6273                             break
6274                           fi
6275                         done
6276                         if test -z "$haveit"; then
6277                           if test -d "$additional_libdir"; then
6278                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6279                           fi
6280                         fi
6281                         haveit=
6282                         for x in $LDFLAGS $LTLIBICONV; do
6283
6284   acl_save_prefix="$prefix"
6285   prefix="$acl_final_prefix"
6286   acl_save_exec_prefix="$exec_prefix"
6287   exec_prefix="$acl_final_exec_prefix"
6288   eval x=\"$x\"
6289   exec_prefix="$acl_save_exec_prefix"
6290   prefix="$acl_save_prefix"
6291
6292                           if test "X$x" = "X-L$additional_libdir"; then
6293                             haveit=yes
6294                             break
6295                           fi
6296                         done
6297                         if test -z "$haveit"; then
6298                           if test -d "$additional_libdir"; then
6299                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6300                           fi
6301                         fi
6302                       fi
6303                     fi
6304                     ;;
6305                   -R*)
6306                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6307                     if test "$enable_rpath" != no; then
6308                                                                   haveit=
6309                       for x in $rpathdirs; do
6310                         if test "X$x" = "X$dir"; then
6311                           haveit=yes
6312                           break
6313                         fi
6314                       done
6315                       if test -z "$haveit"; then
6316                         rpathdirs="$rpathdirs $dir"
6317                       fi
6318                                                                   haveit=
6319                       for x in $ltrpathdirs; do
6320                         if test "X$x" = "X$dir"; then
6321                           haveit=yes
6322                           break
6323                         fi
6324                       done
6325                       if test -z "$haveit"; then
6326                         ltrpathdirs="$ltrpathdirs $dir"
6327                       fi
6328                     fi
6329                     ;;
6330                   -l*)
6331                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6332                     ;;
6333                   *.la)
6334                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6335                     ;;
6336                   *)
6337                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6338                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6339                     ;;
6340                 esac
6341               done
6342             fi
6343           else
6344                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6345             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6346           fi
6347         fi
6348       fi
6349     done
6350   done
6351   if test "X$rpathdirs" != "X"; then
6352     if test -n "$hardcode_libdir_separator"; then
6353                         alldirs=
6354       for found_dir in $rpathdirs; do
6355         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6356       done
6357             acl_save_libdir="$libdir"
6358       libdir="$alldirs"
6359       eval flag=\"$hardcode_libdir_flag_spec\"
6360       libdir="$acl_save_libdir"
6361       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6362     else
6363             for found_dir in $rpathdirs; do
6364         acl_save_libdir="$libdir"
6365         libdir="$found_dir"
6366         eval flag=\"$hardcode_libdir_flag_spec\"
6367         libdir="$acl_save_libdir"
6368         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6369       done
6370     fi
6371   fi
6372   if test "X$ltrpathdirs" != "X"; then
6373             for found_dir in $ltrpathdirs; do
6374       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6375     done
6376   fi
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6396 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
6397 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   gt_save_CPPFLAGS="$CPPFLAGS"
6401      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6402      gt_save_LIBS="$LIBS"
6403      LIBS="$LIBS -framework CoreFoundation"
6404      cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #include <CFPreferences.h>
6411 int
6412 main ()
6413 {
6414 CFPreferencesCopyAppValue(NULL, NULL)
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421   (eval $ac_link) 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -z "$ac_c_werror_flag"
6429                          || test ! -s conftest.err'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; } &&
6435          { ac_try='test -s conftest$ac_exeext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   gt_cv_func_CFPreferencesCopyAppValue=yes
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 gt_cv_func_CFPreferencesCopyAppValue=no
6447 fi
6448 rm -f conftest.err conftest.$ac_objext \
6449       conftest$ac_exeext conftest.$ac_ext
6450      CPPFLAGS="$gt_save_CPPFLAGS"
6451      LIBS="$gt_save_LIBS"
6452 fi
6453 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6454 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
6455   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6456
6457 cat >>confdefs.h <<\_ACEOF
6458 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6459 _ACEOF
6460
6461   fi
6462     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6463 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
6464 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6465   echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467   gt_save_CPPFLAGS="$CPPFLAGS"
6468      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6469      gt_save_LIBS="$LIBS"
6470      LIBS="$LIBS -framework CoreFoundation"
6471      cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h.  */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h.  */
6477 #include <CFLocale.h>
6478 int
6479 main ()
6480 {
6481 CFLocaleCopyCurrent();
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_c_werror_flag"
6496                          || test ! -s conftest.err'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest$ac_exeext'
6503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504   (eval $ac_try) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   gt_cv_func_CFLocaleCopyCurrent=yes
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 gt_cv_func_CFLocaleCopyCurrent=no
6514 fi
6515 rm -f conftest.err conftest.$ac_objext \
6516       conftest$ac_exeext conftest.$ac_ext
6517      CPPFLAGS="$gt_save_CPPFLAGS"
6518      LIBS="$gt_save_LIBS"
6519 fi
6520 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6521 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
6522   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6523
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_CFLOCALECOPYCURRENT 1
6526 _ACEOF
6527
6528   fi
6529   INTL_MACOSX_LIBS=
6530   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6531     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6532   fi
6533
6534
6535
6536
6537   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6538 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6539     # Check whether --enable-nls or --disable-nls was given.
6540 if test "${enable_nls+set}" = set; then
6541   enableval="$enable_nls"
6542   USE_NLS=$enableval
6543 else
6544   USE_NLS=yes
6545 fi;
6546   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6547 echo "${ECHO_T}$USE_NLS" >&6
6548
6549
6550
6551
6552   LIBINTL=
6553   LTLIBINTL=
6554   POSUB=
6555
6556     if test "$USE_NLS" = "yes"; then
6557     gt_use_preinstalled_gnugettext=no
6558
6559
6560
6561
6562
6563
6564         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6565 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6566 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   cat >conftest.$ac_ext <<_ACEOF
6570 /* confdefs.h.  */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h.  */
6575 #include <libintl.h>
6576 extern int _nl_msg_cat_cntr;
6577 extern int *_nl_domain_bindings;
6578 int
6579 main ()
6580 {
6581 bindtextdomain ("", "");
6582 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6583   ;
6584   return 0;
6585 }
6586 _ACEOF
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589   (eval $ac_link) 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } &&
6596          { ac_try='test -z "$ac_c_werror_flag"
6597                          || test ! -s conftest.err'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; } &&
6603          { ac_try='test -s conftest$ac_exeext'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; }; then
6609   gt_cv_func_gnugettext1_libc=yes
6610 else
6611   echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 gt_cv_func_gnugettext1_libc=no
6615 fi
6616 rm -f conftest.err conftest.$ac_objext \
6617       conftest$ac_exeext conftest.$ac_ext
6618 fi
6619 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6620 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6621
6622         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6623
6624
6625
6626
6627
6628           am_save_CPPFLAGS="$CPPFLAGS"
6629
6630   for element in $INCICONV; do
6631     haveit=
6632     for x in $CPPFLAGS; do
6633
6634   acl_save_prefix="$prefix"
6635   prefix="$acl_final_prefix"
6636   acl_save_exec_prefix="$exec_prefix"
6637   exec_prefix="$acl_final_exec_prefix"
6638   eval x=\"$x\"
6639   exec_prefix="$acl_save_exec_prefix"
6640   prefix="$acl_save_prefix"
6641
6642       if test "X$x" = "X$element"; then
6643         haveit=yes
6644         break
6645       fi
6646     done
6647     if test -z "$haveit"; then
6648       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6649     fi
6650   done
6651
6652
6653   echo "$as_me:$LINENO: checking for iconv" >&5
6654 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6655 if test "${am_cv_func_iconv+set}" = set; then
6656   echo $ECHO_N "(cached) $ECHO_C" >&6
6657 else
6658
6659     am_cv_func_iconv="no, consider installing GNU libiconv"
6660     am_cv_lib_iconv=no
6661     cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h.  */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h.  */
6667 #include <stdlib.h>
6668 #include <iconv.h>
6669 int
6670 main ()
6671 {
6672 iconv_t cd = iconv_open("","");
6673        iconv(cd,NULL,NULL,NULL,NULL);
6674        iconv_close(cd);
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681   (eval $ac_link) 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -z "$ac_c_werror_flag"
6689                          || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest$ac_exeext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   am_cv_func_iconv=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 fi
6707 rm -f conftest.err conftest.$ac_objext \
6708       conftest$ac_exeext conftest.$ac_ext
6709     if test "$am_cv_func_iconv" != yes; then
6710       am_save_LIBS="$LIBS"
6711       LIBS="$LIBS $LIBICONV"
6712       cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h.  */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h.  */
6718 #include <stdlib.h>
6719 #include <iconv.h>
6720 int
6721 main ()
6722 {
6723 iconv_t cd = iconv_open("","");
6724          iconv(cd,NULL,NULL,NULL,NULL);
6725          iconv_close(cd);
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732   (eval $ac_link) 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } &&
6739          { ac_try='test -z "$ac_c_werror_flag"
6740                          || test ! -s conftest.err'
6741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742   (eval $ac_try) 2>&5
6743   ac_status=$?
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); }; } &&
6746          { ac_try='test -s conftest$ac_exeext'
6747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748   (eval $ac_try) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; }; then
6752   am_cv_lib_iconv=yes
6753         am_cv_func_iconv=yes
6754 else
6755   echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 fi
6759 rm -f conftest.err conftest.$ac_objext \
6760       conftest$ac_exeext conftest.$ac_ext
6761       LIBS="$am_save_LIBS"
6762     fi
6763
6764 fi
6765 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6766 echo "${ECHO_T}$am_cv_func_iconv" >&6
6767   if test "$am_cv_func_iconv" = yes; then
6768
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_ICONV 1
6771 _ACEOF
6772
6773   fi
6774   if test "$am_cv_lib_iconv" = yes; then
6775     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6776 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6777     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6778 echo "${ECHO_T}$LIBICONV" >&6
6779   else
6780             CPPFLAGS="$am_save_CPPFLAGS"
6781     LIBICONV=
6782     LTLIBICONV=
6783   fi
6784
6785
6786
6787
6788
6789
6790     use_additional=yes
6791
6792   acl_save_prefix="$prefix"
6793   prefix="$acl_final_prefix"
6794   acl_save_exec_prefix="$exec_prefix"
6795   exec_prefix="$acl_final_exec_prefix"
6796
6797     eval additional_includedir=\"$includedir\"
6798     eval additional_libdir=\"$libdir\"
6799
6800   exec_prefix="$acl_save_exec_prefix"
6801   prefix="$acl_save_prefix"
6802
6803
6804 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6805 if test "${with_libintl_prefix+set}" = set; then
6806   withval="$with_libintl_prefix"
6807
6808     if test "X$withval" = "Xno"; then
6809       use_additional=no
6810     else
6811       if test "X$withval" = "X"; then
6812
6813   acl_save_prefix="$prefix"
6814   prefix="$acl_final_prefix"
6815   acl_save_exec_prefix="$exec_prefix"
6816   exec_prefix="$acl_final_exec_prefix"
6817
6818           eval additional_includedir=\"$includedir\"
6819           eval additional_libdir=\"$libdir\"
6820
6821   exec_prefix="$acl_save_exec_prefix"
6822   prefix="$acl_save_prefix"
6823
6824       else
6825         additional_includedir="$withval/include"
6826         additional_libdir="$withval/lib"
6827       fi
6828     fi
6829
6830 fi;
6831       LIBINTL=
6832   LTLIBINTL=
6833   INCINTL=
6834   rpathdirs=
6835   ltrpathdirs=
6836   names_already_handled=
6837   names_next_round='intl '
6838   while test -n "$names_next_round"; do
6839     names_this_round="$names_next_round"
6840     names_next_round=
6841     for name in $names_this_round; do
6842       already_handled=
6843       for n in $names_already_handled; do
6844         if test "$n" = "$name"; then
6845           already_handled=yes
6846           break
6847         fi
6848       done
6849       if test -z "$already_handled"; then
6850         names_already_handled="$names_already_handled $name"
6851                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6852         eval value=\"\$HAVE_LIB$uppername\"
6853         if test -n "$value"; then
6854           if test "$value" = yes; then
6855             eval value=\"\$LIB$uppername\"
6856             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6857             eval value=\"\$LTLIB$uppername\"
6858             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6859           else
6860                                     :
6861           fi
6862         else
6863                               found_dir=
6864           found_la=
6865           found_so=
6866           found_a=
6867           if test $use_additional = yes; then
6868             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6869               found_dir="$additional_libdir"
6870               found_so="$additional_libdir/lib$name.$shlibext"
6871               if test -f "$additional_libdir/lib$name.la"; then
6872                 found_la="$additional_libdir/lib$name.la"
6873               fi
6874             else
6875               if test -f "$additional_libdir/lib$name.$libext"; then
6876                 found_dir="$additional_libdir"
6877                 found_a="$additional_libdir/lib$name.$libext"
6878                 if test -f "$additional_libdir/lib$name.la"; then
6879                   found_la="$additional_libdir/lib$name.la"
6880                 fi
6881               fi
6882             fi
6883           fi
6884           if test "X$found_dir" = "X"; then
6885             for x in $LDFLAGS $LTLIBINTL; do
6886
6887   acl_save_prefix="$prefix"
6888   prefix="$acl_final_prefix"
6889   acl_save_exec_prefix="$exec_prefix"
6890   exec_prefix="$acl_final_exec_prefix"
6891   eval x=\"$x\"
6892   exec_prefix="$acl_save_exec_prefix"
6893   prefix="$acl_save_prefix"
6894
6895               case "$x" in
6896                 -L*)
6897                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6898                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6899                     found_dir="$dir"
6900                     found_so="$dir/lib$name.$shlibext"
6901                     if test -f "$dir/lib$name.la"; then
6902                       found_la="$dir/lib$name.la"
6903                     fi
6904                   else
6905                     if test -f "$dir/lib$name.$libext"; then
6906                       found_dir="$dir"
6907                       found_a="$dir/lib$name.$libext"
6908                       if test -f "$dir/lib$name.la"; then
6909                         found_la="$dir/lib$name.la"
6910                       fi
6911                     fi
6912                   fi
6913                   ;;
6914               esac
6915               if test "X$found_dir" != "X"; then
6916                 break
6917               fi
6918             done
6919           fi
6920           if test "X$found_dir" != "X"; then
6921                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6922             if test "X$found_so" != "X"; then
6923                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6924                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6925               else
6926                                                                                 haveit=
6927                 for x in $ltrpathdirs; do
6928                   if test "X$x" = "X$found_dir"; then
6929                     haveit=yes
6930                     break
6931                   fi
6932                 done
6933                 if test -z "$haveit"; then
6934                   ltrpathdirs="$ltrpathdirs $found_dir"
6935                 fi
6936                                 if test "$hardcode_direct" = yes; then
6937                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6938                 else
6939                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6940                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6941                                                             haveit=
6942                     for x in $rpathdirs; do
6943                       if test "X$x" = "X$found_dir"; then
6944                         haveit=yes
6945                         break
6946                       fi
6947                     done
6948                     if test -z "$haveit"; then
6949                       rpathdirs="$rpathdirs $found_dir"
6950                     fi
6951                   else
6952                                                                                 haveit=
6953                     for x in $LDFLAGS $LIBINTL; do
6954
6955   acl_save_prefix="$prefix"
6956   prefix="$acl_final_prefix"
6957   acl_save_exec_prefix="$exec_prefix"
6958   exec_prefix="$acl_final_exec_prefix"
6959   eval x=\"$x\"
6960   exec_prefix="$acl_save_exec_prefix"
6961   prefix="$acl_save_prefix"
6962
6963                       if test "X$x" = "X-L$found_dir"; then
6964                         haveit=yes
6965                         break
6966                       fi
6967                     done
6968                     if test -z "$haveit"; then
6969                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6970                     fi
6971                     if test "$hardcode_minus_L" != no; then
6972                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6973                     else
6974                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6975                     fi
6976                   fi
6977                 fi
6978               fi
6979             else
6980               if test "X$found_a" != "X"; then
6981                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6982               else
6983                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6984               fi
6985             fi
6986                         additional_includedir=
6987             case "$found_dir" in
6988               */lib | */lib/)
6989                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6990                 additional_includedir="$basedir/include"
6991                 ;;
6992             esac
6993             if test "X$additional_includedir" != "X"; then
6994                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6995                 haveit=
6996                 if test "X$additional_includedir" = "X/usr/local/include"; then
6997                   if test -n "$GCC"; then
6998                     case $host_os in
6999                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7000                     esac
7001                   fi
7002                 fi
7003                 if test -z "$haveit"; then
7004                   for x in $CPPFLAGS $INCINTL; do
7005
7006   acl_save_prefix="$prefix"
7007   prefix="$acl_final_prefix"
7008   acl_save_exec_prefix="$exec_prefix"
7009   exec_prefix="$acl_final_exec_prefix"
7010   eval x=\"$x\"
7011   exec_prefix="$acl_save_exec_prefix"
7012   prefix="$acl_save_prefix"
7013
7014                     if test "X$x" = "X-I$additional_includedir"; then
7015                       haveit=yes
7016                       break
7017                     fi
7018                   done
7019                   if test -z "$haveit"; then
7020                     if test -d "$additional_includedir"; then
7021                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7022                     fi
7023                   fi
7024                 fi
7025               fi
7026             fi
7027                         if test -n "$found_la"; then
7028                                                         save_libdir="$libdir"
7029               case "$found_la" in
7030                 */* | *\\*) . "$found_la" ;;
7031                 *) . "./$found_la" ;;
7032               esac
7033               libdir="$save_libdir"
7034                             for dep in $dependency_libs; do
7035                 case "$dep" in
7036                   -L*)
7037                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7038                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7039                       haveit=
7040                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7041                         if test -n "$GCC"; then
7042                           case $host_os in
7043                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7044                           esac
7045                         fi
7046                       fi
7047                       if test -z "$haveit"; then
7048                         haveit=
7049                         for x in $LDFLAGS $LIBINTL; do
7050
7051   acl_save_prefix="$prefix"
7052   prefix="$acl_final_prefix"
7053   acl_save_exec_prefix="$exec_prefix"
7054   exec_prefix="$acl_final_exec_prefix"
7055   eval x=\"$x\"
7056   exec_prefix="$acl_save_exec_prefix"
7057   prefix="$acl_save_prefix"
7058
7059                           if test "X$x" = "X-L$additional_libdir"; then
7060                             haveit=yes
7061                             break
7062                           fi
7063                         done
7064                         if test -z "$haveit"; then
7065                           if test -d "$additional_libdir"; then
7066                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7067                           fi
7068                         fi
7069                         haveit=
7070                         for x in $LDFLAGS $LTLIBINTL; do
7071
7072   acl_save_prefix="$prefix"
7073   prefix="$acl_final_prefix"
7074   acl_save_exec_prefix="$exec_prefix"
7075   exec_prefix="$acl_final_exec_prefix"
7076   eval x=\"$x\"
7077   exec_prefix="$acl_save_exec_prefix"
7078   prefix="$acl_save_prefix"
7079
7080                           if test "X$x" = "X-L$additional_libdir"; then
7081                             haveit=yes
7082                             break
7083                           fi
7084                         done
7085                         if test -z "$haveit"; then
7086                           if test -d "$additional_libdir"; then
7087                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7088                           fi
7089                         fi
7090                       fi
7091                     fi
7092                     ;;
7093                   -R*)
7094                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7095                     if test "$enable_rpath" != no; then
7096                                                                   haveit=
7097                       for x in $rpathdirs; do
7098                         if test "X$x" = "X$dir"; then
7099                           haveit=yes
7100                           break
7101                         fi
7102                       done
7103                       if test -z "$haveit"; then
7104                         rpathdirs="$rpathdirs $dir"
7105                       fi
7106                                                                   haveit=
7107                       for x in $ltrpathdirs; do
7108                         if test "X$x" = "X$dir"; then
7109                           haveit=yes
7110                           break
7111                         fi
7112                       done
7113                       if test -z "$haveit"; then
7114                         ltrpathdirs="$ltrpathdirs $dir"
7115                       fi
7116                     fi
7117                     ;;
7118                   -l*)
7119                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7120                     ;;
7121                   *.la)
7122                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7123                     ;;
7124                   *)
7125                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7126                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7127                     ;;
7128                 esac
7129               done
7130             fi
7131           else
7132                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7133             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7134           fi
7135         fi
7136       fi
7137     done
7138   done
7139   if test "X$rpathdirs" != "X"; then
7140     if test -n "$hardcode_libdir_separator"; then
7141                         alldirs=
7142       for found_dir in $rpathdirs; do
7143         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7144       done
7145             acl_save_libdir="$libdir"
7146       libdir="$alldirs"
7147       eval flag=\"$hardcode_libdir_flag_spec\"
7148       libdir="$acl_save_libdir"
7149       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7150     else
7151             for found_dir in $rpathdirs; do
7152         acl_save_libdir="$libdir"
7153         libdir="$found_dir"
7154         eval flag=\"$hardcode_libdir_flag_spec\"
7155         libdir="$acl_save_libdir"
7156         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7157       done
7158     fi
7159   fi
7160   if test "X$ltrpathdirs" != "X"; then
7161             for found_dir in $ltrpathdirs; do
7162       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7163     done
7164   fi
7165
7166           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7167 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7168 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   gt_save_CPPFLAGS="$CPPFLAGS"
7172             CPPFLAGS="$CPPFLAGS $INCINTL"
7173             gt_save_LIBS="$LIBS"
7174             LIBS="$LIBS $LIBINTL"
7175                         cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181 #include <libintl.h>
7182 extern int _nl_msg_cat_cntr;
7183 extern
7184 #ifdef __cplusplus
7185 "C"
7186 #endif
7187 const char *_nl_expand_alias (const char *);
7188 int
7189 main ()
7190 {
7191 bindtextdomain ("", "");
7192 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199   (eval $ac_link) 2>conftest.er1
7200   ac_status=$?
7201   grep -v '^ *+' conftest.er1 >conftest.err
7202   rm -f conftest.er1
7203   cat conftest.err >&5
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } &&
7206          { ac_try='test -z "$ac_c_werror_flag"
7207                          || test ! -s conftest.err'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; } &&
7213          { ac_try='test -s conftest$ac_exeext'
7214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215   (eval $ac_try) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }; }; then
7219   gt_cv_func_gnugettext1_libintl=yes
7220 else
7221   echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 gt_cv_func_gnugettext1_libintl=no
7225 fi
7226 rm -f conftest.err conftest.$ac_objext \
7227       conftest$ac_exeext conftest.$ac_ext
7228                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7229               LIBS="$LIBS $LIBICONV"
7230               cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 #include <libintl.h>
7237 extern int _nl_msg_cat_cntr;
7238 extern
7239 #ifdef __cplusplus
7240 "C"
7241 #endif
7242 const char *_nl_expand_alias (const char *);
7243 int
7244 main ()
7245 {
7246 bindtextdomain ("", "");
7247 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254   (eval $ac_link) 2>conftest.er1
7255   ac_status=$?
7256   grep -v '^ *+' conftest.er1 >conftest.err
7257   rm -f conftest.er1
7258   cat conftest.err >&5
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); } &&
7261          { ac_try='test -z "$ac_c_werror_flag"
7262                          || test ! -s conftest.err'
7263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264   (eval $ac_try) 2>&5
7265   ac_status=$?
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); }; } &&
7268          { ac_try='test -s conftest$ac_exeext'
7269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270   (eval $ac_try) 2>&5
7271   ac_status=$?
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); }; }; then
7274   LIBINTL="$LIBINTL $LIBICONV"
7275                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7276                 gt_cv_func_gnugettext1_libintl=yes
7277
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 fi
7283 rm -f conftest.err conftest.$ac_objext \
7284       conftest$ac_exeext conftest.$ac_ext
7285             fi
7286             CPPFLAGS="$gt_save_CPPFLAGS"
7287             LIBS="$gt_save_LIBS"
7288 fi
7289 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7290 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7291         fi
7292
7293                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7294            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7295                 && test "$PACKAGE" != gettext-runtime \
7296                 && test "$PACKAGE" != gettext-tools; }; then
7297           gt_use_preinstalled_gnugettext=yes
7298         else
7299                     LIBINTL=
7300           LTLIBINTL=
7301           INCINTL=
7302         fi
7303
7304
7305
7306     if test -n "$INTL_MACOSX_LIBS"; then
7307       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7308          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7309                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7310         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7311       fi
7312     fi
7313
7314     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7315        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define ENABLE_NLS 1
7319 _ACEOF
7320
7321     else
7322       USE_NLS=no
7323     fi
7324   fi
7325
7326   echo "$as_me:$LINENO: checking whether to use NLS" >&5
7327 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7328   echo "$as_me:$LINENO: result: $USE_NLS" >&5
7329 echo "${ECHO_T}$USE_NLS" >&6
7330   if test "$USE_NLS" = "yes"; then
7331     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7332 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7333     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7334       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7335         gt_source="external libintl"
7336       else
7337         gt_source="libc"
7338       fi
7339     else
7340       gt_source="included intl directory"
7341     fi
7342     echo "$as_me:$LINENO: result: $gt_source" >&5
7343 echo "${ECHO_T}$gt_source" >&6
7344   fi
7345
7346   if test "$USE_NLS" = "yes"; then
7347
7348     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7349       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7350         echo "$as_me:$LINENO: checking how to link with libintl" >&5
7351 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7352         echo "$as_me:$LINENO: result: $LIBINTL" >&5
7353 echo "${ECHO_T}$LIBINTL" >&6
7354
7355   for element in $INCINTL; do
7356     haveit=
7357     for x in $CPPFLAGS; do
7358
7359   acl_save_prefix="$prefix"
7360   prefix="$acl_final_prefix"
7361   acl_save_exec_prefix="$exec_prefix"
7362   exec_prefix="$acl_final_exec_prefix"
7363   eval x=\"$x\"
7364   exec_prefix="$acl_save_exec_prefix"
7365   prefix="$acl_save_prefix"
7366
7367       if test "X$x" = "X$element"; then
7368         haveit=yes
7369         break
7370       fi
7371     done
7372     if test -z "$haveit"; then
7373       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7374     fi
7375   done
7376
7377       fi
7378
7379
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_GETTEXT 1
7382 _ACEOF
7383
7384
7385 cat >>confdefs.h <<\_ACEOF
7386 #define HAVE_DCGETTEXT 1
7387 _ACEOF
7388
7389     fi
7390
7391         POSUB=po
7392   fi
7393
7394
7395
7396     INTLLIBS="$LIBINTL"
7397
7398
7399
7400
7401
7402
7403
7404
7405 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7406 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7407 if test "${ac_cv_header_stdc+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h.  */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h.  */
7416 #include <stdlib.h>
7417 #include <stdarg.h>
7418 #include <string.h>
7419 #include <float.h>
7420
7421 int
7422 main ()
7423 {
7424
7425   ;
7426   return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431   (eval $ac_compile) 2>conftest.er1
7432   ac_status=$?
7433   grep -v '^ *+' conftest.er1 >conftest.err
7434   rm -f conftest.er1
7435   cat conftest.err >&5
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); } &&
7438          { ac_try='test -z "$ac_c_werror_flag"
7439                          || test ! -s conftest.err'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; } &&
7445          { ac_try='test -s conftest.$ac_objext'
7446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447   (eval $ac_try) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); }; }; then
7451   ac_cv_header_stdc=yes
7452 else
7453   echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456 ac_cv_header_stdc=no
7457 fi
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7459
7460 if test $ac_cv_header_stdc = yes; then
7461   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7462   cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h.  */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h.  */
7468 #include <string.h>
7469
7470 _ACEOF
7471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7472   $EGREP "memchr" >/dev/null 2>&1; then
7473   :
7474 else
7475   ac_cv_header_stdc=no
7476 fi
7477 rm -f conftest*
7478
7479 fi
7480
7481 if test $ac_cv_header_stdc = yes; then
7482   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7483   cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 #include <stdlib.h>
7490
7491 _ACEOF
7492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493   $EGREP "free" >/dev/null 2>&1; then
7494   :
7495 else
7496   ac_cv_header_stdc=no
7497 fi
7498 rm -f conftest*
7499
7500 fi
7501
7502 if test $ac_cv_header_stdc = yes; then
7503   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7504   if test "$cross_compiling" = yes; then
7505   :
7506 else
7507   cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h.  */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h.  */
7513 #include <ctype.h>
7514 #if ((' ' & 0x0FF) == 0x020)
7515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7517 #else
7518 # define ISLOWER(c) \
7519                    (('a' <= (c) && (c) <= 'i') \
7520                      || ('j' <= (c) && (c) <= 'r') \
7521                      || ('s' <= (c) && (c) <= 'z'))
7522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7523 #endif
7524
7525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7526 int
7527 main ()
7528 {
7529   int i;
7530   for (i = 0; i < 256; i++)
7531     if (XOR (islower (i), ISLOWER (i))
7532         || toupper (i) != TOUPPER (i))
7533       exit(2);
7534   exit (0);
7535 }
7536 _ACEOF
7537 rm -f conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539   (eval $ac_link) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548   :
7549 else
7550   echo "$as_me: program exited with status $ac_status" >&5
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 ( exit $ac_status )
7555 ac_cv_header_stdc=no
7556 fi
7557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 fi
7560 fi
7561 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7562 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7563 if test $ac_cv_header_stdc = yes; then
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define STDC_HEADERS 1
7567 _ACEOF
7568
7569 fi
7570
7571 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7572 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7573 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h.  */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h.  */
7582 #include <sys/types.h>
7583 #include <sys/wait.h>
7584 #ifndef WEXITSTATUS
7585 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7586 #endif
7587 #ifndef WIFEXITED
7588 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7589 #endif
7590
7591 int
7592 main ()
7593 {
7594   int s;
7595   wait (&s);
7596   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603   (eval $ac_compile) 2>conftest.er1
7604   ac_status=$?
7605   grep -v '^ *+' conftest.er1 >conftest.err
7606   rm -f conftest.er1
7607   cat conftest.err >&5
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } &&
7610          { ac_try='test -z "$ac_c_werror_flag"
7611                          || test ! -s conftest.err'
7612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613   (eval $ac_try) 2>&5
7614   ac_status=$?
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); }; } &&
7617          { ac_try='test -s conftest.$ac_objext'
7618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7619   (eval $ac_try) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); }; }; then
7623   ac_cv_header_sys_wait_h=yes
7624 else
7625   echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628 ac_cv_header_sys_wait_h=no
7629 fi
7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7633 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7634 if test $ac_cv_header_sys_wait_h = yes; then
7635
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_SYS_WAIT_H 1
7638 _ACEOF
7639
7640 fi
7641
7642 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7643 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7644 if test "${ac_cv_header_time+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647   cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <sys/types.h>
7654 #include <sys/time.h>
7655 #include <time.h>
7656
7657 int
7658 main ()
7659 {
7660 if ((struct tm *) 0)
7661 return 0;
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7668   (eval $ac_compile) 2>conftest.er1
7669   ac_status=$?
7670   grep -v '^ *+' conftest.er1 >conftest.err
7671   rm -f conftest.er1
7672   cat conftest.err >&5
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } &&
7675          { ac_try='test -z "$ac_c_werror_flag"
7676                          || test ! -s conftest.err'
7677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678   (eval $ac_try) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }; } &&
7682          { ac_try='test -s conftest.$ac_objext'
7683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684   (eval $ac_try) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); }; }; then
7688   ac_cv_header_time=yes
7689 else
7690   echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7692
7693 ac_cv_header_time=no
7694 fi
7695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7696 fi
7697 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7698 echo "${ECHO_T}$ac_cv_header_time" >&6
7699 if test $ac_cv_header_time = yes; then
7700
7701 cat >>confdefs.h <<\_ACEOF
7702 #define TIME_WITH_SYS_TIME 1
7703 _ACEOF
7704
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 for ac_header in fcntl.h limits.h locale.h libintl.h mcheck.h \
7726         netdb.h netinet/in.h  signum.h stdarg.h string.h \
7727         sys/param.h sys/socket.h sys/time.h unistd.h \
7728         termios.h stropts.h wchar.h wctype.h
7729 do
7730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7732   echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 fi
7737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7739 else
7740   # Is the header compilable?
7741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h.  */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h.  */
7749 $ac_includes_default
7750 #include <$ac_header>
7751 _ACEOF
7752 rm -f conftest.$ac_objext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754   (eval $ac_compile) 2>conftest.er1
7755   ac_status=$?
7756   grep -v '^ *+' conftest.er1 >conftest.err
7757   rm -f conftest.er1
7758   cat conftest.err >&5
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } &&
7761          { ac_try='test -z "$ac_c_werror_flag"
7762                          || test ! -s conftest.err'
7763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764   (eval $ac_try) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; } &&
7768          { ac_try='test -s conftest.$ac_objext'
7769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770   (eval $ac_try) 2>&5
7771   ac_status=$?
7772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773   (exit $ac_status); }; }; then
7774   ac_header_compiler=yes
7775 else
7776   echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 ac_header_compiler=no
7780 fi
7781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 echo "${ECHO_T}$ac_header_compiler" >&6
7784
7785 # Is the header present?
7786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794 #include <$ac_header>
7795 _ACEOF
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } >/dev/null; then
7804   if test -s conftest.err; then
7805     ac_cpp_err=$ac_c_preproc_warn_flag
7806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7807   else
7808     ac_cpp_err=
7809   fi
7810 else
7811   ac_cpp_err=yes
7812 fi
7813 if test -z "$ac_cpp_err"; then
7814   ac_header_preproc=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819   ac_header_preproc=no
7820 fi
7821 rm -f conftest.err conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7823 echo "${ECHO_T}$ac_header_preproc" >&6
7824
7825 # So?  What about this header?
7826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7827   yes:no: )
7828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7832     ac_header_preproc=yes
7833     ;;
7834   no:yes:* )
7835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7847     (
7848       cat <<\_ASBOX
7849 ## ------------------------------- ##
7850 ## Report this to bug-gawk@gnu.org ##
7851 ## ------------------------------- ##
7852 _ASBOX
7853     ) |
7854       sed "s/^/$as_me: WARNING:     /" >&2
7855     ;;
7856 esac
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   eval "$as_ac_Header=\$ac_header_preproc"
7863 fi
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7866
7867 fi
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869   cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7871 _ACEOF
7872
7873 fi
7874
7875 done
7876
7877
7878 if test "$ac_cv_header_string_h" = yes
7879 then
7880
7881 for ac_header in memory.h
7882 do
7883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885   echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 fi
7890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7892 else
7893   # Is the header compilable?
7894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 $ac_includes_default
7903 #include <$ac_header>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907   (eval $ac_compile) 2>conftest.er1
7908   ac_status=$?
7909   grep -v '^ *+' conftest.er1 >conftest.err
7910   rm -f conftest.er1
7911   cat conftest.err >&5
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); } &&
7914          { ac_try='test -z "$ac_c_werror_flag"
7915                          || test ! -s conftest.err'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; } &&
7921          { ac_try='test -s conftest.$ac_objext'
7922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923   (eval $ac_try) 2>&5
7924   ac_status=$?
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); }; }; then
7927   ac_header_compiler=yes
7928 else
7929   echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 ac_header_compiler=no
7933 fi
7934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7936 echo "${ECHO_T}$ac_header_compiler" >&6
7937
7938 # Is the header present?
7939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947 #include <$ac_header>
7948 _ACEOF
7949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } >/dev/null; then
7957   if test -s conftest.err; then
7958     ac_cpp_err=$ac_c_preproc_warn_flag
7959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7960   else
7961     ac_cpp_err=
7962   fi
7963 else
7964   ac_cpp_err=yes
7965 fi
7966 if test -z "$ac_cpp_err"; then
7967   ac_header_preproc=yes
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972   ac_header_preproc=no
7973 fi
7974 rm -f conftest.err conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7977
7978 # So?  What about this header?
7979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7980   yes:no: )
7981     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7985     ac_header_preproc=yes
7986     ;;
7987   no:yes:* )
7988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7990     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7991 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7992     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7995 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7998     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8000     (
8001       cat <<\_ASBOX
8002 ## ------------------------------- ##
8003 ## Report this to bug-gawk@gnu.org ##
8004 ## ------------------------------- ##
8005 _ASBOX
8006     ) |
8007       sed "s/^/$as_me: WARNING:     /" >&2
8008     ;;
8009 esac
8010 echo "$as_me:$LINENO: checking for $ac_header" >&5
8011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   eval "$as_ac_Header=\$ac_header_preproc"
8016 fi
8017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8019
8020 fi
8021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8022   cat >>confdefs.h <<_ACEOF
8023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 _ACEOF
8025
8026 fi
8027
8028 done
8029
8030 else
8031
8032 for ac_header in strings.h
8033 do
8034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036   echo "$as_me:$LINENO: checking for $ac_header" >&5
8037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 fi
8041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 else
8044   # Is the header compilable?
8045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 $ac_includes_default
8054 #include <$ac_header>
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058   (eval $ac_compile) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_header_compiler=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_header_compiler=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087 echo "${ECHO_T}$ac_header_compiler" >&6
8088
8089 # Is the header present?
8090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <$ac_header>
8099 _ACEOF
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8102   ac_status=$?
8103   grep -v '^ *+' conftest.er1 >conftest.err
8104   rm -f conftest.er1
8105   cat conftest.err >&5
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); } >/dev/null; then
8108   if test -s conftest.err; then
8109     ac_cpp_err=$ac_c_preproc_warn_flag
8110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8111   else
8112     ac_cpp_err=
8113   fi
8114 else
8115   ac_cpp_err=yes
8116 fi
8117 if test -z "$ac_cpp_err"; then
8118   ac_header_preproc=yes
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123   ac_header_preproc=no
8124 fi
8125 rm -f conftest.err conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127 echo "${ECHO_T}$ac_header_preproc" >&6
8128
8129 # So?  What about this header?
8130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8131   yes:no: )
8132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8136     ac_header_preproc=yes
8137     ;;
8138   no:yes:* )
8139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8151     (
8152       cat <<\_ASBOX
8153 ## ------------------------------- ##
8154 ## Report this to bug-gawk@gnu.org ##
8155 ## ------------------------------- ##
8156 _ASBOX
8157     ) |
8158       sed "s/^/$as_me: WARNING:     /" >&2
8159     ;;
8160 esac
8161 echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   eval "$as_ac_Header=\$ac_header_preproc"
8167 fi
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8170
8171 fi
8172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8173   cat >>confdefs.h <<_ACEOF
8174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8175 _ACEOF
8176
8177 fi
8178
8179 done
8180
8181 fi
8182
8183 echo "$as_me:$LINENO: checking for pid_t" >&5
8184 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8185 if test "${ac_cv_type_pid_t+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 $ac_includes_default
8195 int
8196 main ()
8197 {
8198 if ((pid_t *) 0)
8199   return 0;
8200 if (sizeof (pid_t))
8201   return 0;
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208   (eval $ac_compile) 2>conftest.er1
8209   ac_status=$?
8210   grep -v '^ *+' conftest.er1 >conftest.err
8211   rm -f conftest.er1
8212   cat conftest.err >&5
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -z "$ac_c_werror_flag"
8216                          || test ! -s conftest.err'
8217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218   (eval $ac_try) 2>&5
8219   ac_status=$?
8220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221   (exit $ac_status); }; } &&
8222          { ac_try='test -s conftest.$ac_objext'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; }; then
8228   ac_cv_type_pid_t=yes
8229 else
8230   echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_cv_type_pid_t=no
8234 fi
8235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8236 fi
8237 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8238 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8239 if test $ac_cv_type_pid_t = yes; then
8240   :
8241 else
8242
8243 cat >>confdefs.h <<_ACEOF
8244 #define pid_t int
8245 _ACEOF
8246
8247 fi
8248
8249 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8250 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8251 if test "${ac_cv_type_signal+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #include <sys/types.h>
8261 #include <signal.h>
8262 #ifdef signal
8263 # undef signal
8264 #endif
8265 #ifdef __cplusplus
8266 extern "C" void (*signal (int, void (*)(int)))(int);
8267 #else
8268 void (*signal ()) ();
8269 #endif
8270
8271 int
8272 main ()
8273 {
8274 int i;
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281   (eval $ac_compile) 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } &&
8288          { ac_try='test -z "$ac_c_werror_flag"
8289                          || test ! -s conftest.err'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; } &&
8295          { ac_try='test -s conftest.$ac_objext'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; }; then
8301   ac_cv_type_signal=void
8302 else
8303   echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 ac_cv_type_signal=int
8307 fi
8308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8311 echo "${ECHO_T}$ac_cv_type_signal" >&6
8312
8313 cat >>confdefs.h <<_ACEOF
8314 #define RETSIGTYPE $ac_cv_type_signal
8315 _ACEOF
8316
8317
8318 echo "$as_me:$LINENO: checking for size_t" >&5
8319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8320 if test "${ac_cv_type_size_t+set}" = set; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h.  */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h.  */
8329 $ac_includes_default
8330 int
8331 main ()
8332 {
8333 if ((size_t *) 0)
8334   return 0;
8335 if (sizeof (size_t))
8336   return 0;
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343   (eval $ac_compile) 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag"
8351                          || test ! -s conftest.err'
8352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8353   (eval $ac_try) 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; } &&
8357          { ac_try='test -s conftest.$ac_objext'
8358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359   (eval $ac_try) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); }; }; then
8363   ac_cv_type_size_t=yes
8364 else
8365   echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_cv_type_size_t=no
8369 fi
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8373 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8374 if test $ac_cv_type_size_t = yes; then
8375   :
8376 else
8377
8378 cat >>confdefs.h <<_ACEOF
8379 #define size_t unsigned
8380 _ACEOF
8381
8382 fi
8383
8384 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8385 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8386 if test "${ac_cv_type_uid_t+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395 #include <sys/types.h>
8396
8397 _ACEOF
8398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8399   $EGREP "uid_t" >/dev/null 2>&1; then
8400   ac_cv_type_uid_t=yes
8401 else
8402   ac_cv_type_uid_t=no
8403 fi
8404 rm -f conftest*
8405
8406 fi
8407 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8408 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8409 if test $ac_cv_type_uid_t = no; then
8410
8411 cat >>confdefs.h <<\_ACEOF
8412 #define uid_t int
8413 _ACEOF
8414
8415
8416 cat >>confdefs.h <<\_ACEOF
8417 #define gid_t int
8418 _ACEOF
8419
8420 fi
8421
8422 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
8423 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8424 if test "${ac_cv_type_getgroups+set}" = set; then
8425   echo $ECHO_N "(cached) $ECHO_C" >&6
8426 else
8427   if test "$cross_compiling" = yes; then
8428   ac_cv_type_getgroups=cross
8429 else
8430   cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436 /* Thanks to Mike Rendell for this test.  */
8437 #include <sys/types.h>
8438 #define NGID 256
8439 #undef MAX
8440 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8441
8442 int
8443 main ()
8444 {
8445   gid_t gidset[NGID];
8446   int i, n;
8447   union { gid_t gval; long lval; }  val;
8448
8449   val.lval = -1;
8450   for (i = 0; i < NGID; i++)
8451     gidset[i] = val.gval;
8452   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8453                  gidset);
8454   /* Exit non-zero if getgroups seems to require an array of ints.  This
8455      happens when gid_t is short but getgroups modifies an array of ints.  */
8456   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8457 }
8458 _ACEOF
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_type_getgroups=gid_t
8471 else
8472   echo "$as_me: program exited with status $ac_status" >&5
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ( exit $ac_status )
8477 ac_cv_type_getgroups=int
8478 fi
8479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8480 fi
8481 if test $ac_cv_type_getgroups = cross; then
8482         cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488 #include <unistd.h>
8489
8490 _ACEOF
8491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8493   ac_cv_type_getgroups=gid_t
8494 else
8495   ac_cv_type_getgroups=int
8496 fi
8497 rm -f conftest*
8498
8499 fi
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
8502 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8503
8504 cat >>confdefs.h <<_ACEOF
8505 #define GETGROUPS_T $ac_cv_type_getgroups
8506 _ACEOF
8507
8508
8509
8510   echo "$as_me:$LINENO: checking for long long" >&5
8511 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512 if test "${ac_cv_type_long_long+set}" = set; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 else
8515   cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521 long long ll = 1LL; int i = 63;
8522 int
8523 main ()
8524 {
8525 long long llmax = (long long) -1;
8526      return ll << i | ll >> i | llmax / ll | llmax % ll;
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"
8541                          || test ! -s conftest.err'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; } &&
8547          { ac_try='test -s conftest$ac_exeext'
8548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549   (eval $ac_try) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_type_long_long=yes
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 ac_cv_type_long_long=no
8559 fi
8560 rm -f conftest.err conftest.$ac_objext \
8561       conftest$ac_exeext conftest.$ac_ext
8562 fi
8563 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8564 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8565   if test $ac_cv_type_long_long = yes; then
8566
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_LONG_LONG 1
8569 _ACEOF
8570
8571   fi
8572
8573
8574   echo "$as_me:$LINENO: checking for unsigned long long" >&5
8575 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8576 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585 unsigned long long ull = 1ULL; int i = 63;
8586 int
8587 main ()
8588 {
8589 unsigned long long ullmax = (unsigned long long) -1;
8590      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597   (eval $ac_link) 2>conftest.er1
8598   ac_status=$?
8599   grep -v '^ *+' conftest.er1 >conftest.err
8600   rm -f conftest.er1
8601   cat conftest.err >&5
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); } &&
8604          { ac_try='test -z "$ac_c_werror_flag"
8605                          || test ! -s conftest.err'
8606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607   (eval $ac_try) 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; }; then
8617   ac_cv_type_unsigned_long_long=yes
8618 else
8619   echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_cv_type_unsigned_long_long=no
8623 fi
8624 rm -f conftest.err conftest.$ac_objext \
8625       conftest$ac_exeext conftest.$ac_ext
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8628 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
8629   if test $ac_cv_type_unsigned_long_long = yes; then
8630
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_UNSIGNED_LONG_LONG 1
8633 _ACEOF
8634
8635   fi
8636
8637
8638   echo "$as_me:$LINENO: checking for inttypes.h" >&5
8639 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8640 if test "${gl_cv_header_inttypes_h+set}" = set; then
8641   echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643   cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h.  */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h.  */
8649 #include <sys/types.h>
8650 #include <inttypes.h>
8651 int
8652 main ()
8653 {
8654 uintmax_t i = (uintmax_t) -1;
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661   (eval $ac_compile) 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag"
8669                          || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest.$ac_objext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   gl_cv_header_inttypes_h=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 gl_cv_header_inttypes_h=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 fi
8690 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8691 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
8692   if test $gl_cv_header_inttypes_h = yes; then
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8696 _ACEOF
8697
8698   fi
8699
8700
8701   echo "$as_me:$LINENO: checking for stdint.h" >&5
8702 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8703 if test "${gl_cv_header_stdint_h+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 #include <sys/types.h>
8713 #include <stdint.h>
8714 int
8715 main ()
8716 {
8717 uintmax_t i = (uintmax_t) -1;
8718   ;
8719   return 0;
8720 }
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724   (eval $ac_compile) 2>conftest.er1
8725   ac_status=$?
8726   grep -v '^ *+' conftest.er1 >conftest.err
8727   rm -f conftest.er1
8728   cat conftest.err >&5
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); } &&
8731          { ac_try='test -z "$ac_c_werror_flag"
8732                          || test ! -s conftest.err'
8733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734   (eval $ac_try) 2>&5
8735   ac_status=$?
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); }; } &&
8738          { ac_try='test -s conftest.$ac_objext'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; }; then
8744   gl_cv_header_stdint_h=yes
8745 else
8746   echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8748
8749 gl_cv_header_stdint_h=no
8750 fi
8751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8754 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8755   if test $gl_cv_header_stdint_h = yes; then
8756
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_STDINT_H_WITH_UINTMAX 1
8759 _ACEOF
8760
8761   fi
8762
8763
8764
8765
8766   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8767
8768     test $ac_cv_type_long_long = yes \
8769       && ac_type='long long' \
8770       || ac_type='long'
8771
8772 cat >>confdefs.h <<_ACEOF
8773 #define intmax_t $ac_type
8774 _ACEOF
8775
8776   else
8777
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_INTMAX_T 1
8780 _ACEOF
8781
8782   fi
8783
8784
8785
8786
8787   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8788
8789     test $ac_cv_type_unsigned_long_long = yes \
8790       && ac_type='unsigned long long' \
8791       || ac_type='unsigned long'
8792
8793 cat >>confdefs.h <<_ACEOF
8794 #define uintmax_t $ac_type
8795 _ACEOF
8796
8797   else
8798
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_UINTMAX_T 1
8801 _ACEOF
8802
8803   fi
8804
8805 echo "$as_me:$LINENO: checking for ssize_t" >&5
8806 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8807 if test "${ac_cv_type_ssize_t+set}" = set; then
8808   echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810   cat >conftest.$ac_ext <<_ACEOF
8811 /* confdefs.h.  */
8812 _ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h.  */
8816 $ac_includes_default
8817 int
8818 main ()
8819 {
8820 if ((ssize_t *) 0)
8821   return 0;
8822 if (sizeof (ssize_t))
8823   return 0;
8824   ;
8825   return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830   (eval $ac_compile) 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } &&
8837          { ac_try='test -z "$ac_c_werror_flag"
8838                          || test ! -s conftest.err'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; } &&
8844          { ac_try='test -s conftest.$ac_objext'
8845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846   (eval $ac_try) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); }; }; then
8850   ac_cv_type_ssize_t=yes
8851 else
8852   echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_cv_type_ssize_t=no
8856 fi
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8860 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8861 if test $ac_cv_type_ssize_t = yes; then
8862   :
8863 else
8864
8865 cat >>confdefs.h <<_ACEOF
8866 #define ssize_t int
8867 _ACEOF
8868
8869 fi
8870
8871 echo "$as_me:$LINENO: checking for unsigned int" >&5
8872 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
8873 if test "${ac_cv_type_unsigned_int+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882 $ac_includes_default
8883 int
8884 main ()
8885 {
8886 if ((unsigned int *) 0)
8887   return 0;
8888 if (sizeof (unsigned int))
8889   return 0;
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896   (eval $ac_compile) 2>conftest.er1
8897   ac_status=$?
8898   grep -v '^ *+' conftest.er1 >conftest.err
8899   rm -f conftest.er1
8900   cat conftest.err >&5
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); } &&
8903          { ac_try='test -z "$ac_c_werror_flag"
8904                          || test ! -s conftest.err'
8905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906   (eval $ac_try) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); }; } &&
8910          { ac_try='test -s conftest.$ac_objext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_type_unsigned_int=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_type_unsigned_int=no
8922 fi
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8924 fi
8925 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
8926 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
8927
8928 echo "$as_me:$LINENO: checking size of unsigned int" >&5
8929 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
8930 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
8931   echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933   if test "$ac_cv_type_unsigned_int" = yes; then
8934   # The cast to unsigned long works around a bug in the HP C Compiler
8935   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8936   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8937   # This bug is HP SR number 8606223364.
8938   if test "$cross_compiling" = yes; then
8939   # Depending upon the size, compute the lo and hi bounds.
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h.  */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h.  */
8946 $ac_includes_default
8947 int
8948 main ()
8949 {
8950 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
8951 test_array [0] = 0
8952
8953   ;
8954   return 0;
8955 }
8956 _ACEOF
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959   (eval $ac_compile) 2>conftest.er1
8960   ac_status=$?
8961   grep -v '^ *+' conftest.er1 >conftest.err
8962   rm -f conftest.er1
8963   cat conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -z "$ac_c_werror_flag"
8967                          || test ! -s conftest.err'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; } &&
8973          { ac_try='test -s conftest.$ac_objext'
8974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   ac_lo=0 ac_mid=0
8980   while :; do
8981     cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987 $ac_includes_default
8988 int
8989 main ()
8990 {
8991 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
8992 test_array [0] = 0
8993
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -z "$ac_c_werror_flag"
9008                          || test ! -s conftest.err'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   ac_hi=$ac_mid; break
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 ac_lo=`expr $ac_mid + 1`
9026                     if test $ac_lo -le $ac_mid; then
9027                       ac_lo= ac_hi=
9028                       break
9029                     fi
9030                     ac_mid=`expr 2 '*' $ac_mid + 1`
9031 fi
9032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033   done
9034 else
9035   echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h.  */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h.  */
9044 $ac_includes_default
9045 int
9046 main ()
9047 {
9048 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
9049 test_array [0] = 0
9050
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057   (eval $ac_compile) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest.$ac_objext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_hi=-1 ac_mid=-1
9078   while :; do
9079     cat >conftest.$ac_ext <<_ACEOF
9080 /* confdefs.h.  */
9081 _ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h.  */
9085 $ac_includes_default
9086 int
9087 main ()
9088 {
9089 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
9090 test_array [0] = 0
9091
9092   ;
9093   return 0;
9094 }
9095 _ACEOF
9096 rm -f conftest.$ac_objext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9098   (eval $ac_compile) 2>conftest.er1
9099   ac_status=$?
9100   grep -v '^ *+' conftest.er1 >conftest.err
9101   rm -f conftest.er1
9102   cat conftest.err >&5
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); } &&
9105          { ac_try='test -z "$ac_c_werror_flag"
9106                          || test ! -s conftest.err'
9107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9108   (eval $ac_try) 2>&5
9109   ac_status=$?
9110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); }; } &&
9112          { ac_try='test -s conftest.$ac_objext'
9113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114   (eval $ac_try) 2>&5
9115   ac_status=$?
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); }; }; then
9118   ac_lo=$ac_mid; break
9119 else
9120   echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123 ac_hi=`expr '(' $ac_mid ')' - 1`
9124                        if test $ac_mid -le $ac_hi; then
9125                          ac_lo= ac_hi=
9126                          break
9127                        fi
9128                        ac_mid=`expr 2 '*' $ac_mid`
9129 fi
9130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9131   done
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 ac_lo= ac_hi=
9137 fi
9138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9139 fi
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 # Binary search between lo and hi bounds.
9142 while test "x$ac_lo" != "x$ac_hi"; do
9143   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9144   cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h.  */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h.  */
9150 $ac_includes_default
9151 int
9152 main ()
9153 {
9154 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
9155 test_array [0] = 0
9156
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163   (eval $ac_compile) 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } &&
9170          { ac_try='test -z "$ac_c_werror_flag"
9171                          || test ! -s conftest.err'
9172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173   (eval $ac_try) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }; } &&
9177          { ac_try='test -s conftest.$ac_objext'
9178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179   (eval $ac_try) 2>&5
9180   ac_status=$?
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); }; }; then
9183   ac_hi=$ac_mid
9184 else
9185   echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 ac_lo=`expr '(' $ac_mid ')' + 1`
9189 fi
9190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9191 done
9192 case $ac_lo in
9193 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
9194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9195 See \`config.log' for more details." >&5
9196 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9197 See \`config.log' for more details." >&2;}
9198    { (exit 1); exit 1; }; } ;;
9199 esac
9200 else
9201   if test "$cross_compiling" = yes; then
9202   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9203 See \`config.log' for more details." >&5
9204 echo "$as_me: error: cannot run test program while cross compiling
9205 See \`config.log' for more details." >&2;}
9206    { (exit 1); exit 1; }; }
9207 else
9208   cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h.  */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h.  */
9214 $ac_includes_default
9215 long longval () { return (long) (sizeof (unsigned int)); }
9216 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
9217 #include <stdio.h>
9218 #include <stdlib.h>
9219 int
9220 main ()
9221 {
9222
9223   FILE *f = fopen ("conftest.val", "w");
9224   if (! f)
9225     exit (1);
9226   if (((long) (sizeof (unsigned int))) < 0)
9227     {
9228       long i = longval ();
9229       if (i != ((long) (sizeof (unsigned int))))
9230         exit (1);
9231       fprintf (f, "%ld\n", i);
9232     }
9233   else
9234     {
9235       unsigned long i = ulongval ();
9236       if (i != ((long) (sizeof (unsigned int))))
9237         exit (1);
9238       fprintf (f, "%lu\n", i);
9239     }
9240   exit (ferror (f) || fclose (f) != 0);
9241
9242   ;
9243   return 0;
9244 }
9245 _ACEOF
9246 rm -f conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248   (eval $ac_link) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253   (eval $ac_try) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; }; then
9257   ac_cv_sizeof_unsigned_int=`cat conftest.val`
9258 else
9259   echo "$as_me: program exited with status $ac_status" >&5
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ( exit $ac_status )
9264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9265 See \`config.log' for more details." >&5
9266 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9267 See \`config.log' for more details." >&2;}
9268    { (exit 1); exit 1; }; }
9269 fi
9270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 fi
9273 rm -f conftest.val
9274 else
9275   ac_cv_sizeof_unsigned_int=0
9276 fi
9277 fi
9278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
9279 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
9280 cat >>confdefs.h <<_ACEOF
9281 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
9282 _ACEOF
9283
9284
9285 echo "$as_me:$LINENO: checking for unsigned long" >&5
9286 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
9287 if test "${ac_cv_type_unsigned_long+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296 $ac_includes_default
9297 int
9298 main ()
9299 {
9300 if ((unsigned long *) 0)
9301   return 0;
9302 if (sizeof (unsigned long))
9303   return 0;
9304   ;
9305   return 0;
9306 }
9307 _ACEOF
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310   (eval $ac_compile) 2>conftest.er1
9311   ac_status=$?
9312   grep -v '^ *+' conftest.er1 >conftest.err
9313   rm -f conftest.er1
9314   cat conftest.err >&5
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -z "$ac_c_werror_flag"
9318                          || test ! -s conftest.err'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest.$ac_objext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   ac_cv_type_unsigned_long=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 ac_cv_type_unsigned_long=no
9336 fi
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9338 fi
9339 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
9340 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
9341
9342 echo "$as_me:$LINENO: checking size of unsigned long" >&5
9343 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
9344 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   if test "$ac_cv_type_unsigned_long" = yes; then
9348   # The cast to unsigned long works around a bug in the HP C Compiler
9349   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9350   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9351   # This bug is HP SR number 8606223364.
9352   if test "$cross_compiling" = yes; then
9353   # Depending upon the size, compute the lo and hi bounds.
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 $ac_includes_default
9361 int
9362 main ()
9363 {
9364 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
9365 test_array [0] = 0
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373   (eval $ac_compile) 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } &&
9380          { ac_try='test -z "$ac_c_werror_flag"
9381                          || test ! -s conftest.err'
9382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383   (eval $ac_try) 2>&5
9384   ac_status=$?
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); }; } &&
9387          { ac_try='test -s conftest.$ac_objext'
9388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389   (eval $ac_try) 2>&5
9390   ac_status=$?
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); }; }; then
9393   ac_lo=0 ac_mid=0
9394   while :; do
9395     cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 $ac_includes_default
9402 int
9403 main ()
9404 {
9405 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
9406 test_array [0] = 0
9407
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414   (eval $ac_compile) 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -z "$ac_c_werror_flag"
9422                          || test ! -s conftest.err'
9423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9424   (eval $ac_try) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); }; } &&
9428          { ac_try='test -s conftest.$ac_objext'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; }; then
9434   ac_hi=$ac_mid; break
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 ac_lo=`expr $ac_mid + 1`
9440                     if test $ac_lo -le $ac_mid; then
9441                       ac_lo= ac_hi=
9442                       break
9443                     fi
9444                     ac_mid=`expr 2 '*' $ac_mid + 1`
9445 fi
9446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9447   done
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 cat >conftest.$ac_ext <<_ACEOF
9453 /* confdefs.h.  */
9454 _ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h.  */
9458 $ac_includes_default
9459 int
9460 main ()
9461 {
9462 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
9463 test_array [0] = 0
9464
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471   (eval $ac_compile) 2>conftest.er1
9472   ac_status=$?
9473   grep -v '^ *+' conftest.er1 >conftest.err
9474   rm -f conftest.er1
9475   cat conftest.err >&5
9476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477   (exit $ac_status); } &&
9478          { ac_try='test -z "$ac_c_werror_flag"
9479                          || test ! -s conftest.err'
9480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481   (eval $ac_try) 2>&5
9482   ac_status=$?
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); }; } &&
9485          { ac_try='test -s conftest.$ac_objext'
9486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487   (eval $ac_try) 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; }; then
9491   ac_hi=-1 ac_mid=-1
9492   while :; do
9493     cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h.  */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h.  */
9499 $ac_includes_default
9500 int
9501 main ()
9502 {
9503 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
9504 test_array [0] = 0
9505
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512   (eval $ac_compile) 2>conftest.er1
9513   ac_status=$?
9514   grep -v '^ *+' conftest.er1 >conftest.err
9515   rm -f conftest.er1
9516   cat conftest.err >&5
9517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518   (exit $ac_status); } &&
9519          { ac_try='test -z "$ac_c_werror_flag"
9520                          || test ! -s conftest.err'
9521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522   (eval $ac_try) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); }; } &&
9526          { ac_try='test -s conftest.$ac_objext'
9527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528   (eval $ac_try) 2>&5
9529   ac_status=$?
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); }; }; then
9532   ac_lo=$ac_mid; break
9533 else
9534   echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_hi=`expr '(' $ac_mid ')' - 1`
9538                        if test $ac_mid -le $ac_hi; then
9539                          ac_lo= ac_hi=
9540                          break
9541                        fi
9542                        ac_mid=`expr 2 '*' $ac_mid`
9543 fi
9544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9545   done
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_lo= ac_hi=
9551 fi
9552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9553 fi
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 # Binary search between lo and hi bounds.
9556 while test "x$ac_lo" != "x$ac_hi"; do
9557   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9558   cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h.  */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h.  */
9564 $ac_includes_default
9565 int
9566 main ()
9567 {
9568 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
9569 test_array [0] = 0
9570
9571   ;
9572   return 0;
9573 }
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577   (eval $ac_compile) 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -z "$ac_c_werror_flag"
9585                          || test ! -s conftest.err'
9586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587   (eval $ac_try) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; } &&
9591          { ac_try='test -s conftest.$ac_objext'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   ac_hi=$ac_mid
9598 else
9599   echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ac_lo=`expr '(' $ac_mid ')' + 1`
9603 fi
9604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9605 done
9606 case $ac_lo in
9607 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
9608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
9609 See \`config.log' for more details." >&5
9610 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
9611 See \`config.log' for more details." >&2;}
9612    { (exit 1); exit 1; }; } ;;
9613 esac
9614 else
9615   if test "$cross_compiling" = yes; then
9616   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9617 See \`config.log' for more details." >&5
9618 echo "$as_me: error: cannot run test program while cross compiling
9619 See \`config.log' for more details." >&2;}
9620    { (exit 1); exit 1; }; }
9621 else
9622   cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h.  */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h.  */
9628 $ac_includes_default
9629 long longval () { return (long) (sizeof (unsigned long)); }
9630 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
9631 #include <stdio.h>
9632 #include <stdlib.h>
9633 int
9634 main ()
9635 {
9636
9637   FILE *f = fopen ("conftest.val", "w");
9638   if (! f)
9639     exit (1);
9640   if (((long) (sizeof (unsigned long))) < 0)
9641     {
9642       long i = longval ();
9643       if (i != ((long) (sizeof (unsigned long))))
9644         exit (1);
9645       fprintf (f, "%ld\n", i);
9646     }
9647   else
9648     {
9649       unsigned long i = ulongval ();
9650       if (i != ((long) (sizeof (unsigned long))))
9651         exit (1);
9652       fprintf (f, "%lu\n", i);
9653     }
9654   exit (ferror (f) || fclose (f) != 0);
9655
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662   (eval $ac_link) 2>&5
9663   ac_status=$?
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667   (eval $ac_try) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; }; then
9671   ac_cv_sizeof_unsigned_long=`cat conftest.val`
9672 else
9673   echo "$as_me: program exited with status $ac_status" >&5
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ( exit $ac_status )
9678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
9679 See \`config.log' for more details." >&5
9680 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
9681 See \`config.log' for more details." >&2;}
9682    { (exit 1); exit 1; }; }
9683 fi
9684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 fi
9687 rm -f conftest.val
9688 else
9689   ac_cv_sizeof_unsigned_long=0
9690 fi
9691 fi
9692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
9693 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
9694 cat >>confdefs.h <<_ACEOF
9695 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9696 _ACEOF
9697
9698
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 #include <stdio.h>
9706
9707 _ACEOF
9708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9709   $EGREP "int.*sprintf" >/dev/null 2>&1; then
9710
9711 cat >>confdefs.h <<\_ACEOF
9712 #define SPRINTF_RET int
9713 _ACEOF
9714
9715 else
9716   cat >>confdefs.h <<\_ACEOF
9717 #define SPRINTF_RET char *
9718 _ACEOF
9719
9720 fi
9721 rm -f conftest*
9722
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h.  */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h.  */
9729 #include <sys/types.h>
9730 int
9731 main ()
9732 {
9733
9734         time_t foo;
9735         foo = 0;
9736
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743   (eval $ac_compile) 2>conftest.er1
9744   ac_status=$?
9745   grep -v '^ *+' conftest.er1 >conftest.err
9746   rm -f conftest.er1
9747   cat conftest.err >&5
9748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749   (exit $ac_status); } &&
9750          { ac_try='test -z "$ac_c_werror_flag"
9751                          || test ! -s conftest.err'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest.$ac_objext'
9758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759   (eval $ac_try) 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763
9764 cat >>confdefs.h <<\_ACEOF
9765 #define TIME_T_IN_SYS_TYPES_H 1
9766 _ACEOF
9767
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 fi
9773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h.  */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h.  */
9780 #include <wctype.h>
9781 int
9782 main ()
9783 {
9784
9785         wctype_t foo;
9786         foo = 0;
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -z "$ac_c_werror_flag"
9802                          || test ! -s conftest.err'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; } &&
9808          { ac_try='test -s conftest.$ac_objext'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_WCTYPE_T 1
9817 _ACEOF
9818
9819 else
9820   echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 fi
9824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <wctype.h>
9832 int
9833 main ()
9834 {
9835
9836         wint_t foo;
9837         foo = 0;
9838
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"
9853                          || test ! -s conftest.err'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; } &&
9859          { ac_try='test -s conftest.$ac_objext'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; }; then
9865
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_WINT_T 1
9868 _ACEOF
9869
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 fi
9875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9876
9877
9878
9879
9880
9881
9882    echo "$as_me:$LINENO: checking for socklen_t" >&5
9883 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9884 if test "${ac_cv_type_socklen_t+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 #include <sys/types.h>
9894 #include <sys/socket.h>
9895
9896 int
9897 main ()
9898 {
9899 if ((socklen_t *) 0)
9900   return 0;
9901 if (sizeof (socklen_t))
9902   return 0;
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909   (eval $ac_compile) 2>conftest.er1
9910   ac_status=$?
9911   grep -v '^ *+' conftest.er1 >conftest.err
9912   rm -f conftest.er1
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); } &&
9916          { ac_try='test -z "$ac_c_werror_flag"
9917                          || test ! -s conftest.err'
9918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919   (eval $ac_try) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); }; } &&
9923          { ac_try='test -s conftest.$ac_objext'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_type_socklen_t=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_cv_type_socklen_t=no
9935 fi
9936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
9940 if test $ac_cv_type_socklen_t = yes; then
9941   :
9942 else
9943
9944       echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
9945 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
9946       if test "${rsync_cv_socklen_t_equiv+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949
9950          # Systems have either "struct sockaddr *" or
9951          # "void *" as the second argument to getpeername
9952          rsync_cv_socklen_t_equiv=
9953          for arg2 in "struct sockaddr" void; do
9954             for t in int size_t unsigned long "unsigned long"; do
9955                cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h.  */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h.  */
9961
9962 #include <sys/types.h>
9963 #include <sys/socket.h>
9964
9965                   int getpeername (int, $arg2 *, $t *);
9966
9967 int
9968 main ()
9969 {
9970
9971                   $t len;
9972                   getpeername(0,0,&len);
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980   (eval $ac_compile) 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } &&
9987          { ac_try='test -z "$ac_c_werror_flag"
9988                          || test ! -s conftest.err'
9989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990   (eval $ac_try) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest.$ac_objext'
9995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996   (eval $ac_try) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000
10001                   rsync_cv_socklen_t_equiv="$t"
10002                   break
10003
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 fi
10009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10010             done
10011          done
10012
10013          if test "x$rsync_cv_socklen_t_equiv" = x; then
10014                 rsync_cv_socklen_t_equiv=int
10015          fi
10016
10017 fi
10018
10019       echo "$as_me:$LINENO: result: $rsync_cv_socklen_t_equiv" >&5
10020 echo "${ECHO_T}$rsync_cv_socklen_t_equiv" >&6
10021
10022 cat >>confdefs.h <<_ACEOF
10023 #define socklen_t $rsync_cv_socklen_t_equiv
10024 _ACEOF
10025
10026 fi
10027
10028
10029
10030
10031 for ac_func in vprintf
10032 do
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10047 #define $ac_func innocuous_$ac_func
10048
10049 /* System header to define __stub macros and hopefully few prototypes,
10050     which can conflict with char $ac_func (); below.
10051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052     <limits.h> exists even on freestanding compilers.  */
10053
10054 #ifdef __STDC__
10055 # include <limits.h>
10056 #else
10057 # include <assert.h>
10058 #endif
10059
10060 #undef $ac_func
10061
10062 /* Override any gcc2 internal prototype to avoid an error.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 {
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068    builtin and then its argument prototype would still apply.  */
10069 char $ac_func ();
10070 /* The GNU C library defines this for functions which it implements
10071     to always fail with ENOSYS.  Some functions are actually named
10072     something starting with __ and the normal name is an alias.  */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10074 choke me
10075 #else
10076 char (*f) () = $ac_func;
10077 #endif
10078 #ifdef __cplusplus
10079 }
10080 #endif
10081
10082 int
10083 main ()
10084 {
10085 return f != $ac_func;
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   eval "$as_ac_var=yes"
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 eval "$as_ac_var=no"
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120       conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125   cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10127 _ACEOF
10128
10129 echo "$as_me:$LINENO: checking for _doprnt" >&5
10130 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10131 if test "${ac_cv_func__doprnt+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10142 #define _doprnt innocuous__doprnt
10143
10144 /* System header to define __stub macros and hopefully few prototypes,
10145     which can conflict with char _doprnt (); below.
10146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147     <limits.h> exists even on freestanding compilers.  */
10148
10149 #ifdef __STDC__
10150 # include <limits.h>
10151 #else
10152 # include <assert.h>
10153 #endif
10154
10155 #undef _doprnt
10156
10157 /* Override any gcc2 internal prototype to avoid an error.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 {
10161 #endif
10162 /* We use char because int might match the return type of a gcc2
10163    builtin and then its argument prototype would still apply.  */
10164 char _doprnt ();
10165 /* The GNU C library defines this for functions which it implements
10166     to always fail with ENOSYS.  Some functions are actually named
10167     something starting with __ and the normal name is an alias.  */
10168 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10169 choke me
10170 #else
10171 char (*f) () = _doprnt;
10172 #endif
10173 #ifdef __cplusplus
10174 }
10175 #endif
10176
10177 int
10178 main ()
10179 {
10180 return f != _doprnt;
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187   (eval $ac_link) 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag"
10195                          || test ! -s conftest.err'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; } &&
10201          { ac_try='test -s conftest$ac_exeext'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207   ac_cv_func__doprnt=yes
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_cv_func__doprnt=no
10213 fi
10214 rm -f conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext conftest.$ac_ext
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10218 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10219 if test $ac_cv_func__doprnt = yes; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_DOPRNT 1
10223 _ACEOF
10224
10225 fi
10226
10227 fi
10228 done
10229
10230
10231
10232
10233 for ac_header in stdlib.h
10234 do
10235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237   echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 fi
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244 else
10245   # Is the header compilable?
10246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h.  */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h.  */
10254 $ac_includes_default
10255 #include <$ac_header>
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259   (eval $ac_compile) 2>conftest.er1
10260   ac_status=$?
10261   grep -v '^ *+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } &&
10266          { ac_try='test -z "$ac_c_werror_flag"
10267                          || test ! -s conftest.err'
10268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269   (eval $ac_try) 2>&5
10270   ac_status=$?
10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272   (exit $ac_status); }; } &&
10273          { ac_try='test -s conftest.$ac_objext'
10274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275   (eval $ac_try) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); }; }; then
10279   ac_header_compiler=yes
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 ac_header_compiler=no
10285 fi
10286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288 echo "${ECHO_T}$ac_header_compiler" >&6
10289
10290 # Is the header present?
10291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #include <$ac_header>
10300 _ACEOF
10301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10303   ac_status=$?
10304   grep -v '^ *+' conftest.er1 >conftest.err
10305   rm -f conftest.er1
10306   cat conftest.err >&5
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } >/dev/null; then
10309   if test -s conftest.err; then
10310     ac_cpp_err=$ac_c_preproc_warn_flag
10311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10312   else
10313     ac_cpp_err=
10314   fi
10315 else
10316   ac_cpp_err=yes
10317 fi
10318 if test -z "$ac_cpp_err"; then
10319   ac_header_preproc=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324   ac_header_preproc=no
10325 fi
10326 rm -f conftest.err conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10328 echo "${ECHO_T}$ac_header_preproc" >&6
10329
10330 # So?  What about this header?
10331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10332   yes:no: )
10333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10337     ac_header_preproc=yes
10338     ;;
10339   no:yes:* )
10340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10352     (
10353       cat <<\_ASBOX
10354 ## ------------------------------- ##
10355 ## Report this to bug-gawk@gnu.org ##
10356 ## ------------------------------- ##
10357 _ASBOX
10358     ) |
10359       sed "s/^/$as_me: WARNING:     /" >&2
10360     ;;
10361 esac
10362 echo "$as_me:$LINENO: checking for $ac_header" >&5
10363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   eval "$as_ac_Header=\$ac_header_preproc"
10368 fi
10369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10371
10372 fi
10373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10374   cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10376 _ACEOF
10377
10378 fi
10379
10380 done
10381
10382
10383 for ac_func in strtod
10384 do
10385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10386 echo "$as_me:$LINENO: checking for $ac_func" >&5
10387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10388 if eval "test \"\${$as_ac_var+set}\" = set"; then
10389   echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391   cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10399 #define $ac_func innocuous_$ac_func
10400
10401 /* System header to define __stub macros and hopefully few prototypes,
10402     which can conflict with char $ac_func (); below.
10403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10404     <limits.h> exists even on freestanding compilers.  */
10405
10406 #ifdef __STDC__
10407 # include <limits.h>
10408 #else
10409 # include <assert.h>
10410 #endif
10411
10412 #undef $ac_func
10413
10414 /* Override any gcc2 internal prototype to avoid an error.  */
10415 #ifdef __cplusplus
10416 extern "C"
10417 {
10418 #endif
10419 /* We use char because int might match the return type of a gcc2
10420    builtin and then its argument prototype would still apply.  */
10421 char $ac_func ();
10422 /* The GNU C library defines this for functions which it implements
10423     to always fail with ENOSYS.  Some functions are actually named
10424     something starting with __ and the normal name is an alias.  */
10425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10426 choke me
10427 #else
10428 char (*f) () = $ac_func;
10429 #endif
10430 #ifdef __cplusplus
10431 }
10432 #endif
10433
10434 int
10435 main ()
10436 {
10437 return f != $ac_func;
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444   (eval $ac_link) 2>conftest.er1
10445   ac_status=$?
10446   grep -v '^ *+' conftest.er1 >conftest.err
10447   rm -f conftest.er1
10448   cat conftest.err >&5
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -z "$ac_c_werror_flag"
10452                          || test ! -s conftest.err'
10453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454   (eval $ac_try) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); }; } &&
10458          { ac_try='test -s conftest$ac_exeext'
10459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460   (eval $ac_try) 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   eval "$as_ac_var=yes"
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469 eval "$as_ac_var=no"
10470 fi
10471 rm -f conftest.err conftest.$ac_objext \
10472       conftest$ac_exeext conftest.$ac_ext
10473 fi
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10476 if test `eval echo '${'$as_ac_var'}'` = yes; then
10477   cat >>confdefs.h <<_ACEOF
10478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10479 _ACEOF
10480
10481 fi
10482 done
10483
10484 echo "$as_me:$LINENO: checking for strtod with C89 semantics" >&5
10485 echo $ECHO_N "checking for strtod with C89 semantics... $ECHO_C" >&6
10486 if test "${gawk_ac_cv_func_strtod_c89+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489   if test "$cross_compiling" = yes; then
10490   gawk_ac_cv_func_strtod_c89=no
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498 /* Test program from Arnold Robbins (arnold@skeeve.com) */
10499 #if HAVE_STDLIB_H
10500 #include <stdlib.h>
10501 #else
10502 extern double strtod();
10503 #endif
10504
10505 int
10506 main ()
10507 {
10508 #if ! HAVE_STRTOD
10509   exit(1);
10510 #else
10511   double d;
10512   char *str = "0x345a";
10513
10514   d = strtod(str, 0);
10515   if (d == 0)
10516      exit (0);
10517   else
10518      exit (1);
10519 #endif
10520 }
10521 _ACEOF
10522 rm -f conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524   (eval $ac_link) 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529   (eval $ac_try) 2>&5
10530   ac_status=$?
10531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532   (exit $ac_status); }; }; then
10533   gawk_ac_cv_func_strtod_c89=yes
10534 else
10535   echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10538
10539 ( exit $ac_status )
10540 gawk_ac_cv_func_strtod_c89=no
10541 fi
10542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10543 fi
10544 fi
10545 echo "$as_me:$LINENO: result: $gawk_ac_cv_func_strtod_c89" >&5
10546 echo "${ECHO_T}$gawk_ac_cv_func_strtod_c89" >&6
10547 if test $gawk_ac_cv_func_strtod_c89 = no; then
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define STRTOD_NOT_C89 1
10551 _ACEOF
10552
10553 fi
10554
10555
10556
10557
10558 for ac_header in stdlib.h sys/time.h unistd.h
10559 do
10560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562   echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 fi
10567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10569 else
10570   # Is the header compilable?
10571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579 $ac_includes_default
10580 #include <$ac_header>
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584   (eval $ac_compile) 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -z "$ac_c_werror_flag"
10592                          || test ! -s conftest.err'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; } &&
10598          { ac_try='test -s conftest.$ac_objext'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   ac_header_compiler=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_compiler=no
10610 fi
10611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10613 echo "${ECHO_T}$ac_header_compiler" >&6
10614
10615 # Is the header present?
10616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624 #include <$ac_header>
10625 _ACEOF
10626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } >/dev/null; then
10634   if test -s conftest.err; then
10635     ac_cpp_err=$ac_c_preproc_warn_flag
10636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637   else
10638     ac_cpp_err=
10639   fi
10640 else
10641   ac_cpp_err=yes
10642 fi
10643 if test -z "$ac_cpp_err"; then
10644   ac_header_preproc=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649   ac_header_preproc=no
10650 fi
10651 rm -f conftest.err conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6
10654
10655 # So?  What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10657   yes:no: )
10658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662     ac_header_preproc=yes
10663     ;;
10664   no:yes:* )
10665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10677     (
10678       cat <<\_ASBOX
10679 ## ------------------------------- ##
10680 ## Report this to bug-gawk@gnu.org ##
10681 ## ------------------------------- ##
10682 _ASBOX
10683     ) |
10684       sed "s/^/$as_me: WARNING:     /" >&2
10685     ;;
10686 esac
10687 echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   eval "$as_ac_Header=\$ac_header_preproc"
10693 fi
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10696
10697 fi
10698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699   cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10701 _ACEOF
10702
10703 fi
10704
10705 done
10706
10707
10708 for ac_func in alarm
10709 do
10710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10711 echo "$as_me:$LINENO: checking for $ac_func" >&5
10712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10713 if eval "test \"\${$as_ac_var+set}\" = set"; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10724 #define $ac_func innocuous_$ac_func
10725
10726 /* System header to define __stub macros and hopefully few prototypes,
10727     which can conflict with char $ac_func (); below.
10728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729     <limits.h> exists even on freestanding compilers.  */
10730
10731 #ifdef __STDC__
10732 # include <limits.h>
10733 #else
10734 # include <assert.h>
10735 #endif
10736
10737 #undef $ac_func
10738
10739 /* Override any gcc2 internal prototype to avoid an error.  */
10740 #ifdef __cplusplus
10741 extern "C"
10742 {
10743 #endif
10744 /* We use char because int might match the return type of a gcc2
10745    builtin and then its argument prototype would still apply.  */
10746 char $ac_func ();
10747 /* The GNU C library defines this for functions which it implements
10748     to always fail with ENOSYS.  Some functions are actually named
10749     something starting with __ and the normal name is an alias.  */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10751 choke me
10752 #else
10753 char (*f) () = $ac_func;
10754 #endif
10755 #ifdef __cplusplus
10756 }
10757 #endif
10758
10759 int
10760 main ()
10761 {
10762 return f != $ac_func;
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769   (eval $ac_link) 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } &&
10776          { ac_try='test -z "$ac_c_werror_flag"
10777                          || test ! -s conftest.err'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest$ac_exeext'
10784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785   (eval $ac_try) 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; }; then
10789   eval "$as_ac_var=yes"
10790 else
10791   echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10793
10794 eval "$as_ac_var=no"
10795 fi
10796 rm -f conftest.err conftest.$ac_objext \
10797       conftest$ac_exeext conftest.$ac_ext
10798 fi
10799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10801 if test `eval echo '${'$as_ac_var'}'` = yes; then
10802   cat >>confdefs.h <<_ACEOF
10803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10804 _ACEOF
10805
10806 fi
10807 done
10808
10809 echo "$as_me:$LINENO: checking for working mktime" >&5
10810 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10811 if test "${ac_cv_func_working_mktime+set}" = set; then
10812   echo $ECHO_N "(cached) $ECHO_C" >&6
10813 else
10814   if test "$cross_compiling" = yes; then
10815   ac_cv_func_working_mktime=no
10816 else
10817   cat >conftest.$ac_ext <<_ACEOF
10818 /* confdefs.h.  */
10819 _ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h.  */
10823 /* Test program from Paul Eggert and Tony Leneis.  */
10824 #if TIME_WITH_SYS_TIME
10825 # include <sys/time.h>
10826 # include <time.h>
10827 #else
10828 # if HAVE_SYS_TIME_H
10829 #  include <sys/time.h>
10830 # else
10831 #  include <time.h>
10832 # endif
10833 #endif
10834
10835 #if HAVE_STDLIB_H
10836 # include <stdlib.h>
10837 #endif
10838
10839 #if HAVE_UNISTD_H
10840 # include <unistd.h>
10841 #endif
10842
10843 #if !HAVE_ALARM
10844 # define alarm(X) /* empty */
10845 #endif
10846
10847 /* Work around redefinition to rpl_putenv by other config tests.  */
10848 #undef putenv
10849
10850 static time_t time_t_max;
10851 static time_t time_t_min;
10852
10853 /* Values we'll use to set the TZ environment variable.  */
10854 static char *tz_strings[] = {
10855   (char *) 0, "TZ=GMT0", "TZ=JST-9",
10856   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10857 };
10858 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10859
10860 /* Fail if mktime fails to convert a date in the spring-forward gap.
10861    Based on a problem report from Andreas Jaeger.  */
10862 static void
10863 spring_forward_gap ()
10864 {
10865   /* glibc (up to about 1998-10-07) failed this test. */
10866   struct tm tm;
10867
10868   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10869      instead of "TZ=America/Vancouver" in order to detect the bug even
10870      on systems that don't support the Olson extension, or don't have the
10871      full zoneinfo tables installed.  */
10872   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10873
10874   tm.tm_year = 98;
10875   tm.tm_mon = 3;
10876   tm.tm_mday = 5;
10877   tm.tm_hour = 2;
10878   tm.tm_min = 0;
10879   tm.tm_sec = 0;
10880   tm.tm_isdst = -1;
10881   if (mktime (&tm) == (time_t)-1)
10882     exit (1);
10883 }
10884
10885 static void
10886 mktime_test1 (now)
10887      time_t now;
10888 {
10889   struct tm *lt;
10890   if ((lt = localtime (&now)) && mktime (lt) != now)
10891     exit (1);
10892 }
10893
10894 static void
10895 mktime_test (now)
10896      time_t now;
10897 {
10898   mktime_test1 (now);
10899   mktime_test1 ((time_t) (time_t_max - now));
10900   mktime_test1 ((time_t) (time_t_min + now));
10901 }
10902
10903 static void
10904 irix_6_4_bug ()
10905 {
10906   /* Based on code from Ariel Faigon.  */
10907   struct tm tm;
10908   tm.tm_year = 96;
10909   tm.tm_mon = 3;
10910   tm.tm_mday = 0;
10911   tm.tm_hour = 0;
10912   tm.tm_min = 0;
10913   tm.tm_sec = 0;
10914   tm.tm_isdst = -1;
10915   mktime (&tm);
10916   if (tm.tm_mon != 2 || tm.tm_mday != 31)
10917     exit (1);
10918 }
10919
10920 static void
10921 bigtime_test (j)
10922      int j;
10923 {
10924   struct tm tm;
10925   time_t now;
10926   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10927   now = mktime (&tm);
10928   if (now != (time_t) -1)
10929     {
10930       struct tm *lt = localtime (&now);
10931       if (! (lt
10932              && lt->tm_year == tm.tm_year
10933              && lt->tm_mon == tm.tm_mon
10934              && lt->tm_mday == tm.tm_mday
10935              && lt->tm_hour == tm.tm_hour
10936              && lt->tm_min == tm.tm_min
10937              && lt->tm_sec == tm.tm_sec
10938              && lt->tm_yday == tm.tm_yday
10939              && lt->tm_wday == tm.tm_wday
10940              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10941                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10942         exit (1);
10943     }
10944 }
10945
10946 int
10947 main ()
10948 {
10949   time_t t, delta;
10950   int i, j;
10951
10952   /* This test makes some buggy mktime implementations loop.
10953      Give up after 60 seconds; a mktime slower than that
10954      isn't worth using anyway.  */
10955   alarm (60);
10956
10957   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10958     continue;
10959   time_t_max--;
10960   if ((time_t) -1 < 0)
10961     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
10962       continue;
10963   delta = time_t_max / 997; /* a suitable prime number */
10964   for (i = 0; i < N_STRINGS; i++)
10965     {
10966       if (tz_strings[i])
10967         putenv (tz_strings[i]);
10968
10969       for (t = 0; t <= time_t_max - delta; t += delta)
10970         mktime_test (t);
10971       mktime_test ((time_t) 1);
10972       mktime_test ((time_t) (60 * 60));
10973       mktime_test ((time_t) (60 * 60 * 24));
10974
10975       for (j = 1; 0 < j; j *= 2)
10976         bigtime_test (j);
10977       bigtime_test (j - 1);
10978     }
10979   irix_6_4_bug ();
10980   spring_forward_gap ();
10981   exit (0);
10982 }
10983 _ACEOF
10984 rm -f conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986   (eval $ac_link) 2>&5
10987   ac_status=$?
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991   (eval $ac_try) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; }; then
10995   ac_cv_func_working_mktime=yes
10996 else
10997   echo "$as_me: program exited with status $ac_status" >&5
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001 ( exit $ac_status )
11002 ac_cv_func_working_mktime=no
11003 fi
11004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11005 fi
11006 fi
11007 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11008 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11009 if test $ac_cv_func_working_mktime = no; then
11010   case $LIBOBJS in
11011     "mktime.$ac_objext"   | \
11012   *" mktime.$ac_objext"   | \
11013     "mktime.$ac_objext "* | \
11014   *" mktime.$ac_objext "* ) ;;
11015   *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
11016 esac
11017
11018 fi
11019
11020 case "$ac_cv_func_working_mktime" in
11021 yes)
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_MKTIME 1
11024 _ACEOF
11025
11026         ;;
11027 esac
11028
11029
11030 echo "$as_me:$LINENO: checking for fmod in -lm" >&5
11031 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
11032 if test "${ac_cv_lib_m_fmod+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-lm  $LIBS"
11037 cat >conftest.$ac_ext <<_ACEOF
11038 /* confdefs.h.  */
11039 _ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h.  */
11043
11044 /* Override any gcc2 internal prototype to avoid an error.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 /* We use char because int might match the return type of a gcc2
11049    builtin and then its argument prototype would still apply.  */
11050 char fmod ();
11051 int
11052 main ()
11053 {
11054 fmod ();
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061   (eval $ac_link) 2>conftest.er1
11062   ac_status=$?
11063   grep -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); } &&
11068          { ac_try='test -z "$ac_c_werror_flag"
11069                          || test ! -s conftest.err'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_cv_lib_m_fmod=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 ac_cv_lib_m_fmod=no
11087 fi
11088 rm -f conftest.err conftest.$ac_objext \
11089       conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
11093 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
11094 if test $ac_cv_lib_m_fmod = yes; then
11095   cat >>confdefs.h <<_ACEOF
11096 #define HAVE_LIBM 1
11097 _ACEOF
11098
11099   LIBS="-lm $LIBS"
11100
11101 fi
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133 for ac_func in fmod getgrent getgroups grantpt iswctype mbrlen \
11134         memcmp memcpy memmove memset setlocale snprintf strchr \
11135         strerror strftime strncasecmp strtod strtoul system tzset \
11136         isascii btowc \
11137         iswlower iswupper towlower towupper \
11138         wcrtomb wcscoll wcscoll wctype
11139 do
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11154 #define $ac_func innocuous_$ac_func
11155
11156 /* System header to define __stub macros and hopefully few prototypes,
11157     which can conflict with char $ac_func (); below.
11158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159     <limits.h> exists even on freestanding compilers.  */
11160
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166
11167 #undef $ac_func
11168
11169 /* Override any gcc2 internal prototype to avoid an error.  */
11170 #ifdef __cplusplus
11171 extern "C"
11172 {
11173 #endif
11174 /* We use char because int might match the return type of a gcc2
11175    builtin and then its argument prototype would still apply.  */
11176 char $ac_func ();
11177 /* The GNU C library defines this for functions which it implements
11178     to always fail with ENOSYS.  Some functions are actually named
11179     something starting with __ and the normal name is an alias.  */
11180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11181 choke me
11182 #else
11183 char (*f) () = $ac_func;
11184 #endif
11185 #ifdef __cplusplus
11186 }
11187 #endif
11188
11189 int
11190 main ()
11191 {
11192 return f != $ac_func;
11193   ;
11194   return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199   (eval $ac_link) 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } &&
11206          { ac_try='test -z "$ac_c_werror_flag"
11207                          || test ! -s conftest.err'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; } &&
11213          { ac_try='test -s conftest$ac_exeext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   eval "$as_ac_var=yes"
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 eval "$as_ac_var=no"
11225 fi
11226 rm -f conftest.err conftest.$ac_objext \
11227       conftest$ac_exeext conftest.$ac_ext
11228 fi
11229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11231 if test `eval echo '${'$as_ac_var'}'` = yes; then
11232   cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11234 _ACEOF
11235
11236 fi
11237 done
11238
11239
11240   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
11241 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
11242 if test "${ac_cv_func_mbrtowc+set}" = set; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 #include <wchar.h>
11252 int
11253 main ()
11254 {
11255 mbstate_t state; return ! (sizeof state && mbrtowc);
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262   (eval $ac_link) 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag"
11270                          || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest$ac_exeext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_func_mbrtowc=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_func_mbrtowc=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext \
11290       conftest$ac_exeext conftest.$ac_ext
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
11293 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
11294   if test $ac_cv_func_mbrtowc = yes; then
11295
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_MBRTOWC 1
11298 _ACEOF
11299
11300   fi
11301
11302
11303 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11304   echo "$as_me:$LINENO: checking for dlfcn.h" >&5
11305 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
11306 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 fi
11309 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
11311 else
11312   # Is the header compilable?
11313 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
11314 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h.  */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h.  */
11321 $ac_includes_default
11322 #include <dlfcn.h>
11323 _ACEOF
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326   (eval $ac_compile) 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag"
11334                          || test ! -s conftest.err'
11335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336   (eval $ac_try) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; } &&
11340          { ac_try='test -s conftest.$ac_objext'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; }; then
11346   ac_header_compiler=yes
11347 else
11348   echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11350
11351 ac_header_compiler=no
11352 fi
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11355 echo "${ECHO_T}$ac_header_compiler" >&6
11356
11357 # Is the header present?
11358 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
11359 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 #include <dlfcn.h>
11367 _ACEOF
11368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11370   ac_status=$?
11371   grep -v '^ *+' conftest.er1 >conftest.err
11372   rm -f conftest.er1
11373   cat conftest.err >&5
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } >/dev/null; then
11376   if test -s conftest.err; then
11377     ac_cpp_err=$ac_c_preproc_warn_flag
11378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11379   else
11380     ac_cpp_err=
11381   fi
11382 else
11383   ac_cpp_err=yes
11384 fi
11385 if test -z "$ac_cpp_err"; then
11386   ac_header_preproc=yes
11387 else
11388   echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11390
11391   ac_header_preproc=no
11392 fi
11393 rm -f conftest.err conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11395 echo "${ECHO_T}$ac_header_preproc" >&6
11396
11397 # So?  What about this header?
11398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399   yes:no: )
11400     { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
11401 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11402     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
11403 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
11404     ac_header_preproc=yes
11405     ;;
11406   no:yes:* )
11407     { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
11409     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: dlfcn.h:     check for missing prerequisite headers?" >&2;}
11411     { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
11412 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
11413     { echo "$as_me:$LINENO: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&5
11414 echo "$as_me: WARNING: dlfcn.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11415     { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
11416 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
11417     { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
11418 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
11419     (
11420       cat <<\_ASBOX
11421 ## ------------------------------- ##
11422 ## Report this to bug-gawk@gnu.org ##
11423 ## ------------------------------- ##
11424 _ASBOX
11425     ) |
11426       sed "s/^/$as_me: WARNING:     /" >&2
11427     ;;
11428 esac
11429 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
11430 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
11431 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   ac_cv_header_dlfcn_h=$ac_header_preproc
11435 fi
11436 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
11437 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
11438
11439 fi
11440 if test $ac_cv_header_dlfcn_h = yes; then
11441
11442 cat >>confdefs.h <<\_ACEOF
11443 #define DYNAMIC 1
11444 _ACEOF
11445
11446         if test "$GCC" = yes
11447         then
11448                 # Add others here as appropriate,
11449                 # one day use GNU libtool.
11450                 if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
11451                 then
11452                         LDFLAGS="$LDFLAGS -export-dynamic"
11453                 fi
11454         fi
11455
11456         # Check this separately. Some systems have dlopen
11457         # in libc. Notably freebsd and cygwin.
11458
11459 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-ldl  $LIBS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472
11473 /* Override any gcc2 internal prototype to avoid an error.  */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 /* We use char because int might match the return type of a gcc2
11478    builtin and then its argument prototype would still apply.  */
11479 char dlopen ();
11480 int
11481 main ()
11482 {
11483 dlopen ();
11484   ;
11485   return 0;
11486 }
11487 _ACEOF
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490   (eval $ac_link) 2>conftest.er1
11491   ac_status=$?
11492   grep -v '^ *+' conftest.er1 >conftest.err
11493   rm -f conftest.er1
11494   cat conftest.err >&5
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); } &&
11497          { ac_try='test -z "$ac_c_werror_flag"
11498                          || test ! -s conftest.err'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; } &&
11504          { ac_try='test -s conftest$ac_exeext'
11505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506   (eval $ac_try) 2>&5
11507   ac_status=$?
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); }; }; then
11510   ac_cv_lib_dl_dlopen=yes
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ac_cv_lib_dl_dlopen=no
11516 fi
11517 rm -f conftest.err conftest.$ac_objext \
11518       conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11520 fi
11521 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11523 if test $ac_cv_lib_dl_dlopen = yes; then
11524   cat >>confdefs.h <<_ACEOF
11525 #define HAVE_LIBDL 1
11526 _ACEOF
11527
11528   LIBS="-ldl $LIBS"
11529
11530 fi
11531
11532
11533 fi
11534
11535
11536
11537 case `(uname) 2> /dev/null` in
11538 *VMS*|*BeOS*|*OS/2*|*MS-DOS*)
11539
11540 cat >>confdefs.h <<\_ACEOF
11541 #define GETPGRP_VOID 1
11542 _ACEOF
11543
11544         ;;
11545 *)      echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11546 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11547 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   # Use it with a single arg.
11551 cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557 $ac_includes_default
11558 int
11559 main ()
11560 {
11561 getpgrp (0);
11562   ;
11563   return 0;
11564 }
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568   (eval $ac_compile) 2>conftest.er1
11569   ac_status=$?
11570   grep -v '^ *+' conftest.er1 >conftest.err
11571   rm -f conftest.er1
11572   cat conftest.err >&5
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } &&
11575          { ac_try='test -z "$ac_c_werror_flag"
11576                          || test ! -s conftest.err'
11577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578   (eval $ac_try) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; } &&
11582          { ac_try='test -s conftest.$ac_objext'
11583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584   (eval $ac_try) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; }; then
11588   ac_cv_func_getpgrp_void=no
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593 ac_cv_func_getpgrp_void=yes
11594 fi
11595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11596
11597 fi
11598 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11599 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11600 if test $ac_cv_func_getpgrp_void = yes; then
11601
11602 cat >>confdefs.h <<\_ACEOF
11603 #define GETPGRP_VOID 1
11604 _ACEOF
11605
11606 fi
11607
11608         ;;
11609 esac
11610
11611 echo "$as_me:$LINENO: checking for printf %F format" >&5
11612 echo $ECHO_N "checking for printf %F format... $ECHO_C" >&6
11613 if test "$cross_compiling" = yes; then
11614   has_f_format=no
11615 else
11616   cat >conftest.$ac_ext <<_ACEOF
11617
11618 #include <stdio.h>
11619
11620 int main()
11621 {
11622         char buf[100];
11623
11624         sprintf(buf, "%F", 123.45);
11625
11626         if (strcmp(buf, "123.450000") == 0)
11627                 return 0;
11628         else
11629                 return 1;
11630 }
11631
11632 _ACEOF
11633 rm -f conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635   (eval $ac_link) 2>&5
11636   ac_status=$?
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   has_f_format=yes
11645 else
11646   echo "$as_me: program exited with status $ac_status" >&5
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11649
11650 ( exit $ac_status )
11651 has_f_format=no
11652 fi
11653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11654 fi
11655 if test "$has_f_format" = yes; then
11656
11657 cat >>confdefs.h <<\_ACEOF
11658 #define PRINTF_HAS_F_FORMAT 1
11659 _ACEOF
11660
11661 fi
11662 echo "$as_me:$LINENO: result: $has_f_format" >&5
11663 echo "${ECHO_T}$has_f_format" >&6
11664
11665
11666 gawk_have_sockets=no
11667 # Check for system-dependent location of socket libraries
11668
11669 SOCKET_LIBS=
11670 if test "$ISC" = yes; then
11671   SOCKET_LIBS="-lnsl_s -linet"
11672 else
11673   # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11674   # libraries were built with DECnet support.  And karl@cs.umb.edu says
11675   # the Alpha needs dnet_stub (dnet does not exist).
11676   #
11677   # ADR: Is this needed just for sockets???
11678 #  AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
11679 #  if test $ac_cv_lib_dnet_ntoa = no; then
11680 #    AC_CHECK_LIB(dnet_stub, dnet_ntoa,
11681 #       [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
11682 #  fi
11683
11684   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11685   # to get the SysV transport functions.
11686   # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
11687   # needs -lnsl.
11688   # The nsl library prevents programs from opening the X display
11689   # on Irix 5.2, according to dickey@clark.net.
11690   echo "$as_me:$LINENO: checking for gethostbyname" >&5
11691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11692 if test "${ac_cv_func_gethostbyname+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11703 #define gethostbyname innocuous_gethostbyname
11704
11705 /* System header to define __stub macros and hopefully few prototypes,
11706     which can conflict with char gethostbyname (); below.
11707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708     <limits.h> exists even on freestanding compilers.  */
11709
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11715
11716 #undef gethostbyname
11717
11718 /* Override any gcc2 internal prototype to avoid an error.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 {
11722 #endif
11723 /* We use char because int might match the return type of a gcc2
11724    builtin and then its argument prototype would still apply.  */
11725 char gethostbyname ();
11726 /* The GNU C library defines this for functions which it implements
11727     to always fail with ENOSYS.  Some functions are actually named
11728     something starting with __ and the normal name is an alias.  */
11729 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11730 choke me
11731 #else
11732 char (*f) () = gethostbyname;
11733 #endif
11734 #ifdef __cplusplus
11735 }
11736 #endif
11737
11738 int
11739 main ()
11740 {
11741 return f != gethostbyname;
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag"
11756                          || test ! -s conftest.err'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_func_gethostbyname=yes
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 ac_cv_func_gethostbyname=no
11774 fi
11775 rm -f conftest.err conftest.$ac_objext \
11776       conftest$ac_exeext conftest.$ac_ext
11777 fi
11778 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11780
11781   if test $ac_cv_func_gethostbyname = no; then
11782     echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11783 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
11784 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11785   echo $ECHO_N "(cached) $ECHO_C" >&6
11786 else
11787   ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lnsl  $LIBS"
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795
11796 /* Override any gcc2 internal prototype to avoid an error.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 /* We use char because int might match the return type of a gcc2
11801    builtin and then its argument prototype would still apply.  */
11802 char gethostbyname ();
11803 int
11804 main ()
11805 {
11806 gethostbyname ();
11807   ;
11808   return 0;
11809 }
11810 _ACEOF
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813   (eval $ac_link) 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } &&
11820          { ac_try='test -z "$ac_c_werror_flag"
11821                          || test ! -s conftest.err'
11822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823   (eval $ac_try) 2>&5
11824   ac_status=$?
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); }; } &&
11827          { ac_try='test -s conftest$ac_exeext'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; }; then
11833   ac_cv_lib_nsl_gethostbyname=yes
11834 else
11835   echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_cv_lib_nsl_gethostbyname=no
11839 fi
11840 rm -f conftest.err conftest.$ac_objext \
11841       conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11843 fi
11844 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11845 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
11846 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11847   SOCKET_LIBS="$SOCKET_LIBS -lnsl"
11848 fi
11849
11850   fi
11851
11852   # lieder@skyler.mavd.honeywell.com says without -lsocket,
11853   # socket/setsockopt and other routines are undefined under SCO ODT
11854   # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
11855   # on later versions), says simon@lia.di.epfl.ch: it contains
11856   # gethostby* variants that don't use the nameserver (or something).
11857   # -lsocket must be given before -lnsl if both are needed.
11858   # We assume that if connect needs -lnsl, so does gethostbyname.
11859   echo "$as_me:$LINENO: checking for connect" >&5
11860 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11861 if test "${ac_cv_func_connect+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   cat >conftest.$ac_ext <<_ACEOF
11865 /* confdefs.h.  */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h.  */
11870 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11872 #define connect innocuous_connect
11873
11874 /* System header to define __stub macros and hopefully few prototypes,
11875     which can conflict with char connect (); below.
11876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877     <limits.h> exists even on freestanding compilers.  */
11878
11879 #ifdef __STDC__
11880 # include <limits.h>
11881 #else
11882 # include <assert.h>
11883 #endif
11884
11885 #undef connect
11886
11887 /* Override any gcc2 internal prototype to avoid an error.  */
11888 #ifdef __cplusplus
11889 extern "C"
11890 {
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893    builtin and then its argument prototype would still apply.  */
11894 char connect ();
11895 /* The GNU C library defines this for functions which it implements
11896     to always fail with ENOSYS.  Some functions are actually named
11897     something starting with __ and the normal name is an alias.  */
11898 #if defined (__stub_connect) || defined (__stub___connect)
11899 choke me
11900 #else
11901 char (*f) () = connect;
11902 #endif
11903 #ifdef __cplusplus
11904 }
11905 #endif
11906
11907 int
11908 main ()
11909 {
11910 return f != connect;
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917   (eval $ac_link) 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag"
11925                          || test ! -s conftest.err'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; } &&
11931          { ac_try='test -s conftest$ac_exeext'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   ac_cv_func_connect=yes
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 ac_cv_func_connect=no
11943 fi
11944 rm -f conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946 fi
11947 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11948 echo "${ECHO_T}$ac_cv_func_connect" >&6
11949
11950   if test $ac_cv_func_connect = no; then
11951     echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11952 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11953 if test "${ac_cv_lib_socket_connect+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lsocket $SOCKET_LIBS $LIBS"
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h.  */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h.  */
11964
11965 /* Override any gcc2 internal prototype to avoid an error.  */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 /* We use char because int might match the return type of a gcc2
11970    builtin and then its argument prototype would still apply.  */
11971 char connect ();
11972 int
11973 main ()
11974 {
11975 connect ();
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982   (eval $ac_link) 2>conftest.er1
11983   ac_status=$?
11984   grep -v '^ *+' conftest.er1 >conftest.err
11985   rm -f conftest.er1
11986   cat conftest.err >&5
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); } &&
11989          { ac_try='test -z "$ac_c_werror_flag"
11990                          || test ! -s conftest.err'
11991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992   (eval $ac_try) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; } &&
11996          { ac_try='test -s conftest$ac_exeext'
11997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998   (eval $ac_try) 2>&5
11999   ac_status=$?
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002   ac_cv_lib_socket_connect=yes
12003 else
12004   echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ac_cv_lib_socket_connect=no
12008 fi
12009 rm -f conftest.err conftest.$ac_objext \
12010       conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12012 fi
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12014 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12015 if test $ac_cv_lib_socket_connect = yes; then
12016   SOCKET_LIBS="-lsocket $SOCKET_LIBS"
12017                                   gawk_have_sockets=yes
12018 fi
12019
12020   else
12021     gawk_have_sockets=yes
12022   fi
12023 fi
12024
12025 if test "${gawk_have_sockets}" = "yes"
12026 then
12027         echo "$as_me:$LINENO: checking where to find the socket library calls" >&5
12028 echo $ECHO_N "checking where to find the socket library calls... $ECHO_C" >&6
12029         case "${SOCKET_LIBS}" in
12030         ?*)     gawk_lib_loc="${SOCKET_LIBS}" ;;
12031         *)      gawk_lib_loc="the standard library" ;;
12032         esac
12033         echo "$as_me:$LINENO: result: ${gawk_lib_loc}" >&5
12034 echo "${ECHO_T}${gawk_lib_loc}" >&6
12035
12036
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_SOCKETS 1
12039 _ACEOF
12040
12041 fi
12042
12043
12044
12045 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12046 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12047 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 $ac_includes_default
12057 int
12058 main ()
12059 {
12060 static struct stat ac_aggr;
12061 if (ac_aggr.st_blksize)
12062 return 0;
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069   (eval $ac_compile) 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -z "$ac_c_werror_flag"
12077                          || test ! -s conftest.err'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; } &&
12083          { ac_try='test -s conftest.$ac_objext'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; }; then
12089   ac_cv_member_struct_stat_st_blksize=yes
12090 else
12091   echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12093
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h.  */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h.  */
12100 $ac_includes_default
12101 int
12102 main ()
12103 {
12104 static struct stat ac_aggr;
12105 if (sizeof ac_aggr.st_blksize)
12106 return 0;
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113   (eval $ac_compile) 2>conftest.er1
12114   ac_status=$?
12115   grep -v '^ *+' conftest.er1 >conftest.err
12116   rm -f conftest.er1
12117   cat conftest.err >&5
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -z "$ac_c_werror_flag"
12121                          || test ! -s conftest.err'
12122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123   (eval $ac_try) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; } &&
12127          { ac_try='test -s conftest.$ac_objext'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133   ac_cv_member_struct_stat_st_blksize=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 ac_cv_member_struct_stat_st_blksize=no
12139 fi
12140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12141 fi
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12147
12148 cat >>confdefs.h <<_ACEOF
12149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12150 _ACEOF
12151
12152
12153 cat >>confdefs.h <<\_ACEOF
12154 #define HAVE_ST_BLKSIZE 1
12155 _ACEOF
12156
12157 fi
12158
12159
12160 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12161 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12162 if test "${ac_cv_header_time+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 #include <sys/types.h>
12172 #include <sys/time.h>
12173 #include <time.h>
12174
12175 int
12176 main ()
12177 {
12178 if ((struct tm *) 0)
12179 return 0;
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186   (eval $ac_compile) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } &&
12193          { ac_try='test -z "$ac_c_werror_flag"
12194                          || test ! -s conftest.err'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; } &&
12200          { ac_try='test -s conftest.$ac_objext'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_cv_header_time=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211 ac_cv_header_time=no
12212 fi
12213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214 fi
12215 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12216 echo "${ECHO_T}$ac_cv_header_time" >&6
12217 if test $ac_cv_header_time = yes; then
12218
12219 cat >>confdefs.h <<\_ACEOF
12220 #define TIME_WITH_SYS_TIME 1
12221 _ACEOF
12222
12223 fi
12224
12225 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12226 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12227 if test "${ac_cv_struct_tm+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h.  */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h.  */
12236 #include <sys/types.h>
12237 #include <time.h>
12238
12239 int
12240 main ()
12241 {
12242 struct tm *tp; tp->tm_sec;
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249   (eval $ac_compile) 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -z "$ac_c_werror_flag"
12257                          || test ! -s conftest.err'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; } &&
12263          { ac_try='test -s conftest.$ac_objext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   ac_cv_struct_tm=time.h
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 ac_cv_struct_tm=sys/time.h
12275 fi
12276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12277 fi
12278 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12279 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12280 if test $ac_cv_struct_tm = sys/time.h; then
12281
12282 cat >>confdefs.h <<\_ACEOF
12283 #define TM_IN_SYS_TIME 1
12284 _ACEOF
12285
12286 fi
12287
12288 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12289 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12290 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h.  */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h.  */
12299 #include <sys/types.h>
12300 #include <$ac_cv_struct_tm>
12301
12302
12303 int
12304 main ()
12305 {
12306 static struct tm ac_aggr;
12307 if (ac_aggr.tm_zone)
12308 return 0;
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315   (eval $ac_compile) 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_c_werror_flag"
12323                          || test ! -s conftest.err'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 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_cv_member_struct_tm_tm_zone=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <sys/types.h>
12347 #include <$ac_cv_struct_tm>
12348
12349
12350 int
12351 main ()
12352 {
12353 static struct tm ac_aggr;
12354 if (sizeof ac_aggr.tm_zone)
12355 return 0;
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362   (eval $ac_compile) 2>conftest.er1
12363   ac_status=$?
12364   grep -v '^ *+' conftest.er1 >conftest.err
12365   rm -f conftest.er1
12366   cat conftest.err >&5
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } &&
12369          { ac_try='test -z "$ac_c_werror_flag"
12370                          || test ! -s conftest.err'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; } &&
12376          { ac_try='test -s conftest.$ac_objext'
12377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378   (eval $ac_try) 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; }; then
12382   ac_cv_member_struct_tm_tm_zone=yes
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_cv_member_struct_tm_tm_zone=no
12388 fi
12389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390 fi
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12394 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12395 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12396
12397 cat >>confdefs.h <<_ACEOF
12398 #define HAVE_STRUCT_TM_TM_ZONE 1
12399 _ACEOF
12400
12401
12402 fi
12403
12404 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12405
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_TM_ZONE 1
12408 _ACEOF
12409
12410 else
12411   echo "$as_me:$LINENO: checking for tzname" >&5
12412 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12413 if test "${ac_cv_var_tzname+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   cat >conftest.$ac_ext <<_ACEOF
12417 /* confdefs.h.  */
12418 _ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h.  */
12422 #include <time.h>
12423 #ifndef tzname /* For SGI.  */
12424 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12425 #endif
12426
12427 int
12428 main ()
12429 {
12430 atoi(*tzname);
12431   ;
12432   return 0;
12433 }
12434 _ACEOF
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437   (eval $ac_link) 2>conftest.er1
12438   ac_status=$?
12439   grep -v '^ *+' conftest.er1 >conftest.err
12440   rm -f conftest.er1
12441   cat conftest.err >&5
12442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443   (exit $ac_status); } &&
12444          { ac_try='test -z "$ac_c_werror_flag"
12445                          || test ! -s conftest.err'
12446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447   (eval $ac_try) 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; } &&
12451          { ac_try='test -s conftest$ac_exeext'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; }; then
12457   ac_cv_var_tzname=yes
12458 else
12459   echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ac_cv_var_tzname=no
12463 fi
12464 rm -f conftest.err conftest.$ac_objext \
12465       conftest$ac_exeext conftest.$ac_ext
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12468 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12469   if test $ac_cv_var_tzname = yes; then
12470
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_TZNAME 1
12473 _ACEOF
12474
12475   fi
12476 fi
12477
12478
12479
12480 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
12481 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
12482 if test "${ac_cv_c_char_unsigned+set}" = set; then
12483   echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485   cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491 $ac_includes_default
12492 int
12493 main ()
12494 {
12495 static int test_array [1 - 2 * !(((char) -1) < 0)];
12496 test_array [0] = 0
12497
12498   ;
12499   return 0;
12500 }
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>conftest.er1
12505   ac_status=$?
12506   grep -v '^ *+' conftest.er1 >conftest.err
12507   rm -f conftest.er1
12508   cat conftest.err >&5
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -z "$ac_c_werror_flag"
12512                          || test ! -s conftest.err'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest.$ac_objext'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; }; then
12524   ac_cv_c_char_unsigned=no
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 ac_cv_c_char_unsigned=yes
12530 fi
12531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12532 fi
12533 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
12534 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
12535 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12536   cat >>confdefs.h <<\_ACEOF
12537 #define __CHAR_UNSIGNED__ 1
12538 _ACEOF
12539
12540 fi
12541
12542 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12544 if test "${ac_cv_c_const+set}" = set; then
12545   echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547   cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553
12554 int
12555 main ()
12556 {
12557 /* FIXME: Include the comments suggested by Paul. */
12558 #ifndef __cplusplus
12559   /* Ultrix mips cc rejects this.  */
12560   typedef int charset[2];
12561   const charset x;
12562   /* SunOS 4.1.1 cc rejects this.  */
12563   char const *const *ccp;
12564   char **p;
12565   /* NEC SVR4.0.2 mips cc rejects this.  */
12566   struct point {int x, y;};
12567   static struct point const zero = {0,0};
12568   /* AIX XL C 1.02.0.0 rejects this.
12569      It does not let you subtract one const X* pointer from another in
12570      an arm of an if-expression whose if-part is not a constant
12571      expression */
12572   const char *g = "string";
12573   ccp = &g + (g ? g-g : 0);
12574   /* HPUX 7.0 cc rejects these. */
12575   ++ccp;
12576   p = (char**) ccp;
12577   ccp = (char const *const *) p;
12578   { /* SCO 3.2v4 cc rejects this.  */
12579     char *t;
12580     char const *s = 0 ? (char *) 0 : (char const *) 0;
12581
12582     *t++ = 0;
12583   }
12584   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12585     int x[] = {25, 17};
12586     const int *foo = &x[0];
12587     ++foo;
12588   }
12589   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12590     typedef const int *iptr;
12591     iptr p = 0;
12592     ++p;
12593   }
12594   { /* AIX XL C 1.02.0.0 rejects this saying
12595        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12596     struct s { int j; const int *ap[3]; };
12597     struct s *b; b->j = 5;
12598   }
12599   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12600     const int foo = 10;
12601   }
12602 #endif
12603
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610   (eval $ac_compile) 2>conftest.er1
12611   ac_status=$?
12612   grep -v '^ *+' conftest.er1 >conftest.err
12613   rm -f conftest.er1
12614   cat conftest.err >&5
12615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616   (exit $ac_status); } &&
12617          { ac_try='test -z "$ac_c_werror_flag"
12618                          || test ! -s conftest.err'
12619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620   (eval $ac_try) 2>&5
12621   ac_status=$?
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); }; } &&
12624          { ac_try='test -s conftest.$ac_objext'
12625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626   (eval $ac_try) 2>&5
12627   ac_status=$?
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); }; }; then
12630   ac_cv_c_const=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_cv_c_const=no
12636 fi
12637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12640 echo "${ECHO_T}$ac_cv_c_const" >&6
12641 if test $ac_cv_c_const = no; then
12642
12643 cat >>confdefs.h <<\_ACEOF
12644 #define const
12645 _ACEOF
12646
12647 fi
12648
12649 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12650 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
12651 if test "${ac_cv_c_restrict+set}" = set; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654   ac_cv_c_restrict=no
12655    # Try the official restrict keyword, then gcc's __restrict, and
12656    # the less common variants.
12657    for ac_kw in restrict __restrict __restrict__ _Restrict; do
12658      cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 float * $ac_kw x;
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668   (eval $ac_compile) 2>conftest.er1
12669   ac_status=$?
12670   grep -v '^ *+' conftest.er1 >conftest.err
12671   rm -f conftest.er1
12672   cat conftest.err >&5
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } &&
12675          { ac_try='test -z "$ac_c_werror_flag"
12676                          || test ! -s conftest.err'
12677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678   (eval $ac_try) 2>&5
12679   ac_status=$?
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); }; } &&
12682          { ac_try='test -s conftest.$ac_objext'
12683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684   (eval $ac_try) 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; }; then
12688   ac_cv_c_restrict=$ac_kw; break
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 fi
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12695    done
12696
12697 fi
12698 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
12699 echo "${ECHO_T}$ac_cv_c_restrict" >&6
12700  case $ac_cv_c_restrict in
12701    restrict) ;;
12702    no)
12703 cat >>confdefs.h <<\_ACEOF
12704 #define restrict
12705 _ACEOF
12706  ;;
12707    *)  cat >>confdefs.h <<_ACEOF
12708 #define restrict $ac_cv_c_restrict
12709 _ACEOF
12710  ;;
12711  esac
12712
12713 echo "$as_me:$LINENO: checking for inline" >&5
12714 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12715 if test "${ac_cv_c_inline+set}" = set; then
12716   echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718   ac_cv_c_inline=no
12719 for ac_kw in inline __inline__ __inline; do
12720   cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 #ifndef __cplusplus
12727 typedef int foo_t;
12728 static $ac_kw foo_t static_foo () {return 0; }
12729 $ac_kw foo_t foo () {return 0; }
12730 #endif
12731
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735   (eval $ac_compile) 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -z "$ac_c_werror_flag"
12743                          || test ! -s conftest.err'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   ac_cv_c_inline=$ac_kw; break
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 fi
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12762 done
12763
12764 fi
12765 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12766 echo "${ECHO_T}$ac_cv_c_inline" >&6
12767
12768
12769 case $ac_cv_c_inline in
12770   inline | yes) ;;
12771   *)
12772     case $ac_cv_c_inline in
12773       no) ac_val=;;
12774       *) ac_val=$ac_cv_c_inline;;
12775     esac
12776     cat >>confdefs.h <<_ACEOF
12777 #ifndef __cplusplus
12778 #define inline $ac_val
12779 #endif
12780 _ACEOF
12781     ;;
12782 esac
12783
12784 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12785 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12786 if test "${ac_cv_c_stringize+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789   cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795 #define x(y) #y
12796
12797 char *s = x(teststring);
12798 _ACEOF
12799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800   $EGREP "#teststring" >/dev/null 2>&1; then
12801   ac_cv_c_stringize=no
12802 else
12803   ac_cv_c_stringize=yes
12804 fi
12805 rm -f conftest*
12806
12807 fi
12808 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12809 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12810 if test $ac_cv_c_stringize = yes; then
12811
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_STRINGIZE 1
12814 _ACEOF
12815
12816 fi
12817
12818
12819           ac_config_headers="$ac_config_headers config.h:configh.in"
12820
12821
12822
12823
12824                                                             ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile version.c:version.in"
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834 cat >confcache <<\_ACEOF
12835 # This file is a shell script that caches the results of configure
12836 # tests run on this system so they can be shared between configure
12837 # scripts and configure runs, see configure's option --config-cache.
12838 # It is not useful on other systems.  If it contains results you don't
12839 # want to keep, you may remove or edit it.
12840 #
12841 # config.status only pays attention to the cache file if you give it
12842 # the --recheck option to rerun configure.
12843 #
12844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12846 # following values.
12847
12848 _ACEOF
12849
12850 # The following way of writing the cache mishandles newlines in values,
12851 # but we know of no workaround that is simple, portable, and efficient.
12852 # So, don't put newlines in cache variables' values.
12853 # Ultrix sh set writes to stderr and can't be redirected directly,
12854 # and sets the high bit in the cache file unless we assign to the vars.
12855 {
12856   (set) 2>&1 |
12857     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12858     *ac_space=\ *)
12859       # `set' does not quote correctly, so add quotes (double-quote
12860       # substitution turns \\\\ into \\, and sed turns \\ into \).
12861       sed -n \
12862         "s/'/'\\\\''/g;
12863           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12864       ;;
12865     *)
12866       # `set' quotes correctly as required by POSIX, so do not add quotes.
12867       sed -n \
12868         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12869       ;;
12870     esac;
12871 } |
12872   sed '
12873      t clear
12874      : clear
12875      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12876      t end
12877      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12878      : end' >>confcache
12879 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12880   if test -w $cache_file; then
12881     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12882     cat confcache >$cache_file
12883   else
12884     echo "not updating unwritable cache $cache_file"
12885   fi
12886 fi
12887 rm -f confcache
12888
12889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12890 # Let make expand exec_prefix.
12891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12892
12893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12895 # trailing colons and then remove the whole line if VPATH becomes empty
12896 # (actually we leave an empty line to preserve line numbers).
12897 if test "x$srcdir" = x.; then
12898   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12899 s/:*\$(srcdir):*/:/;
12900 s/:*\${srcdir}:*/:/;
12901 s/:*@srcdir@:*/:/;
12902 s/^\([^=]*=[     ]*\):*/\1/;
12903 s/:*$//;
12904 s/^[^=]*=[       ]*$//;
12905 }'
12906 fi
12907
12908 DEFS=-DHAVE_CONFIG_H
12909
12910 ac_libobjs=
12911 ac_ltlibobjs=
12912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12913   # 1. Remove the extension, and $U if already installed.
12914   ac_i=`echo "$ac_i" |
12915          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12916   # 2. Add them.
12917   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12918   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12919 done
12920 LIBOBJS=$ac_libobjs
12921
12922 LTLIBOBJS=$ac_ltlibobjs
12923
12924
12925 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12926   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12927 Usually this means the macro was only invoked conditionally." >&5
12928 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12929 Usually this means the macro was only invoked conditionally." >&2;}
12930    { (exit 1); exit 1; }; }
12931 fi
12932 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12933   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12934 Usually this means the macro was only invoked conditionally." >&5
12935 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12936 Usually this means the macro was only invoked conditionally." >&2;}
12937    { (exit 1); exit 1; }; }
12938 fi
12939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12940   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12941 Usually this means the macro was only invoked conditionally." >&5
12942 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12943 Usually this means the macro was only invoked conditionally." >&2;}
12944    { (exit 1); exit 1; }; }
12945 fi
12946
12947 : ${CONFIG_STATUS=./config.status}
12948 ac_clean_files_save=$ac_clean_files
12949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12950 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12951 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12952 cat >$CONFIG_STATUS <<_ACEOF
12953 #! $SHELL
12954 # Generated by $as_me.
12955 # Run this file to recreate the current configuration.
12956 # Compiler output produced by configure, useful for debugging
12957 # configure, is in config.log if it exists.
12958
12959 debug=false
12960 ac_cs_recheck=false
12961 ac_cs_silent=false
12962 SHELL=\${CONFIG_SHELL-$SHELL}
12963 _ACEOF
12964
12965 cat >>$CONFIG_STATUS <<\_ACEOF
12966 ## --------------------- ##
12967 ## M4sh Initialization.  ##
12968 ## --------------------- ##
12969
12970 # Be Bourne compatible
12971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12972   emulate sh
12973   NULLCMD=:
12974   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12975   # is contrary to our usage.  Disable this feature.
12976   alias -g '${1+"$@"}'='"$@"'
12977 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12978   set -o posix
12979 fi
12980 DUALCASE=1; export DUALCASE # for MKS sh
12981
12982 # Support unset when possible.
12983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12984   as_unset=unset
12985 else
12986   as_unset=false
12987 fi
12988
12989
12990 # Work around bugs in pre-3.0 UWIN ksh.
12991 $as_unset ENV MAIL MAILPATH
12992 PS1='$ '
12993 PS2='> '
12994 PS4='+ '
12995
12996 # NLS nuisances.
12997 for as_var in \
12998   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12999   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13000   LC_TELEPHONE LC_TIME
13001 do
13002   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13003     eval $as_var=C; export $as_var
13004   else
13005     $as_unset $as_var
13006   fi
13007 done
13008
13009 # Required to use basename.
13010 if expr a : '\(a\)' >/dev/null 2>&1; then
13011   as_expr=expr
13012 else
13013   as_expr=false
13014 fi
13015
13016 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13017   as_basename=basename
13018 else
13019   as_basename=false
13020 fi
13021
13022
13023 # Name of the executable.
13024 as_me=`$as_basename "$0" ||
13025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13026          X"$0" : 'X\(//\)$' \| \
13027          X"$0" : 'X\(/\)$' \| \
13028          .     : '\(.\)' 2>/dev/null ||
13029 echo X/"$0" |
13030     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13031           /^X\/\(\/\/\)$/{ s//\1/; q; }
13032           /^X\/\(\/\).*/{ s//\1/; q; }
13033           s/.*/./; q'`
13034
13035
13036 # PATH needs CR, and LINENO needs CR and PATH.
13037 # Avoid depending upon Character Ranges.
13038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13041 as_cr_digits='0123456789'
13042 as_cr_alnum=$as_cr_Letters$as_cr_digits
13043
13044 # The user is always right.
13045 if test "${PATH_SEPARATOR+set}" != set; then
13046   echo "#! /bin/sh" >conf$$.sh
13047   echo  "exit 0"   >>conf$$.sh
13048   chmod +x conf$$.sh
13049   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13050     PATH_SEPARATOR=';'
13051   else
13052     PATH_SEPARATOR=:
13053   fi
13054   rm -f conf$$.sh
13055 fi
13056
13057
13058   as_lineno_1=$LINENO
13059   as_lineno_2=$LINENO
13060   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13061   test "x$as_lineno_1" != "x$as_lineno_2" &&
13062   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13063   # Find who we are.  Look in the path if we contain no path at all
13064   # relative or not.
13065   case $0 in
13066     *[\\/]* ) as_myself=$0 ;;
13067     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13073 done
13074
13075        ;;
13076   esac
13077   # We did not find ourselves, most probably we were run as `sh COMMAND'
13078   # in which case we are not to be found in the path.
13079   if test "x$as_myself" = x; then
13080     as_myself=$0
13081   fi
13082   if test ! -f "$as_myself"; then
13083     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13084 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13085    { (exit 1); exit 1; }; }
13086   fi
13087   case $CONFIG_SHELL in
13088   '')
13089     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13091 do
13092   IFS=$as_save_IFS
13093   test -z "$as_dir" && as_dir=.
13094   for as_base in sh bash ksh sh5; do
13095          case $as_dir in
13096          /*)
13097            if ("$as_dir/$as_base" -c '
13098   as_lineno_1=$LINENO
13099   as_lineno_2=$LINENO
13100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13101   test "x$as_lineno_1" != "x$as_lineno_2" &&
13102   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13103              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13104              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13105              CONFIG_SHELL=$as_dir/$as_base
13106              export CONFIG_SHELL
13107              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13108            fi;;
13109          esac
13110        done
13111 done
13112 ;;
13113   esac
13114
13115   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13116   # uniformly replaced by the line number.  The first 'sed' inserts a
13117   # line-number line before each line; the second 'sed' does the real
13118   # work.  The second script uses 'N' to pair each line-number line
13119   # with the numbered line, and appends trailing '-' during
13120   # substitution so that $LINENO is not a special case at line end.
13121   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13122   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13123   sed '=' <$as_myself |
13124     sed '
13125       N
13126       s,$,-,
13127       : loop
13128       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13129       t loop
13130       s,-$,,
13131       s,^['$as_cr_digits']*\n,,
13132     ' >$as_me.lineno &&
13133   chmod +x $as_me.lineno ||
13134     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13135 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13136    { (exit 1); exit 1; }; }
13137
13138   # Don't try to exec as it changes $[0], causing all sort of problems
13139   # (the dirname of $[0] is not the place where we might find the
13140   # original and so on.  Autoconf is especially sensible to this).
13141   . ./$as_me.lineno
13142   # Exit status is that of the last command.
13143   exit
13144 }
13145
13146
13147 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13148   *c*,-n*) ECHO_N= ECHO_C='
13149 ' ECHO_T='      ' ;;
13150   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13151   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13152 esac
13153
13154 if expr a : '\(a\)' >/dev/null 2>&1; then
13155   as_expr=expr
13156 else
13157   as_expr=false
13158 fi
13159
13160 rm -f conf$$ conf$$.exe conf$$.file
13161 echo >conf$$.file
13162 if ln -s conf$$.file conf$$ 2>/dev/null; then
13163   # We could just check for DJGPP; but this test a) works b) is more generic
13164   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13165   if test -f conf$$.exe; then
13166     # Don't use ln at all; we don't have any links
13167     as_ln_s='cp -p'
13168   else
13169     as_ln_s='ln -s'
13170   fi
13171 elif ln conf$$.file conf$$ 2>/dev/null; then
13172   as_ln_s=ln
13173 else
13174   as_ln_s='cp -p'
13175 fi
13176 rm -f conf$$ conf$$.exe conf$$.file
13177
13178 if mkdir -p . 2>/dev/null; then
13179   as_mkdir_p=:
13180 else
13181   test -d ./-p && rmdir ./-p
13182   as_mkdir_p=false
13183 fi
13184
13185 as_executable_p="test -f"
13186
13187 # Sed expression to map a string onto a valid CPP name.
13188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13189
13190 # Sed expression to map a string onto a valid variable name.
13191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13192
13193
13194 # IFS
13195 # We need space, tab and new line, in precisely that order.
13196 as_nl='
13197 '
13198 IFS="   $as_nl"
13199
13200 # CDPATH.
13201 $as_unset CDPATH
13202
13203 exec 6>&1
13204
13205 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13206 # report actual input values of CONFIG_FILES etc. instead of their
13207 # values after options handling.  Logging --version etc. is OK.
13208 exec 5>>config.log
13209 {
13210   echo
13211   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13212 ## Running $as_me. ##
13213 _ASBOX
13214 } >&5
13215 cat >&5 <<_CSEOF
13216
13217 This file was extended by GNU Awk $as_me 3.1.5, which was
13218 generated by GNU Autoconf 2.59.  Invocation command line was
13219
13220   CONFIG_FILES    = $CONFIG_FILES
13221   CONFIG_HEADERS  = $CONFIG_HEADERS
13222   CONFIG_LINKS    = $CONFIG_LINKS
13223   CONFIG_COMMANDS = $CONFIG_COMMANDS
13224   $ $0 $@
13225
13226 _CSEOF
13227 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13228 echo >&5
13229 _ACEOF
13230
13231 # Files that config.status was made for.
13232 if test -n "$ac_config_files"; then
13233   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13234 fi
13235
13236 if test -n "$ac_config_headers"; then
13237   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13238 fi
13239
13240 if test -n "$ac_config_links"; then
13241   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13242 fi
13243
13244 if test -n "$ac_config_commands"; then
13245   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13246 fi
13247
13248 cat >>$CONFIG_STATUS <<\_ACEOF
13249
13250 ac_cs_usage="\
13251 \`$as_me' instantiates files from templates according to the
13252 current configuration.
13253
13254 Usage: $0 [OPTIONS] [FILE]...
13255
13256   -h, --help       print this help, then exit
13257   -V, --version    print version number, then exit
13258   -q, --quiet      do not print progress messages
13259   -d, --debug      don't remove temporary files
13260       --recheck    update $as_me by reconfiguring in the same conditions
13261   --file=FILE[:TEMPLATE]
13262                    instantiate the configuration file FILE
13263   --header=FILE[:TEMPLATE]
13264                    instantiate the configuration header FILE
13265
13266 Configuration files:
13267 $config_files
13268
13269 Configuration headers:
13270 $config_headers
13271
13272 Configuration commands:
13273 $config_commands
13274
13275 Report bugs to <bug-autoconf@gnu.org>."
13276 _ACEOF
13277
13278 cat >>$CONFIG_STATUS <<_ACEOF
13279 ac_cs_version="\\
13280 GNU Awk config.status 3.1.5
13281 configured by $0, generated by GNU Autoconf 2.59,
13282   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13283
13284 Copyright (C) 2003 Free Software Foundation, Inc.
13285 This config.status script is free software; the Free Software Foundation
13286 gives unlimited permission to copy, distribute and modify it."
13287 srcdir=$srcdir
13288 INSTALL="$INSTALL"
13289 _ACEOF
13290
13291 cat >>$CONFIG_STATUS <<\_ACEOF
13292 # If no file are specified by the user, then we need to provide default
13293 # value.  By we need to know if files were specified by the user.
13294 ac_need_defaults=:
13295 while test $# != 0
13296 do
13297   case $1 in
13298   --*=*)
13299     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13300     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13301     ac_shift=:
13302     ;;
13303   -*)
13304     ac_option=$1
13305     ac_optarg=$2
13306     ac_shift=shift
13307     ;;
13308   *) # This is not an option, so the user has probably given explicit
13309      # arguments.
13310      ac_option=$1
13311      ac_need_defaults=false;;
13312   esac
13313
13314   case $ac_option in
13315   # Handling of the options.
13316 _ACEOF
13317 cat >>$CONFIG_STATUS <<\_ACEOF
13318   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13319     ac_cs_recheck=: ;;
13320   --version | --vers* | -V )
13321     echo "$ac_cs_version"; exit 0 ;;
13322   --he | --h)
13323     # Conflict between --help and --header
13324     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13325 Try \`$0 --help' for more information." >&5
13326 echo "$as_me: error: ambiguous option: $1
13327 Try \`$0 --help' for more information." >&2;}
13328    { (exit 1); exit 1; }; };;
13329   --help | --hel | -h )
13330     echo "$ac_cs_usage"; exit 0 ;;
13331   --debug | --d* | -d )
13332     debug=: ;;
13333   --file | --fil | --fi | --f )
13334     $ac_shift
13335     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13336     ac_need_defaults=false;;
13337   --header | --heade | --head | --hea )
13338     $ac_shift
13339     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13340     ac_need_defaults=false;;
13341   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13342   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13343     ac_cs_silent=: ;;
13344
13345   # This is an error.
13346   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13347 Try \`$0 --help' for more information." >&5
13348 echo "$as_me: error: unrecognized option: $1
13349 Try \`$0 --help' for more information." >&2;}
13350    { (exit 1); exit 1; }; } ;;
13351
13352   *) ac_config_targets="$ac_config_targets $1" ;;
13353
13354   esac
13355   shift
13356 done
13357
13358 ac_configure_extra_args=
13359
13360 if $ac_cs_silent; then
13361   exec 6>/dev/null
13362   ac_configure_extra_args="$ac_configure_extra_args --silent"
13363 fi
13364
13365 _ACEOF
13366 cat >>$CONFIG_STATUS <<_ACEOF
13367 if \$ac_cs_recheck; then
13368   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13369   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13370 fi
13371
13372 _ACEOF
13373
13374 cat >>$CONFIG_STATUS <<_ACEOF
13375 #
13376 # INIT-COMMANDS section.
13377 #
13378
13379 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13380 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13381     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13382     # from automake.
13383     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13384     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13385     LINGUAS="${LINGUAS-%UNSET%}"
13386
13387
13388 _ACEOF
13389
13390
13391
13392 cat >>$CONFIG_STATUS <<\_ACEOF
13393 for ac_config_target in $ac_config_targets
13394 do
13395   case "$ac_config_target" in
13396   # Handling of arguments.
13397   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13398   "awklib/Makefile" ) CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
13399   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13400   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13401   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13402   "version.c" ) CONFIG_FILES="$CONFIG_FILES version.c:version.in" ;;
13403   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13404   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13405   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
13406   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13408    { (exit 1); exit 1; }; };;
13409   esac
13410 done
13411
13412 # If the user did not use the arguments to specify the items to instantiate,
13413 # then the envvar interface is used.  Set only those that are not.
13414 # We use the long form for the default assignment because of an extremely
13415 # bizarre bug on SunOS 4.1.3.
13416 if $ac_need_defaults; then
13417   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13418   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13419   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13420 fi
13421
13422 # Have a temporary directory for convenience.  Make it in the build tree
13423 # simply because there is no reason to put it here, and in addition,
13424 # creating and moving files from /tmp can sometimes cause problems.
13425 # Create a temporary directory, and hook for its removal unless debugging.
13426 $debug ||
13427 {
13428   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13429   trap '{ (exit 1); exit 1; }' 1 2 13 15
13430 }
13431
13432 # Create a (secure) tmp directory for tmp files.
13433
13434 {
13435   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13436   test -n "$tmp" && test -d "$tmp"
13437 }  ||
13438 {
13439   tmp=./confstat$$-$RANDOM
13440   (umask 077 && mkdir $tmp)
13441 } ||
13442 {
13443    echo "$me: cannot create a temporary directory in ." >&2
13444    { (exit 1); exit 1; }
13445 }
13446
13447 _ACEOF
13448
13449 cat >>$CONFIG_STATUS <<_ACEOF
13450
13451 #
13452 # CONFIG_FILES section.
13453 #
13454
13455 # No need to generate the scripts if there are no CONFIG_FILES.
13456 # This happens for instance when ./config.status config.h
13457 if test -n "\$CONFIG_FILES"; then
13458   # Protect against being on the right side of a sed subst in config.status.
13459   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13460    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13461 s,@SHELL@,$SHELL,;t t
13462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13468 s,@exec_prefix@,$exec_prefix,;t t
13469 s,@prefix@,$prefix,;t t
13470 s,@program_transform_name@,$program_transform_name,;t t
13471 s,@bindir@,$bindir,;t t
13472 s,@sbindir@,$sbindir,;t t
13473 s,@libexecdir@,$libexecdir,;t t
13474 s,@datadir@,$datadir,;t t
13475 s,@sysconfdir@,$sysconfdir,;t t
13476 s,@sharedstatedir@,$sharedstatedir,;t t
13477 s,@localstatedir@,$localstatedir,;t t
13478 s,@libdir@,$libdir,;t t
13479 s,@includedir@,$includedir,;t t
13480 s,@oldincludedir@,$oldincludedir,;t t
13481 s,@infodir@,$infodir,;t t
13482 s,@mandir@,$mandir,;t t
13483 s,@build_alias@,$build_alias,;t t
13484 s,@host_alias@,$host_alias,;t t
13485 s,@target_alias@,$target_alias,;t t
13486 s,@DEFS@,$DEFS,;t t
13487 s,@ECHO_C@,$ECHO_C,;t t
13488 s,@ECHO_N@,$ECHO_N,;t t
13489 s,@ECHO_T@,$ECHO_T,;t t
13490 s,@LIBS@,$LIBS,;t t
13491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13494 s,@CYGPATH_W@,$CYGPATH_W,;t t
13495 s,@PACKAGE@,$PACKAGE,;t t
13496 s,@VERSION@,$VERSION,;t t
13497 s,@ACLOCAL@,$ACLOCAL,;t t
13498 s,@AUTOCONF@,$AUTOCONF,;t t
13499 s,@AUTOMAKE@,$AUTOMAKE,;t t
13500 s,@AUTOHEADER@,$AUTOHEADER,;t t
13501 s,@MAKEINFO@,$MAKEINFO,;t t
13502 s,@install_sh@,$install_sh,;t t
13503 s,@STRIP@,$STRIP,;t t
13504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13505 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13506 s,@mkdir_p@,$mkdir_p,;t t
13507 s,@AWK@,$AWK,;t t
13508 s,@SET_MAKE@,$SET_MAKE,;t t
13509 s,@am__leading_dot@,$am__leading_dot,;t t
13510 s,@AMTAR@,$AMTAR,;t t
13511 s,@am__tar@,$am__tar,;t t
13512 s,@am__untar@,$am__untar,;t t
13513 s,@EGREP@,$EGREP,;t t
13514 s,@YACC@,$YACC,;t t
13515 s,@LN_S@,$LN_S,;t t
13516 s,@CC@,$CC,;t t
13517 s,@CFLAGS@,$CFLAGS,;t t
13518 s,@LDFLAGS@,$LDFLAGS,;t t
13519 s,@CPPFLAGS@,$CPPFLAGS,;t t
13520 s,@ac_ct_CC@,$ac_ct_CC,;t t
13521 s,@EXEEXT@,$EXEEXT,;t t
13522 s,@OBJEXT@,$OBJEXT,;t t
13523 s,@DEPDIR@,$DEPDIR,;t t
13524 s,@am__include@,$am__include,;t t
13525 s,@am__quote@,$am__quote,;t t
13526 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13527 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13528 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13529 s,@CCDEPMODE@,$CCDEPMODE,;t t
13530 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13531 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13532 s,@CPP@,$CPP,;t t
13533 s,@RANLIB@,$RANLIB,;t t
13534 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13535 s,@U@,$U,;t t
13536 s,@ANSI2KNR@,$ANSI2KNR,;t t
13537 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13538 s,@USE_NLS@,$USE_NLS,;t t
13539 s,@MSGFMT@,$MSGFMT,;t t
13540 s,@GMSGFMT@,$GMSGFMT,;t t
13541 s,@XGETTEXT@,$XGETTEXT,;t t
13542 s,@MSGMERGE@,$MSGMERGE,;t t
13543 s,@build@,$build,;t t
13544 s,@build_cpu@,$build_cpu,;t t
13545 s,@build_vendor@,$build_vendor,;t t
13546 s,@build_os@,$build_os,;t t
13547 s,@host@,$host,;t t
13548 s,@host_cpu@,$host_cpu,;t t
13549 s,@host_vendor@,$host_vendor,;t t
13550 s,@host_os@,$host_os,;t t
13551 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
13552 s,@LIBICONV@,$LIBICONV,;t t
13553 s,@LTLIBICONV@,$LTLIBICONV,;t t
13554 s,@INTLLIBS@,$INTLLIBS,;t t
13555 s,@LIBINTL@,$LIBINTL,;t t
13556 s,@LTLIBINTL@,$LTLIBINTL,;t t
13557 s,@POSUB@,$POSUB,;t t
13558 s,@LIBOBJS@,$LIBOBJS,;t t
13559 s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
13560 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13561 CEOF
13562
13563 _ACEOF
13564
13565   cat >>$CONFIG_STATUS <<\_ACEOF
13566   # Split the substitutions into bite-sized pieces for seds with
13567   # small command number limits, like on Digital OSF/1 and HP-UX.
13568   ac_max_sed_lines=48
13569   ac_sed_frag=1 # Number of current file.
13570   ac_beg=1 # First line for current file.
13571   ac_end=$ac_max_sed_lines # Line after last line for current file.
13572   ac_more_lines=:
13573   ac_sed_cmds=
13574   while $ac_more_lines; do
13575     if test $ac_beg -gt 1; then
13576       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13577     else
13578       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13579     fi
13580     if test ! -s $tmp/subs.frag; then
13581       ac_more_lines=false
13582     else
13583       # The purpose of the label and of the branching condition is to
13584       # speed up the sed processing (if there are no `@' at all, there
13585       # is no need to browse any of the substitutions).
13586       # These are the two extra sed commands mentioned above.
13587       (echo ':t
13588   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13589       if test -z "$ac_sed_cmds"; then
13590         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13591       else
13592         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13593       fi
13594       ac_sed_frag=`expr $ac_sed_frag + 1`
13595       ac_beg=$ac_end
13596       ac_end=`expr $ac_end + $ac_max_sed_lines`
13597     fi
13598   done
13599   if test -z "$ac_sed_cmds"; then
13600     ac_sed_cmds=cat
13601   fi
13602 fi # test -n "$CONFIG_FILES"
13603
13604 _ACEOF
13605 cat >>$CONFIG_STATUS <<\_ACEOF
13606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13607   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13608   case $ac_file in
13609   - | *:- | *:-:* ) # input from stdin
13610         cat >$tmp/stdin
13611         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13613   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13614         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13615   * )   ac_file_in=$ac_file.in ;;
13616   esac
13617
13618   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13619   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621          X"$ac_file" : 'X\(//\)[^/]' \| \
13622          X"$ac_file" : 'X\(//\)$' \| \
13623          X"$ac_file" : 'X\(/\)' \| \
13624          .     : '\(.\)' 2>/dev/null ||
13625 echo X"$ac_file" |
13626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13628           /^X\(\/\/\)$/{ s//\1/; q; }
13629           /^X\(\/\).*/{ s//\1/; q; }
13630           s/.*/./; q'`
13631   { if $as_mkdir_p; then
13632     mkdir -p "$ac_dir"
13633   else
13634     as_dir="$ac_dir"
13635     as_dirs=
13636     while test ! -d "$as_dir"; do
13637       as_dirs="$as_dir $as_dirs"
13638       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640          X"$as_dir" : 'X\(//\)[^/]' \| \
13641          X"$as_dir" : 'X\(//\)$' \| \
13642          X"$as_dir" : 'X\(/\)' \| \
13643          .     : '\(.\)' 2>/dev/null ||
13644 echo X"$as_dir" |
13645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13646           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13647           /^X\(\/\/\)$/{ s//\1/; q; }
13648           /^X\(\/\).*/{ s//\1/; q; }
13649           s/.*/./; q'`
13650     done
13651     test ! -n "$as_dirs" || mkdir $as_dirs
13652   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13654    { (exit 1); exit 1; }; }; }
13655
13656   ac_builddir=.
13657
13658 if test "$ac_dir" != .; then
13659   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13660   # A "../" for each directory in $ac_dir_suffix.
13661   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13662 else
13663   ac_dir_suffix= ac_top_builddir=
13664 fi
13665
13666 case $srcdir in
13667   .)  # No --srcdir option.  We are building in place.
13668     ac_srcdir=.
13669     if test -z "$ac_top_builddir"; then
13670        ac_top_srcdir=.
13671     else
13672        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13673     fi ;;
13674   [\\/]* | ?:[\\/]* )  # Absolute path.
13675     ac_srcdir=$srcdir$ac_dir_suffix;
13676     ac_top_srcdir=$srcdir ;;
13677   *) # Relative path.
13678     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13679     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13680 esac
13681
13682 # Do not use `cd foo && pwd` to compute absolute paths, because
13683 # the directories may not exist.
13684 case `pwd` in
13685 .) ac_abs_builddir="$ac_dir";;
13686 *)
13687   case "$ac_dir" in
13688   .) ac_abs_builddir=`pwd`;;
13689   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13690   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13691   esac;;
13692 esac
13693 case $ac_abs_builddir in
13694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13695 *)
13696   case ${ac_top_builddir}. in
13697   .) ac_abs_top_builddir=$ac_abs_builddir;;
13698   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13699   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13700   esac;;
13701 esac
13702 case $ac_abs_builddir in
13703 .) ac_abs_srcdir=$ac_srcdir;;
13704 *)
13705   case $ac_srcdir in
13706   .) ac_abs_srcdir=$ac_abs_builddir;;
13707   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13708   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13709   esac;;
13710 esac
13711 case $ac_abs_builddir in
13712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13713 *)
13714   case $ac_top_srcdir in
13715   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13716   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13717   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13718   esac;;
13719 esac
13720
13721
13722   case $INSTALL in
13723   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13724   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13725   esac
13726
13727   if test x"$ac_file" != x-; then
13728     { echo "$as_me:$LINENO: creating $ac_file" >&5
13729 echo "$as_me: creating $ac_file" >&6;}
13730     rm -f "$ac_file"
13731   fi
13732   # Let's still pretend it is `configure' which instantiates (i.e., don't
13733   # use $as_me), people would be surprised to read:
13734   #    /* config.h.  Generated by config.status.  */
13735   if test x"$ac_file" = x-; then
13736     configure_input=
13737   else
13738     configure_input="$ac_file.  "
13739   fi
13740   configure_input=$configure_input"Generated from `echo $ac_file_in |
13741                                      sed 's,.*/,,'` by configure."
13742
13743   # First look for the input files in the build tree, otherwise in the
13744   # src tree.
13745   ac_file_inputs=`IFS=:
13746     for f in $ac_file_in; do
13747       case $f in
13748       -) echo $tmp/stdin ;;
13749       [\\/$]*)
13750          # Absolute (can't be DOS-style, as IFS=:)
13751          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13752 echo "$as_me: error: cannot find input file: $f" >&2;}
13753    { (exit 1); exit 1; }; }
13754          echo "$f";;
13755       *) # Relative
13756          if test -f "$f"; then
13757            # Build tree
13758            echo "$f"
13759          elif test -f "$srcdir/$f"; then
13760            # Source tree
13761            echo "$srcdir/$f"
13762          else
13763            # /dev/null tree
13764            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13765 echo "$as_me: error: cannot find input file: $f" >&2;}
13766    { (exit 1); exit 1; }; }
13767          fi;;
13768       esac
13769     done` || { (exit 1); exit 1; }
13770 _ACEOF
13771 cat >>$CONFIG_STATUS <<_ACEOF
13772   sed "$ac_vpsub
13773 $extrasub
13774 _ACEOF
13775 cat >>$CONFIG_STATUS <<\_ACEOF
13776 :t
13777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13778 s,@configure_input@,$configure_input,;t t
13779 s,@srcdir@,$ac_srcdir,;t t
13780 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13781 s,@top_srcdir@,$ac_top_srcdir,;t t
13782 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13783 s,@builddir@,$ac_builddir,;t t
13784 s,@abs_builddir@,$ac_abs_builddir,;t t
13785 s,@top_builddir@,$ac_top_builddir,;t t
13786 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13787 s,@INSTALL@,$ac_INSTALL,;t t
13788 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13789   rm -f $tmp/stdin
13790   if test x"$ac_file" != x-; then
13791     mv $tmp/out $ac_file
13792   else
13793     cat $tmp/out
13794     rm -f $tmp/out
13795   fi
13796
13797 done
13798 _ACEOF
13799 cat >>$CONFIG_STATUS <<\_ACEOF
13800
13801 #
13802 # CONFIG_HEADER section.
13803 #
13804
13805 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13806 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13807 #
13808 # ac_d sets the value in "#define NAME VALUE" lines.
13809 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13810 ac_dB='[         ].*$,\1#\2'
13811 ac_dC=' '
13812 ac_dD=',;t'
13813 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13814 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13815 ac_uB='$,\1#\2define\3'
13816 ac_uC=' '
13817 ac_uD=',;t'
13818
13819 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13820   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13821   case $ac_file in
13822   - | *:- | *:-:* ) # input from stdin
13823         cat >$tmp/stdin
13824         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13825         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13826   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13827         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13828   * )   ac_file_in=$ac_file.in ;;
13829   esac
13830
13831   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13832 echo "$as_me: creating $ac_file" >&6;}
13833
13834   # First look for the input files in the build tree, otherwise in the
13835   # src tree.
13836   ac_file_inputs=`IFS=:
13837     for f in $ac_file_in; do
13838       case $f in
13839       -) echo $tmp/stdin ;;
13840       [\\/$]*)
13841          # Absolute (can't be DOS-style, as IFS=:)
13842          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13843 echo "$as_me: error: cannot find input file: $f" >&2;}
13844    { (exit 1); exit 1; }; }
13845          # Do quote $f, to prevent DOS paths from being IFS'd.
13846          echo "$f";;
13847       *) # Relative
13848          if test -f "$f"; then
13849            # Build tree
13850            echo "$f"
13851          elif test -f "$srcdir/$f"; then
13852            # Source tree
13853            echo "$srcdir/$f"
13854          else
13855            # /dev/null tree
13856            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13857 echo "$as_me: error: cannot find input file: $f" >&2;}
13858    { (exit 1); exit 1; }; }
13859          fi;;
13860       esac
13861     done` || { (exit 1); exit 1; }
13862   # Remove the trailing spaces.
13863   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13864
13865 _ACEOF
13866
13867 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13868 # `conftest.undefs', that substitutes the proper values into
13869 # config.h.in to produce config.h.  The first handles `#define'
13870 # templates, and the second `#undef' templates.
13871 # And first: Protect against being on the right side of a sed subst in
13872 # config.status.  Protect against being in an unquoted here document
13873 # in config.status.
13874 rm -f conftest.defines conftest.undefs
13875 # Using a here document instead of a string reduces the quoting nightmare.
13876 # Putting comments in sed scripts is not portable.
13877 #
13878 # `end' is used to avoid that the second main sed command (meant for
13879 # 0-ary CPP macros) applies to n-ary macro definitions.
13880 # See the Autoconf documentation for `clear'.
13881 cat >confdef2sed.sed <<\_ACEOF
13882 s/[\\&,]/\\&/g
13883 s,[\\$`],\\&,g
13884 t clear
13885 : clear
13886 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13887 t end
13888 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13889 : end
13890 _ACEOF
13891 # If some macros were called several times there might be several times
13892 # the same #defines, which is useless.  Nevertheless, we may not want to
13893 # sort them, since we want the *last* AC-DEFINE to be honored.
13894 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13895 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13896 rm -f confdef2sed.sed
13897
13898 # This sed command replaces #undef with comments.  This is necessary, for
13899 # example, in the case of _POSIX_SOURCE, which is predefined and required
13900 # on some systems where configure will not decide to define it.
13901 cat >>conftest.undefs <<\_ACEOF
13902 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13903 _ACEOF
13904
13905 # Break up conftest.defines because some shells have a limit on the size
13906 # of here documents, and old seds have small limits too (100 cmds).
13907 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13908 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13909 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13910 echo '  :' >>$CONFIG_STATUS
13911 rm -f conftest.tail
13912 while grep . conftest.defines >/dev/null
13913 do
13914   # Write a limited-size here document to $tmp/defines.sed.
13915   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13916   # Speed up: don't consider the non `#define' lines.
13917   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13918   # Work around the forget-to-reset-the-flag bug.
13919   echo 't clr' >>$CONFIG_STATUS
13920   echo ': clr' >>$CONFIG_STATUS
13921   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13922   echo 'CEOF
13923   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13924   rm -f $tmp/in
13925   mv $tmp/out $tmp/in
13926 ' >>$CONFIG_STATUS
13927   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13928   rm -f conftest.defines
13929   mv conftest.tail conftest.defines
13930 done
13931 rm -f conftest.defines
13932 echo '  fi # grep' >>$CONFIG_STATUS
13933 echo >>$CONFIG_STATUS
13934
13935 # Break up conftest.undefs because some shells have a limit on the size
13936 # of here documents, and old seds have small limits too (100 cmds).
13937 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13938 rm -f conftest.tail
13939 while grep . conftest.undefs >/dev/null
13940 do
13941   # Write a limited-size here document to $tmp/undefs.sed.
13942   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13943   # Speed up: don't consider the non `#undef'
13944   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13945   # Work around the forget-to-reset-the-flag bug.
13946   echo 't clr' >>$CONFIG_STATUS
13947   echo ': clr' >>$CONFIG_STATUS
13948   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13949   echo 'CEOF
13950   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13951   rm -f $tmp/in
13952   mv $tmp/out $tmp/in
13953 ' >>$CONFIG_STATUS
13954   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13955   rm -f conftest.undefs
13956   mv conftest.tail conftest.undefs
13957 done
13958 rm -f conftest.undefs
13959
13960 cat >>$CONFIG_STATUS <<\_ACEOF
13961   # Let's still pretend it is `configure' which instantiates (i.e., don't
13962   # use $as_me), people would be surprised to read:
13963   #    /* config.h.  Generated by config.status.  */
13964   if test x"$ac_file" = x-; then
13965     echo "/* Generated by configure.  */" >$tmp/config.h
13966   else
13967     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13968   fi
13969   cat $tmp/in >>$tmp/config.h
13970   rm -f $tmp/in
13971   if test x"$ac_file" != x-; then
13972     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13973       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13974 echo "$as_me: $ac_file is unchanged" >&6;}
13975     else
13976       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13978          X"$ac_file" : 'X\(//\)[^/]' \| \
13979          X"$ac_file" : 'X\(//\)$' \| \
13980          X"$ac_file" : 'X\(/\)' \| \
13981          .     : '\(.\)' 2>/dev/null ||
13982 echo X"$ac_file" |
13983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13984           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13985           /^X\(\/\/\)$/{ s//\1/; q; }
13986           /^X\(\/\).*/{ s//\1/; q; }
13987           s/.*/./; q'`
13988       { if $as_mkdir_p; then
13989     mkdir -p "$ac_dir"
13990   else
13991     as_dir="$ac_dir"
13992     as_dirs=
13993     while test ! -d "$as_dir"; do
13994       as_dirs="$as_dir $as_dirs"
13995       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13997          X"$as_dir" : 'X\(//\)[^/]' \| \
13998          X"$as_dir" : 'X\(//\)$' \| \
13999          X"$as_dir" : 'X\(/\)' \| \
14000          .     : '\(.\)' 2>/dev/null ||
14001 echo X"$as_dir" |
14002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14004           /^X\(\/\/\)$/{ s//\1/; q; }
14005           /^X\(\/\).*/{ s//\1/; q; }
14006           s/.*/./; q'`
14007     done
14008     test ! -n "$as_dirs" || mkdir $as_dirs
14009   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14011    { (exit 1); exit 1; }; }; }
14012
14013       rm -f $ac_file
14014       mv $tmp/config.h $ac_file
14015     fi
14016   else
14017     cat $tmp/config.h
14018     rm -f $tmp/config.h
14019   fi
14020 # Compute $ac_file's index in $config_headers.
14021 _am_stamp_count=1
14022 for _am_header in $config_headers :; do
14023   case $_am_header in
14024     $ac_file | $ac_file:* )
14025       break ;;
14026     * )
14027       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14028   esac
14029 done
14030 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14031 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14032          X$ac_file : 'X\(//\)[^/]' \| \
14033          X$ac_file : 'X\(//\)$' \| \
14034          X$ac_file : 'X\(/\)' \| \
14035          .     : '\(.\)' 2>/dev/null ||
14036 echo X$ac_file |
14037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14039           /^X\(\/\/\)$/{ s//\1/; q; }
14040           /^X\(\/\).*/{ s//\1/; q; }
14041           s/.*/./; q'`/stamp-h$_am_stamp_count
14042 done
14043 _ACEOF
14044 cat >>$CONFIG_STATUS <<\_ACEOF
14045
14046 #
14047 # CONFIG_COMMANDS section.
14048 #
14049 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14050   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14051   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14052   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14054          X"$ac_dest" : 'X\(//\)[^/]' \| \
14055          X"$ac_dest" : 'X\(//\)$' \| \
14056          X"$ac_dest" : 'X\(/\)' \| \
14057          .     : '\(.\)' 2>/dev/null ||
14058 echo X"$ac_dest" |
14059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14061           /^X\(\/\/\)$/{ s//\1/; q; }
14062           /^X\(\/\).*/{ s//\1/; q; }
14063           s/.*/./; q'`
14064   { if $as_mkdir_p; then
14065     mkdir -p "$ac_dir"
14066   else
14067     as_dir="$ac_dir"
14068     as_dirs=
14069     while test ! -d "$as_dir"; do
14070       as_dirs="$as_dir $as_dirs"
14071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073          X"$as_dir" : 'X\(//\)[^/]' \| \
14074          X"$as_dir" : 'X\(//\)$' \| \
14075          X"$as_dir" : 'X\(/\)' \| \
14076          .     : '\(.\)' 2>/dev/null ||
14077 echo X"$as_dir" |
14078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14080           /^X\(\/\/\)$/{ s//\1/; q; }
14081           /^X\(\/\).*/{ s//\1/; q; }
14082           s/.*/./; q'`
14083     done
14084     test ! -n "$as_dirs" || mkdir $as_dirs
14085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14087    { (exit 1); exit 1; }; }; }
14088
14089   ac_builddir=.
14090
14091 if test "$ac_dir" != .; then
14092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14093   # A "../" for each directory in $ac_dir_suffix.
14094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14095 else
14096   ac_dir_suffix= ac_top_builddir=
14097 fi
14098
14099 case $srcdir in
14100   .)  # No --srcdir option.  We are building in place.
14101     ac_srcdir=.
14102     if test -z "$ac_top_builddir"; then
14103        ac_top_srcdir=.
14104     else
14105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14106     fi ;;
14107   [\\/]* | ?:[\\/]* )  # Absolute path.
14108     ac_srcdir=$srcdir$ac_dir_suffix;
14109     ac_top_srcdir=$srcdir ;;
14110   *) # Relative path.
14111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14113 esac
14114
14115 # Do not use `cd foo && pwd` to compute absolute paths, because
14116 # the directories may not exist.
14117 case `pwd` in
14118 .) ac_abs_builddir="$ac_dir";;
14119 *)
14120   case "$ac_dir" in
14121   .) ac_abs_builddir=`pwd`;;
14122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14124   esac;;
14125 esac
14126 case $ac_abs_builddir in
14127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14128 *)
14129   case ${ac_top_builddir}. in
14130   .) ac_abs_top_builddir=$ac_abs_builddir;;
14131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14133   esac;;
14134 esac
14135 case $ac_abs_builddir in
14136 .) ac_abs_srcdir=$ac_srcdir;;
14137 *)
14138   case $ac_srcdir in
14139   .) ac_abs_srcdir=$ac_abs_builddir;;
14140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14142   esac;;
14143 esac
14144 case $ac_abs_builddir in
14145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14146 *)
14147   case $ac_top_srcdir in
14148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14151   esac;;
14152 esac
14153
14154
14155   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14156 echo "$as_me: executing $ac_dest commands" >&6;}
14157   case $ac_dest in
14158     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14159   # Strip MF so we end up with the name of the file.
14160   mf=`echo "$mf" | sed -e 's/:.*$//'`
14161   # Check whether this is an Automake generated Makefile or not.
14162   # We used to match only the files named `Makefile.in', but
14163   # some people rename them; so instead we look at the file content.
14164   # Grep'ing the first line is not enough: some people post-process
14165   # each Makefile.in and add a new line on top of each file to say so.
14166   # So let's grep whole file.
14167   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14168     dirpart=`(dirname "$mf") 2>/dev/null ||
14169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14170          X"$mf" : 'X\(//\)[^/]' \| \
14171          X"$mf" : 'X\(//\)$' \| \
14172          X"$mf" : 'X\(/\)' \| \
14173          .     : '\(.\)' 2>/dev/null ||
14174 echo X"$mf" |
14175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14176           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14177           /^X\(\/\/\)$/{ s//\1/; q; }
14178           /^X\(\/\).*/{ s//\1/; q; }
14179           s/.*/./; q'`
14180   else
14181     continue
14182   fi
14183   # Extract the definition of DEPDIR, am__include, and am__quote
14184   # from the Makefile without running `make'.
14185   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14186   test -z "$DEPDIR" && continue
14187   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14188   test -z "am__include" && continue
14189   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14190   # When using ansi2knr, U may be empty or an underscore; expand it
14191   U=`sed -n 's/^U = //p' < "$mf"`
14192   # Find all dependency output files, they are included files with
14193   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14194   # simplest approach to changing $(DEPDIR) to its actual value in the
14195   # expansion.
14196   for file in `sed -n "
14197     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14198        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14199     # Make sure the directory exists.
14200     test -f "$dirpart/$file" && continue
14201     fdir=`(dirname "$file") 2>/dev/null ||
14202 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14203          X"$file" : 'X\(//\)[^/]' \| \
14204          X"$file" : 'X\(//\)$' \| \
14205          X"$file" : 'X\(/\)' \| \
14206          .     : '\(.\)' 2>/dev/null ||
14207 echo X"$file" |
14208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14210           /^X\(\/\/\)$/{ s//\1/; q; }
14211           /^X\(\/\).*/{ s//\1/; q; }
14212           s/.*/./; q'`
14213     { if $as_mkdir_p; then
14214     mkdir -p $dirpart/$fdir
14215   else
14216     as_dir=$dirpart/$fdir
14217     as_dirs=
14218     while test ! -d "$as_dir"; do
14219       as_dirs="$as_dir $as_dirs"
14220       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14222          X"$as_dir" : 'X\(//\)[^/]' \| \
14223          X"$as_dir" : 'X\(//\)$' \| \
14224          X"$as_dir" : 'X\(/\)' \| \
14225          .     : '\(.\)' 2>/dev/null ||
14226 echo X"$as_dir" |
14227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14229           /^X\(\/\/\)$/{ s//\1/; q; }
14230           /^X\(\/\).*/{ s//\1/; q; }
14231           s/.*/./; q'`
14232     done
14233     test ! -n "$as_dirs" || mkdir $as_dirs
14234   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14235 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14236    { (exit 1); exit 1; }; }; }
14237
14238     # echo "creating $dirpart/$file"
14239     echo '# dummy' > "$dirpart/$file"
14240   done
14241 done
14242  ;;
14243     default-1 )
14244     for ac_file in $CONFIG_FILES; do
14245       # Support "outfile[:infile[:infile...]]"
14246       case "$ac_file" in
14247         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14248       esac
14249       # PO directories have a Makefile.in generated from Makefile.in.in.
14250       case "$ac_file" in */Makefile.in)
14251         # Adjust a relative srcdir.
14252         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14253         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14254         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14255         # In autoconf-2.13 it is called $ac_given_srcdir.
14256         # In autoconf-2.50 it is called $srcdir.
14257         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14258         case "$ac_given_srcdir" in
14259           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14260           /*) top_srcdir="$ac_given_srcdir" ;;
14261           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
14262         esac
14263         # Treat a directory as a PO directory if and only if it has a
14264         # POTFILES.in file. This allows packages to have multiple PO
14265         # directories under different names or in different locations.
14266         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14267           rm -f "$ac_dir/POTFILES"
14268           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14269           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14270           POMAKEFILEDEPS="POTFILES.in"
14271           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14272           # on $ac_dir but don't depend on user-specified configuration
14273           # parameters.
14274           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14275             # The LINGUAS file contains the set of available languages.
14276             if test -n "$OBSOLETE_ALL_LINGUAS"; then
14277               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14278             fi
14279             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14280             # Hide the ALL_LINGUAS assigment from automake.
14281             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14282             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14283           else
14284             # The set of available languages was given in configure.in.
14285             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14286           fi
14287           # Compute POFILES
14288           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14289           # Compute UPDATEPOFILES
14290           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14291           # Compute DUMMYPOFILES
14292           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14293           # Compute GMOFILES
14294           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14295           case "$ac_given_srcdir" in
14296             .) srcdirpre= ;;
14297             *) srcdirpre='$(srcdir)/' ;;
14298           esac
14299           POFILES=
14300           UPDATEPOFILES=
14301           DUMMYPOFILES=
14302           GMOFILES=
14303           for lang in $ALL_LINGUAS; do
14304             POFILES="$POFILES $srcdirpre$lang.po"
14305             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14306             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14307             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14308           done
14309           # CATALOGS depends on both $ac_dir and the user's LINGUAS
14310           # environment variable.
14311           INST_LINGUAS=
14312           if test -n "$ALL_LINGUAS"; then
14313             for presentlang in $ALL_LINGUAS; do
14314               useit=no
14315               if test "%UNSET%" != "$LINGUAS"; then
14316                 desiredlanguages="$LINGUAS"
14317               else
14318                 desiredlanguages="$ALL_LINGUAS"
14319               fi
14320               for desiredlang in $desiredlanguages; do
14321                 # Use the presentlang catalog if desiredlang is
14322                 #   a. equal to presentlang, or
14323                 #   b. a variant of presentlang (because in this case,
14324                 #      presentlang can be used as a fallback for messages
14325                 #      which are not translated in the desiredlang catalog).
14326                 case "$desiredlang" in
14327                   "$presentlang"*) useit=yes;;
14328                 esac
14329               done
14330               if test $useit = yes; then
14331                 INST_LINGUAS="$INST_LINGUAS $presentlang"
14332               fi
14333             done
14334           fi
14335           CATALOGS=
14336           if test -n "$INST_LINGUAS"; then
14337             for lang in $INST_LINGUAS; do
14338               CATALOGS="$CATALOGS $lang.gmo"
14339             done
14340           fi
14341           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14342           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14343           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14344             if test -f "$f"; then
14345               case "$f" in
14346                 *.orig | *.bak | *~) ;;
14347                 *) cat "$f" >> "$ac_dir/Makefile" ;;
14348               esac
14349             fi
14350           done
14351         fi
14352         ;;
14353       esac
14354     done ;;
14355   esac
14356 done
14357 _ACEOF
14358
14359 cat >>$CONFIG_STATUS <<\_ACEOF
14360
14361 { (exit 0); exit 0; }
14362 _ACEOF
14363 chmod +x $CONFIG_STATUS
14364 ac_clean_files=$ac_clean_files_save
14365
14366 sed '$i\
14367         echo $as_me: fixing Makefile to keep version.c\
14368         sed "/CONFIG_CLEAN_FILES/s/version.c//" < Makefile > $$.Makefile\
14369         mv $$.Makefile Makefile
14370         ' < $CONFIG_STATUS > $$.gawk-hack
14371         mv $$.gawk-hack $CONFIG_STATUS
14372
14373 # configure is writing to config.log, and then calls config.status.
14374 # config.status does its own redirection, appending to config.log.
14375 # Unfortunately, on DOS this fails, as config.log is still kept open
14376 # by configure, so config.status won't be able to write to it; its
14377 # output is simply discarded.  So we exec the FD to /dev/null,
14378 # effectively closing config.log, so it can be properly (re)opened and
14379 # appended to by config.status.  When coming back to configure, we
14380 # need to make the FD available again.
14381 if test "$no_create" != yes; then
14382   ac_cs_success=:
14383   ac_config_status_args=
14384   test "$silent" = yes &&
14385     ac_config_status_args="$ac_config_status_args --quiet"
14386   exec 5>/dev/null
14387   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14388   exec 5>>config.log
14389   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14390   # would make configure fail if this is the last instruction.
14391   $ac_cs_success || { (exit 1); exit 1; }
14392 fi
14393