1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ChangeLog"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 PERL POD2MAN all_includes all_libraries MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB EGREP ALLOCA GLIBC21 INTLBISON CONTRIBLIBS NEED_GETOPT_TRUE NEED_GETOPT_FALSE LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833
834Program names:
835  --program-prefix=PREFIX            prepend PREFIX to installed program names
836  --program-suffix=SUFFIX            append SUFFIX to installed program names
837  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839System types:
840  --build=BUILD     configure for building on BUILD [guessed]
841  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842  --target=TARGET   configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848  cat <<\_ACEOF
849
850Optional Features:
851  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853  --disable-dependency-tracking Speeds up one-time builds
854  --enable-dependency-tracking  Do not reject slow dependency extractors
855  --disable-rpath         do not hardcode runtime library paths
856  --disable-nls           do not use Native Language Support
857  --enable-debug          enable debugging (requires GNU compiler, default:
858                          no)
859  --enable-compat         enable all old compatibility switches (default: no)
860  --enable-oldhexdump     use the old style hexdump format (default: no)
861  --enable-oldtelnet      use old telnet codes parsing policy (default: no)
862
863Optional Packages:
864  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866  --with-gnu-ld           assume the C compiler uses GNU ld default=no
867  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
868  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
869  --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
870  --without-libintl-prefix     don't search for libintl in includedir and libdir
871  --with-included-getopt  use the internal getopt library (default: auto)
872
873Some influential environment variables:
874  CC          C compiler command
875  CFLAGS      C compiler flags
876  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877              nonstandard directory <lib dir>
878  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879              headers in a nonstandard directory <include dir>
880  CPP         C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889  # If there are subdirs, report their specific --help.
890  ac_popdir=`pwd`
891  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892    test -d $ac_dir || continue
893    ac_builddir=.
894
895if test "$ac_dir" != .; then
896  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897  # A "../" for each directory in $ac_dir_suffix.
898  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900  ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904  .)  # No --srcdir option.  We are building in place.
905    ac_srcdir=.
906    if test -z "$ac_top_builddir"; then
907       ac_top_srcdir=.
908    else
909       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910    fi ;;
911  [\\/]* | ?:[\\/]* )  # Absolute path.
912    ac_srcdir=$srcdir$ac_dir_suffix;
913    ac_top_srcdir=$srcdir ;;
914  *) # Relative path.
915    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916    ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924  case "$ac_dir" in
925  .) ac_abs_builddir=`pwd`;;
926  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927  *) ac_abs_builddir=`pwd`/"$ac_dir";;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933  case ${ac_top_builddir}. in
934  .) ac_abs_top_builddir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937  esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942  case $ac_srcdir in
943  .) ac_abs_srcdir=$ac_abs_builddir;;
944  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946  esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951  case $ac_top_srcdir in
952  .) ac_abs_top_srcdir=$ac_abs_builddir;;
953  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955  esac;;
956esac
957
958    cd $ac_dir
959    # Check for guested configure; otherwise get Cygnus style configure.
960    if test -f $ac_srcdir/configure.gnu; then
961      echo
962      $SHELL $ac_srcdir/configure.gnu  --help=recursive
963    elif test -f $ac_srcdir/configure; then
964      echo
965      $SHELL $ac_srcdir/configure  --help=recursive
966    elif test -f $ac_srcdir/configure.ac ||
967	   test -f $ac_srcdir/configure.in; then
968      echo
969      $ac_configure --help
970    else
971      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972    fi
973    cd $ac_popdir
974  done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979  cat <<\_ACEOF
980
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985  exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
991
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59.  Invocation command line was
994
995  $ $0 $@
996
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012
1013/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026  IFS=$as_save_IFS
1027  test -z "$as_dir" && as_dir=.
1028  echo "PATH: $as_dir"
1029done
1030
1031} >&5
1032
1033cat >&5 <<_ACEOF
1034
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055  for ac_arg
1056  do
1057    case $ac_arg in
1058    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060    | -silent | --silent | --silen | --sile | --sil)
1061      continue ;;
1062    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064    esac
1065    case $ac_pass in
1066    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067    2)
1068      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069      if test $ac_must_keep_next = true; then
1070	ac_must_keep_next=false # Got value, back to normal.
1071      else
1072	case $ac_arg in
1073	  *=* | --config-cache | -C | -disable-* | --disable-* \
1074	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076	  | -with-* | --with-* | -without-* | --without-* | --x)
1077	    case "$ac_configure_args0 " in
1078	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079	    esac
1080	    ;;
1081	  -* ) ac_must_keep_next=true ;;
1082	esac
1083      fi
1084      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085      # Get rid of the leading space.
1086      ac_sep=" "
1087      ;;
1088    esac
1089  done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log.  We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100  # Save into config.log some information that might help in debugging.
1101  {
1102    echo
1103
1104    cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109    echo
1110    # The following way of writing the cache mishandles newlines in values,
1111{
1112  (set) 2>&1 |
1113    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114    *ac_space=\ *)
1115      sed -n \
1116	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118      ;;
1119    *)
1120      sed -n \
1121	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122      ;;
1123    esac;
1124}
1125    echo
1126
1127    cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132    echo
1133    for ac_var in $ac_subst_vars
1134    do
1135      eval ac_val=$`echo $ac_var`
1136      echo "$ac_var='"'"'$ac_val'"'"'"
1137    done | sort
1138    echo
1139
1140    if test -n "$ac_subst_files"; then
1141      cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146      echo
1147      for ac_var in $ac_subst_files
1148      do
1149	eval ac_val=$`echo $ac_var`
1150	echo "$ac_var='"'"'$ac_val'"'"'"
1151      done | sort
1152      echo
1153    fi
1154
1155    if test -s confdefs.h; then
1156      cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161      echo
1162      sed "/^$/d" confdefs.h | sort
1163      echo
1164    fi
1165    test "$ac_signal" != 0 &&
1166      echo "$as_me: caught signal $ac_signal"
1167    echo "$as_me: exit $exit_status"
1168  } >&5
1169  rm -f core *.core &&
1170  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171    exit $exit_status
1172     ' 0
1173for ac_signal in 1 2 13 15; do
1174  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
1177
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
1211# Prefer explicitly selected file to automatically selected ones.
1212if test -z "$CONFIG_SITE"; then
1213  if test "x$prefix" != xNONE; then
1214    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215  else
1216    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217  fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220  if test -r "$ac_site_file"; then
1221    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223    sed 's/^/| /' "$ac_site_file" >&5
1224    . "$ac_site_file"
1225  fi
1226done
1227
1228if test -r "$cache_file"; then
1229  # Some versions of bash will fail to source /dev/null (special
1230  # files actually), so we avoid doing that.
1231  if test -f "$cache_file"; then
1232    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234    case $cache_file in
1235      [\\/]* | ?:[\\/]* ) . $cache_file;;
1236      *)                      . ./$cache_file;;
1237    esac
1238  fi
1239else
1240  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242  >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251  eval ac_new_set=\$ac_env_${ac_var}_set
1252  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253  eval ac_new_val="\$ac_env_${ac_var}_value"
1254  case $ac_old_set,$ac_new_set in
1255    set,)
1256      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258      ac_cache_corrupted=: ;;
1259    ,set)
1260      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262      ac_cache_corrupted=: ;;
1263    ,);;
1264    *)
1265      if test "x$ac_old_val" != "x$ac_new_val"; then
1266	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1269echo "$as_me:   former value:  $ac_old_val" >&2;}
1270	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1271echo "$as_me:   current value: $ac_new_val" >&2;}
1272	ac_cache_corrupted=:
1273      fi;;
1274  esac
1275  # Pass precious variables to config.status.
1276  if test "$ac_new_set" = set; then
1277    case $ac_new_val in
1278    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280    *) ac_arg=$ac_var=$ac_new_val ;;
1281    esac
1282    case " $ac_configure_args " in
1283      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1284      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285    esac
1286  fi
1287done
1288if $ac_cache_corrupted; then
1289  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293   { (exit 1); exit 1; }; }
1294fi
1295
1296ac_ext=c
1297ac_cpp='$CPP $CPPFLAGS'
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321ac_aux_dir=
1322for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323  if test -f $ac_dir/install-sh; then
1324    ac_aux_dir=$ac_dir
1325    ac_install_sh="$ac_aux_dir/install-sh -c"
1326    break
1327  elif test -f $ac_dir/install.sh; then
1328    ac_aux_dir=$ac_dir
1329    ac_install_sh="$ac_aux_dir/install.sh -c"
1330    break
1331  elif test -f $ac_dir/shtool; then
1332    ac_aux_dir=$ac_dir
1333    ac_install_sh="$ac_aux_dir/shtool install -c"
1334    break
1335  fi
1336done
1337if test -z "$ac_aux_dir"; then
1338  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340   { (exit 1); exit 1; }; }
1341fi
1342ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346# Make sure we can run config.sub.
1347$ac_config_sub sun4 >/dev/null 2>&1 ||
1348  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350   { (exit 1); exit 1; }; }
1351
1352echo "$as_me:$LINENO: checking build system type" >&5
1353echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354if test "${ac_cv_build+set}" = set; then
1355  echo $ECHO_N "(cached) $ECHO_C" >&6
1356else
1357  ac_cv_build_alias=$build_alias
1358test -z "$ac_cv_build_alias" &&
1359  ac_cv_build_alias=`$ac_config_guess`
1360test -z "$ac_cv_build_alias" &&
1361  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363   { (exit 1); exit 1; }; }
1364ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367   { (exit 1); exit 1; }; }
1368
1369fi
1370echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371echo "${ECHO_T}$ac_cv_build" >&6
1372build=$ac_cv_build
1373build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378echo "$as_me:$LINENO: checking host system type" >&5
1379echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380if test "${ac_cv_host+set}" = set; then
1381  echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383  ac_cv_host_alias=$host_alias
1384test -z "$ac_cv_host_alias" &&
1385  ac_cv_host_alias=$ac_cv_build_alias
1386ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389   { (exit 1); exit 1; }; }
1390
1391fi
1392echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393echo "${ECHO_T}$ac_cv_host" >&6
1394host=$ac_cv_host
1395host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400echo "$as_me:$LINENO: checking target system type" >&5
1401echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402if test "${ac_cv_target+set}" = set; then
1403  echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405  ac_cv_target_alias=$target_alias
1406test "x$ac_cv_target_alias" = "x" &&
1407  ac_cv_target_alias=$ac_cv_host_alias
1408ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411   { (exit 1); exit 1; }; }
1412
1413fi
1414echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415echo "${ECHO_T}$ac_cv_target" >&6
1416target=$ac_cv_target
1417target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422# The aliases save the names the user supplied, while $host etc.
1423# will get canonicalized.
1424test -n "$target_alias" &&
1425  test "$program_prefix$program_suffix$program_transform_name" = \
1426    NONENONEs,x,x, &&
1427  program_prefix=${target_alias}-
1428
1429am__api_version="1.7"
1430# Find a good install program.  We prefer a C program (faster),
1431# so one script is as good as another.  But avoid the broken or
1432# incompatible versions:
1433# SysV /etc/install, /usr/sbin/install
1434# SunOS /usr/etc/install
1435# IRIX /sbin/install
1436# AIX /bin/install
1437# AmigaOS /C/install, which installs bootblocks on floppy discs
1438# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1439# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1440# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1441# OS/2's system install, which has a completely different semantic
1442# ./install, which can be erroneously created by make from ./install.sh.
1443echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1444echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1445if test -z "$INSTALL"; then
1446if test "${ac_cv_path_install+set}" = set; then
1447  echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452  IFS=$as_save_IFS
1453  test -z "$as_dir" && as_dir=.
1454  # Account for people who put trailing slashes in PATH elements.
1455case $as_dir/ in
1456  ./ | .// | /cC/* | \
1457  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1458  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1459  /usr/ucb/* ) ;;
1460  *)
1461    # OSF1 and SCO ODT 3.0 have their own names for install.
1462    # Don't use installbsd from OSF since it installs stuff as root
1463    # by default.
1464    for ac_prog in ginstall scoinst install; do
1465      for ac_exec_ext in '' $ac_executable_extensions; do
1466	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1467	  if test $ac_prog = install &&
1468	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1469	    # AIX install.  It has an incompatible calling convention.
1470	    :
1471	  elif test $ac_prog = install &&
1472	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1473	    # program-specific install script used by HP pwplus--don't use.
1474	    :
1475	  else
1476	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1477	    break 3
1478	  fi
1479	fi
1480      done
1481    done
1482    ;;
1483esac
1484done
1485
1486
1487fi
1488  if test "${ac_cv_path_install+set}" = set; then
1489    INSTALL=$ac_cv_path_install
1490  else
1491    # As a last resort, use the slow shell script.  We don't cache a
1492    # path for INSTALL within a source directory, because that will
1493    # break other packages using the cache if that directory is
1494    # removed, or if the path is relative.
1495    INSTALL=$ac_install_sh
1496  fi
1497fi
1498echo "$as_me:$LINENO: result: $INSTALL" >&5
1499echo "${ECHO_T}$INSTALL" >&6
1500
1501# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1502# It thinks the first close brace ends the variable substitution.
1503test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1504
1505test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1506
1507test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1508
1509echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1510echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1511# Just in case
1512sleep 1
1513echo timestamp > conftest.file
1514# Do `set' in a subshell so we don't clobber the current shell's
1515# arguments.  Must try -L first in case configure is actually a
1516# symlink; some systems play weird games with the mod time of symlinks
1517# (eg FreeBSD returns the mod time of the symlink's containing
1518# directory).
1519if (
1520   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1521   if test "$*" = "X"; then
1522      # -L didn't work.
1523      set X `ls -t $srcdir/configure conftest.file`
1524   fi
1525   rm -f conftest.file
1526   if test "$*" != "X $srcdir/configure conftest.file" \
1527      && test "$*" != "X conftest.file $srcdir/configure"; then
1528
1529      # If neither matched, then we have a broken ls.  This can happen
1530      # if, for instance, CONFIG_SHELL is bash and it inherits a
1531      # broken ls alias from the environment.  This has actually
1532      # happened.  Such a system could not be considered "sane".
1533      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1534alias in your environment" >&5
1535echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1536alias in your environment" >&2;}
1537   { (exit 1); exit 1; }; }
1538   fi
1539
1540   test "$2" = conftest.file
1541   )
1542then
1543   # Ok.
1544   :
1545else
1546   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1547Check your system clock" >&5
1548echo "$as_me: error: newly created file is older than distributed files!
1549Check your system clock" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552echo "$as_me:$LINENO: result: yes" >&5
1553echo "${ECHO_T}yes" >&6
1554test "$program_prefix" != NONE &&
1555  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1556# Use a double $ so make ignores it.
1557test "$program_suffix" != NONE &&
1558  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1559# Double any \ or $.  echo might interpret backslashes.
1560# By default was `s,x,x', remove it if useless.
1561cat <<\_ACEOF >conftest.sed
1562s/[\\$]/&&/g;s/;s,x,x,$//
1563_ACEOF
1564program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1565rm conftest.sed
1566
1567
1568# expand $ac_aux_dir to an absolute path
1569am_aux_dir=`cd $ac_aux_dir && pwd`
1570
1571test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1572# Use eval to expand $SHELL
1573if eval "$MISSING --run true"; then
1574  am_missing_run="$MISSING --run "
1575else
1576  am_missing_run=
1577  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1578echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1579fi
1580
1581for ac_prog in gawk mawk nawk awk
1582do
1583  # Extract the first word of "$ac_prog", so it can be a program name with args.
1584set dummy $ac_prog; ac_word=$2
1585echo "$as_me:$LINENO: checking for $ac_word" >&5
1586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1587if test "${ac_cv_prog_AWK+set}" = set; then
1588  echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590  if test -n "$AWK"; then
1591  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1592else
1593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1594for as_dir in $PATH
1595do
1596  IFS=$as_save_IFS
1597  test -z "$as_dir" && as_dir=.
1598  for ac_exec_ext in '' $ac_executable_extensions; do
1599  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1600    ac_cv_prog_AWK="$ac_prog"
1601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1602    break 2
1603  fi
1604done
1605done
1606
1607fi
1608fi
1609AWK=$ac_cv_prog_AWK
1610if test -n "$AWK"; then
1611  echo "$as_me:$LINENO: result: $AWK" >&5
1612echo "${ECHO_T}$AWK" >&6
1613else
1614  echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
1616fi
1617
1618  test -n "$AWK" && break
1619done
1620
1621echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1622echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1623set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1624if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1625  echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627  cat >conftest.make <<\_ACEOF
1628all:
1629	@echo 'ac_maketemp="$(MAKE)"'
1630_ACEOF
1631# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1632eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1633if test -n "$ac_maketemp"; then
1634  eval ac_cv_prog_make_${ac_make}_set=yes
1635else
1636  eval ac_cv_prog_make_${ac_make}_set=no
1637fi
1638rm -f conftest.make
1639fi
1640if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1641  echo "$as_me:$LINENO: result: yes" >&5
1642echo "${ECHO_T}yes" >&6
1643  SET_MAKE=
1644else
1645  echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
1647  SET_MAKE="MAKE=${MAKE-make}"
1648fi
1649
1650rm -rf .tst 2>/dev/null
1651mkdir .tst 2>/dev/null
1652if test -d .tst; then
1653  am__leading_dot=.
1654else
1655  am__leading_dot=_
1656fi
1657rmdir .tst 2>/dev/null
1658
1659 # test to see if srcdir already configured
1660if test "`cd $srcdir && pwd`" != "`pwd`" &&
1661   test -f $srcdir/config.status; then
1662  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1663echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666
1667# test whether we have cygpath
1668if test -z "$CYGPATH_W"; then
1669  if (cygpath --version) >/dev/null 2>/dev/null; then
1670    CYGPATH_W='cygpath -w'
1671  else
1672    CYGPATH_W=echo
1673  fi
1674fi
1675
1676
1677# Define the identity of the package.
1678 PACKAGE=netcat
1679 VERSION=0.7.1
1680
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE "$PACKAGE"
1684_ACEOF
1685
1686
1687cat >>confdefs.h <<_ACEOF
1688#define VERSION "$VERSION"
1689_ACEOF
1690
1691# Some tools Automake needs.
1692
1693ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1694
1695
1696AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1697
1698
1699AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1700
1701
1702AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1703
1704
1705MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1706
1707
1708AMTAR=${AMTAR-"${am_missing_run}tar"}
1709
1710install_sh=${install_sh-"$am_aux_dir/install-sh"}
1711
1712# Installed binaries are usually stripped using `strip' when the user
1713# run `make install-strip'.  However `strip' might not be the right
1714# tool to use in cross-compilation environments, therefore Automake
1715# will honor the `STRIP' environment variable to overrule this program.
1716if test "$cross_compiling" != no; then
1717  if test -n "$ac_tool_prefix"; then
1718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1719set dummy ${ac_tool_prefix}strip; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_STRIP+set}" = set; then
1723  echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725  if test -n "$STRIP"; then
1726  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1727else
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731  IFS=$as_save_IFS
1732  test -z "$as_dir" && as_dir=.
1733  for ac_exec_ext in '' $ac_executable_extensions; do
1734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737    break 2
1738  fi
1739done
1740done
1741
1742fi
1743fi
1744STRIP=$ac_cv_prog_STRIP
1745if test -n "$STRIP"; then
1746  echo "$as_me:$LINENO: result: $STRIP" >&5
1747echo "${ECHO_T}$STRIP" >&6
1748else
1749  echo "$as_me:$LINENO: result: no" >&5
1750echo "${ECHO_T}no" >&6
1751fi
1752
1753fi
1754if test -z "$ac_cv_prog_STRIP"; then
1755  ac_ct_STRIP=$STRIP
1756  # Extract the first word of "strip", so it can be a program name with args.
1757set dummy strip; ac_word=$2
1758echo "$as_me:$LINENO: checking for $ac_word" >&5
1759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  if test -n "$ac_ct_STRIP"; then
1764  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1765else
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769  IFS=$as_save_IFS
1770  test -z "$as_dir" && as_dir=.
1771  for ac_exec_ext in '' $ac_executable_extensions; do
1772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773    ac_cv_prog_ac_ct_STRIP="strip"
1774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775    break 2
1776  fi
1777done
1778done
1779
1780  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1781fi
1782fi
1783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1784if test -n "$ac_ct_STRIP"; then
1785  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1786echo "${ECHO_T}$ac_ct_STRIP" >&6
1787else
1788  echo "$as_me:$LINENO: result: no" >&5
1789echo "${ECHO_T}no" >&6
1790fi
1791
1792  STRIP=$ac_ct_STRIP
1793else
1794  STRIP="$ac_cv_prog_STRIP"
1795fi
1796
1797fi
1798INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1799
1800# We need awk for the "check" target.  The system "awk" is bad on
1801# some platforms.
1802
1803
1804
1805
1806
1807          ac_config_headers="$ac_config_headers config.h"
1808
1809
1810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815if test -n "$ac_tool_prefix"; then
1816  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821  echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823  if test -n "$CC"; then
1824  ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829  IFS=$as_save_IFS
1830  test -z "$as_dir" && as_dir=.
1831  for ac_exec_ext in '' $ac_executable_extensions; do
1832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835    break 2
1836  fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844  echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847  echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851fi
1852if test -z "$ac_cv_prog_CC"; then
1853  ac_ct_CC=$CC
1854  # Extract the first word of "gcc", so it can be a program name with args.
1855set dummy gcc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859  echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861  if test -n "$ac_ct_CC"; then
1862  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867  IFS=$as_save_IFS
1868  test -z "$as_dir" && as_dir=.
1869  for ac_exec_ext in '' $ac_executable_extensions; do
1870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871    ac_cv_prog_ac_ct_CC="gcc"
1872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873    break 2
1874  fi
1875done
1876done
1877
1878fi
1879fi
1880ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881if test -n "$ac_ct_CC"; then
1882  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883echo "${ECHO_T}$ac_ct_CC" >&6
1884else
1885  echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889  CC=$ac_ct_CC
1890else
1891  CC="$ac_cv_prog_CC"
1892fi
1893
1894if test -z "$CC"; then
1895  if test -n "$ac_tool_prefix"; then
1896  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897set dummy ${ac_tool_prefix}cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_CC+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$CC"; then
1904  ac_cv_prog_CC="$CC" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911  for ac_exec_ext in '' $ac_executable_extensions; do
1912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913    ac_cv_prog_CC="${ac_tool_prefix}cc"
1914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915    break 2
1916  fi
1917done
1918done
1919
1920fi
1921fi
1922CC=$ac_cv_prog_CC
1923if test -n "$CC"; then
1924  echo "$as_me:$LINENO: result: $CC" >&5
1925echo "${ECHO_T}$CC" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931fi
1932if test -z "$ac_cv_prog_CC"; then
1933  ac_ct_CC=$CC
1934  # Extract the first word of "cc", so it can be a program name with args.
1935set dummy cc; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939  echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941  if test -n "$ac_ct_CC"; then
1942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947  IFS=$as_save_IFS
1948  test -z "$as_dir" && as_dir=.
1949  for ac_exec_ext in '' $ac_executable_extensions; do
1950  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951    ac_cv_prog_ac_ct_CC="cc"
1952    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953    break 2
1954  fi
1955done
1956done
1957
1958fi
1959fi
1960ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961if test -n "$ac_ct_CC"; then
1962  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963echo "${ECHO_T}$ac_ct_CC" >&6
1964else
1965  echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969  CC=$ac_ct_CC
1970else
1971  CC="$ac_cv_prog_CC"
1972fi
1973
1974fi
1975if test -z "$CC"; then
1976  # Extract the first word of "cc", so it can be a program name with args.
1977set dummy cc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$CC"; then
1984  ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986  ac_prog_rejected=no
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992  for ac_exec_ext in '' $ac_executable_extensions; do
1993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995       ac_prog_rejected=yes
1996       continue
1997     fi
1998    ac_cv_prog_CC="cc"
1999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000    break 2
2001  fi
2002done
2003done
2004
2005if test $ac_prog_rejected = yes; then
2006  # We found a bogon in the path, so make sure we never use it.
2007  set dummy $ac_cv_prog_CC
2008  shift
2009  if test $# != 0; then
2010    # We chose a different compiler from the bogus one.
2011    # However, it has the same basename, so the bogon will be chosen
2012    # first if we set CC to just the basename; use the full file name.
2013    shift
2014    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015  fi
2016fi
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021  echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024  echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028fi
2029if test -z "$CC"; then
2030  if test -n "$ac_tool_prefix"; then
2031  for ac_prog in cl
2032  do
2033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_CC+set}" = set; then
2038  echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040  if test -n "$CC"; then
2041  ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048  for ac_exec_ext in '' $ac_executable_extensions; do
2049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052    break 2
2053  fi
2054done
2055done
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061  echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
2063else
2064  echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068    test -n "$CC" && break
2069  done
2070fi
2071if test -z "$CC"; then
2072  ac_ct_CC=$CC
2073  for ac_prog in cl
2074do
2075  # Extract the first word of "$ac_prog", so it can be a program name with args.
2076set dummy $ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$ac_ct_CC"; then
2083  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_ac_ct_CC="$ac_prog"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
2103  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110  test -n "$ac_ct_CC" && break
2111done
2112
2113  CC=$ac_ct_CC
2114fi
2115
2116fi
2117
2118
2119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123   { (exit 1); exit 1; }; }
2124
2125# Provide some information about the compiler.
2126echo "$as_me:$LINENO:" \
2127     "checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130  (eval $ac_compiler --version </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135  (eval $ac_compiler -v </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140  (eval $ac_compiler -V </dev/null >&5) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }
2144
2145cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160ac_clean_files_save=$ac_clean_files
2161ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162# Try to create an executable without -o first, disregard a.out.
2163# It will help us diagnose broken compilers, and finding out an intuition
2164# of exeext.
2165echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169  (eval $ac_link_default) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }; then
2173  # Find the output, starting from the most likely.  This scheme is
2174# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175# resort.
2176
2177# Be careful to initialize this variable, since it used to be cached.
2178# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179ac_cv_exeext=
2180# b.out is created by i960 compilers.
2181for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182do
2183  test -f "$ac_file" || continue
2184  case $ac_file in
2185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186	;;
2187    conftest.$ac_ext )
2188	# This is the source file.
2189	;;
2190    [ab].out )
2191	# We found the default executable, but exeext='' is most
2192	# certainly right.
2193	break;;
2194    *.* )
2195	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196	# FIXME: I believe we export ac_cv_exeext for Libtool,
2197	# but it would be cool to find out if it's true.  Does anybody
2198	# maintain Libtool? --akim.
2199	export ac_cv_exeext
2200	break;;
2201    * )
2202	break;;
2203  esac
2204done
2205else
2206  echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: C compiler cannot create executables
2212See \`config.log' for more details." >&2;}
2213   { (exit 77); exit 77; }; }
2214fi
2215
2216ac_exeext=$ac_cv_exeext
2217echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6
2219
2220# Check the compiler produces executables we can run.  If not, either
2221# the compiler is broken, or we cross compile.
2222echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227  if { ac_try='./$ac_file'
2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229  (eval $ac_try) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; }; then
2233    cross_compiling=no
2234  else
2235    if test "$cross_compiling" = maybe; then
2236	cross_compiling=yes
2237    else
2238	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
2244   { (exit 1); exit 1; }; }
2245    fi
2246  fi
2247fi
2248echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6
2250
2251rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252ac_clean_files=$ac_clean_files_save
2253# Check the compiler produces executables we can run.  If not, either
2254# the compiler is broken, or we cross compile.
2255echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6
2259
2260echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263  (eval $ac_link) 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; then
2267  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
2271for ac_file in conftest.exe conftest conftest.*; do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276	  export ac_cv_exeext
2277	  break;;
2278    * ) break;;
2279  esac
2280done
2281else
2282  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest$ac_cv_exeext
2290echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
2296echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298if test "${ac_cv_objext+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h.  */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h.  */
2307
2308int
2309main ()
2310{
2311
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318  (eval $ac_compile) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; then
2322  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323  case $ac_file in
2324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326       break;;
2327  esac
2328done
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&2;}
2337   { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341fi
2342echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343echo "${ECHO_T}$ac_cv_objext" >&6
2344OBJEXT=$ac_cv_objext
2345ac_objext=$OBJEXT
2346echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h.  */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h.  */
2357
2358int
2359main ()
2360{
2361#ifndef __GNUC__
2362       choke me
2363#endif
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>conftest.er1
2372  ac_status=$?
2373  grep -v '^ *+' conftest.er1 >conftest.err
2374  rm -f conftest.er1
2375  cat conftest.err >&5
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); } &&
2378	 { ac_try='test -z "$ac_c_werror_flag"
2379			 || test ! -s conftest.err'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; } &&
2385	 { ac_try='test -s conftest.$ac_objext'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; }; then
2391  ac_compiler_gnu=yes
2392else
2393  echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396ac_compiler_gnu=no
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404GCC=`test $ac_compiler_gnu = yes && echo yes`
2405ac_test_CFLAGS=${CFLAGS+set}
2406ac_save_CFLAGS=$CFLAGS
2407CFLAGS="-g"
2408echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410if test "${ac_cv_prog_cc_g+set}" = set; then
2411  echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413  cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h.  */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h.  */
2419
2420int
2421main ()
2422{
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430  (eval $ac_compile) 2>conftest.er1
2431  ac_status=$?
2432  grep -v '^ *+' conftest.er1 >conftest.err
2433  rm -f conftest.er1
2434  cat conftest.err >&5
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); } &&
2437	 { ac_try='test -z "$ac_c_werror_flag"
2438			 || test ! -s conftest.err'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; } &&
2444	 { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  ac_cv_prog_cc_g=yes
2451else
2452  echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455ac_cv_prog_cc_g=no
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461if test "$ac_test_CFLAGS" = set; then
2462  CFLAGS=$ac_save_CFLAGS
2463elif test $ac_cv_prog_cc_g = yes; then
2464  if test "$GCC" = yes; then
2465    CFLAGS="-g -O2"
2466  else
2467    CFLAGS="-g"
2468  fi
2469else
2470  if test "$GCC" = yes; then
2471    CFLAGS="-O2"
2472  else
2473    CFLAGS=
2474  fi
2475fi
2476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479  echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481  ac_cv_prog_cc_stdc=no
2482ac_save_CC=$CC
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489#include <stdarg.h>
2490#include <stdio.h>
2491#include <sys/types.h>
2492#include <sys/stat.h>
2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494struct buf { int x; };
2495FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496static char *e (p, i)
2497     char **p;
2498     int i;
2499{
2500  return p[i];
2501}
2502static char *f (char * (*g) (char **, int), char **p, ...)
2503{
2504  char *s;
2505  va_list v;
2506  va_start (v,p);
2507  s = g (p, va_arg (v,int));
2508  va_end (v);
2509  return s;
2510}
2511
2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513   function prototypes and stuff, but not '\xHH' hex character constants.
2514   These don't provoke an error unfortunately, instead are silently treated
2515   as 'x'.  The following induces an error, until -std1 is added to get
2516   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517   array size at least.  It's necessary to write '\x00'==0 to get something
2518   that's true only with -std1.  */
2519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521int test (int i, double x);
2522struct s1 {int (*f) (int a);};
2523struct s2 {int (*f) (double a);};
2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525int argc;
2526char **argv;
2527int
2528main ()
2529{
2530return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535# Don't try gcc -ansi; that turns off useful extensions and
2536# breaks some systems' header files.
2537# AIX			-qlanglvl=ansi
2538# Ultrix and OSF/1	-std1
2539# HP-UX 10.20 and later	-Ae
2540# HP-UX older versions	-Aa -D_HPUX_SOURCE
2541# SVR4			-Xc -D__EXTENSIONS__
2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543do
2544  CC="$ac_save_CC $ac_arg"
2545  rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547  (eval $ac_compile) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554	 { ac_try='test -z "$ac_c_werror_flag"
2555			 || test ! -s conftest.err'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; } &&
2561	 { ac_try='test -s conftest.$ac_objext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  ac_cv_prog_cc_stdc=$ac_arg
2568break
2569else
2570  echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext
2575done
2576rm -f conftest.$ac_ext conftest.$ac_objext
2577CC=$ac_save_CC
2578
2579fi
2580
2581case "x$ac_cv_prog_cc_stdc" in
2582  x|xno)
2583    echo "$as_me:$LINENO: result: none needed" >&5
2584echo "${ECHO_T}none needed" >&6 ;;
2585  *)
2586    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588    CC="$CC $ac_cv_prog_cc_stdc" ;;
2589esac
2590
2591# Some people use a C++ compiler to compile C.  Since we use `exit',
2592# in C++ we need to declare it.  In case someone uses the same compiler
2593# for both compiling C and C++ we need to have the C++ compiler decide
2594# the declaration of exit, since it's the most demanding environment.
2595cat >conftest.$ac_ext <<_ACEOF
2596#ifndef __cplusplus
2597  choke me
2598#endif
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602  (eval $ac_compile) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609	 { ac_try='test -z "$ac_c_werror_flag"
2610			 || test ! -s conftest.err'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; } &&
2616	 { ac_try='test -s conftest.$ac_objext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  for ac_declaration in \
2623   '' \
2624   'extern "C" void std::exit (int) throw (); using std::exit;' \
2625   'extern "C" void std::exit (int); using std::exit;' \
2626   'extern "C" void exit (int) throw ();' \
2627   'extern "C" void exit (int);' \
2628   'void exit (int);'
2629do
2630  cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636$ac_declaration
2637#include <stdlib.h>
2638int
2639main ()
2640{
2641exit (42);
2642  ;
2643  return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655	 { ac_try='test -z "$ac_c_werror_flag"
2656			 || test ! -s conftest.err'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; } &&
2662	 { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  :
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673continue
2674fi
2675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700	 { ac_try='test -z "$ac_c_werror_flag"
2701			 || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2713  break
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720done
2721rm -f conftest*
2722if test -n "$ac_declaration"; then
2723  echo '#ifdef __cplusplus' >>confdefs.h
2724  echo $ac_declaration      >>confdefs.h
2725  echo '#endif'             >>confdefs.h
2726fi
2727
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739DEPDIR="${am__leading_dot}deps"
2740
2741          ac_config_commands="$ac_config_commands depfiles"
2742
2743
2744am_make=${MAKE-make}
2745cat > confinc << 'END'
2746am__doit:
2747	@echo done
2748.PHONY: am__doit
2749END
2750# If we don't find an include directive, just comment out the code.
2751echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2752echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2753am__include="#"
2754am__quote=
2755_am_result=none
2756# First try GNU make style include.
2757echo "include confinc" > confmf
2758# We grep out `Entering directory' and `Leaving directory'
2759# messages which can occur if `w' ends up in MAKEFLAGS.
2760# In particular we don't look at `^make:' because GNU make might
2761# be invoked under some other name (usually "gmake"), in which
2762# case it prints its new name instead of `make'.
2763if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2764   am__include=include
2765   am__quote=
2766   _am_result=GNU
2767fi
2768# Now try BSD make style include.
2769if test "$am__include" = "#"; then
2770   echo '.include "confinc"' > confmf
2771   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2772      am__include=.include
2773      am__quote="\""
2774      _am_result=BSD
2775   fi
2776fi
2777
2778
2779echo "$as_me:$LINENO: result: $_am_result" >&5
2780echo "${ECHO_T}$_am_result" >&6
2781rm -f confinc confmf
2782
2783# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2784if test "${enable_dependency_tracking+set}" = set; then
2785  enableval="$enable_dependency_tracking"
2786
2787fi;
2788if test "x$enable_dependency_tracking" != xno; then
2789  am_depcomp="$ac_aux_dir/depcomp"
2790  AMDEPBACKSLASH='\'
2791fi
2792
2793
2794if test "x$enable_dependency_tracking" != xno; then
2795  AMDEP_TRUE=
2796  AMDEP_FALSE='#'
2797else
2798  AMDEP_TRUE='#'
2799  AMDEP_FALSE=
2800fi
2801
2802
2803
2804
2805depcc="$CC"   am_compiler_list=
2806
2807echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2808echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2809if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2810  echo $ECHO_N "(cached) $ECHO_C" >&6
2811else
2812  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2813  # We make a subdir and do the tests there.  Otherwise we can end up
2814  # making bogus files that we don't know about and never remove.  For
2815  # instance it was reported that on HP-UX the gcc test will end up
2816  # making a dummy file named `D' -- because `-MD' means `put the output
2817  # in D'.
2818  mkdir conftest.dir
2819  # Copy depcomp to subdir because otherwise we won't find it if we're
2820  # using a relative directory.
2821  cp "$am_depcomp" conftest.dir
2822  cd conftest.dir
2823  # We will build objects and dependencies in a subdirectory because
2824  # it helps to detect inapplicable dependency modes.  For instance
2825  # both Tru64's cc and ICC support -MD to output dependencies as a
2826  # side effect of compilation, but ICC will put the dependencies in
2827  # the current directory while Tru64 will put them in the object
2828  # directory.
2829  mkdir sub
2830
2831  am_cv_CC_dependencies_compiler_type=none
2832  if test "$am_compiler_list" = ""; then
2833     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2834  fi
2835  for depmode in $am_compiler_list; do
2836    # Setup a source with many dependencies, because some compilers
2837    # like to wrap large dependency lists on column 80 (with \), and
2838    # we should not choose a depcomp mode which is confused by this.
2839    #
2840    # We need to recreate these files for each test, as the compiler may
2841    # overwrite some of them when testing with obscure command lines.
2842    # This happens at least with the AIX C compiler.
2843    : > sub/conftest.c
2844    for i in 1 2 3 4 5 6; do
2845      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2846      : > sub/conftst$i.h
2847    done
2848    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2849
2850    case $depmode in
2851    nosideeffect)
2852      # after this tag, mechanisms are not by side-effect, so they'll
2853      # only be used when explicitly requested
2854      if test "x$enable_dependency_tracking" = xyes; then
2855	continue
2856      else
2857	break
2858      fi
2859      ;;
2860    none) break ;;
2861    esac
2862    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2863    # mode.  It turns out that the SunPro C++ compiler does not properly
2864    # handle `-M -o', and we need to detect this.
2865    if depmode=$depmode \
2866       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2867       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2868       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2869         >/dev/null 2>conftest.err &&
2870       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2871       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2872       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2873      # icc doesn't choke on unknown options, it will just issue warnings
2874      # (even with -Werror).  So we grep stderr for any message
2875      # that says an option was ignored.
2876      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2877        am_cv_CC_dependencies_compiler_type=$depmode
2878        break
2879      fi
2880    fi
2881  done
2882
2883  cd ..
2884  rm -rf conftest.dir
2885else
2886  am_cv_CC_dependencies_compiler_type=none
2887fi
2888
2889fi
2890echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2891echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2892CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2893
2894
2895
2896if
2897  test "x$enable_dependency_tracking" != xno \
2898  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2899  am__fastdepCC_TRUE=
2900  am__fastdepCC_FALSE='#'
2901else
2902  am__fastdepCC_TRUE='#'
2903  am__fastdepCC_FALSE=
2904fi
2905
2906
2907ac_ext=c
2908ac_cpp='$CPP $CPPFLAGS'
2909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914# On Suns, sometimes $CPP names a directory.
2915if test -n "$CPP" && test -d "$CPP"; then
2916  CPP=
2917fi
2918if test -z "$CPP"; then
2919  if test "${ac_cv_prog_CPP+set}" = set; then
2920  echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922      # Double quotes because CPP needs to be expanded
2923    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924    do
2925      ac_preproc_ok=false
2926for ac_c_preproc_warn_flag in '' yes
2927do
2928  # Use a header file that comes with gcc, so configuring glibc
2929  # with a fresh cross-compiler works.
2930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931  # <limits.h> exists even on freestanding compilers.
2932  # On the NeXT, cc -E runs the code through the compiler's parser,
2933  # not just through cpp. "Syntax error" is here to catch this case.
2934  cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h.  */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h.  */
2940#ifdef __STDC__
2941# include <limits.h>
2942#else
2943# include <assert.h>
2944#endif
2945		     Syntax error
2946_ACEOF
2947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949  ac_status=$?
2950  grep -v '^ *+' conftest.er1 >conftest.err
2951  rm -f conftest.er1
2952  cat conftest.err >&5
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); } >/dev/null; then
2955  if test -s conftest.err; then
2956    ac_cpp_err=$ac_c_preproc_warn_flag
2957    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958  else
2959    ac_cpp_err=
2960  fi
2961else
2962  ac_cpp_err=yes
2963fi
2964if test -z "$ac_cpp_err"; then
2965  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970  # Broken: fails on valid input.
2971continue
2972fi
2973rm -f conftest.err conftest.$ac_ext
2974
2975  # OK, works on sane cases.  Now check whether non-existent headers
2976  # can be detected and how.
2977  cat >conftest.$ac_ext <<_ACEOF
2978/* confdefs.h.  */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h.  */
2983#include <ac_nonexistent.h>
2984_ACEOF
2985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987  ac_status=$?
2988  grep -v '^ *+' conftest.er1 >conftest.err
2989  rm -f conftest.er1
2990  cat conftest.err >&5
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); } >/dev/null; then
2993  if test -s conftest.err; then
2994    ac_cpp_err=$ac_c_preproc_warn_flag
2995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996  else
2997    ac_cpp_err=
2998  fi
2999else
3000  ac_cpp_err=yes
3001fi
3002if test -z "$ac_cpp_err"; then
3003  # Broken: success on invalid input.
3004continue
3005else
3006  echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
3008
3009  # Passes both tests.
3010ac_preproc_ok=:
3011break
3012fi
3013rm -f conftest.err conftest.$ac_ext
3014
3015done
3016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017rm -f conftest.err conftest.$ac_ext
3018if $ac_preproc_ok; then
3019  break
3020fi
3021
3022    done
3023    ac_cv_prog_CPP=$CPP
3024
3025fi
3026  CPP=$ac_cv_prog_CPP
3027else
3028  ac_cv_prog_CPP=$CPP
3029fi
3030echo "$as_me:$LINENO: result: $CPP" >&5
3031echo "${ECHO_T}$CPP" >&6
3032ac_preproc_ok=false
3033for ac_c_preproc_warn_flag in '' yes
3034do
3035  # Use a header file that comes with gcc, so configuring glibc
3036  # with a fresh cross-compiler works.
3037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038  # <limits.h> exists even on freestanding compilers.
3039  # On the NeXT, cc -E runs the code through the compiler's parser,
3040  # not just through cpp. "Syntax error" is here to catch this case.
3041  cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047#ifdef __STDC__
3048# include <limits.h>
3049#else
3050# include <assert.h>
3051#endif
3052		     Syntax error
3053_ACEOF
3054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } >/dev/null; then
3062  if test -s conftest.err; then
3063    ac_cpp_err=$ac_c_preproc_warn_flag
3064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065  else
3066    ac_cpp_err=
3067  fi
3068else
3069  ac_cpp_err=yes
3070fi
3071if test -z "$ac_cpp_err"; then
3072  :
3073else
3074  echo "$as_me: failed program was:" >&5
3075sed 's/^/| /' conftest.$ac_ext >&5
3076
3077  # Broken: fails on valid input.
3078continue
3079fi
3080rm -f conftest.err conftest.$ac_ext
3081
3082  # OK, works on sane cases.  Now check whether non-existent headers
3083  # can be detected and how.
3084  cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h.  */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h.  */
3090#include <ac_nonexistent.h>
3091_ACEOF
3092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } >/dev/null; then
3100  if test -s conftest.err; then
3101    ac_cpp_err=$ac_c_preproc_warn_flag
3102    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103  else
3104    ac_cpp_err=
3105  fi
3106else
3107  ac_cpp_err=yes
3108fi
3109if test -z "$ac_cpp_err"; then
3110  # Broken: success on invalid input.
3111continue
3112else
3113  echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116  # Passes both tests.
3117ac_preproc_ok=:
3118break
3119fi
3120rm -f conftest.err conftest.$ac_ext
3121
3122done
3123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124rm -f conftest.err conftest.$ac_ext
3125if $ac_preproc_ok; then
3126  :
3127else
3128  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129See \`config.log' for more details." >&5
3130echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131See \`config.log' for more details." >&2;}
3132   { (exit 1); exit 1; }; }
3133fi
3134
3135ac_ext=c
3136ac_cpp='$CPP $CPPFLAGS'
3137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141if test -n "$ac_tool_prefix"; then
3142  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146if test "${ac_cv_prog_RANLIB+set}" = set; then
3147  echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149  if test -n "$RANLIB"; then
3150  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157  for ac_exec_ext in '' $ac_executable_extensions; do
3158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161    break 2
3162  fi
3163done
3164done
3165
3166fi
3167fi
3168RANLIB=$ac_cv_prog_RANLIB
3169if test -n "$RANLIB"; then
3170  echo "$as_me:$LINENO: result: $RANLIB" >&5
3171echo "${ECHO_T}$RANLIB" >&6
3172else
3173  echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
3175fi
3176
3177fi
3178if test -z "$ac_cv_prog_RANLIB"; then
3179  ac_ct_RANLIB=$RANLIB
3180  # Extract the first word of "ranlib", so it can be a program name with args.
3181set dummy ranlib; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3185  echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187  if test -n "$ac_ct_RANLIB"; then
3188  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195  for ac_exec_ext in '' $ac_executable_extensions; do
3196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_ac_ct_RANLIB="ranlib"
3198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202done
3203
3204  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3205fi
3206fi
3207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3208if test -n "$ac_ct_RANLIB"; then
3209  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3210echo "${ECHO_T}$ac_ct_RANLIB" >&6
3211else
3212  echo "$as_me:$LINENO: result: no" >&5
3213echo "${ECHO_T}no" >&6
3214fi
3215
3216  RANLIB=$ac_ct_RANLIB
3217else
3218  RANLIB="$ac_cv_prog_RANLIB"
3219fi
3220
3221
3222
3223for ac_prog in perl5 perl
3224do
3225  # Extract the first word of "$ac_prog", so it can be a program name with args.
3226set dummy $ac_prog; ac_word=$2
3227echo "$as_me:$LINENO: checking for $ac_word" >&5
3228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229if test "${ac_cv_path_PERL+set}" = set; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232  case $PERL in
3233  [\\/]* | ?:[\\/]*)
3234  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3235  ;;
3236  *)
3237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240  IFS=$as_save_IFS
3241  test -z "$as_dir" && as_dir=.
3242  for ac_exec_ext in '' $ac_executable_extensions; do
3243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249done
3250
3251  ;;
3252esac
3253fi
3254PERL=$ac_cv_path_PERL
3255
3256if test -n "$PERL"; then
3257  echo "$as_me:$LINENO: result: $PERL" >&5
3258echo "${ECHO_T}$PERL" >&6
3259else
3260  echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
3262fi
3263
3264  test -n "$PERL" && break
3265done
3266test -n "$PERL" || PERL="no"
3267
3268# Extract the first word of "pod2man", so it can be a program name with args.
3269set dummy pod2man; ac_word=$2
3270echo "$as_me:$LINENO: checking for $ac_word" >&5
3271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272if test "${ac_cv_path_POD2MAN+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  case $POD2MAN in
3276  [\\/]* | ?:[\\/]*)
3277  ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
3278  ;;
3279  *)
3280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285  for ac_exec_ext in '' $ac_executable_extensions; do
3286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
3288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292done
3293
3294  test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
3295  ;;
3296esac
3297fi
3298POD2MAN=$ac_cv_path_POD2MAN
3299
3300if test -n "$POD2MAN"; then
3301  echo "$as_me:$LINENO: result: $POD2MAN" >&5
3302echo "${ECHO_T}$POD2MAN" >&6
3303else
3304  echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308
3309all_libraries="$all_libraries $USER_LDFLAGS"
3310all_includes="$all_includes $USER_INCLUDES"
3311
3312
3313
3314ALL_LINGUAS="it sk"
3315
3316        MKINSTALLDIRS=
3317  if test -n "$ac_aux_dir"; then
3318    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3319  fi
3320  if test -z "$MKINSTALLDIRS"; then
3321    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3322  fi
3323
3324
3325
3326
3327
3328        # Extract the first word of "msgfmt", so it can be a program name with args.
3329set dummy msgfmt; ac_word=$2
3330echo "$as_me:$LINENO: checking for $ac_word" >&5
3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332if test "${ac_cv_path_MSGFMT+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  case "$MSGFMT" in
3336  /*)
3337  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3338  ;;
3339  *)
3340  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3341  for ac_dir in $PATH; do
3342    test -z "$ac_dir" && ac_dir=.
3343    if test -f $ac_dir/$ac_word; then
3344      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3345     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3346	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3347	break
3348      fi
3349    fi
3350  done
3351  IFS="$ac_save_ifs"
3352  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3353  ;;
3354esac
3355fi
3356MSGFMT="$ac_cv_path_MSGFMT"
3357if test "$MSGFMT" != ":"; then
3358  echo "$as_me:$LINENO: result: $MSGFMT" >&5
3359echo "${ECHO_T}$MSGFMT" >&6
3360else
3361  echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363fi
3364
3365  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3366set dummy gmsgfmt; ac_word=$2
3367echo "$as_me:$LINENO: checking for $ac_word" >&5
3368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369if test "${ac_cv_path_GMSGFMT+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372  case $GMSGFMT in
3373  [\\/]* | ?:[\\/]*)
3374  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3375  ;;
3376  *)
3377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  test -z "$as_dir" && as_dir=.
3382  for ac_exec_ext in '' $ac_executable_extensions; do
3383  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386    break 2
3387  fi
3388done
3389done
3390
3391  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3392  ;;
3393esac
3394fi
3395GMSGFMT=$ac_cv_path_GMSGFMT
3396
3397if test -n "$GMSGFMT"; then
3398  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3399echo "${ECHO_T}$GMSGFMT" >&6
3400else
3401  echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405
3406        # Extract the first word of "xgettext", so it can be a program name with args.
3407set dummy xgettext; ac_word=$2
3408echo "$as_me:$LINENO: checking for $ac_word" >&5
3409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410if test "${ac_cv_path_XGETTEXT+set}" = set; then
3411  echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413  case "$XGETTEXT" in
3414  /*)
3415  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3416  ;;
3417  *)
3418  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3419  for ac_dir in $PATH; do
3420    test -z "$ac_dir" && ac_dir=.
3421    if test -f $ac_dir/$ac_word; then
3422      if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3423     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3424	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3425	break
3426      fi
3427    fi
3428  done
3429  IFS="$ac_save_ifs"
3430  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3431  ;;
3432esac
3433fi
3434XGETTEXT="$ac_cv_path_XGETTEXT"
3435if test "$XGETTEXT" != ":"; then
3436  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3437echo "${ECHO_T}$XGETTEXT" >&6
3438else
3439  echo "$as_me:$LINENO: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441fi
3442
3443    rm -f messages.po
3444
3445    # Extract the first word of "msgmerge", so it can be a program name with args.
3446set dummy msgmerge; ac_word=$2
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_path_MSGMERGE+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  case "$MSGMERGE" in
3453  /*)
3454  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3455  ;;
3456  *)
3457  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3458  for ac_dir in $PATH; do
3459    test -z "$ac_dir" && ac_dir=.
3460    if test -f $ac_dir/$ac_word; then
3461      if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3462	ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
3463	break
3464      fi
3465    fi
3466  done
3467  IFS="$ac_save_ifs"
3468  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3469  ;;
3470esac
3471fi
3472MSGMERGE="$ac_cv_path_MSGMERGE"
3473if test "$MSGMERGE" != ":"; then
3474  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3475echo "${ECHO_T}$MSGMERGE" >&6
3476else
3477  echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6
3479fi
3480
3481
3482      if test "$GMSGFMT" != ":"; then
3483            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3484       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3485      : ;
3486    else
3487      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3488      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3489echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3490      GMSGFMT=":"
3491    fi
3492  fi
3493
3494      if test "$XGETTEXT" != ":"; then
3495            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3496       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3497      : ;
3498    else
3499      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3500echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3501      XGETTEXT=":"
3502    fi
3503        rm -f messages.po
3504  fi
3505
3506            ac_config_commands="$ac_config_commands default-1"
3507
3508
3509
3510      if test "X$prefix" = "XNONE"; then
3511    acl_final_prefix="$ac_default_prefix"
3512  else
3513    acl_final_prefix="$prefix"
3514  fi
3515  if test "X$exec_prefix" = "XNONE"; then
3516    acl_final_exec_prefix='${prefix}'
3517  else
3518    acl_final_exec_prefix="$exec_prefix"
3519  fi
3520  acl_save_prefix="$prefix"
3521  prefix="$acl_final_prefix"
3522  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3523  prefix="$acl_save_prefix"
3524
3525
3526# Check whether --with-gnu-ld or --without-gnu-ld was given.
3527if test "${with_gnu_ld+set}" = set; then
3528  withval="$with_gnu_ld"
3529  test "$withval" = no || with_gnu_ld=yes
3530else
3531  with_gnu_ld=no
3532fi;
3533ac_prog=ld
3534if test "$GCC" = yes; then
3535  # Check if gcc -print-prog-name=ld gives a path.
3536  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3537echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3538  case $host in
3539  *-*-mingw*)
3540    # gcc leaves a trailing carriage return which upsets mingw
3541    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3542  *)
3543    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3544  esac
3545  case $ac_prog in
3546    # Accept absolute paths.
3547    [\\/]* | [A-Za-z]:[\\/]*)
3548      re_direlt='/[^/][^/]*/\.\./'
3549      # Canonicalize the path of ld
3550      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3551      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3552	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3553      done
3554      test -z "$LD" && LD="$ac_prog"
3555      ;;
3556  "")
3557    # If it fails, then pretend we aren't using GCC.
3558    ac_prog=ld
3559    ;;
3560  *)
3561    # If it is relative, then search for the first ld in PATH.
3562    with_gnu_ld=unknown
3563    ;;
3564  esac
3565elif test "$with_gnu_ld" = yes; then
3566  echo "$as_me:$LINENO: checking for GNU ld" >&5
3567echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3568else
3569  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3570echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3571fi
3572if test "${acl_cv_path_LD+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  if test -z "$LD"; then
3576  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3577  for ac_dir in $PATH; do
3578    test -z "$ac_dir" && ac_dir=.
3579    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3580      acl_cv_path_LD="$ac_dir/$ac_prog"
3581      # Check to see if the program is GNU ld.  I'd rather use --version,
3582      # but apparently some GNU ld's only accept -v.
3583      # Break only if it was the GNU/non-GNU ld that we prefer.
3584      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3585	test "$with_gnu_ld" != no && break
3586      else
3587	test "$with_gnu_ld" != yes && break
3588      fi
3589    fi
3590  done
3591  IFS="$ac_save_ifs"
3592else
3593  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3594fi
3595fi
3596
3597LD="$acl_cv_path_LD"
3598if test -n "$LD"; then
3599  echo "$as_me:$LINENO: result: $LD" >&5
3600echo "${ECHO_T}$LD" >&6
3601else
3602  echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604fi
3605test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3606echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3607   { (exit 1); exit 1; }; }
3608echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3609echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3610if test "${acl_cv_prog_gnu_ld+set}" = set; then
3611  echo $ECHO_N "(cached) $ECHO_C" >&6
3612else
3613  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3614if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3615  acl_cv_prog_gnu_ld=yes
3616else
3617  acl_cv_prog_gnu_ld=no
3618fi
3619fi
3620echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3621echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3622with_gnu_ld=$acl_cv_prog_gnu_ld
3623
3624
3625
3626                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3627echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3628if test "${acl_cv_rpath+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631
3632    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3633    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3634    . ./conftest.sh
3635    rm -f ./conftest.sh
3636    acl_cv_rpath=done
3637
3638fi
3639echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3640echo "${ECHO_T}$acl_cv_rpath" >&6
3641  wl="$acl_cv_wl"
3642  libext="$acl_cv_libext"
3643  shlibext="$acl_cv_shlibext"
3644  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3645  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3646  hardcode_direct="$acl_cv_hardcode_direct"
3647  hardcode_minus_L="$acl_cv_hardcode_minus_L"
3648  sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
3649  sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
3650    # Check whether --enable-rpath or --disable-rpath was given.
3651if test "${enable_rpath+set}" = set; then
3652  enableval="$enable_rpath"
3653  :
3654else
3655  enable_rpath=yes
3656fi;
3657
3658
3659
3660
3661
3662
3663
3664    use_additional=yes
3665
3666  acl_save_prefix="$prefix"
3667  prefix="$acl_final_prefix"
3668  acl_save_exec_prefix="$exec_prefix"
3669  exec_prefix="$acl_final_exec_prefix"
3670
3671    eval additional_includedir=\"$includedir\"
3672    eval additional_libdir=\"$libdir\"
3673
3674  exec_prefix="$acl_save_exec_prefix"
3675  prefix="$acl_save_prefix"
3676
3677
3678# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3679if test "${with_libiconv_prefix+set}" = set; then
3680  withval="$with_libiconv_prefix"
3681
3682    if test "X$withval" = "Xno"; then
3683      use_additional=no
3684    else
3685      if test "X$withval" = "X"; then
3686
3687  acl_save_prefix="$prefix"
3688  prefix="$acl_final_prefix"
3689  acl_save_exec_prefix="$exec_prefix"
3690  exec_prefix="$acl_final_exec_prefix"
3691
3692          eval additional_includedir=\"$includedir\"
3693          eval additional_libdir=\"$libdir\"
3694
3695  exec_prefix="$acl_save_exec_prefix"
3696  prefix="$acl_save_prefix"
3697
3698      else
3699        additional_includedir="$withval/include"
3700        additional_libdir="$withval/lib"
3701      fi
3702    fi
3703
3704fi;
3705      LIBICONV=
3706  LTLIBICONV=
3707  INCICONV=
3708  rpathdirs=
3709  ltrpathdirs=
3710  names_already_handled=
3711  names_next_round='iconv '
3712  while test -n "$names_next_round"; do
3713    names_this_round="$names_next_round"
3714    names_next_round=
3715    for name in $names_this_round; do
3716      already_handled=
3717      for n in $names_already_handled; do
3718        if test "$n" = "$name"; then
3719          already_handled=yes
3720          break
3721        fi
3722      done
3723      if test -z "$already_handled"; then
3724        names_already_handled="$names_already_handled $name"
3725                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3726        eval value=\"\$HAVE_LIB$uppername\"
3727        if test -n "$value"; then
3728          if test "$value" = yes; then
3729            eval value=\"\$LIB$uppername\"
3730            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3731            eval value=\"\$LTLIB$uppername\"
3732            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3733          else
3734                                    :
3735          fi
3736        else
3737                              found_dir=
3738          found_la=
3739          found_so=
3740          found_a=
3741          if test $use_additional = yes; then
3742            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3743              found_dir="$additional_libdir"
3744              found_so="$additional_libdir/lib$name.$shlibext"
3745              if test -f "$additional_libdir/lib$name.la"; then
3746                found_la="$additional_libdir/lib$name.la"
3747              fi
3748            else
3749              if test -f "$additional_libdir/lib$name.$libext"; then
3750                found_dir="$additional_libdir"
3751                found_a="$additional_libdir/lib$name.$libext"
3752                if test -f "$additional_libdir/lib$name.la"; then
3753                  found_la="$additional_libdir/lib$name.la"
3754                fi
3755              fi
3756            fi
3757          fi
3758          if test "X$found_dir" = "X"; then
3759            for x in $LDFLAGS $LTLIBICONV; do
3760
3761  acl_save_prefix="$prefix"
3762  prefix="$acl_final_prefix"
3763  acl_save_exec_prefix="$exec_prefix"
3764  exec_prefix="$acl_final_exec_prefix"
3765  eval x=\"$x\"
3766  exec_prefix="$acl_save_exec_prefix"
3767  prefix="$acl_save_prefix"
3768
3769              case "$x" in
3770                -L*)
3771                  dir=`echo "X$x" | sed -e 's/^X-L//'`
3772                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3773                    found_dir="$dir"
3774                    found_so="$dir/lib$name.$shlibext"
3775                    if test -f "$dir/lib$name.la"; then
3776                      found_la="$dir/lib$name.la"
3777                    fi
3778                  else
3779                    if test -f "$dir/lib$name.$libext"; then
3780                      found_dir="$dir"
3781                      found_a="$dir/lib$name.$libext"
3782                      if test -f "$dir/lib$name.la"; then
3783                        found_la="$dir/lib$name.la"
3784                      fi
3785                    fi
3786                  fi
3787                  ;;
3788              esac
3789              if test "X$found_dir" != "X"; then
3790                break
3791              fi
3792            done
3793          fi
3794          if test "X$found_dir" != "X"; then
3795                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3796            if test "X$found_so" != "X"; then
3797                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3798                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3799              else
3800                                                                                haveit=
3801                for x in $ltrpathdirs; do
3802                  if test "X$x" = "X$found_dir"; then
3803                    haveit=yes
3804                    break
3805                  fi
3806                done
3807                if test -z "$haveit"; then
3808                  ltrpathdirs="$ltrpathdirs $found_dir"
3809                fi
3810                                if test "$hardcode_direct" = yes; then
3811                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3812                else
3813                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3814                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3815                                                            haveit=
3816                    for x in $rpathdirs; do
3817                      if test "X$x" = "X$found_dir"; then
3818                        haveit=yes
3819                        break
3820                      fi
3821                    done
3822                    if test -z "$haveit"; then
3823                      rpathdirs="$rpathdirs $found_dir"
3824                    fi
3825                  else
3826                                                                                haveit=
3827                    for x in $LDFLAGS $LIBICONV; do
3828
3829  acl_save_prefix="$prefix"
3830  prefix="$acl_final_prefix"
3831  acl_save_exec_prefix="$exec_prefix"
3832  exec_prefix="$acl_final_exec_prefix"
3833  eval x=\"$x\"
3834  exec_prefix="$acl_save_exec_prefix"
3835  prefix="$acl_save_prefix"
3836
3837                      if test "X$x" = "X-L$found_dir"; then
3838                        haveit=yes
3839                        break
3840                      fi
3841                    done
3842                    if test -z "$haveit"; then
3843                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3844                    fi
3845                    if test "$hardcode_minus_L" != no; then
3846                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3847                    else
3848                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3849                    fi
3850                  fi
3851                fi
3852              fi
3853            else
3854              if test "X$found_a" != "X"; then
3855                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3856              else
3857                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3858              fi
3859            fi
3860                        additional_includedir=
3861            case "$found_dir" in
3862              */lib | */lib/)
3863                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3864                additional_includedir="$basedir/include"
3865                ;;
3866            esac
3867            if test "X$additional_includedir" != "X"; then
3868                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
3869                haveit=
3870                if test "X$additional_includedir" = "X/usr/local/include"; then
3871                  if test -n "$GCC"; then
3872                    case $host_os in
3873                      linux*) haveit=yes;;
3874                    esac
3875                  fi
3876                fi
3877                if test -z "$haveit"; then
3878                  for x in $CPPFLAGS $INCICONV; do
3879
3880  acl_save_prefix="$prefix"
3881  prefix="$acl_final_prefix"
3882  acl_save_exec_prefix="$exec_prefix"
3883  exec_prefix="$acl_final_exec_prefix"
3884  eval x=\"$x\"
3885  exec_prefix="$acl_save_exec_prefix"
3886  prefix="$acl_save_prefix"
3887
3888                    if test "X$x" = "X-I$additional_includedir"; then
3889                      haveit=yes
3890                      break
3891                    fi
3892                  done
3893                  if test -z "$haveit"; then
3894                    if test -d "$additional_includedir"; then
3895                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3896                    fi
3897                  fi
3898                fi
3899              fi
3900            fi
3901                        if test -n "$found_la"; then
3902                                                        save_libdir="$libdir"
3903              case "$found_la" in
3904                */* | *\\*) . "$found_la" ;;
3905                *) . "./$found_la" ;;
3906              esac
3907              libdir="$save_libdir"
3908                            for dep in $dependency_libs; do
3909                case "$dep" in
3910                  -L*)
3911                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3912                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
3913                      haveit=
3914                      if test "X$additional_libdir" = "X/usr/local/lib"; then
3915                        if test -n "$GCC"; then
3916                          case $host_os in
3917                            linux*) haveit=yes;;
3918                          esac
3919                        fi
3920                      fi
3921                      if test -z "$haveit"; then
3922                        haveit=
3923                        for x in $LDFLAGS $LIBICONV; do
3924
3925  acl_save_prefix="$prefix"
3926  prefix="$acl_final_prefix"
3927  acl_save_exec_prefix="$exec_prefix"
3928  exec_prefix="$acl_final_exec_prefix"
3929  eval x=\"$x\"
3930  exec_prefix="$acl_save_exec_prefix"
3931  prefix="$acl_save_prefix"
3932
3933                          if test "X$x" = "X-L$additional_libdir"; then
3934                            haveit=yes
3935                            break
3936                          fi
3937                        done
3938                        if test -z "$haveit"; then
3939                          if test -d "$additional_libdir"; then
3940                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3941                          fi
3942                        fi
3943                        haveit=
3944                        for x in $LDFLAGS $LTLIBICONV; do
3945
3946  acl_save_prefix="$prefix"
3947  prefix="$acl_final_prefix"
3948  acl_save_exec_prefix="$exec_prefix"
3949  exec_prefix="$acl_final_exec_prefix"
3950  eval x=\"$x\"
3951  exec_prefix="$acl_save_exec_prefix"
3952  prefix="$acl_save_prefix"
3953
3954                          if test "X$x" = "X-L$additional_libdir"; then
3955                            haveit=yes
3956                            break
3957                          fi
3958                        done
3959                        if test -z "$haveit"; then
3960                          if test -d "$additional_libdir"; then
3961                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3962                          fi
3963                        fi
3964                      fi
3965                    fi
3966                    ;;
3967                  -R*)
3968                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
3969                    if test "$enable_rpath" != no; then
3970                                                                  haveit=
3971                      for x in $rpathdirs; do
3972                        if test "X$x" = "X$dir"; then
3973                          haveit=yes
3974                          break
3975                        fi
3976                      done
3977                      if test -z "$haveit"; then
3978                        rpathdirs="$rpathdirs $dir"
3979                      fi
3980                                                                  haveit=
3981                      for x in $ltrpathdirs; do
3982                        if test "X$x" = "X$dir"; then
3983                          haveit=yes
3984                          break
3985                        fi
3986                      done
3987                      if test -z "$haveit"; then
3988                        ltrpathdirs="$ltrpathdirs $dir"
3989                      fi
3990                    fi
3991                    ;;
3992                  -l*)
3993                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3994                    ;;
3995                  *.la)
3996                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3997                    ;;
3998                  *)
3999                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4000                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4001                    ;;
4002                esac
4003              done
4004            fi
4005          else
4006                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4007            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4008          fi
4009        fi
4010      fi
4011    done
4012  done
4013  if test "X$rpathdirs" != "X"; then
4014    if test -n "$hardcode_libdir_separator"; then
4015                        alldirs=
4016      for found_dir in $rpathdirs; do
4017        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4018      done
4019            acl_save_libdir="$libdir"
4020      libdir="$alldirs"
4021      eval flag=\"$hardcode_libdir_flag_spec\"
4022      libdir="$acl_save_libdir"
4023      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4024    else
4025            for found_dir in $rpathdirs; do
4026        acl_save_libdir="$libdir"
4027        libdir="$found_dir"
4028        eval flag=\"$hardcode_libdir_flag_spec\"
4029        libdir="$acl_save_libdir"
4030        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4031      done
4032    fi
4033  fi
4034  if test "X$ltrpathdirs" != "X"; then
4035            for found_dir in $ltrpathdirs; do
4036      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4037    done
4038  fi
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4058echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4059    # Check whether --enable-nls or --disable-nls was given.
4060if test "${enable_nls+set}" = set; then
4061  enableval="$enable_nls"
4062  USE_NLS=$enableval
4063else
4064  USE_NLS=yes
4065fi;
4066  echo "$as_me:$LINENO: result: $USE_NLS" >&5
4067echo "${ECHO_T}$USE_NLS" >&6
4068
4069
4070
4071  LIBINTL=
4072  LTLIBINTL=
4073  POSUB=
4074
4075    if test "$USE_NLS" = "yes"; then
4076    gt_use_preinstalled_gnugettext=no
4077
4078
4079
4080
4081
4082
4083        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4084echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
4085if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
4086  echo $ECHO_N "(cached) $ECHO_C" >&6
4087else
4088  cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h.  */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h.  */
4094#include <libintl.h>
4095extern int _nl_msg_cat_cntr;
4096extern int *_nl_domain_bindings;
4097int
4098main ()
4099{
4100bindtextdomain ("", "");
4101return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext conftest$ac_exeext
4107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108  (eval $ac_link) 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } &&
4115	 { ac_try='test -z "$ac_c_werror_flag"
4116			 || test ! -s conftest.err'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; } &&
4122	 { ac_try='test -s conftest$ac_exeext'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; }; then
4128  gt_cv_func_gnugettext2_libc=yes
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133gt_cv_func_gnugettext2_libc=no
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136      conftest$ac_exeext conftest.$ac_ext
4137fi
4138echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
4139echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
4140
4141        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
4142
4143
4144
4145
4146
4147          am_save_CPPFLAGS="$CPPFLAGS"
4148
4149  for element in $INCICONV; do
4150    haveit=
4151    for x in $CPPFLAGS; do
4152
4153  acl_save_prefix="$prefix"
4154  prefix="$acl_final_prefix"
4155  acl_save_exec_prefix="$exec_prefix"
4156  exec_prefix="$acl_final_exec_prefix"
4157  eval x=\"$x\"
4158  exec_prefix="$acl_save_exec_prefix"
4159  prefix="$acl_save_prefix"
4160
4161      if test "X$x" = "X$element"; then
4162        haveit=yes
4163        break
4164      fi
4165    done
4166    if test -z "$haveit"; then
4167      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4168    fi
4169  done
4170
4171
4172  echo "$as_me:$LINENO: checking for iconv" >&5
4173echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4174if test "${am_cv_func_iconv+set}" = set; then
4175  echo $ECHO_N "(cached) $ECHO_C" >&6
4176else
4177
4178    am_cv_func_iconv="no, consider installing GNU libiconv"
4179    am_cv_lib_iconv=no
4180    cat >conftest.$ac_ext <<_ACEOF
4181/* confdefs.h.  */
4182_ACEOF
4183cat confdefs.h >>conftest.$ac_ext
4184cat >>conftest.$ac_ext <<_ACEOF
4185/* end confdefs.h.  */
4186#include <stdlib.h>
4187#include <iconv.h>
4188int
4189main ()
4190{
4191iconv_t cd = iconv_open("","");
4192       iconv(cd,NULL,NULL,NULL,NULL);
4193       iconv_close(cd);
4194  ;
4195  return 0;
4196}
4197_ACEOF
4198rm -f conftest.$ac_objext conftest$ac_exeext
4199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200  (eval $ac_link) 2>conftest.er1
4201  ac_status=$?
4202  grep -v '^ *+' conftest.er1 >conftest.err
4203  rm -f conftest.er1
4204  cat conftest.err >&5
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); } &&
4207	 { ac_try='test -z "$ac_c_werror_flag"
4208			 || test ! -s conftest.err'
4209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210  (eval $ac_try) 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); }; } &&
4214	 { ac_try='test -s conftest$ac_exeext'
4215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216  (eval $ac_try) 2>&5
4217  ac_status=$?
4218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219  (exit $ac_status); }; }; then
4220  am_cv_func_iconv=yes
4221else
4222  echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225fi
4226rm -f conftest.err conftest.$ac_objext \
4227      conftest$ac_exeext conftest.$ac_ext
4228    if test "$am_cv_func_iconv" != yes; then
4229      am_save_LIBS="$LIBS"
4230      LIBS="$LIBS $LIBICONV"
4231      cat >conftest.$ac_ext <<_ACEOF
4232/* confdefs.h.  */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h.  */
4237#include <stdlib.h>
4238#include <iconv.h>
4239int
4240main ()
4241{
4242iconv_t cd = iconv_open("","");
4243         iconv(cd,NULL,NULL,NULL,NULL);
4244         iconv_close(cd);
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext conftest$ac_exeext
4250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251  (eval $ac_link) 2>conftest.er1
4252  ac_status=$?
4253  grep -v '^ *+' conftest.er1 >conftest.err
4254  rm -f conftest.er1
4255  cat conftest.err >&5
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); } &&
4258	 { ac_try='test -z "$ac_c_werror_flag"
4259			 || test ! -s conftest.err'
4260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261  (eval $ac_try) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }; } &&
4265	 { ac_try='test -s conftest$ac_exeext'
4266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267  (eval $ac_try) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }; }; then
4271  am_cv_lib_iconv=yes
4272        am_cv_func_iconv=yes
4273else
4274  echo "$as_me: failed program was:" >&5
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277fi
4278rm -f conftest.err conftest.$ac_objext \
4279      conftest$ac_exeext conftest.$ac_ext
4280      LIBS="$am_save_LIBS"
4281    fi
4282
4283fi
4284echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4285echo "${ECHO_T}$am_cv_func_iconv" >&6
4286  if test "$am_cv_func_iconv" = yes; then
4287
4288cat >>confdefs.h <<\_ACEOF
4289#define HAVE_ICONV 1
4290_ACEOF
4291
4292  fi
4293  if test "$am_cv_lib_iconv" = yes; then
4294    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
4295echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
4296    echo "$as_me:$LINENO: result: $LIBICONV" >&5
4297echo "${ECHO_T}$LIBICONV" >&6
4298  else
4299            CPPFLAGS="$am_save_CPPFLAGS"
4300    LIBICONV=
4301    LTLIBICONV=
4302  fi
4303
4304
4305
4306
4307
4308
4309    use_additional=yes
4310
4311  acl_save_prefix="$prefix"
4312  prefix="$acl_final_prefix"
4313  acl_save_exec_prefix="$exec_prefix"
4314  exec_prefix="$acl_final_exec_prefix"
4315
4316    eval additional_includedir=\"$includedir\"
4317    eval additional_libdir=\"$libdir\"
4318
4319  exec_prefix="$acl_save_exec_prefix"
4320  prefix="$acl_save_prefix"
4321
4322
4323# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
4324if test "${with_libintl_prefix+set}" = set; then
4325  withval="$with_libintl_prefix"
4326
4327    if test "X$withval" = "Xno"; then
4328      use_additional=no
4329    else
4330      if test "X$withval" = "X"; then
4331
4332  acl_save_prefix="$prefix"
4333  prefix="$acl_final_prefix"
4334  acl_save_exec_prefix="$exec_prefix"
4335  exec_prefix="$acl_final_exec_prefix"
4336
4337          eval additional_includedir=\"$includedir\"
4338          eval additional_libdir=\"$libdir\"
4339
4340  exec_prefix="$acl_save_exec_prefix"
4341  prefix="$acl_save_prefix"
4342
4343      else
4344        additional_includedir="$withval/include"
4345        additional_libdir="$withval/lib"
4346      fi
4347    fi
4348
4349fi;
4350      LIBINTL=
4351  LTLIBINTL=
4352  INCINTL=
4353  rpathdirs=
4354  ltrpathdirs=
4355  names_already_handled=
4356  names_next_round='intl '
4357  while test -n "$names_next_round"; do
4358    names_this_round="$names_next_round"
4359    names_next_round=
4360    for name in $names_this_round; do
4361      already_handled=
4362      for n in $names_already_handled; do
4363        if test "$n" = "$name"; then
4364          already_handled=yes
4365          break
4366        fi
4367      done
4368      if test -z "$already_handled"; then
4369        names_already_handled="$names_already_handled $name"
4370                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4371        eval value=\"\$HAVE_LIB$uppername\"
4372        if test -n "$value"; then
4373          if test "$value" = yes; then
4374            eval value=\"\$LIB$uppername\"
4375            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4376            eval value=\"\$LTLIB$uppername\"
4377            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4378          else
4379                                    :
4380          fi
4381        else
4382                              found_dir=
4383          found_la=
4384          found_so=
4385          found_a=
4386          if test $use_additional = yes; then
4387            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4388              found_dir="$additional_libdir"
4389              found_so="$additional_libdir/lib$name.$shlibext"
4390              if test -f "$additional_libdir/lib$name.la"; then
4391                found_la="$additional_libdir/lib$name.la"
4392              fi
4393            else
4394              if test -f "$additional_libdir/lib$name.$libext"; then
4395                found_dir="$additional_libdir"
4396                found_a="$additional_libdir/lib$name.$libext"
4397                if test -f "$additional_libdir/lib$name.la"; then
4398                  found_la="$additional_libdir/lib$name.la"
4399                fi
4400              fi
4401            fi
4402          fi
4403          if test "X$found_dir" = "X"; then
4404            for x in $LDFLAGS $LTLIBINTL; do
4405
4406  acl_save_prefix="$prefix"
4407  prefix="$acl_final_prefix"
4408  acl_save_exec_prefix="$exec_prefix"
4409  exec_prefix="$acl_final_exec_prefix"
4410  eval x=\"$x\"
4411  exec_prefix="$acl_save_exec_prefix"
4412  prefix="$acl_save_prefix"
4413
4414              case "$x" in
4415                -L*)
4416                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4417                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4418                    found_dir="$dir"
4419                    found_so="$dir/lib$name.$shlibext"
4420                    if test -f "$dir/lib$name.la"; then
4421                      found_la="$dir/lib$name.la"
4422                    fi
4423                  else
4424                    if test -f "$dir/lib$name.$libext"; then
4425                      found_dir="$dir"
4426                      found_a="$dir/lib$name.$libext"
4427                      if test -f "$dir/lib$name.la"; then
4428                        found_la="$dir/lib$name.la"
4429                      fi
4430                    fi
4431                  fi
4432                  ;;
4433              esac
4434              if test "X$found_dir" != "X"; then
4435                break
4436              fi
4437            done
4438          fi
4439          if test "X$found_dir" != "X"; then
4440                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4441            if test "X$found_so" != "X"; then
4442                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4443                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4444              else
4445                                                                                haveit=
4446                for x in $ltrpathdirs; do
4447                  if test "X$x" = "X$found_dir"; then
4448                    haveit=yes
4449                    break
4450                  fi
4451                done
4452                if test -z "$haveit"; then
4453                  ltrpathdirs="$ltrpathdirs $found_dir"
4454                fi
4455                                if test "$hardcode_direct" = yes; then
4456                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4457                else
4458                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4459                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4460                                                            haveit=
4461                    for x in $rpathdirs; do
4462                      if test "X$x" = "X$found_dir"; then
4463                        haveit=yes
4464                        break
4465                      fi
4466                    done
4467                    if test -z "$haveit"; then
4468                      rpathdirs="$rpathdirs $found_dir"
4469                    fi
4470                  else
4471                                                                                haveit=
4472                    for x in $LDFLAGS $LIBINTL; do
4473
4474  acl_save_prefix="$prefix"
4475  prefix="$acl_final_prefix"
4476  acl_save_exec_prefix="$exec_prefix"
4477  exec_prefix="$acl_final_exec_prefix"
4478  eval x=\"$x\"
4479  exec_prefix="$acl_save_exec_prefix"
4480  prefix="$acl_save_prefix"
4481
4482                      if test "X$x" = "X-L$found_dir"; then
4483                        haveit=yes
4484                        break
4485                      fi
4486                    done
4487                    if test -z "$haveit"; then
4488                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4489                    fi
4490                    if test "$hardcode_minus_L" != no; then
4491                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4492                    else
4493                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4494                    fi
4495                  fi
4496                fi
4497              fi
4498            else
4499              if test "X$found_a" != "X"; then
4500                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4501              else
4502                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4503              fi
4504            fi
4505                        additional_includedir=
4506            case "$found_dir" in
4507              */lib | */lib/)
4508                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4509                additional_includedir="$basedir/include"
4510                ;;
4511            esac
4512            if test "X$additional_includedir" != "X"; then
4513                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4514                haveit=
4515                if test "X$additional_includedir" = "X/usr/local/include"; then
4516                  if test -n "$GCC"; then
4517                    case $host_os in
4518                      linux*) haveit=yes;;
4519                    esac
4520                  fi
4521                fi
4522                if test -z "$haveit"; then
4523                  for x in $CPPFLAGS $INCINTL; do
4524
4525  acl_save_prefix="$prefix"
4526  prefix="$acl_final_prefix"
4527  acl_save_exec_prefix="$exec_prefix"
4528  exec_prefix="$acl_final_exec_prefix"
4529  eval x=\"$x\"
4530  exec_prefix="$acl_save_exec_prefix"
4531  prefix="$acl_save_prefix"
4532
4533                    if test "X$x" = "X-I$additional_includedir"; then
4534                      haveit=yes
4535                      break
4536                    fi
4537                  done
4538                  if test -z "$haveit"; then
4539                    if test -d "$additional_includedir"; then
4540                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4541                    fi
4542                  fi
4543                fi
4544              fi
4545            fi
4546                        if test -n "$found_la"; then
4547                                                        save_libdir="$libdir"
4548              case "$found_la" in
4549                */* | *\\*) . "$found_la" ;;
4550                *) . "./$found_la" ;;
4551              esac
4552              libdir="$save_libdir"
4553                            for dep in $dependency_libs; do
4554                case "$dep" in
4555                  -L*)
4556                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4557                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
4558                      haveit=
4559                      if test "X$additional_libdir" = "X/usr/local/lib"; then
4560                        if test -n "$GCC"; then
4561                          case $host_os in
4562                            linux*) haveit=yes;;
4563                          esac
4564                        fi
4565                      fi
4566                      if test -z "$haveit"; then
4567                        haveit=
4568                        for x in $LDFLAGS $LIBINTL; do
4569
4570  acl_save_prefix="$prefix"
4571  prefix="$acl_final_prefix"
4572  acl_save_exec_prefix="$exec_prefix"
4573  exec_prefix="$acl_final_exec_prefix"
4574  eval x=\"$x\"
4575  exec_prefix="$acl_save_exec_prefix"
4576  prefix="$acl_save_prefix"
4577
4578                          if test "X$x" = "X-L$additional_libdir"; then
4579                            haveit=yes
4580                            break
4581                          fi
4582                        done
4583                        if test -z "$haveit"; then
4584                          if test -d "$additional_libdir"; then
4585                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4586                          fi
4587                        fi
4588                        haveit=
4589                        for x in $LDFLAGS $LTLIBINTL; do
4590
4591  acl_save_prefix="$prefix"
4592  prefix="$acl_final_prefix"
4593  acl_save_exec_prefix="$exec_prefix"
4594  exec_prefix="$acl_final_exec_prefix"
4595  eval x=\"$x\"
4596  exec_prefix="$acl_save_exec_prefix"
4597  prefix="$acl_save_prefix"
4598
4599                          if test "X$x" = "X-L$additional_libdir"; then
4600                            haveit=yes
4601                            break
4602                          fi
4603                        done
4604                        if test -z "$haveit"; then
4605                          if test -d "$additional_libdir"; then
4606                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4607                          fi
4608                        fi
4609                      fi
4610                    fi
4611                    ;;
4612                  -R*)
4613                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4614                    if test "$enable_rpath" != no; then
4615                                                                  haveit=
4616                      for x in $rpathdirs; do
4617                        if test "X$x" = "X$dir"; then
4618                          haveit=yes
4619                          break
4620                        fi
4621                      done
4622                      if test -z "$haveit"; then
4623                        rpathdirs="$rpathdirs $dir"
4624                      fi
4625                                                                  haveit=
4626                      for x in $ltrpathdirs; do
4627                        if test "X$x" = "X$dir"; then
4628                          haveit=yes
4629                          break
4630                        fi
4631                      done
4632                      if test -z "$haveit"; then
4633                        ltrpathdirs="$ltrpathdirs $dir"
4634                      fi
4635                    fi
4636                    ;;
4637                  -l*)
4638                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4639                    ;;
4640                  *.la)
4641                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4642                    ;;
4643                  *)
4644                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4645                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4646                    ;;
4647                esac
4648              done
4649            fi
4650          else
4651                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4652            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4653          fi
4654        fi
4655      fi
4656    done
4657  done
4658  if test "X$rpathdirs" != "X"; then
4659    if test -n "$hardcode_libdir_separator"; then
4660                        alldirs=
4661      for found_dir in $rpathdirs; do
4662        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4663      done
4664            acl_save_libdir="$libdir"
4665      libdir="$alldirs"
4666      eval flag=\"$hardcode_libdir_flag_spec\"
4667      libdir="$acl_save_libdir"
4668      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4669    else
4670            for found_dir in $rpathdirs; do
4671        acl_save_libdir="$libdir"
4672        libdir="$found_dir"
4673        eval flag=\"$hardcode_libdir_flag_spec\"
4674        libdir="$acl_save_libdir"
4675        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4676      done
4677    fi
4678  fi
4679  if test "X$ltrpathdirs" != "X"; then
4680            for found_dir in $ltrpathdirs; do
4681      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4682    done
4683  fi
4684
4685          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4686echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4687if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  gt_save_CPPFLAGS="$CPPFLAGS"
4691            CPPFLAGS="$CPPFLAGS $INCINTL"
4692            gt_save_LIBS="$LIBS"
4693            LIBS="$LIBS $LIBINTL"
4694                        cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700#include <libintl.h>
4701extern int _nl_msg_cat_cntr;
4702extern
4703#ifdef __cplusplus
4704"C"
4705#endif
4706const char *_nl_expand_alias ();
4707int
4708main ()
4709{
4710bindtextdomain ("", "");
4711return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4712  ;
4713  return 0;
4714}
4715_ACEOF
4716rm -f conftest.$ac_objext conftest$ac_exeext
4717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4718  (eval $ac_link) 2>conftest.er1
4719  ac_status=$?
4720  grep -v '^ *+' conftest.er1 >conftest.err
4721  rm -f conftest.er1
4722  cat conftest.err >&5
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); } &&
4725	 { ac_try='test -z "$ac_c_werror_flag"
4726			 || test ! -s conftest.err'
4727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728  (eval $ac_try) 2>&5
4729  ac_status=$?
4730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731  (exit $ac_status); }; } &&
4732	 { ac_try='test -s conftest$ac_exeext'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; }; then
4738  gt_cv_func_gnugettext2_libintl=yes
4739else
4740  echo "$as_me: failed program was:" >&5
4741sed 's/^/| /' conftest.$ac_ext >&5
4742
4743gt_cv_func_gnugettext2_libintl=no
4744fi
4745rm -f conftest.err conftest.$ac_objext \
4746      conftest$ac_exeext conftest.$ac_ext
4747                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
4748              LIBS="$LIBS $LIBICONV"
4749              cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h.  */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h.  */
4755#include <libintl.h>
4756extern int _nl_msg_cat_cntr;
4757extern
4758#ifdef __cplusplus
4759"C"
4760#endif
4761const char *_nl_expand_alias ();
4762int
4763main ()
4764{
4765bindtextdomain ("", "");
4766return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4767  ;
4768  return 0;
4769}
4770_ACEOF
4771rm -f conftest.$ac_objext conftest$ac_exeext
4772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4773  (eval $ac_link) 2>conftest.er1
4774  ac_status=$?
4775  grep -v '^ *+' conftest.er1 >conftest.err
4776  rm -f conftest.er1
4777  cat conftest.err >&5
4778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779  (exit $ac_status); } &&
4780	 { ac_try='test -z "$ac_c_werror_flag"
4781			 || test ! -s conftest.err'
4782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783  (eval $ac_try) 2>&5
4784  ac_status=$?
4785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786  (exit $ac_status); }; } &&
4787	 { ac_try='test -s conftest$ac_exeext'
4788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789  (eval $ac_try) 2>&5
4790  ac_status=$?
4791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); }; }; then
4793  LIBINTL="$LIBINTL $LIBICONV"
4794                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4795                gt_cv_func_gnugettext2_libintl=yes
4796
4797else
4798  echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
4800
4801fi
4802rm -f conftest.err conftest.$ac_objext \
4803      conftest$ac_exeext conftest.$ac_ext
4804            fi
4805            CPPFLAGS="$gt_save_CPPFLAGS"
4806            LIBS="$gt_save_LIBS"
4807fi
4808echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
4809echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
4810        fi
4811
4812                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
4813           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
4814                && test "$PACKAGE" != gettext; }; then
4815          gt_use_preinstalled_gnugettext=yes
4816        else
4817                    LIBINTL=
4818          LTLIBINTL=
4819          INCINTL=
4820        fi
4821
4822
4823
4824    if test "$gt_use_preinstalled_gnugettext" = "yes" \
4825       || test "$nls_cv_use_gnu_gettext" = "yes"; then
4826
4827cat >>confdefs.h <<\_ACEOF
4828#define ENABLE_NLS 1
4829_ACEOF
4830
4831    else
4832      USE_NLS=no
4833    fi
4834  fi
4835
4836  if test "$USE_NLS" = "yes"; then
4837
4838    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4839      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
4840        echo "$as_me:$LINENO: checking how to link with libintl" >&5
4841echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
4842        echo "$as_me:$LINENO: result: $LIBINTL" >&5
4843echo "${ECHO_T}$LIBINTL" >&6
4844
4845  for element in $INCINTL; do
4846    haveit=
4847    for x in $CPPFLAGS; do
4848
4849  acl_save_prefix="$prefix"
4850  prefix="$acl_final_prefix"
4851  acl_save_exec_prefix="$exec_prefix"
4852  exec_prefix="$acl_final_exec_prefix"
4853  eval x=\"$x\"
4854  exec_prefix="$acl_save_exec_prefix"
4855  prefix="$acl_save_prefix"
4856
4857      if test "X$x" = "X$element"; then
4858        haveit=yes
4859        break
4860      fi
4861    done
4862    if test -z "$haveit"; then
4863      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4864    fi
4865  done
4866
4867      fi
4868
4869
4870cat >>confdefs.h <<\_ACEOF
4871#define HAVE_GETTEXT 1
4872_ACEOF
4873
4874
4875cat >>confdefs.h <<\_ACEOF
4876#define HAVE_DCGETTEXT 1
4877_ACEOF
4878
4879    fi
4880
4881        POSUB=po
4882  fi
4883
4884
4885
4886    INTLLIBS="$LIBINTL"
4887
4888
4889
4890
4891
4892
4893
4894        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4895echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4896if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4897  echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899  ac_check_lib_save_LIBS=$LIBS
4900LIBS="-lcposix  $LIBS"
4901cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h.  */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h.  */
4907
4908/* Override any gcc2 internal prototype to avoid an error.  */
4909#ifdef __cplusplus
4910extern "C"
4911#endif
4912/* We use char because int might match the return type of a gcc2
4913   builtin and then its argument prototype would still apply.  */
4914char strerror ();
4915int
4916main ()
4917{
4918strerror ();
4919  ;
4920  return 0;
4921}
4922_ACEOF
4923rm -f conftest.$ac_objext conftest$ac_exeext
4924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4925  (eval $ac_link) 2>conftest.er1
4926  ac_status=$?
4927  grep -v '^ *+' conftest.er1 >conftest.err
4928  rm -f conftest.er1
4929  cat conftest.err >&5
4930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931  (exit $ac_status); } &&
4932	 { ac_try='test -z "$ac_c_werror_flag"
4933			 || test ! -s conftest.err'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; } &&
4939	 { ac_try='test -s conftest$ac_exeext'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; }; then
4945  ac_cv_lib_cposix_strerror=yes
4946else
4947  echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950ac_cv_lib_cposix_strerror=no
4951fi
4952rm -f conftest.err conftest.$ac_objext \
4953      conftest$ac_exeext conftest.$ac_ext
4954LIBS=$ac_check_lib_save_LIBS
4955fi
4956echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4957echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4958if test $ac_cv_lib_cposix_strerror = yes; then
4959  LIBS="$LIBS -lcposix"
4960fi
4961
4962
4963
4964
4965echo "$as_me:$LINENO: checking for egrep" >&5
4966echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4967if test "${ac_cv_prog_egrep+set}" = set; then
4968  echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4971    then ac_cv_prog_egrep='grep -E'
4972    else ac_cv_prog_egrep='egrep'
4973    fi
4974fi
4975echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4976echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4977 EGREP=$ac_cv_prog_egrep
4978
4979
4980echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4981echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4982if test "${ac_cv_header_stdc+set}" = set; then
4983  echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985  cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991#include <stdlib.h>
4992#include <stdarg.h>
4993#include <string.h>
4994#include <float.h>
4995
4996int
4997main ()
4998{
4999
5000  ;
5001  return 0;
5002}
5003_ACEOF
5004rm -f conftest.$ac_objext
5005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5006  (eval $ac_compile) 2>conftest.er1
5007  ac_status=$?
5008  grep -v '^ *+' conftest.er1 >conftest.err
5009  rm -f conftest.er1
5010  cat conftest.err >&5
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); } &&
5013	 { ac_try='test -z "$ac_c_werror_flag"
5014			 || test ! -s conftest.err'
5015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016  (eval $ac_try) 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; } &&
5020	 { ac_try='test -s conftest.$ac_objext'
5021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5022  (eval $ac_try) 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); }; }; then
5026  ac_cv_header_stdc=yes
5027else
5028  echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031ac_cv_header_stdc=no
5032fi
5033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5034
5035if test $ac_cv_header_stdc = yes; then
5036  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5037  cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h.  */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h.  */
5043#include <string.h>
5044
5045_ACEOF
5046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5047  $EGREP "memchr" >/dev/null 2>&1; then
5048  :
5049else
5050  ac_cv_header_stdc=no
5051fi
5052rm -f conftest*
5053
5054fi
5055
5056if test $ac_cv_header_stdc = yes; then
5057  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5058  cat >conftest.$ac_ext <<_ACEOF
5059/* confdefs.h.  */
5060_ACEOF
5061cat confdefs.h >>conftest.$ac_ext
5062cat >>conftest.$ac_ext <<_ACEOF
5063/* end confdefs.h.  */
5064#include <stdlib.h>
5065
5066_ACEOF
5067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5068  $EGREP "free" >/dev/null 2>&1; then
5069  :
5070else
5071  ac_cv_header_stdc=no
5072fi
5073rm -f conftest*
5074
5075fi
5076
5077if test $ac_cv_header_stdc = yes; then
5078  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5079  if test "$cross_compiling" = yes; then
5080  :
5081else
5082  cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h.  */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h.  */
5088#include <ctype.h>
5089#if ((' ' & 0x0FF) == 0x020)
5090# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5091# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5092#else
5093# define ISLOWER(c) \
5094		   (('a' <= (c) && (c) <= 'i') \
5095		     || ('j' <= (c) && (c) <= 'r') \
5096		     || ('s' <= (c) && (c) <= 'z'))
5097# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5098#endif
5099
5100#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5101int
5102main ()
5103{
5104  int i;
5105  for (i = 0; i < 256; i++)
5106    if (XOR (islower (i), ISLOWER (i))
5107	|| toupper (i) != TOUPPER (i))
5108      exit(2);
5109  exit (0);
5110}
5111_ACEOF
5112rm -f conftest$ac_exeext
5113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5114  (eval $ac_link) 2>&5
5115  ac_status=$?
5116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119  (eval $ac_try) 2>&5
5120  ac_status=$?
5121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); }; }; then
5123  :
5124else
5125  echo "$as_me: program exited with status $ac_status" >&5
5126echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129( exit $ac_status )
5130ac_cv_header_stdc=no
5131fi
5132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5133fi
5134fi
5135fi
5136echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5137echo "${ECHO_T}$ac_cv_header_stdc" >&6
5138if test $ac_cv_header_stdc = yes; then
5139
5140cat >>confdefs.h <<\_ACEOF
5141#define STDC_HEADERS 1
5142_ACEOF
5143
5144fi
5145
5146echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5147echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5148if test "${ac_cv_c_const+set}" = set; then
5149  echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151  cat >conftest.$ac_ext <<_ACEOF
5152/* confdefs.h.  */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h.  */
5157
5158int
5159main ()
5160{
5161/* FIXME: Include the comments suggested by Paul. */
5162#ifndef __cplusplus
5163  /* Ultrix mips cc rejects this.  */
5164  typedef int charset[2];
5165  const charset x;
5166  /* SunOS 4.1.1 cc rejects this.  */
5167  char const *const *ccp;
5168  char **p;
5169  /* NEC SVR4.0.2 mips cc rejects this.  */
5170  struct point {int x, y;};
5171  static struct point const zero = {0,0};
5172  /* AIX XL C 1.02.0.0 rejects this.
5173     It does not let you subtract one const X* pointer from another in
5174     an arm of an if-expression whose if-part is not a constant
5175     expression */
5176  const char *g = "string";
5177  ccp = &g + (g ? g-g : 0);
5178  /* HPUX 7.0 cc rejects these. */
5179  ++ccp;
5180  p = (char**) ccp;
5181  ccp = (char const *const *) p;
5182  { /* SCO 3.2v4 cc rejects this.  */
5183    char *t;
5184    char const *s = 0 ? (char *) 0 : (char const *) 0;
5185
5186    *t++ = 0;
5187  }
5188  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5189    int x[] = {25, 17};
5190    const int *foo = &x[0];
5191    ++foo;
5192  }
5193  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5194    typedef const int *iptr;
5195    iptr p = 0;
5196    ++p;
5197  }
5198  { /* AIX XL C 1.02.0.0 rejects this saying
5199       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5200    struct s { int j; const int *ap[3]; };
5201    struct s *b; b->j = 5;
5202  }
5203  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5204    const int foo = 10;
5205  }
5206#endif
5207
5208  ;
5209  return 0;
5210}
5211_ACEOF
5212rm -f conftest.$ac_objext
5213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214  (eval $ac_compile) 2>conftest.er1
5215  ac_status=$?
5216  grep -v '^ *+' conftest.er1 >conftest.err
5217  rm -f conftest.er1
5218  cat conftest.err >&5
5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220  (exit $ac_status); } &&
5221	 { ac_try='test -z "$ac_c_werror_flag"
5222			 || test ! -s conftest.err'
5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224  (eval $ac_try) 2>&5
5225  ac_status=$?
5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227  (exit $ac_status); }; } &&
5228	 { ac_try='test -s conftest.$ac_objext'
5229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230  (eval $ac_try) 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }; }; then
5234  ac_cv_c_const=yes
5235else
5236  echo "$as_me: failed program was:" >&5
5237sed 's/^/| /' conftest.$ac_ext >&5
5238
5239ac_cv_c_const=no
5240fi
5241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5242fi
5243echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5244echo "${ECHO_T}$ac_cv_c_const" >&6
5245if test $ac_cv_c_const = no; then
5246
5247cat >>confdefs.h <<\_ACEOF
5248#define const
5249_ACEOF
5250
5251fi
5252
5253echo "$as_me:$LINENO: checking for inline" >&5
5254echo $ECHO_N "checking for inline... $ECHO_C" >&6
5255if test "${ac_cv_c_inline+set}" = set; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  ac_cv_c_inline=no
5259for ac_kw in inline __inline__ __inline; do
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#ifndef __cplusplus
5267typedef int foo_t;
5268static $ac_kw foo_t static_foo () {return 0; }
5269$ac_kw foo_t foo () {return 0; }
5270#endif
5271
5272_ACEOF
5273rm -f conftest.$ac_objext
5274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275  (eval $ac_compile) 2>conftest.er1
5276  ac_status=$?
5277  grep -v '^ *+' conftest.er1 >conftest.err
5278  rm -f conftest.er1
5279  cat conftest.err >&5
5280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281  (exit $ac_status); } &&
5282	 { ac_try='test -z "$ac_c_werror_flag"
5283			 || test ! -s conftest.err'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; } &&
5289	 { ac_try='test -s conftest.$ac_objext'
5290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291  (eval $ac_try) 2>&5
5292  ac_status=$?
5293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294  (exit $ac_status); }; }; then
5295  ac_cv_c_inline=$ac_kw; break
5296else
5297  echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
5299
5300fi
5301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5302done
5303
5304fi
5305echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5306echo "${ECHO_T}$ac_cv_c_inline" >&6
5307
5308
5309case $ac_cv_c_inline in
5310  inline | yes) ;;
5311  *)
5312    case $ac_cv_c_inline in
5313      no) ac_val=;;
5314      *) ac_val=$ac_cv_c_inline;;
5315    esac
5316    cat >>confdefs.h <<_ACEOF
5317#ifndef __cplusplus
5318#define inline $ac_val
5319#endif
5320_ACEOF
5321    ;;
5322esac
5323
5324# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5335		  inttypes.h stdint.h unistd.h
5336do
5337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5338echo "$as_me:$LINENO: checking for $ac_header" >&5
5339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5340if eval "test \"\${$as_ac_Header+set}\" = set"; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h.  */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h.  */
5349$ac_includes_default
5350
5351#include <$ac_header>
5352_ACEOF
5353rm -f conftest.$ac_objext
5354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355  (eval $ac_compile) 2>conftest.er1
5356  ac_status=$?
5357  grep -v '^ *+' conftest.er1 >conftest.err
5358  rm -f conftest.er1
5359  cat conftest.err >&5
5360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361  (exit $ac_status); } &&
5362	 { ac_try='test -z "$ac_c_werror_flag"
5363			 || test ! -s conftest.err'
5364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365  (eval $ac_try) 2>&5
5366  ac_status=$?
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); }; } &&
5369	 { ac_try='test -s conftest.$ac_objext'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; }; then
5375  eval "$as_ac_Header=yes"
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380eval "$as_ac_Header=no"
5381fi
5382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5383fi
5384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5386if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387  cat >>confdefs.h <<_ACEOF
5388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389_ACEOF
5390
5391fi
5392
5393done
5394
5395
5396echo "$as_me:$LINENO: checking for off_t" >&5
5397echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5398if test "${ac_cv_type_off_t+set}" = set; then
5399  echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401  cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407$ac_includes_default
5408int
5409main ()
5410{
5411if ((off_t *) 0)
5412  return 0;
5413if (sizeof (off_t))
5414  return 0;
5415  ;
5416  return 0;
5417}
5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421  (eval $ac_compile) 2>conftest.er1
5422  ac_status=$?
5423  grep -v '^ *+' conftest.er1 >conftest.err
5424  rm -f conftest.er1
5425  cat conftest.err >&5
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); } &&
5428	 { ac_try='test -z "$ac_c_werror_flag"
5429			 || test ! -s conftest.err'
5430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431  (eval $ac_try) 2>&5
5432  ac_status=$?
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); }; } &&
5435	 { ac_try='test -s conftest.$ac_objext'
5436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437  (eval $ac_try) 2>&5
5438  ac_status=$?
5439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440  (exit $ac_status); }; }; then
5441  ac_cv_type_off_t=yes
5442else
5443  echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446ac_cv_type_off_t=no
5447fi
5448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5451echo "${ECHO_T}$ac_cv_type_off_t" >&6
5452if test $ac_cv_type_off_t = yes; then
5453  :
5454else
5455
5456cat >>confdefs.h <<_ACEOF
5457#define off_t long
5458_ACEOF
5459
5460fi
5461
5462echo "$as_me:$LINENO: checking for size_t" >&5
5463echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5464if test "${ac_cv_type_size_t+set}" = set; then
5465  echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467  cat >conftest.$ac_ext <<_ACEOF
5468/* confdefs.h.  */
5469_ACEOF
5470cat confdefs.h >>conftest.$ac_ext
5471cat >>conftest.$ac_ext <<_ACEOF
5472/* end confdefs.h.  */
5473$ac_includes_default
5474int
5475main ()
5476{
5477if ((size_t *) 0)
5478  return 0;
5479if (sizeof (size_t))
5480  return 0;
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485rm -f conftest.$ac_objext
5486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487  (eval $ac_compile) 2>conftest.er1
5488  ac_status=$?
5489  grep -v '^ *+' conftest.er1 >conftest.err
5490  rm -f conftest.er1
5491  cat conftest.err >&5
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); } &&
5494	 { ac_try='test -z "$ac_c_werror_flag"
5495			 || test ! -s conftest.err'
5496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497  (eval $ac_try) 2>&5
5498  ac_status=$?
5499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500  (exit $ac_status); }; } &&
5501	 { ac_try='test -s conftest.$ac_objext'
5502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503  (eval $ac_try) 2>&5
5504  ac_status=$?
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); }; }; then
5507  ac_cv_type_size_t=yes
5508else
5509  echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512ac_cv_type_size_t=no
5513fi
5514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5517echo "${ECHO_T}$ac_cv_type_size_t" >&6
5518if test $ac_cv_type_size_t = yes; then
5519  :
5520else
5521
5522cat >>confdefs.h <<_ACEOF
5523#define size_t unsigned
5524_ACEOF
5525
5526fi
5527
5528# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5529# for constant arguments.  Useless!
5530echo "$as_me:$LINENO: checking for working alloca.h" >&5
5531echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5532if test "${ac_cv_working_alloca_h+set}" = set; then
5533  echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535  cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h.  */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h.  */
5541#include <alloca.h>
5542int
5543main ()
5544{
5545char *p = (char *) alloca (2 * sizeof (int));
5546  ;
5547  return 0;
5548}
5549_ACEOF
5550rm -f conftest.$ac_objext conftest$ac_exeext
5551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552  (eval $ac_link) 2>conftest.er1
5553  ac_status=$?
5554  grep -v '^ *+' conftest.er1 >conftest.err
5555  rm -f conftest.er1
5556  cat conftest.err >&5
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); } &&
5559	 { ac_try='test -z "$ac_c_werror_flag"
5560			 || test ! -s conftest.err'
5561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562  (eval $ac_try) 2>&5
5563  ac_status=$?
5564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565  (exit $ac_status); }; } &&
5566	 { ac_try='test -s conftest$ac_exeext'
5567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568  (eval $ac_try) 2>&5
5569  ac_status=$?
5570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571  (exit $ac_status); }; }; then
5572  ac_cv_working_alloca_h=yes
5573else
5574  echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577ac_cv_working_alloca_h=no
5578fi
5579rm -f conftest.err conftest.$ac_objext \
5580      conftest$ac_exeext conftest.$ac_ext
5581fi
5582echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5583echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5584if test $ac_cv_working_alloca_h = yes; then
5585
5586cat >>confdefs.h <<\_ACEOF
5587#define HAVE_ALLOCA_H 1
5588_ACEOF
5589
5590fi
5591
5592echo "$as_me:$LINENO: checking for alloca" >&5
5593echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5594if test "${ac_cv_func_alloca_works+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h.  */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h.  */
5603#ifdef __GNUC__
5604# define alloca __builtin_alloca
5605#else
5606# ifdef _MSC_VER
5607#  include <malloc.h>
5608#  define alloca _alloca
5609# else
5610#  if HAVE_ALLOCA_H
5611#   include <alloca.h>
5612#  else
5613#   ifdef _AIX
5614 #pragma alloca
5615#   else
5616#    ifndef alloca /* predefined by HP cc +Olibcalls */
5617char *alloca ();
5618#    endif
5619#   endif
5620#  endif
5621# endif
5622#endif
5623
5624int
5625main ()
5626{
5627char *p = (char *) alloca (1);
5628  ;
5629  return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext conftest$ac_exeext
5633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5634  (eval $ac_link) 2>conftest.er1
5635  ac_status=$?
5636  grep -v '^ *+' conftest.er1 >conftest.err
5637  rm -f conftest.er1
5638  cat conftest.err >&5
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); } &&
5641	 { ac_try='test -z "$ac_c_werror_flag"
5642			 || test ! -s conftest.err'
5643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644  (eval $ac_try) 2>&5
5645  ac_status=$?
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); }; } &&
5648	 { ac_try='test -s conftest$ac_exeext'
5649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650  (eval $ac_try) 2>&5
5651  ac_status=$?
5652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653  (exit $ac_status); }; }; then
5654  ac_cv_func_alloca_works=yes
5655else
5656  echo "$as_me: failed program was:" >&5
5657sed 's/^/| /' conftest.$ac_ext >&5
5658
5659ac_cv_func_alloca_works=no
5660fi
5661rm -f conftest.err conftest.$ac_objext \
5662      conftest$ac_exeext conftest.$ac_ext
5663fi
5664echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5665echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5666
5667if test $ac_cv_func_alloca_works = yes; then
5668
5669cat >>confdefs.h <<\_ACEOF
5670#define HAVE_ALLOCA 1
5671_ACEOF
5672
5673else
5674  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5675# that cause trouble.  Some versions do not even contain alloca or
5676# contain a buggy version.  If you still want to use their alloca,
5677# use ar to extract alloca.o from them instead of compiling alloca.c.
5678
5679ALLOCA=alloca.$ac_objext
5680
5681cat >>confdefs.h <<\_ACEOF
5682#define C_ALLOCA 1
5683_ACEOF
5684
5685
5686echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5687echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5688if test "${ac_cv_os_cray+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h.  */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h.  */
5697#if defined(CRAY) && ! defined(CRAY2)
5698webecray
5699#else
5700wenotbecray
5701#endif
5702
5703_ACEOF
5704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5705  $EGREP "webecray" >/dev/null 2>&1; then
5706  ac_cv_os_cray=yes
5707else
5708  ac_cv_os_cray=no
5709fi
5710rm -f conftest*
5711
5712fi
5713echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5714echo "${ECHO_T}$ac_cv_os_cray" >&6
5715if test $ac_cv_os_cray = yes; then
5716  for ac_func in _getb67 GETB67 getb67; do
5717    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5718echo "$as_me:$LINENO: checking for $ac_func" >&5
5719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5720if eval "test \"\${$as_ac_var+set}\" = set"; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h.  */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h.  */
5729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5731#define $ac_func innocuous_$ac_func
5732
5733/* System header to define __stub macros and hopefully few prototypes,
5734    which can conflict with char $ac_func (); below.
5735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5736    <limits.h> exists even on freestanding compilers.  */
5737
5738#ifdef __STDC__
5739# include <limits.h>
5740#else
5741# include <assert.h>
5742#endif
5743
5744#undef $ac_func
5745
5746/* Override any gcc2 internal prototype to avoid an error.  */
5747#ifdef __cplusplus
5748extern "C"
5749{
5750#endif
5751/* We use char because int might match the return type of a gcc2
5752   builtin and then its argument prototype would still apply.  */
5753char $ac_func ();
5754/* The GNU C library defines this for functions which it implements
5755    to always fail with ENOSYS.  Some functions are actually named
5756    something starting with __ and the normal name is an alias.  */
5757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758choke me
5759#else
5760char (*f) () = $ac_func;
5761#endif
5762#ifdef __cplusplus
5763}
5764#endif
5765
5766int
5767main ()
5768{
5769return f != $ac_func;
5770  ;
5771  return 0;
5772}
5773_ACEOF
5774rm -f conftest.$ac_objext conftest$ac_exeext
5775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776  (eval $ac_link) 2>conftest.er1
5777  ac_status=$?
5778  grep -v '^ *+' conftest.er1 >conftest.err
5779  rm -f conftest.er1
5780  cat conftest.err >&5
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); } &&
5783	 { ac_try='test -z "$ac_c_werror_flag"
5784			 || test ! -s conftest.err'
5785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786  (eval $ac_try) 2>&5
5787  ac_status=$?
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); }; } &&
5790	 { ac_try='test -s conftest$ac_exeext'
5791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792  (eval $ac_try) 2>&5
5793  ac_status=$?
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); }; }; then
5796  eval "$as_ac_var=yes"
5797else
5798  echo "$as_me: failed program was:" >&5
5799sed 's/^/| /' conftest.$ac_ext >&5
5800
5801eval "$as_ac_var=no"
5802fi
5803rm -f conftest.err conftest.$ac_objext \
5804      conftest$ac_exeext conftest.$ac_ext
5805fi
5806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5808if test `eval echo '${'$as_ac_var'}'` = yes; then
5809
5810cat >>confdefs.h <<_ACEOF
5811#define CRAY_STACKSEG_END $ac_func
5812_ACEOF
5813
5814    break
5815fi
5816
5817  done
5818fi
5819
5820echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5821echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5822if test "${ac_cv_c_stack_direction+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  if test "$cross_compiling" = yes; then
5826  ac_cv_c_stack_direction=0
5827else
5828  cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834int
5835find_stack_direction ()
5836{
5837  static char *addr = 0;
5838  auto char dummy;
5839  if (addr == 0)
5840    {
5841      addr = &dummy;
5842      return find_stack_direction ();
5843    }
5844  else
5845    return (&dummy > addr) ? 1 : -1;
5846}
5847
5848int
5849main ()
5850{
5851  exit (find_stack_direction () < 0);
5852}
5853_ACEOF
5854rm -f conftest$ac_exeext
5855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856  (eval $ac_link) 2>&5
5857  ac_status=$?
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861  (eval $ac_try) 2>&5
5862  ac_status=$?
5863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864  (exit $ac_status); }; }; then
5865  ac_cv_c_stack_direction=1
5866else
5867  echo "$as_me: program exited with status $ac_status" >&5
5868echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871( exit $ac_status )
5872ac_cv_c_stack_direction=-1
5873fi
5874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5875fi
5876fi
5877echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5878echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5879
5880cat >>confdefs.h <<_ACEOF
5881#define STACK_DIRECTION $ac_cv_c_stack_direction
5882_ACEOF
5883
5884
5885fi
5886
5887
5888
5889for ac_header in stdlib.h unistd.h
5890do
5891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892if eval "test \"\${$as_ac_Header+set}\" = set"; then
5893  echo "$as_me:$LINENO: checking for $ac_header" >&5
5894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5895if eval "test \"\${$as_ac_Header+set}\" = set"; then
5896  echo $ECHO_N "(cached) $ECHO_C" >&6
5897fi
5898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5900else
5901  # Is the header compilable?
5902echo "$as_me:$LINENO: checking $ac_header usability" >&5
5903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5904cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h.  */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h.  */
5910$ac_includes_default
5911#include <$ac_header>
5912_ACEOF
5913rm -f conftest.$ac_objext
5914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915  (eval $ac_compile) 2>conftest.er1
5916  ac_status=$?
5917  grep -v '^ *+' conftest.er1 >conftest.err
5918  rm -f conftest.er1
5919  cat conftest.err >&5
5920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921  (exit $ac_status); } &&
5922	 { ac_try='test -z "$ac_c_werror_flag"
5923			 || test ! -s conftest.err'
5924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925  (eval $ac_try) 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }; } &&
5929	 { ac_try='test -s conftest.$ac_objext'
5930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931  (eval $ac_try) 2>&5
5932  ac_status=$?
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); }; }; then
5935  ac_header_compiler=yes
5936else
5937  echo "$as_me: failed program was:" >&5
5938sed 's/^/| /' conftest.$ac_ext >&5
5939
5940ac_header_compiler=no
5941fi
5942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944echo "${ECHO_T}$ac_header_compiler" >&6
5945
5946# Is the header present?
5947echo "$as_me:$LINENO: checking $ac_header presence" >&5
5948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5949cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h.  */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h.  */
5955#include <$ac_header>
5956_ACEOF
5957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5958  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5959  ac_status=$?
5960  grep -v '^ *+' conftest.er1 >conftest.err
5961  rm -f conftest.er1
5962  cat conftest.err >&5
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); } >/dev/null; then
5965  if test -s conftest.err; then
5966    ac_cpp_err=$ac_c_preproc_warn_flag
5967    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5968  else
5969    ac_cpp_err=
5970  fi
5971else
5972  ac_cpp_err=yes
5973fi
5974if test -z "$ac_cpp_err"; then
5975  ac_header_preproc=yes
5976else
5977  echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980  ac_header_preproc=no
5981fi
5982rm -f conftest.err conftest.$ac_ext
5983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5984echo "${ECHO_T}$ac_header_preproc" >&6
5985
5986# So?  What about this header?
5987case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5988  yes:no: )
5989    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5991    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5993    ac_header_preproc=yes
5994    ;;
5995  no:yes:* )
5996    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5998    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5999echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6000    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6002    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6003echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6006    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6008    (
6009      cat <<\_ASBOX
6010## ------------------------------------------ ##
6011## Report this to the AC_PACKAGE_NAME lists.  ##
6012## ------------------------------------------ ##
6013_ASBOX
6014    ) |
6015      sed "s/^/$as_me: WARNING:     /" >&2
6016    ;;
6017esac
6018echo "$as_me:$LINENO: checking for $ac_header" >&5
6019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6020if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021  echo $ECHO_N "(cached) $ECHO_C" >&6
6022else
6023  eval "$as_ac_Header=\$ac_header_preproc"
6024fi
6025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6027
6028fi
6029if test `eval echo '${'$as_ac_Header'}'` = yes; then
6030  cat >>confdefs.h <<_ACEOF
6031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032_ACEOF
6033
6034fi
6035
6036done
6037
6038
6039for ac_func in getpagesize
6040do
6041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6042echo "$as_me:$LINENO: checking for $ac_func" >&5
6043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6044if eval "test \"\${$as_ac_var+set}\" = set"; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h.  */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h.  */
6053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6054   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6055#define $ac_func innocuous_$ac_func
6056
6057/* System header to define __stub macros and hopefully few prototypes,
6058    which can conflict with char $ac_func (); below.
6059    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060    <limits.h> exists even on freestanding compilers.  */
6061
6062#ifdef __STDC__
6063# include <limits.h>
6064#else
6065# include <assert.h>
6066#endif
6067
6068#undef $ac_func
6069
6070/* Override any gcc2 internal prototype to avoid an error.  */
6071#ifdef __cplusplus
6072extern "C"
6073{
6074#endif
6075/* We use char because int might match the return type of a gcc2
6076   builtin and then its argument prototype would still apply.  */
6077char $ac_func ();
6078/* The GNU C library defines this for functions which it implements
6079    to always fail with ENOSYS.  Some functions are actually named
6080    something starting with __ and the normal name is an alias.  */
6081#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6082choke me
6083#else
6084char (*f) () = $ac_func;
6085#endif
6086#ifdef __cplusplus
6087}
6088#endif
6089
6090int
6091main ()
6092{
6093return f != $ac_func;
6094  ;
6095  return 0;
6096}
6097_ACEOF
6098rm -f conftest.$ac_objext conftest$ac_exeext
6099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100  (eval $ac_link) 2>conftest.er1
6101  ac_status=$?
6102  grep -v '^ *+' conftest.er1 >conftest.err
6103  rm -f conftest.er1
6104  cat conftest.err >&5
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); } &&
6107	 { ac_try='test -z "$ac_c_werror_flag"
6108			 || test ! -s conftest.err'
6109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110  (eval $ac_try) 2>&5
6111  ac_status=$?
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); }; } &&
6114	 { ac_try='test -s conftest$ac_exeext'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; }; then
6120  eval "$as_ac_var=yes"
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125eval "$as_ac_var=no"
6126fi
6127rm -f conftest.err conftest.$ac_objext \
6128      conftest$ac_exeext conftest.$ac_ext
6129fi
6130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6132if test `eval echo '${'$as_ac_var'}'` = yes; then
6133  cat >>confdefs.h <<_ACEOF
6134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6135_ACEOF
6136
6137fi
6138done
6139
6140echo "$as_me:$LINENO: checking for working mmap" >&5
6141echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6142if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  if test "$cross_compiling" = yes; then
6146  ac_cv_func_mmap_fixed_mapped=no
6147else
6148  cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h.  */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h.  */
6154$ac_includes_default
6155/* malloc might have been renamed as rpl_malloc. */
6156#undef malloc
6157
6158/* Thanks to Mike Haertel and Jim Avera for this test.
6159   Here is a matrix of mmap possibilities:
6160	mmap private not fixed
6161	mmap private fixed at somewhere currently unmapped
6162	mmap private fixed at somewhere already mapped
6163	mmap shared not fixed
6164	mmap shared fixed at somewhere currently unmapped
6165	mmap shared fixed at somewhere already mapped
6166   For private mappings, we should verify that changes cannot be read()
6167   back from the file, nor mmap's back from the file at a different
6168   address.  (There have been systems where private was not correctly
6169   implemented like the infamous i386 svr4.0, and systems where the
6170   VM page cache was not coherent with the file system buffer cache
6171   like early versions of FreeBSD and possibly contemporary NetBSD.)
6172   For shared mappings, we should conversely verify that changes get
6173   propagated back to all the places they're supposed to be.
6174
6175   Grep wants private fixed already mapped.
6176   The main things grep needs to know about mmap are:
6177   * does it exist and is it safe to write into the mmap'd area
6178   * how to use it (BSD variants)  */
6179
6180#include <fcntl.h>
6181#include <sys/mman.h>
6182
6183#if !STDC_HEADERS && !HAVE_STDLIB_H
6184char *malloc ();
6185#endif
6186
6187/* This mess was copied from the GNU getpagesize.h.  */
6188#if !HAVE_GETPAGESIZE
6189/* Assume that all systems that can run configure have sys/param.h.  */
6190# if !HAVE_SYS_PARAM_H
6191#  define HAVE_SYS_PARAM_H 1
6192# endif
6193
6194# ifdef _SC_PAGESIZE
6195#  define getpagesize() sysconf(_SC_PAGESIZE)
6196# else /* no _SC_PAGESIZE */
6197#  if HAVE_SYS_PARAM_H
6198#   include <sys/param.h>
6199#   ifdef EXEC_PAGESIZE
6200#    define getpagesize() EXEC_PAGESIZE
6201#   else /* no EXEC_PAGESIZE */
6202#    ifdef NBPG
6203#     define getpagesize() NBPG * CLSIZE
6204#     ifndef CLSIZE
6205#      define CLSIZE 1
6206#     endif /* no CLSIZE */
6207#    else /* no NBPG */
6208#     ifdef NBPC
6209#      define getpagesize() NBPC
6210#     else /* no NBPC */
6211#      ifdef PAGESIZE
6212#       define getpagesize() PAGESIZE
6213#      endif /* PAGESIZE */
6214#     endif /* no NBPC */
6215#    endif /* no NBPG */
6216#   endif /* no EXEC_PAGESIZE */
6217#  else /* no HAVE_SYS_PARAM_H */
6218#   define getpagesize() 8192	/* punt totally */
6219#  endif /* no HAVE_SYS_PARAM_H */
6220# endif /* no _SC_PAGESIZE */
6221
6222#endif /* no HAVE_GETPAGESIZE */
6223
6224int
6225main ()
6226{
6227  char *data, *data2, *data3;
6228  int i, pagesize;
6229  int fd;
6230
6231  pagesize = getpagesize ();
6232
6233  /* First, make a file with some known garbage in it. */
6234  data = (char *) malloc (pagesize);
6235  if (!data)
6236    exit (1);
6237  for (i = 0; i < pagesize; ++i)
6238    *(data + i) = rand ();
6239  umask (0);
6240  fd = creat ("conftest.mmap", 0600);
6241  if (fd < 0)
6242    exit (1);
6243  if (write (fd, data, pagesize) != pagesize)
6244    exit (1);
6245  close (fd);
6246
6247  /* Next, try to mmap the file at a fixed address which already has
6248     something else allocated at it.  If we can, also make sure that
6249     we see the same garbage.  */
6250  fd = open ("conftest.mmap", O_RDWR);
6251  if (fd < 0)
6252    exit (1);
6253  data2 = (char *) malloc (2 * pagesize);
6254  if (!data2)
6255    exit (1);
6256  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6257  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6258		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6259    exit (1);
6260  for (i = 0; i < pagesize; ++i)
6261    if (*(data + i) != *(data2 + i))
6262      exit (1);
6263
6264  /* Finally, make sure that changes to the mapped area do not
6265     percolate back to the file as seen by read().  (This is a bug on
6266     some variants of i386 svr4.0.)  */
6267  for (i = 0; i < pagesize; ++i)
6268    *(data2 + i) = *(data2 + i) + 1;
6269  data3 = (char *) malloc (pagesize);
6270  if (!data3)
6271    exit (1);
6272  if (read (fd, data3, pagesize) != pagesize)
6273    exit (1);
6274  for (i = 0; i < pagesize; ++i)
6275    if (*(data + i) != *(data3 + i))
6276      exit (1);
6277  close (fd);
6278  exit (0);
6279}
6280_ACEOF
6281rm -f conftest$ac_exeext
6282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283  (eval $ac_link) 2>&5
6284  ac_status=$?
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288  (eval $ac_try) 2>&5
6289  ac_status=$?
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); }; }; then
6292  ac_cv_func_mmap_fixed_mapped=yes
6293else
6294  echo "$as_me: program exited with status $ac_status" >&5
6295echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298( exit $ac_status )
6299ac_cv_func_mmap_fixed_mapped=no
6300fi
6301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6302fi
6303fi
6304echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6305echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6306if test $ac_cv_func_mmap_fixed_mapped = yes; then
6307
6308cat >>confdefs.h <<\_ACEOF
6309#define HAVE_MMAP 1
6310_ACEOF
6311
6312fi
6313rm -f conftest.mmap
6314
6315
6316    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6317echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6318if test "${ac_cv_gnu_library_2_1+set}" = set; then
6319  echo $ECHO_N "(cached) $ECHO_C" >&6
6320else
6321  cat >conftest.$ac_ext <<_ACEOF
6322/* confdefs.h.  */
6323_ACEOF
6324cat confdefs.h >>conftest.$ac_ext
6325cat >>conftest.$ac_ext <<_ACEOF
6326/* end confdefs.h.  */
6327
6328#include <features.h>
6329#ifdef __GNU_LIBRARY__
6330 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6331  Lucky GNU user
6332 #endif
6333#endif
6334
6335_ACEOF
6336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6338  ac_cv_gnu_library_2_1=yes
6339else
6340  ac_cv_gnu_library_2_1=no
6341fi
6342rm -f conftest*
6343
6344
6345
6346fi
6347echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6348echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6349
6350    GLIBC21="$ac_cv_gnu_library_2_1"
6351
6352
6353
6354
6355  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6356echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6357if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360
6361      if test "$cross_compiling" = yes; then
6362
6363          # Guess based on the CPU.
6364          case "$host_cpu" in
6365            alpha* | i3456786 | m68k | s390*)
6366              gt_cv_int_divbyzero_sigfpe="guessing yes";;
6367            *)
6368              gt_cv_int_divbyzero_sigfpe="guessing no";;
6369          esac
6370
6371else
6372  cat >conftest.$ac_ext <<_ACEOF
6373/* confdefs.h.  */
6374_ACEOF
6375cat confdefs.h >>conftest.$ac_ext
6376cat >>conftest.$ac_ext <<_ACEOF
6377/* end confdefs.h.  */
6378
6379#include <stdlib.h>
6380#include <signal.h>
6381
6382static void
6383#ifdef __cplusplus
6384sigfpe_handler (int sig)
6385#else
6386sigfpe_handler (sig) int sig;
6387#endif
6388{
6389  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6390  exit (sig != SIGFPE);
6391}
6392
6393int x = 1;
6394int y = 0;
6395int z;
6396int nan;
6397
6398int main ()
6399{
6400  signal (SIGFPE, sigfpe_handler);
6401/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6402#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6403  signal (SIGTRAP, sigfpe_handler);
6404#endif
6405/* Linux/SPARC yields signal SIGILL.  */
6406#if defined (__sparc__) && defined (__linux__)
6407  signal (SIGILL, sigfpe_handler);
6408#endif
6409
6410  z = x / y;
6411  nan = y / y;
6412  exit (1);
6413}
6414
6415_ACEOF
6416rm -f conftest$ac_exeext
6417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418  (eval $ac_link) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423  (eval $ac_try) 2>&5
6424  ac_status=$?
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); }; }; then
6427  gt_cv_int_divbyzero_sigfpe=yes
6428else
6429  echo "$as_me: program exited with status $ac_status" >&5
6430echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433( exit $ac_status )
6434gt_cv_int_divbyzero_sigfpe=no
6435fi
6436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6437fi
6438
6439fi
6440echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6441echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6442  case "$gt_cv_int_divbyzero_sigfpe" in
6443    *yes) value=1;;
6444    *) value=0;;
6445  esac
6446
6447cat >>confdefs.h <<_ACEOF
6448#define INTDIV0_RAISES_SIGFPE $value
6449_ACEOF
6450
6451
6452
6453  echo "$as_me:$LINENO: checking for inttypes.h" >&5
6454echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6455if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6456  echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458  cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h.  */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h.  */
6464#include <sys/types.h>
6465#include <inttypes.h>
6466int
6467main ()
6468{
6469uintmax_t i = (uintmax_t) -1;
6470  ;
6471  return 0;
6472}
6473_ACEOF
6474rm -f conftest.$ac_objext
6475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476  (eval $ac_compile) 2>conftest.er1
6477  ac_status=$?
6478  grep -v '^ *+' conftest.er1 >conftest.err
6479  rm -f conftest.er1
6480  cat conftest.err >&5
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); } &&
6483	 { ac_try='test -z "$ac_c_werror_flag"
6484			 || test ! -s conftest.err'
6485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486  (eval $ac_try) 2>&5
6487  ac_status=$?
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); }; } &&
6490	 { ac_try='test -s conftest.$ac_objext'
6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492  (eval $ac_try) 2>&5
6493  ac_status=$?
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); }; }; then
6496  jm_ac_cv_header_inttypes_h=yes
6497else
6498  echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501jm_ac_cv_header_inttypes_h=no
6502fi
6503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504fi
6505echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6506echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
6507  if test $jm_ac_cv_header_inttypes_h = yes; then
6508
6509cat >>confdefs.h <<_ACEOF
6510#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6511_ACEOF
6512
6513  fi
6514
6515
6516  echo "$as_me:$LINENO: checking for stdint.h" >&5
6517echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
6518if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h.  */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h.  */
6527#include <sys/types.h>
6528#include <stdint.h>
6529int
6530main ()
6531{
6532uintmax_t i = (uintmax_t) -1;
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539  (eval $ac_compile) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } &&
6546	 { ac_try='test -z "$ac_c_werror_flag"
6547			 || test ! -s conftest.err'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; } &&
6553	 { ac_try='test -s conftest.$ac_objext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559  jm_ac_cv_header_stdint_h=yes
6560else
6561  echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564jm_ac_cv_header_stdint_h=no
6565fi
6566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567fi
6568echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6569echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
6570  if test $jm_ac_cv_header_stdint_h = yes; then
6571
6572cat >>confdefs.h <<_ACEOF
6573#define HAVE_STDINT_H_WITH_UINTMAX 1
6574_ACEOF
6575
6576  fi
6577
6578
6579  echo "$as_me:$LINENO: checking for unsigned long long" >&5
6580echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6581if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6582  echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584  cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590unsigned long long ull = 1; int i = 63;
6591int
6592main ()
6593{
6594unsigned long long ullmax = (unsigned long long) -1;
6595     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
6601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602  (eval $ac_link) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } &&
6609	 { ac_try='test -z "$ac_c_werror_flag"
6610			 || test ! -s conftest.err'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; } &&
6616	 { ac_try='test -s conftest$ac_exeext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  ac_cv_type_unsigned_long_long=yes
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627ac_cv_type_unsigned_long_long=no
6628fi
6629rm -f conftest.err conftest.$ac_objext \
6630      conftest$ac_exeext conftest.$ac_ext
6631fi
6632echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6633echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6634  if test $ac_cv_type_unsigned_long_long = yes; then
6635
6636cat >>confdefs.h <<\_ACEOF
6637#define HAVE_UNSIGNED_LONG_LONG 1
6638_ACEOF
6639
6640  fi
6641
6642
6643
6644
6645  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6646
6647    test $ac_cv_type_unsigned_long_long = yes \
6648      && ac_type='unsigned long long' \
6649      || ac_type='unsigned long'
6650
6651cat >>confdefs.h <<_ACEOF
6652#define uintmax_t $ac_type
6653_ACEOF
6654
6655  fi
6656
6657
6658  echo "$as_me:$LINENO: checking for inttypes.h" >&5
6659echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6660if test "${gt_cv_header_inttypes_h+set}" = set; then
6661  echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663
6664    cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h.  */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h.  */
6670#include <sys/types.h>
6671#include <inttypes.h>
6672int
6673main ()
6674{
6675
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680rm -f conftest.$ac_objext
6681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6682  (eval $ac_compile) 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689	 { ac_try='test -z "$ac_c_werror_flag"
6690			 || test ! -s conftest.err'
6691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692  (eval $ac_try) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; } &&
6696	 { ac_try='test -s conftest.$ac_objext'
6697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698  (eval $ac_try) 2>&5
6699  ac_status=$?
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); }; }; then
6702  gt_cv_header_inttypes_h=yes
6703else
6704  echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707gt_cv_header_inttypes_h=no
6708fi
6709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6710
6711fi
6712echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6713echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6714  if test $gt_cv_header_inttypes_h = yes; then
6715
6716cat >>confdefs.h <<_ACEOF
6717#define HAVE_INTTYPES_H 1
6718_ACEOF
6719
6720  fi
6721
6722
6723
6724  if test $gt_cv_header_inttypes_h = yes; then
6725    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6726echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6727if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6728  echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730
6731        cat >conftest.$ac_ext <<_ACEOF
6732/* confdefs.h.  */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h.  */
6737#include <inttypes.h>
6738#ifdef PRId32
6739char *p = PRId32;
6740#endif
6741
6742int
6743main ()
6744{
6745
6746  ;
6747  return 0;
6748}
6749_ACEOF
6750rm -f conftest.$ac_objext
6751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752  (eval $ac_compile) 2>conftest.er1
6753  ac_status=$?
6754  grep -v '^ *+' conftest.er1 >conftest.err
6755  rm -f conftest.er1
6756  cat conftest.err >&5
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } &&
6759	 { ac_try='test -z "$ac_c_werror_flag"
6760			 || test ! -s conftest.err'
6761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762  (eval $ac_try) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }; } &&
6766	 { ac_try='test -s conftest.$ac_objext'
6767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768  (eval $ac_try) 2>&5
6769  ac_status=$?
6770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771  (exit $ac_status); }; }; then
6772  gt_cv_inttypes_pri_broken=no
6773else
6774  echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777gt_cv_inttypes_pri_broken=yes
6778fi
6779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780
6781fi
6782echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6783echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6784  fi
6785  if test "$gt_cv_inttypes_pri_broken" = yes; then
6786
6787cat >>confdefs.h <<_ACEOF
6788#define PRI_MACROS_BROKEN 1
6789_ACEOF
6790
6791  fi
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6806stdlib.h string.h unistd.h sys/param.h
6807do
6808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6809if eval "test \"\${$as_ac_Header+set}\" = set"; then
6810  echo "$as_me:$LINENO: checking for $ac_header" >&5
6811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6812if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813  echo $ECHO_N "(cached) $ECHO_C" >&6
6814fi
6815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6817else
6818  # Is the header compilable?
6819echo "$as_me:$LINENO: checking $ac_header usability" >&5
6820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6821cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h.  */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h.  */
6827$ac_includes_default
6828#include <$ac_header>
6829_ACEOF
6830rm -f conftest.$ac_objext
6831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832  (eval $ac_compile) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } &&
6839	 { ac_try='test -z "$ac_c_werror_flag"
6840			 || test ! -s conftest.err'
6841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842  (eval $ac_try) 2>&5
6843  ac_status=$?
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); }; } &&
6846	 { ac_try='test -s conftest.$ac_objext'
6847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848  (eval $ac_try) 2>&5
6849  ac_status=$?
6850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851  (exit $ac_status); }; }; then
6852  ac_header_compiler=yes
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857ac_header_compiler=no
6858fi
6859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861echo "${ECHO_T}$ac_header_compiler" >&6
6862
6863# Is the header present?
6864echo "$as_me:$LINENO: checking $ac_header presence" >&5
6865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6866cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872#include <$ac_header>
6873_ACEOF
6874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6876  ac_status=$?
6877  grep -v '^ *+' conftest.er1 >conftest.err
6878  rm -f conftest.er1
6879  cat conftest.err >&5
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } >/dev/null; then
6882  if test -s conftest.err; then
6883    ac_cpp_err=$ac_c_preproc_warn_flag
6884    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6885  else
6886    ac_cpp_err=
6887  fi
6888else
6889  ac_cpp_err=yes
6890fi
6891if test -z "$ac_cpp_err"; then
6892  ac_header_preproc=yes
6893else
6894  echo "$as_me: failed program was:" >&5
6895sed 's/^/| /' conftest.$ac_ext >&5
6896
6897  ac_header_preproc=no
6898fi
6899rm -f conftest.err conftest.$ac_ext
6900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901echo "${ECHO_T}$ac_header_preproc" >&6
6902
6903# So?  What about this header?
6904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905  yes:no: )
6906    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6909echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6910    ac_header_preproc=yes
6911    ;;
6912  no:yes:* )
6913    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6914echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6915    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6916echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6917    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6918echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6919    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6920echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6921    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6922echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6923    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6924echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6925    (
6926      cat <<\_ASBOX
6927## ------------------------------------------ ##
6928## Report this to the AC_PACKAGE_NAME lists.  ##
6929## ------------------------------------------ ##
6930_ASBOX
6931    ) |
6932      sed "s/^/$as_me: WARNING:     /" >&2
6933    ;;
6934esac
6935echo "$as_me:$LINENO: checking for $ac_header" >&5
6936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938  echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940  eval "$as_ac_Header=\$ac_header_preproc"
6941fi
6942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6944
6945fi
6946if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947  cat >>confdefs.h <<_ACEOF
6948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6949_ACEOF
6950
6951fi
6952
6953done
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6977geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6978strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6979do
6980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6981echo "$as_me:$LINENO: checking for $ac_func" >&5
6982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6983if eval "test \"\${$as_ac_var+set}\" = set"; then
6984  echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986  cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h.  */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h.  */
6992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6993   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6994#define $ac_func innocuous_$ac_func
6995
6996/* System header to define __stub macros and hopefully few prototypes,
6997    which can conflict with char $ac_func (); below.
6998    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999    <limits.h> exists even on freestanding compilers.  */
7000
7001#ifdef __STDC__
7002# include <limits.h>
7003#else
7004# include <assert.h>
7005#endif
7006
7007#undef $ac_func
7008
7009/* Override any gcc2 internal prototype to avoid an error.  */
7010#ifdef __cplusplus
7011extern "C"
7012{
7013#endif
7014/* We use char because int might match the return type of a gcc2
7015   builtin and then its argument prototype would still apply.  */
7016char $ac_func ();
7017/* The GNU C library defines this for functions which it implements
7018    to always fail with ENOSYS.  Some functions are actually named
7019    something starting with __ and the normal name is an alias.  */
7020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021choke me
7022#else
7023char (*f) () = $ac_func;
7024#endif
7025#ifdef __cplusplus
7026}
7027#endif
7028
7029int
7030main ()
7031{
7032return f != $ac_func;
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext conftest$ac_exeext
7038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039  (eval $ac_link) 2>conftest.er1
7040  ac_status=$?
7041  grep -v '^ *+' conftest.er1 >conftest.err
7042  rm -f conftest.er1
7043  cat conftest.err >&5
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } &&
7046	 { ac_try='test -z "$ac_c_werror_flag"
7047			 || test ! -s conftest.err'
7048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049  (eval $ac_try) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }; } &&
7053	 { ac_try='test -s conftest$ac_exeext'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; }; then
7059  eval "$as_ac_var=yes"
7060else
7061  echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064eval "$as_ac_var=no"
7065fi
7066rm -f conftest.err conftest.$ac_objext \
7067      conftest$ac_exeext conftest.$ac_ext
7068fi
7069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7071if test `eval echo '${'$as_ac_var'}'` = yes; then
7072  cat >>confdefs.h <<_ACEOF
7073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7074_ACEOF
7075
7076fi
7077done
7078
7079
7080
7081
7082
7083
7084
7085          am_save_CPPFLAGS="$CPPFLAGS"
7086
7087  for element in $INCICONV; do
7088    haveit=
7089    for x in $CPPFLAGS; do
7090
7091  acl_save_prefix="$prefix"
7092  prefix="$acl_final_prefix"
7093  acl_save_exec_prefix="$exec_prefix"
7094  exec_prefix="$acl_final_exec_prefix"
7095  eval x=\"$x\"
7096  exec_prefix="$acl_save_exec_prefix"
7097  prefix="$acl_save_prefix"
7098
7099      if test "X$x" = "X$element"; then
7100        haveit=yes
7101        break
7102      fi
7103    done
7104    if test -z "$haveit"; then
7105      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7106    fi
7107  done
7108
7109
7110  echo "$as_me:$LINENO: checking for iconv" >&5
7111echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7112if test "${am_cv_func_iconv+set}" = set; then
7113  echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115
7116    am_cv_func_iconv="no, consider installing GNU libiconv"
7117    am_cv_lib_iconv=no
7118    cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h.  */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h.  */
7124#include <stdlib.h>
7125#include <iconv.h>
7126int
7127main ()
7128{
7129iconv_t cd = iconv_open("","");
7130       iconv(cd,NULL,NULL,NULL,NULL);
7131       iconv_close(cd);
7132  ;
7133  return 0;
7134}
7135_ACEOF
7136rm -f conftest.$ac_objext conftest$ac_exeext
7137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7138  (eval $ac_link) 2>conftest.er1
7139  ac_status=$?
7140  grep -v '^ *+' conftest.er1 >conftest.err
7141  rm -f conftest.er1
7142  cat conftest.err >&5
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); } &&
7145	 { ac_try='test -z "$ac_c_werror_flag"
7146			 || test ! -s conftest.err'
7147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148  (eval $ac_try) 2>&5
7149  ac_status=$?
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); }; } &&
7152	 { ac_try='test -s conftest$ac_exeext'
7153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154  (eval $ac_try) 2>&5
7155  ac_status=$?
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); }; }; then
7158  am_cv_func_iconv=yes
7159else
7160  echo "$as_me: failed program was:" >&5
7161sed 's/^/| /' conftest.$ac_ext >&5
7162
7163fi
7164rm -f conftest.err conftest.$ac_objext \
7165      conftest$ac_exeext conftest.$ac_ext
7166    if test "$am_cv_func_iconv" != yes; then
7167      am_save_LIBS="$LIBS"
7168      LIBS="$LIBS $LIBICONV"
7169      cat >conftest.$ac_ext <<_ACEOF
7170/* confdefs.h.  */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h.  */
7175#include <stdlib.h>
7176#include <iconv.h>
7177int
7178main ()
7179{
7180iconv_t cd = iconv_open("","");
7181         iconv(cd,NULL,NULL,NULL,NULL);
7182         iconv_close(cd);
7183  ;
7184  return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext conftest$ac_exeext
7188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189  (eval $ac_link) 2>conftest.er1
7190  ac_status=$?
7191  grep -v '^ *+' conftest.er1 >conftest.err
7192  rm -f conftest.er1
7193  cat conftest.err >&5
7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195  (exit $ac_status); } &&
7196	 { ac_try='test -z "$ac_c_werror_flag"
7197			 || test ! -s conftest.err'
7198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199  (eval $ac_try) 2>&5
7200  ac_status=$?
7201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202  (exit $ac_status); }; } &&
7203	 { ac_try='test -s conftest$ac_exeext'
7204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205  (eval $ac_try) 2>&5
7206  ac_status=$?
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); }; }; then
7209  am_cv_lib_iconv=yes
7210        am_cv_func_iconv=yes
7211else
7212  echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215fi
7216rm -f conftest.err conftest.$ac_objext \
7217      conftest$ac_exeext conftest.$ac_ext
7218      LIBS="$am_save_LIBS"
7219    fi
7220
7221fi
7222echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7223echo "${ECHO_T}$am_cv_func_iconv" >&6
7224  if test "$am_cv_func_iconv" = yes; then
7225
7226cat >>confdefs.h <<\_ACEOF
7227#define HAVE_ICONV 1
7228_ACEOF
7229
7230  fi
7231  if test "$am_cv_lib_iconv" = yes; then
7232    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7233echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
7234    echo "$as_me:$LINENO: result: $LIBICONV" >&5
7235echo "${ECHO_T}$LIBICONV" >&6
7236  else
7237            CPPFLAGS="$am_save_CPPFLAGS"
7238    LIBICONV=
7239    LTLIBICONV=
7240  fi
7241
7242
7243
7244  if test "$am_cv_func_iconv" = yes; then
7245    echo "$as_me:$LINENO: checking for iconv declaration" >&5
7246echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7247    if test "${am_cv_proto_iconv+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250
7251      cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h.  */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h.  */
7257
7258#include <stdlib.h>
7259#include <iconv.h>
7260extern
7261#ifdef __cplusplus
7262"C"
7263#endif
7264#if defined(__STDC__) || defined(__cplusplus)
7265size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7266#else
7267size_t iconv();
7268#endif
7269
7270int
7271main ()
7272{
7273
7274  ;
7275  return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext
7279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280  (eval $ac_compile) 2>conftest.er1
7281  ac_status=$?
7282  grep -v '^ *+' conftest.er1 >conftest.err
7283  rm -f conftest.er1
7284  cat conftest.err >&5
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); } &&
7287	 { ac_try='test -z "$ac_c_werror_flag"
7288			 || test ! -s conftest.err'
7289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290  (eval $ac_try) 2>&5
7291  ac_status=$?
7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293  (exit $ac_status); }; } &&
7294	 { ac_try='test -s conftest.$ac_objext'
7295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296  (eval $ac_try) 2>&5
7297  ac_status=$?
7298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299  (exit $ac_status); }; }; then
7300  am_cv_proto_iconv_arg1=""
7301else
7302  echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305am_cv_proto_iconv_arg1="const"
7306fi
7307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7309fi
7310
7311    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7312    echo "$as_me:$LINENO: result: ${ac_t:-
7313         }$am_cv_proto_iconv" >&5
7314echo "${ECHO_T}${ac_t:-
7315         }$am_cv_proto_iconv" >&6
7316
7317cat >>confdefs.h <<_ACEOF
7318#define ICONV_CONST $am_cv_proto_iconv_arg1
7319_ACEOF
7320
7321  fi
7322
7323
7324  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7325echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7326if test "${am_cv_langinfo_codeset+set}" = set; then
7327  echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329  cat >conftest.$ac_ext <<_ACEOF
7330/* confdefs.h.  */
7331_ACEOF
7332cat confdefs.h >>conftest.$ac_ext
7333cat >>conftest.$ac_ext <<_ACEOF
7334/* end confdefs.h.  */
7335#include <langinfo.h>
7336int
7337main ()
7338{
7339char* cs = nl_langinfo(CODESET);
7340  ;
7341  return 0;
7342}
7343_ACEOF
7344rm -f conftest.$ac_objext conftest$ac_exeext
7345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7346  (eval $ac_link) 2>conftest.er1
7347  ac_status=$?
7348  grep -v '^ *+' conftest.er1 >conftest.err
7349  rm -f conftest.er1
7350  cat conftest.err >&5
7351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352  (exit $ac_status); } &&
7353	 { ac_try='test -z "$ac_c_werror_flag"
7354			 || test ! -s conftest.err'
7355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356  (eval $ac_try) 2>&5
7357  ac_status=$?
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); }; } &&
7360	 { ac_try='test -s conftest$ac_exeext'
7361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362  (eval $ac_try) 2>&5
7363  ac_status=$?
7364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365  (exit $ac_status); }; }; then
7366  am_cv_langinfo_codeset=yes
7367else
7368  echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371am_cv_langinfo_codeset=no
7372fi
7373rm -f conftest.err conftest.$ac_objext \
7374      conftest$ac_exeext conftest.$ac_ext
7375
7376fi
7377echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7378echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
7379  if test $am_cv_langinfo_codeset = yes; then
7380
7381cat >>confdefs.h <<\_ACEOF
7382#define HAVE_LANGINFO_CODESET 1
7383_ACEOF
7384
7385  fi
7386
7387  if test $ac_cv_header_locale_h = yes; then
7388
7389  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7390echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7391if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394  cat >conftest.$ac_ext <<_ACEOF
7395/* confdefs.h.  */
7396_ACEOF
7397cat confdefs.h >>conftest.$ac_ext
7398cat >>conftest.$ac_ext <<_ACEOF
7399/* end confdefs.h.  */
7400#include <locale.h>
7401int
7402main ()
7403{
7404return LC_MESSAGES
7405  ;
7406  return 0;
7407}
7408_ACEOF
7409rm -f conftest.$ac_objext conftest$ac_exeext
7410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7411  (eval $ac_link) 2>conftest.er1
7412  ac_status=$?
7413  grep -v '^ *+' conftest.er1 >conftest.err
7414  rm -f conftest.er1
7415  cat conftest.err >&5
7416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); } &&
7418	 { ac_try='test -z "$ac_c_werror_flag"
7419			 || test ! -s conftest.err'
7420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421  (eval $ac_try) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); }; } &&
7425	 { ac_try='test -s conftest$ac_exeext'
7426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427  (eval $ac_try) 2>&5
7428  ac_status=$?
7429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430  (exit $ac_status); }; }; then
7431  am_cv_val_LC_MESSAGES=yes
7432else
7433  echo "$as_me: failed program was:" >&5
7434sed 's/^/| /' conftest.$ac_ext >&5
7435
7436am_cv_val_LC_MESSAGES=no
7437fi
7438rm -f conftest.err conftest.$ac_objext \
7439      conftest$ac_exeext conftest.$ac_ext
7440fi
7441echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7442echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7443  if test $am_cv_val_LC_MESSAGES = yes; then
7444
7445cat >>confdefs.h <<\_ACEOF
7446#define HAVE_LC_MESSAGES 1
7447_ACEOF
7448
7449  fi
7450
7451  fi
7452
7453                      for ac_prog in bison
7454do
7455  # Extract the first word of "$ac_prog", so it can be a program name with args.
7456set dummy $ac_prog; ac_word=$2
7457echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7459if test "${ac_cv_prog_INTLBISON+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  if test -n "$INTLBISON"; then
7463  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468  IFS=$as_save_IFS
7469  test -z "$as_dir" && as_dir=.
7470  for ac_exec_ext in '' $ac_executable_extensions; do
7471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472    ac_cv_prog_INTLBISON="$ac_prog"
7473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477done
7478
7479fi
7480fi
7481INTLBISON=$ac_cv_prog_INTLBISON
7482if test -n "$INTLBISON"; then
7483  echo "$as_me:$LINENO: result: $INTLBISON" >&5
7484echo "${ECHO_T}$INTLBISON" >&6
7485else
7486  echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6
7488fi
7489
7490  test -n "$INTLBISON" && break
7491done
7492
7493  if test -z "$INTLBISON"; then
7494    ac_verc_fail=yes
7495  else
7496        echo "$as_me:$LINENO: checking version of bison" >&5
7497echo $ECHO_N "checking version of bison... $ECHO_C" >&6
7498    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7499    case $ac_prog_version in
7500      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7501      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7502         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7503      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7504    esac
7505    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
7506echo "${ECHO_T}$ac_prog_version" >&6
7507  fi
7508  if test $ac_verc_fail = yes; then
7509    INTLBISON=:
7510  fi
7511
7512
7513
7514    # Most operating systems have gethostbyname() in the default searched
7515    # libraries (i.e. libc):
7516    echo "$as_me:$LINENO: checking for gethostbyname" >&5
7517echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7518if test "${ac_cv_func_gethostbyname+set}" = set; then
7519  echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521  cat >conftest.$ac_ext <<_ACEOF
7522/* confdefs.h.  */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h.  */
7527/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7528   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7529#define gethostbyname innocuous_gethostbyname
7530
7531/* System header to define __stub macros and hopefully few prototypes,
7532    which can conflict with char gethostbyname (); below.
7533    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7534    <limits.h> exists even on freestanding compilers.  */
7535
7536#ifdef __STDC__
7537# include <limits.h>
7538#else
7539# include <assert.h>
7540#endif
7541
7542#undef gethostbyname
7543
7544/* Override any gcc2 internal prototype to avoid an error.  */
7545#ifdef __cplusplus
7546extern "C"
7547{
7548#endif
7549/* We use char because int might match the return type of a gcc2
7550   builtin and then its argument prototype would still apply.  */
7551char gethostbyname ();
7552/* The GNU C library defines this for functions which it implements
7553    to always fail with ENOSYS.  Some functions are actually named
7554    something starting with __ and the normal name is an alias.  */
7555#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7556choke me
7557#else
7558char (*f) () = gethostbyname;
7559#endif
7560#ifdef __cplusplus
7561}
7562#endif
7563
7564int
7565main ()
7566{
7567return f != gethostbyname;
7568  ;
7569  return 0;
7570}
7571_ACEOF
7572rm -f conftest.$ac_objext conftest$ac_exeext
7573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574  (eval $ac_link) 2>conftest.er1
7575  ac_status=$?
7576  grep -v '^ *+' conftest.er1 >conftest.err
7577  rm -f conftest.er1
7578  cat conftest.err >&5
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); } &&
7581	 { ac_try='test -z "$ac_c_werror_flag"
7582			 || test ! -s conftest.err'
7583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584  (eval $ac_try) 2>&5
7585  ac_status=$?
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); }; } &&
7588	 { ac_try='test -s conftest$ac_exeext'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; }; then
7594  ac_cv_func_gethostbyname=yes
7595else
7596  echo "$as_me: failed program was:" >&5
7597sed 's/^/| /' conftest.$ac_ext >&5
7598
7599ac_cv_func_gethostbyname=no
7600fi
7601rm -f conftest.err conftest.$ac_objext \
7602      conftest$ac_exeext conftest.$ac_ext
7603fi
7604echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7605echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7606if test $ac_cv_func_gethostbyname = yes; then
7607  :
7608else
7609  # Some OSes (eg. Solaris) place it in libnsl:
7610
7611echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7612echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7613if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7614  echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616  ac_check_lib_save_LIBS=$LIBS
7617LIBS="-lnsl  $LIBS"
7618cat >conftest.$ac_ext <<_ACEOF
7619/* confdefs.h.  */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h.  */
7624
7625/* Override any gcc2 internal prototype to avoid an error.  */
7626#ifdef __cplusplus
7627extern "C"
7628#endif
7629/* We use char because int might match the return type of a gcc2
7630   builtin and then its argument prototype would still apply.  */
7631char gethostbyname ();
7632int
7633main ()
7634{
7635gethostbyname ();
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
7641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7642  (eval $ac_link) 2>conftest.er1
7643  ac_status=$?
7644  grep -v '^ *+' conftest.er1 >conftest.err
7645  rm -f conftest.er1
7646  cat conftest.err >&5
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); } &&
7649	 { ac_try='test -z "$ac_c_werror_flag"
7650			 || test ! -s conftest.err'
7651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652  (eval $ac_try) 2>&5
7653  ac_status=$?
7654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655  (exit $ac_status); }; } &&
7656	 { ac_try='test -s conftest$ac_exeext'
7657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658  (eval $ac_try) 2>&5
7659  ac_status=$?
7660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661  (exit $ac_status); }; }; then
7662  ac_cv_lib_nsl_gethostbyname=yes
7663else
7664  echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667ac_cv_lib_nsl_gethostbyname=no
7668fi
7669rm -f conftest.err conftest.$ac_objext \
7670      conftest$ac_exeext conftest.$ac_ext
7671LIBS=$ac_check_lib_save_LIBS
7672fi
7673echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7674echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7675if test $ac_cv_lib_nsl_gethostbyname = yes; then
7676  cat >>confdefs.h <<_ACEOF
7677#define HAVE_LIBNSL 1
7678_ACEOF
7679
7680  LIBS="-lnsl $LIBS"
7681
7682else
7683  # Some strange OSes (SINIX) have it in libsocket:
7684
7685echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7686echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7687if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7688  echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690  ac_check_lib_save_LIBS=$LIBS
7691LIBS="-lsocket  $LIBS"
7692cat >conftest.$ac_ext <<_ACEOF
7693/* confdefs.h.  */
7694_ACEOF
7695cat confdefs.h >>conftest.$ac_ext
7696cat >>conftest.$ac_ext <<_ACEOF
7697/* end confdefs.h.  */
7698
7699/* Override any gcc2 internal prototype to avoid an error.  */
7700#ifdef __cplusplus
7701extern "C"
7702#endif
7703/* We use char because int might match the return type of a gcc2
7704   builtin and then its argument prototype would still apply.  */
7705char gethostbyname ();
7706int
7707main ()
7708{
7709gethostbyname ();
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716  (eval $ac_link) 2>conftest.er1
7717  ac_status=$?
7718  grep -v '^ *+' conftest.er1 >conftest.err
7719  rm -f conftest.er1
7720  cat conftest.err >&5
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); } &&
7723	 { ac_try='test -z "$ac_c_werror_flag"
7724			 || test ! -s conftest.err'
7725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726  (eval $ac_try) 2>&5
7727  ac_status=$?
7728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729  (exit $ac_status); }; } &&
7730	 { ac_try='test -s conftest$ac_exeext'
7731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732  (eval $ac_try) 2>&5
7733  ac_status=$?
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); }; }; then
7736  ac_cv_lib_socket_gethostbyname=yes
7737else
7738  echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741ac_cv_lib_socket_gethostbyname=no
7742fi
7743rm -f conftest.err conftest.$ac_objext \
7744      conftest$ac_exeext conftest.$ac_ext
7745LIBS=$ac_check_lib_save_LIBS
7746fi
7747echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7748echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7749if test $ac_cv_lib_socket_gethostbyname = yes; then
7750  cat >>confdefs.h <<_ACEOF
7751#define HAVE_LIBSOCKET 1
7752_ACEOF
7753
7754  LIBS="-lsocket $LIBS"
7755
7756else
7757  # Unfortunately libsocket sometimes depends on libnsl.
7758                # AC_CHECK_LIB's API is essentially broken so the
7759                # following ugliness is necessary:
7760                echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7761echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7762if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7763  echo $ECHO_N "(cached) $ECHO_C" >&6
7764else
7765  ac_check_lib_save_LIBS=$LIBS
7766LIBS="-lsocket -lnsl $LIBS"
7767cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h.  */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h.  */
7773
7774/* Override any gcc2 internal prototype to avoid an error.  */
7775#ifdef __cplusplus
7776extern "C"
7777#endif
7778/* We use char because int might match the return type of a gcc2
7779   builtin and then its argument prototype would still apply.  */
7780char gethostbyname ();
7781int
7782main ()
7783{
7784gethostbyname ();
7785  ;
7786  return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext conftest$ac_exeext
7790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791  (eval $ac_link) 2>conftest.er1
7792  ac_status=$?
7793  grep -v '^ *+' conftest.er1 >conftest.err
7794  rm -f conftest.er1
7795  cat conftest.err >&5
7796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797  (exit $ac_status); } &&
7798	 { ac_try='test -z "$ac_c_werror_flag"
7799			 || test ! -s conftest.err'
7800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801  (eval $ac_try) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; } &&
7805	 { ac_try='test -s conftest$ac_exeext'
7806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807  (eval $ac_try) 2>&5
7808  ac_status=$?
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); }; }; then
7811  ac_cv_lib_socket_gethostbyname=yes
7812else
7813  echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816ac_cv_lib_socket_gethostbyname=no
7817fi
7818rm -f conftest.err conftest.$ac_objext \
7819      conftest$ac_exeext conftest.$ac_ext
7820LIBS=$ac_check_lib_save_LIBS
7821fi
7822echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7823echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7824if test $ac_cv_lib_socket_gethostbyname = yes; then
7825  LIBS="-lsocket -lnsl $LIBS"
7826else
7827
7828echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
7829echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
7830if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
7831  echo $ECHO_N "(cached) $ECHO_C" >&6
7832else
7833  ac_check_lib_save_LIBS=$LIBS
7834LIBS="-lresolv  $LIBS"
7835cat >conftest.$ac_ext <<_ACEOF
7836/* confdefs.h.  */
7837_ACEOF
7838cat confdefs.h >>conftest.$ac_ext
7839cat >>conftest.$ac_ext <<_ACEOF
7840/* end confdefs.h.  */
7841
7842/* Override any gcc2 internal prototype to avoid an error.  */
7843#ifdef __cplusplus
7844extern "C"
7845#endif
7846/* We use char because int might match the return type of a gcc2
7847   builtin and then its argument prototype would still apply.  */
7848char gethostbyname ();
7849int
7850main ()
7851{
7852gethostbyname ();
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857rm -f conftest.$ac_objext conftest$ac_exeext
7858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7859  (eval $ac_link) 2>conftest.er1
7860  ac_status=$?
7861  grep -v '^ *+' conftest.er1 >conftest.err
7862  rm -f conftest.er1
7863  cat conftest.err >&5
7864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865  (exit $ac_status); } &&
7866	 { ac_try='test -z "$ac_c_werror_flag"
7867			 || test ! -s conftest.err'
7868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869  (eval $ac_try) 2>&5
7870  ac_status=$?
7871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872  (exit $ac_status); }; } &&
7873	 { ac_try='test -s conftest$ac_exeext'
7874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875  (eval $ac_try) 2>&5
7876  ac_status=$?
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); }; }; then
7879  ac_cv_lib_resolv_gethostbyname=yes
7880else
7881  echo "$as_me: failed program was:" >&5
7882sed 's/^/| /' conftest.$ac_ext >&5
7883
7884ac_cv_lib_resolv_gethostbyname=no
7885fi
7886rm -f conftest.err conftest.$ac_objext \
7887      conftest$ac_exeext conftest.$ac_ext
7888LIBS=$ac_check_lib_save_LIBS
7889fi
7890echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
7891echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
7892if test $ac_cv_lib_resolv_gethostbyname = yes; then
7893  cat >>confdefs.h <<_ACEOF
7894#define HAVE_LIBRESOLV 1
7895_ACEOF
7896
7897  LIBS="-lresolv $LIBS"
7898
7899fi
7900
7901fi
7902
7903fi
7904
7905fi
7906
7907fi
7908
7909    echo "$as_me:$LINENO: checking for socket" >&5
7910echo $ECHO_N "checking for socket... $ECHO_C" >&6
7911if test "${ac_cv_func_socket+set}" = set; then
7912  echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914  cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h.  */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h.  */
7920/* Define socket to an innocuous variant, in case <limits.h> declares socket.
7921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7922#define socket innocuous_socket
7923
7924/* System header to define __stub macros and hopefully few prototypes,
7925    which can conflict with char socket (); below.
7926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7927    <limits.h> exists even on freestanding compilers.  */
7928
7929#ifdef __STDC__
7930# include <limits.h>
7931#else
7932# include <assert.h>
7933#endif
7934
7935#undef socket
7936
7937/* Override any gcc2 internal prototype to avoid an error.  */
7938#ifdef __cplusplus
7939extern "C"
7940{
7941#endif
7942/* We use char because int might match the return type of a gcc2
7943   builtin and then its argument prototype would still apply.  */
7944char socket ();
7945/* The GNU C library defines this for functions which it implements
7946    to always fail with ENOSYS.  Some functions are actually named
7947    something starting with __ and the normal name is an alias.  */
7948#if defined (__stub_socket) || defined (__stub___socket)
7949choke me
7950#else
7951char (*f) () = socket;
7952#endif
7953#ifdef __cplusplus
7954}
7955#endif
7956
7957int
7958main ()
7959{
7960return f != socket;
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965rm -f conftest.$ac_objext conftest$ac_exeext
7966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967  (eval $ac_link) 2>conftest.er1
7968  ac_status=$?
7969  grep -v '^ *+' conftest.er1 >conftest.err
7970  rm -f conftest.er1
7971  cat conftest.err >&5
7972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973  (exit $ac_status); } &&
7974	 { ac_try='test -z "$ac_c_werror_flag"
7975			 || test ! -s conftest.err'
7976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977  (eval $ac_try) 2>&5
7978  ac_status=$?
7979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980  (exit $ac_status); }; } &&
7981	 { ac_try='test -s conftest$ac_exeext'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; }; then
7987  ac_cv_func_socket=yes
7988else
7989  echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992ac_cv_func_socket=no
7993fi
7994rm -f conftest.err conftest.$ac_objext \
7995      conftest$ac_exeext conftest.$ac_ext
7996fi
7997echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7998echo "${ECHO_T}$ac_cv_func_socket" >&6
7999if test $ac_cv_func_socket = yes; then
8000  :
8001else
8002
8003echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8004echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8005if test "${ac_cv_lib_socket_socket+set}" = set; then
8006  echo $ECHO_N "(cached) $ECHO_C" >&6
8007else
8008  ac_check_lib_save_LIBS=$LIBS
8009LIBS="-lsocket  $LIBS"
8010cat >conftest.$ac_ext <<_ACEOF
8011/* confdefs.h.  */
8012_ACEOF
8013cat confdefs.h >>conftest.$ac_ext
8014cat >>conftest.$ac_ext <<_ACEOF
8015/* end confdefs.h.  */
8016
8017/* Override any gcc2 internal prototype to avoid an error.  */
8018#ifdef __cplusplus
8019extern "C"
8020#endif
8021/* We use char because int might match the return type of a gcc2
8022   builtin and then its argument prototype would still apply.  */
8023char socket ();
8024int
8025main ()
8026{
8027socket ();
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext conftest$ac_exeext
8033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034  (eval $ac_link) 2>conftest.er1
8035  ac_status=$?
8036  grep -v '^ *+' conftest.er1 >conftest.err
8037  rm -f conftest.er1
8038  cat conftest.err >&5
8039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040  (exit $ac_status); } &&
8041	 { ac_try='test -z "$ac_c_werror_flag"
8042			 || test ! -s conftest.err'
8043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044  (eval $ac_try) 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); }; } &&
8048	 { ac_try='test -s conftest$ac_exeext'
8049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050  (eval $ac_try) 2>&5
8051  ac_status=$?
8052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053  (exit $ac_status); }; }; then
8054  ac_cv_lib_socket_socket=yes
8055else
8056  echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
8059ac_cv_lib_socket_socket=no
8060fi
8061rm -f conftest.err conftest.$ac_objext \
8062      conftest$ac_exeext conftest.$ac_ext
8063LIBS=$ac_check_lib_save_LIBS
8064fi
8065echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8066echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8067if test $ac_cv_lib_socket_socket = yes; then
8068  cat >>confdefs.h <<_ACEOF
8069#define HAVE_LIBSOCKET 1
8070_ACEOF
8071
8072  LIBS="-lsocket $LIBS"
8073
8074else
8075  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8076echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8077if test "${ac_cv_lib_socket_socket+set}" = set; then
8078  echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080  ac_check_lib_save_LIBS=$LIBS
8081LIBS="-lsocket -lnsl $LIBS"
8082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h.  */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h.  */
8088
8089/* Override any gcc2 internal prototype to avoid an error.  */
8090#ifdef __cplusplus
8091extern "C"
8092#endif
8093/* We use char because int might match the return type of a gcc2
8094   builtin and then its argument prototype would still apply.  */
8095char socket ();
8096int
8097main ()
8098{
8099socket ();
8100  ;
8101  return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext conftest$ac_exeext
8105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106  (eval $ac_link) 2>conftest.er1
8107  ac_status=$?
8108  grep -v '^ *+' conftest.er1 >conftest.err
8109  rm -f conftest.er1
8110  cat conftest.err >&5
8111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112  (exit $ac_status); } &&
8113	 { ac_try='test -z "$ac_c_werror_flag"
8114			 || test ! -s conftest.err'
8115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116  (eval $ac_try) 2>&5
8117  ac_status=$?
8118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119  (exit $ac_status); }; } &&
8120	 { ac_try='test -s conftest$ac_exeext'
8121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122  (eval $ac_try) 2>&5
8123  ac_status=$?
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); }; }; then
8126  ac_cv_lib_socket_socket=yes
8127else
8128  echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
8131ac_cv_lib_socket_socket=no
8132fi
8133rm -f conftest.err conftest.$ac_objext \
8134      conftest$ac_exeext conftest.$ac_ext
8135LIBS=$ac_check_lib_save_LIBS
8136fi
8137echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8138echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8139if test $ac_cv_lib_socket_socket = yes; then
8140  LIBS="-lsocket -lnsl $LIBS"
8141fi
8142
8143fi
8144
8145fi
8146
8147    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8148
8149echo "$as_me:$LINENO: checking for putmsg in -lstr" >&5
8150echo $ECHO_N "checking for putmsg in -lstr... $ECHO_C" >&6
8151if test "${ac_cv_lib_str_putmsg+set}" = set; then
8152  echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154  ac_check_lib_save_LIBS=$LIBS
8155LIBS="-lstr  $LIBS"
8156cat >conftest.$ac_ext <<_ACEOF
8157/* confdefs.h.  */
8158_ACEOF
8159cat confdefs.h >>conftest.$ac_ext
8160cat >>conftest.$ac_ext <<_ACEOF
8161/* end confdefs.h.  */
8162
8163/* Override any gcc2 internal prototype to avoid an error.  */
8164#ifdef __cplusplus
8165extern "C"
8166#endif
8167/* We use char because int might match the return type of a gcc2
8168   builtin and then its argument prototype would still apply.  */
8169char putmsg ();
8170int
8171main ()
8172{
8173putmsg ();
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180  (eval $ac_link) 2>conftest.er1
8181  ac_status=$?
8182  grep -v '^ *+' conftest.er1 >conftest.err
8183  rm -f conftest.er1
8184  cat conftest.err >&5
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); } &&
8187	 { ac_try='test -z "$ac_c_werror_flag"
8188			 || test ! -s conftest.err'
8189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190  (eval $ac_try) 2>&5
8191  ac_status=$?
8192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193  (exit $ac_status); }; } &&
8194	 { ac_try='test -s conftest$ac_exeext'
8195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196  (eval $ac_try) 2>&5
8197  ac_status=$?
8198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199  (exit $ac_status); }; }; then
8200  ac_cv_lib_str_putmsg=yes
8201else
8202  echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
8205ac_cv_lib_str_putmsg=no
8206fi
8207rm -f conftest.err conftest.$ac_objext \
8208      conftest$ac_exeext conftest.$ac_ext
8209LIBS=$ac_check_lib_save_LIBS
8210fi
8211echo "$as_me:$LINENO: result: $ac_cv_lib_str_putmsg" >&5
8212echo "${ECHO_T}$ac_cv_lib_str_putmsg" >&6
8213if test $ac_cv_lib_str_putmsg = yes; then
8214  cat >>confdefs.h <<_ACEOF
8215#define HAVE_LIBSTR 1
8216_ACEOF
8217
8218  LIBS="-lstr $LIBS"
8219
8220fi
8221
8222
8223
8224
8225for ac_header in sys/sockio.h
8226do
8227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228if eval "test \"\${$as_ac_Header+set}\" = set"; then
8229  echo "$as_me:$LINENO: checking for $ac_header" >&5
8230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233fi
8234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236else
8237  # Is the header compilable?
8238echo "$as_me:$LINENO: checking $ac_header usability" >&5
8239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8240cat >conftest.$ac_ext <<_ACEOF
8241/* confdefs.h.  */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
8245/* end confdefs.h.  */
8246$ac_includes_default
8247#include <$ac_header>
8248_ACEOF
8249rm -f conftest.$ac_objext
8250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251  (eval $ac_compile) 2>conftest.er1
8252  ac_status=$?
8253  grep -v '^ *+' conftest.er1 >conftest.err
8254  rm -f conftest.er1
8255  cat conftest.err >&5
8256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257  (exit $ac_status); } &&
8258	 { ac_try='test -z "$ac_c_werror_flag"
8259			 || test ! -s conftest.err'
8260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261  (eval $ac_try) 2>&5
8262  ac_status=$?
8263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264  (exit $ac_status); }; } &&
8265	 { ac_try='test -s conftest.$ac_objext'
8266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267  (eval $ac_try) 2>&5
8268  ac_status=$?
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); }; }; then
8271  ac_header_compiler=yes
8272else
8273  echo "$as_me: failed program was:" >&5
8274sed 's/^/| /' conftest.$ac_ext >&5
8275
8276ac_header_compiler=no
8277fi
8278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8280echo "${ECHO_T}$ac_header_compiler" >&6
8281
8282# Is the header present?
8283echo "$as_me:$LINENO: checking $ac_header presence" >&5
8284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8285cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h.  */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h.  */
8291#include <$ac_header>
8292_ACEOF
8293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8295  ac_status=$?
8296  grep -v '^ *+' conftest.er1 >conftest.err
8297  rm -f conftest.er1
8298  cat conftest.err >&5
8299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300  (exit $ac_status); } >/dev/null; then
8301  if test -s conftest.err; then
8302    ac_cpp_err=$ac_c_preproc_warn_flag
8303    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8304  else
8305    ac_cpp_err=
8306  fi
8307else
8308  ac_cpp_err=yes
8309fi
8310if test -z "$ac_cpp_err"; then
8311  ac_header_preproc=yes
8312else
8313  echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
8316  ac_header_preproc=no
8317fi
8318rm -f conftest.err conftest.$ac_ext
8319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8320echo "${ECHO_T}$ac_header_preproc" >&6
8321
8322# So?  What about this header?
8323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8324  yes:no: )
8325    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8327    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8329    ac_header_preproc=yes
8330    ;;
8331  no:yes:* )
8332    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8334    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8335echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8336    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8338    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8339echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8340    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8342    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8344    (
8345      cat <<\_ASBOX
8346## ------------------------------------------ ##
8347## Report this to the AC_PACKAGE_NAME lists.  ##
8348## ------------------------------------------ ##
8349_ASBOX
8350    ) |
8351      sed "s/^/$as_me: WARNING:     /" >&2
8352    ;;
8353esac
8354echo "$as_me:$LINENO: checking for $ac_header" >&5
8355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8356if eval "test \"\${$as_ac_Header+set}\" = set"; then
8357  echo $ECHO_N "(cached) $ECHO_C" >&6
8358else
8359  eval "$as_ac_Header=\$ac_header_preproc"
8360fi
8361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8363
8364fi
8365if test `eval echo '${'$as_ac_Header'}'` = yes; then
8366  cat >>confdefs.h <<_ACEOF
8367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8368_ACEOF
8369
8370fi
8371
8372done
8373
8374
8375
8376
8377for ac_func in srandom random
8378do
8379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8380echo "$as_me:$LINENO: checking for $ac_func" >&5
8381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8382if eval "test \"\${$as_ac_var+set}\" = set"; then
8383  echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385  cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h.  */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h.  */
8391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8392   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8393#define $ac_func innocuous_$ac_func
8394
8395/* System header to define __stub macros and hopefully few prototypes,
8396    which can conflict with char $ac_func (); below.
8397    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8398    <limits.h> exists even on freestanding compilers.  */
8399
8400#ifdef __STDC__
8401# include <limits.h>
8402#else
8403# include <assert.h>
8404#endif
8405
8406#undef $ac_func
8407
8408/* Override any gcc2 internal prototype to avoid an error.  */
8409#ifdef __cplusplus
8410extern "C"
8411{
8412#endif
8413/* We use char because int might match the return type of a gcc2
8414   builtin and then its argument prototype would still apply.  */
8415char $ac_func ();
8416/* The GNU C library defines this for functions which it implements
8417    to always fail with ENOSYS.  Some functions are actually named
8418    something starting with __ and the normal name is an alias.  */
8419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8420choke me
8421#else
8422char (*f) () = $ac_func;
8423#endif
8424#ifdef __cplusplus
8425}
8426#endif
8427
8428int
8429main ()
8430{
8431return f != $ac_func;
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436rm -f conftest.$ac_objext conftest$ac_exeext
8437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8438  (eval $ac_link) 2>conftest.er1
8439  ac_status=$?
8440  grep -v '^ *+' conftest.er1 >conftest.err
8441  rm -f conftest.er1
8442  cat conftest.err >&5
8443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444  (exit $ac_status); } &&
8445	 { ac_try='test -z "$ac_c_werror_flag"
8446			 || test ! -s conftest.err'
8447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448  (eval $ac_try) 2>&5
8449  ac_status=$?
8450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451  (exit $ac_status); }; } &&
8452	 { ac_try='test -s conftest$ac_exeext'
8453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454  (eval $ac_try) 2>&5
8455  ac_status=$?
8456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457  (exit $ac_status); }; }; then
8458  eval "$as_ac_var=yes"
8459else
8460  echo "$as_me: failed program was:" >&5
8461sed 's/^/| /' conftest.$ac_ext >&5
8462
8463eval "$as_ac_var=no"
8464fi
8465rm -f conftest.err conftest.$ac_objext \
8466      conftest$ac_exeext conftest.$ac_ext
8467fi
8468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8470if test `eval echo '${'$as_ac_var'}'` = yes; then
8471  cat >>confdefs.h <<_ACEOF
8472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8473_ACEOF
8474
8475fi
8476done
8477
8478if test $ac_cv_func_srandom = no; then
8479  # let's try with the older srand/rand functions
8480
8481
8482for ac_func in srand rand
8483do
8484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8485echo "$as_me:$LINENO: checking for $ac_func" >&5
8486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8487if eval "test \"\${$as_ac_var+set}\" = set"; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490  cat >conftest.$ac_ext <<_ACEOF
8491/* confdefs.h.  */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h.  */
8496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8497   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8498#define $ac_func innocuous_$ac_func
8499
8500/* System header to define __stub macros and hopefully few prototypes,
8501    which can conflict with char $ac_func (); below.
8502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8503    <limits.h> exists even on freestanding compilers.  */
8504
8505#ifdef __STDC__
8506# include <limits.h>
8507#else
8508# include <assert.h>
8509#endif
8510
8511#undef $ac_func
8512
8513/* Override any gcc2 internal prototype to avoid an error.  */
8514#ifdef __cplusplus
8515extern "C"
8516{
8517#endif
8518/* We use char because int might match the return type of a gcc2
8519   builtin and then its argument prototype would still apply.  */
8520char $ac_func ();
8521/* The GNU C library defines this for functions which it implements
8522    to always fail with ENOSYS.  Some functions are actually named
8523    something starting with __ and the normal name is an alias.  */
8524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8525choke me
8526#else
8527char (*f) () = $ac_func;
8528#endif
8529#ifdef __cplusplus
8530}
8531#endif
8532
8533int
8534main ()
8535{
8536return f != $ac_func;
8537  ;
8538  return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543  (eval $ac_link) 2>conftest.er1
8544  ac_status=$?
8545  grep -v '^ *+' conftest.er1 >conftest.err
8546  rm -f conftest.er1
8547  cat conftest.err >&5
8548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549  (exit $ac_status); } &&
8550	 { ac_try='test -z "$ac_c_werror_flag"
8551			 || test ! -s conftest.err'
8552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553  (eval $ac_try) 2>&5
8554  ac_status=$?
8555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); }; } &&
8557	 { ac_try='test -s conftest$ac_exeext'
8558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559  (eval $ac_try) 2>&5
8560  ac_status=$?
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); }; }; then
8563  eval "$as_ac_var=yes"
8564else
8565  echo "$as_me: failed program was:" >&5
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
8568eval "$as_ac_var=no"
8569fi
8570rm -f conftest.err conftest.$ac_objext \
8571      conftest$ac_exeext conftest.$ac_ext
8572fi
8573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8575if test `eval echo '${'$as_ac_var'}'` = yes; then
8576  cat >>confdefs.h <<_ACEOF
8577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8578_ACEOF
8579
8580fi
8581done
8582
8583fi
8584
8585
8586
8587for ac_func in inet_pton inet_ntop
8588do
8589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8590echo "$as_me:$LINENO: checking for $ac_func" >&5
8591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8592if eval "test \"\${$as_ac_var+set}\" = set"; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h.  */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h.  */
8601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8602   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8603#define $ac_func innocuous_$ac_func
8604
8605/* System header to define __stub macros and hopefully few prototypes,
8606    which can conflict with char $ac_func (); below.
8607    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8608    <limits.h> exists even on freestanding compilers.  */
8609
8610#ifdef __STDC__
8611# include <limits.h>
8612#else
8613# include <assert.h>
8614#endif
8615
8616#undef $ac_func
8617
8618/* Override any gcc2 internal prototype to avoid an error.  */
8619#ifdef __cplusplus
8620extern "C"
8621{
8622#endif
8623/* We use char because int might match the return type of a gcc2
8624   builtin and then its argument prototype would still apply.  */
8625char $ac_func ();
8626/* The GNU C library defines this for functions which it implements
8627    to always fail with ENOSYS.  Some functions are actually named
8628    something starting with __ and the normal name is an alias.  */
8629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8630choke me
8631#else
8632char (*f) () = $ac_func;
8633#endif
8634#ifdef __cplusplus
8635}
8636#endif
8637
8638int
8639main ()
8640{
8641return f != $ac_func;
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
8647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648  (eval $ac_link) 2>conftest.er1
8649  ac_status=$?
8650  grep -v '^ *+' conftest.er1 >conftest.err
8651  rm -f conftest.er1
8652  cat conftest.err >&5
8653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654  (exit $ac_status); } &&
8655	 { ac_try='test -z "$ac_c_werror_flag"
8656			 || test ! -s conftest.err'
8657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658  (eval $ac_try) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); }; } &&
8662	 { ac_try='test -s conftest$ac_exeext'
8663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664  (eval $ac_try) 2>&5
8665  ac_status=$?
8666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667  (exit $ac_status); }; }; then
8668  eval "$as_ac_var=yes"
8669else
8670  echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673eval "$as_ac_var=no"
8674fi
8675rm -f conftest.err conftest.$ac_objext \
8676      conftest$ac_exeext conftest.$ac_ext
8677fi
8678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8680if test `eval echo '${'$as_ac_var'}'` = yes; then
8681  cat >>confdefs.h <<_ACEOF
8682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8683_ACEOF
8684
8685fi
8686done
8687
8688
8689echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
8690echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
8691if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
8692  echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694  cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h.  */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h.  */
8700#include <sys/types.h>
8701#include <sys/socket.h>
8702
8703int
8704main ()
8705{
8706static struct sockaddr ac_aggr;
8707if (ac_aggr.sa_len)
8708return 0;
8709  ;
8710  return 0;
8711}
8712_ACEOF
8713rm -f conftest.$ac_objext
8714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8715  (eval $ac_compile) 2>conftest.er1
8716  ac_status=$?
8717  grep -v '^ *+' conftest.er1 >conftest.err
8718  rm -f conftest.er1
8719  cat conftest.err >&5
8720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721  (exit $ac_status); } &&
8722	 { ac_try='test -z "$ac_c_werror_flag"
8723			 || test ! -s conftest.err'
8724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725  (eval $ac_try) 2>&5
8726  ac_status=$?
8727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728  (exit $ac_status); }; } &&
8729	 { ac_try='test -s conftest.$ac_objext'
8730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731  (eval $ac_try) 2>&5
8732  ac_status=$?
8733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734  (exit $ac_status); }; }; then
8735  ac_cv_member_struct_sockaddr_sa_len=yes
8736else
8737  echo "$as_me: failed program was:" >&5
8738sed 's/^/| /' conftest.$ac_ext >&5
8739
8740cat >conftest.$ac_ext <<_ACEOF
8741/* confdefs.h.  */
8742_ACEOF
8743cat confdefs.h >>conftest.$ac_ext
8744cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h.  */
8746#include <sys/types.h>
8747#include <sys/socket.h>
8748
8749int
8750main ()
8751{
8752static struct sockaddr ac_aggr;
8753if (sizeof ac_aggr.sa_len)
8754return 0;
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext
8760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761  (eval $ac_compile) 2>conftest.er1
8762  ac_status=$?
8763  grep -v '^ *+' conftest.er1 >conftest.err
8764  rm -f conftest.er1
8765  cat conftest.err >&5
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); } &&
8768	 { ac_try='test -z "$ac_c_werror_flag"
8769			 || test ! -s conftest.err'
8770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771  (eval $ac_try) 2>&5
8772  ac_status=$?
8773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774  (exit $ac_status); }; } &&
8775	 { ac_try='test -s conftest.$ac_objext'
8776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777  (eval $ac_try) 2>&5
8778  ac_status=$?
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); }; }; then
8781  ac_cv_member_struct_sockaddr_sa_len=yes
8782else
8783  echo "$as_me: failed program was:" >&5
8784sed 's/^/| /' conftest.$ac_ext >&5
8785
8786ac_cv_member_struct_sockaddr_sa_len=no
8787fi
8788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789fi
8790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8791fi
8792echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
8793echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
8794if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
8795
8796cat >>confdefs.h <<_ACEOF
8797#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
8798_ACEOF
8799
8800
8801fi
8802
8803
8804echo "$as_me:$LINENO: checking for struct in_pktinfo" >&5
8805echo $ECHO_N "checking for struct in_pktinfo... $ECHO_C" >&6
8806if test "${ac_cv_type_struct_in_pktinfo+set}" = set; then
8807  echo $ECHO_N "(cached) $ECHO_C" >&6
8808else
8809  cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h.  */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h.  */
8815#include <sys/types.h>
8816#include <netinet/in.h>
8817
8818int
8819main ()
8820{
8821if ((struct in_pktinfo *) 0)
8822  return 0;
8823if (sizeof (struct in_pktinfo))
8824  return 0;
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829rm -f conftest.$ac_objext
8830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831  (eval $ac_compile) 2>conftest.er1
8832  ac_status=$?
8833  grep -v '^ *+' conftest.er1 >conftest.err
8834  rm -f conftest.er1
8835  cat conftest.err >&5
8836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837  (exit $ac_status); } &&
8838	 { ac_try='test -z "$ac_c_werror_flag"
8839			 || test ! -s conftest.err'
8840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841  (eval $ac_try) 2>&5
8842  ac_status=$?
8843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844  (exit $ac_status); }; } &&
8845	 { ac_try='test -s conftest.$ac_objext'
8846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847  (eval $ac_try) 2>&5
8848  ac_status=$?
8849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850  (exit $ac_status); }; }; then
8851  ac_cv_type_struct_in_pktinfo=yes
8852else
8853  echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856ac_cv_type_struct_in_pktinfo=no
8857fi
8858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859fi
8860echo "$as_me:$LINENO: result: $ac_cv_type_struct_in_pktinfo" >&5
8861echo "${ECHO_T}$ac_cv_type_struct_in_pktinfo" >&6
8862if test $ac_cv_type_struct_in_pktinfo = yes; then
8863
8864cat >>confdefs.h <<_ACEOF
8865#define HAVE_STRUCT_IN_PKTINFO 1
8866_ACEOF
8867
8868
8869fi
8870echo "$as_me:$LINENO: checking for in_port_t" >&5
8871echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
8872if test "${ac_cv_type_in_port_t+set}" = set; then
8873  echo $ECHO_N "(cached) $ECHO_C" >&6
8874else
8875  cat >conftest.$ac_ext <<_ACEOF
8876/* confdefs.h.  */
8877_ACEOF
8878cat confdefs.h >>conftest.$ac_ext
8879cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h.  */
8881#include <sys/types.h>
8882#include <netinet/in.h>
8883
8884int
8885main ()
8886{
8887if ((in_port_t *) 0)
8888  return 0;
8889if (sizeof (in_port_t))
8890  return 0;
8891  ;
8892  return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext
8896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897  (eval $ac_compile) 2>conftest.er1
8898  ac_status=$?
8899  grep -v '^ *+' conftest.er1 >conftest.err
8900  rm -f conftest.er1
8901  cat conftest.err >&5
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); } &&
8904	 { ac_try='test -z "$ac_c_werror_flag"
8905			 || test ! -s conftest.err'
8906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907  (eval $ac_try) 2>&5
8908  ac_status=$?
8909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910  (exit $ac_status); }; } &&
8911	 { ac_try='test -s conftest.$ac_objext'
8912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913  (eval $ac_try) 2>&5
8914  ac_status=$?
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); }; }; then
8917  ac_cv_type_in_port_t=yes
8918else
8919  echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922ac_cv_type_in_port_t=no
8923fi
8924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925fi
8926echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8927echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
8928if test $ac_cv_type_in_port_t = yes; then
8929
8930cat >>confdefs.h <<_ACEOF
8931#define HAVE_IN_PORT_T 1
8932_ACEOF
8933
8934
8935fi
8936
8937
8938# check if this compiler supports the common parameter `-Wall'
8939if test -n "$GCC"; then
8940  CFLAGS="$CFLAGS -Wall"
8941fi
8942
8943# check wether we shall use linux-style select(2) call
8944case "$host" in
8945  *-linux*)
8946
8947cat >>confdefs.h <<\_ACEOF
8948#define USE_LINUX_SELECT
8949_ACEOF
8950
8951    ;;
8952esac
8953
8954
8955
8956
8957# Check whether --enable-debug or --disable-debug was given.
8958if test "${enable_debug+set}" = set; then
8959  enableval="$enable_debug"
8960  CFLAGS="$CFLAGS -O0 -g3 -ggdb3 -DDEBUG"
8961fi;
8962
8963# Check whether --enable-compat or --disable-compat was given.
8964if test "${enable_compat+set}" = set; then
8965  enableval="$enable_compat"
8966  nc_enab_compat=yes
8967	nc_enab_oldhexdump=yes
8968	nc_enab_oldtelnet=yes
8969fi;
8970
8971# Check whether --enable-oldhexdump or --disable-oldhexdump was given.
8972if test "${enable_oldhexdump+set}" = set; then
8973  enableval="$enable_oldhexdump"
8974  nc_enab_oldhexdump=yes
8975fi;
8976
8977# Check whether --enable-oldtelnet or --disable-oldtelnet was given.
8978if test "${enable_oldtelnet+set}" = set; then
8979  enableval="$enable_oldtelnet"
8980  nc_enab_oldtelnet=yes
8981fi;
8982
8983
8984# Check whether --with-included-getopt or --without-included-getopt was given.
8985if test "${with_included_getopt+set}" = set; then
8986  withval="$with_included_getopt"
8987  nc_need_getopt=yes
8988fi;
8989
8990
8991# apply the acquired enable options
8992if test "x$nc_enab_compat" = "xyes"; then
8993
8994cat >>confdefs.h <<\_ACEOF
8995#define USE_OLD_COMPAT
8996_ACEOF
8997
8998fi
8999
9000if test "x$nc_enab_oldhexdump" = "xyes"; then
9001
9002cat >>confdefs.h <<\_ACEOF
9003#define USE_OLD_HEXDUMP
9004_ACEOF
9005
9006fi
9007
9008if test "x$nc_enab_oldtelnet" = "xyes"; then
9009
9010cat >>confdefs.h <<\_ACEOF
9011#define USE_OLD_TELNET
9012_ACEOF
9013
9014fi
9015
9016
9017
9018
9019# don't run the check if --with-included-getopt was specified
9020if test "x$nc_need_getopt" != "xyes"; then
9021
9022for ac_func in getopt_long
9023do
9024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9025echo "$as_me:$LINENO: checking for $ac_func" >&5
9026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9027if eval "test \"\${$as_ac_var+set}\" = set"; then
9028  echo $ECHO_N "(cached) $ECHO_C" >&6
9029else
9030  cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h.  */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h.  */
9036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9038#define $ac_func innocuous_$ac_func
9039
9040/* System header to define __stub macros and hopefully few prototypes,
9041    which can conflict with char $ac_func (); below.
9042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9043    <limits.h> exists even on freestanding compilers.  */
9044
9045#ifdef __STDC__
9046# include <limits.h>
9047#else
9048# include <assert.h>
9049#endif
9050
9051#undef $ac_func
9052
9053/* Override any gcc2 internal prototype to avoid an error.  */
9054#ifdef __cplusplus
9055extern "C"
9056{
9057#endif
9058/* We use char because int might match the return type of a gcc2
9059   builtin and then its argument prototype would still apply.  */
9060char $ac_func ();
9061/* The GNU C library defines this for functions which it implements
9062    to always fail with ENOSYS.  Some functions are actually named
9063    something starting with __ and the normal name is an alias.  */
9064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9065choke me
9066#else
9067char (*f) () = $ac_func;
9068#endif
9069#ifdef __cplusplus
9070}
9071#endif
9072
9073int
9074main ()
9075{
9076return f != $ac_func;
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081rm -f conftest.$ac_objext conftest$ac_exeext
9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083  (eval $ac_link) 2>conftest.er1
9084  ac_status=$?
9085  grep -v '^ *+' conftest.er1 >conftest.err
9086  rm -f conftest.er1
9087  cat conftest.err >&5
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); } &&
9090	 { ac_try='test -z "$ac_c_werror_flag"
9091			 || test ! -s conftest.err'
9092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093  (eval $ac_try) 2>&5
9094  ac_status=$?
9095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096  (exit $ac_status); }; } &&
9097	 { ac_try='test -s conftest$ac_exeext'
9098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099  (eval $ac_try) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }; }; then
9103  eval "$as_ac_var=yes"
9104else
9105  echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108eval "$as_ac_var=no"
9109fi
9110rm -f conftest.err conftest.$ac_objext \
9111      conftest$ac_exeext conftest.$ac_ext
9112fi
9113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9115if test `eval echo '${'$as_ac_var'}'` = yes; then
9116  cat >>confdefs.h <<_ACEOF
9117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9118_ACEOF
9119
9120fi
9121done
9122
9123  if test $ac_cv_func_getopt_long = no; then
9124    # automatically use the internal getopt library
9125    nc_need_getopt=yes
9126    CONTRIBLIBS="../lib/contrib/libcontrib.a"
9127  fi
9128fi
9129
9130
9131
9132
9133
9134
9135if test "x$nc_need_getopt" = "xyes"; then
9136  NEED_GETOPT_TRUE=
9137  NEED_GETOPT_FALSE='#'
9138else
9139  NEED_GETOPT_TRUE='#'
9140  NEED_GETOPT_FALSE=
9141fi
9142
9143
9144
9145
9146                                                                                ac_config_files="$ac_config_files Makefile m4/Makefile lib/Makefile lib/contrib/Makefile src/Makefile doc/Makefile doc/drafts/Makefile po/Makefile.in"
9147
9148
9149          ac_config_files="$ac_config_files doc/texi2pod.pl"
9150
9151cat >confcache <<\_ACEOF
9152# This file is a shell script that caches the results of configure
9153# tests run on this system so they can be shared between configure
9154# scripts and configure runs, see configure's option --config-cache.
9155# It is not useful on other systems.  If it contains results you don't
9156# want to keep, you may remove or edit it.
9157#
9158# config.status only pays attention to the cache file if you give it
9159# the --recheck option to rerun configure.
9160#
9161# `ac_cv_env_foo' variables (set or unset) will be overridden when
9162# loading this file, other *unset* `ac_cv_foo' will be assigned the
9163# following values.
9164
9165_ACEOF
9166
9167# The following way of writing the cache mishandles newlines in values,
9168# but we know of no workaround that is simple, portable, and efficient.
9169# So, don't put newlines in cache variables' values.
9170# Ultrix sh set writes to stderr and can't be redirected directly,
9171# and sets the high bit in the cache file unless we assign to the vars.
9172{
9173  (set) 2>&1 |
9174    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9175    *ac_space=\ *)
9176      # `set' does not quote correctly, so add quotes (double-quote
9177      # substitution turns \\\\ into \\, and sed turns \\ into \).
9178      sed -n \
9179	"s/'/'\\\\''/g;
9180	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9181      ;;
9182    *)
9183      # `set' quotes correctly as required by POSIX, so do not add quotes.
9184      sed -n \
9185	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9186      ;;
9187    esac;
9188} |
9189  sed '
9190     t clear
9191     : clear
9192     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9193     t end
9194     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9195     : end' >>confcache
9196if diff $cache_file confcache >/dev/null 2>&1; then :; else
9197  if test -w $cache_file; then
9198    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9199    cat confcache >$cache_file
9200  else
9201    echo "not updating unwritable cache $cache_file"
9202  fi
9203fi
9204rm -f confcache
9205
9206test "x$prefix" = xNONE && prefix=$ac_default_prefix
9207# Let make expand exec_prefix.
9208test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9209
9210# VPATH may cause trouble with some makes, so we remove $(srcdir),
9211# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9212# trailing colons and then remove the whole line if VPATH becomes empty
9213# (actually we leave an empty line to preserve line numbers).
9214if test "x$srcdir" = x.; then
9215  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
9216s/:*\$(srcdir):*/:/;
9217s/:*\${srcdir}:*/:/;
9218s/:*@srcdir@:*/:/;
9219s/^\([^=]*=[	 ]*\):*/\1/;
9220s/:*$//;
9221s/^[^=]*=[	 ]*$//;
9222}'
9223fi
9224
9225DEFS=-DHAVE_CONFIG_H
9226
9227ac_libobjs=
9228ac_ltlibobjs=
9229for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9230  # 1. Remove the extension, and $U if already installed.
9231  ac_i=`echo "$ac_i" |
9232	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9233  # 2. Add them.
9234  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9235  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9236done
9237LIBOBJS=$ac_libobjs
9238
9239LTLIBOBJS=$ac_ltlibobjs
9240
9241
9242if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9243  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9244Usually this means the macro was only invoked conditionally." >&5
9245echo "$as_me: error: conditional \"AMDEP\" was never defined.
9246Usually this means the macro was only invoked conditionally." >&2;}
9247   { (exit 1); exit 1; }; }
9248fi
9249if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9250  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9251Usually this means the macro was only invoked conditionally." >&5
9252echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9253Usually this means the macro was only invoked conditionally." >&2;}
9254   { (exit 1); exit 1; }; }
9255fi
9256if test -z "${NEED_GETOPT_TRUE}" && test -z "${NEED_GETOPT_FALSE}"; then
9257  { { echo "$as_me:$LINENO: error: conditional \"NEED_GETOPT\" was never defined.
9258Usually this means the macro was only invoked conditionally." >&5
9259echo "$as_me: error: conditional \"NEED_GETOPT\" was never defined.
9260Usually this means the macro was only invoked conditionally." >&2;}
9261   { (exit 1); exit 1; }; }
9262fi
9263
9264: ${CONFIG_STATUS=./config.status}
9265ac_clean_files_save=$ac_clean_files
9266ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9267{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9268echo "$as_me: creating $CONFIG_STATUS" >&6;}
9269cat >$CONFIG_STATUS <<_ACEOF
9270#! $SHELL
9271# Generated by $as_me.
9272# Run this file to recreate the current configuration.
9273# Compiler output produced by configure, useful for debugging
9274# configure, is in config.log if it exists.
9275
9276debug=false
9277ac_cs_recheck=false
9278ac_cs_silent=false
9279SHELL=\${CONFIG_SHELL-$SHELL}
9280_ACEOF
9281
9282cat >>$CONFIG_STATUS <<\_ACEOF
9283## --------------------- ##
9284## M4sh Initialization.  ##
9285## --------------------- ##
9286
9287# Be Bourne compatible
9288if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9289  emulate sh
9290  NULLCMD=:
9291  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9292  # is contrary to our usage.  Disable this feature.
9293  alias -g '${1+"$@"}'='"$@"'
9294elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9295  set -o posix
9296fi
9297DUALCASE=1; export DUALCASE # for MKS sh
9298
9299# Support unset when possible.
9300if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9301  as_unset=unset
9302else
9303  as_unset=false
9304fi
9305
9306
9307# Work around bugs in pre-3.0 UWIN ksh.
9308$as_unset ENV MAIL MAILPATH
9309PS1='$ '
9310PS2='> '
9311PS4='+ '
9312
9313# NLS nuisances.
9314for as_var in \
9315  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9316  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9317  LC_TELEPHONE LC_TIME
9318do
9319  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9320    eval $as_var=C; export $as_var
9321  else
9322    $as_unset $as_var
9323  fi
9324done
9325
9326# Required to use basename.
9327if expr a : '\(a\)' >/dev/null 2>&1; then
9328  as_expr=expr
9329else
9330  as_expr=false
9331fi
9332
9333if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9334  as_basename=basename
9335else
9336  as_basename=false
9337fi
9338
9339
9340# Name of the executable.
9341as_me=`$as_basename "$0" ||
9342$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9343	 X"$0" : 'X\(//\)$' \| \
9344	 X"$0" : 'X\(/\)$' \| \
9345	 .     : '\(.\)' 2>/dev/null ||
9346echo X/"$0" |
9347    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9348  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9349  	  /^X\/\(\/\).*/{ s//\1/; q; }
9350  	  s/.*/./; q'`
9351
9352
9353# PATH needs CR, and LINENO needs CR and PATH.
9354# Avoid depending upon Character Ranges.
9355as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9356as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9357as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9358as_cr_digits='0123456789'
9359as_cr_alnum=$as_cr_Letters$as_cr_digits
9360
9361# The user is always right.
9362if test "${PATH_SEPARATOR+set}" != set; then
9363  echo "#! /bin/sh" >conf$$.sh
9364  echo  "exit 0"   >>conf$$.sh
9365  chmod +x conf$$.sh
9366  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9367    PATH_SEPARATOR=';'
9368  else
9369    PATH_SEPARATOR=:
9370  fi
9371  rm -f conf$$.sh
9372fi
9373
9374
9375  as_lineno_1=$LINENO
9376  as_lineno_2=$LINENO
9377  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9378  test "x$as_lineno_1" != "x$as_lineno_2" &&
9379  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9380  # Find who we are.  Look in the path if we contain no path at all
9381  # relative or not.
9382  case $0 in
9383    *[\\/]* ) as_myself=$0 ;;
9384    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385for as_dir in $PATH
9386do
9387  IFS=$as_save_IFS
9388  test -z "$as_dir" && as_dir=.
9389  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9390done
9391
9392       ;;
9393  esac
9394  # We did not find ourselves, most probably we were run as `sh COMMAND'
9395  # in which case we are not to be found in the path.
9396  if test "x$as_myself" = x; then
9397    as_myself=$0
9398  fi
9399  if test ! -f "$as_myself"; then
9400    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9401echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9402   { (exit 1); exit 1; }; }
9403  fi
9404  case $CONFIG_SHELL in
9405  '')
9406    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9408do
9409  IFS=$as_save_IFS
9410  test -z "$as_dir" && as_dir=.
9411  for as_base in sh bash ksh sh5; do
9412	 case $as_dir in
9413	 /*)
9414	   if ("$as_dir/$as_base" -c '
9415  as_lineno_1=$LINENO
9416  as_lineno_2=$LINENO
9417  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9418  test "x$as_lineno_1" != "x$as_lineno_2" &&
9419  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9420	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9421	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9422	     CONFIG_SHELL=$as_dir/$as_base
9423	     export CONFIG_SHELL
9424	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9425	   fi;;
9426	 esac
9427       done
9428done
9429;;
9430  esac
9431
9432  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9433  # uniformly replaced by the line number.  The first 'sed' inserts a
9434  # line-number line before each line; the second 'sed' does the real
9435  # work.  The second script uses 'N' to pair each line-number line
9436  # with the numbered line, and appends trailing '-' during
9437  # substitution so that $LINENO is not a special case at line end.
9438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9439  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9440  sed '=' <$as_myself |
9441    sed '
9442      N
9443      s,$,-,
9444      : loop
9445      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9446      t loop
9447      s,-$,,
9448      s,^['$as_cr_digits']*\n,,
9449    ' >$as_me.lineno &&
9450  chmod +x $as_me.lineno ||
9451    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9452echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9453   { (exit 1); exit 1; }; }
9454
9455  # Don't try to exec as it changes $[0], causing all sort of problems
9456  # (the dirname of $[0] is not the place where we might find the
9457  # original and so on.  Autoconf is especially sensible to this).
9458  . ./$as_me.lineno
9459  # Exit status is that of the last command.
9460  exit
9461}
9462
9463
9464case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9465  *c*,-n*) ECHO_N= ECHO_C='
9466' ECHO_T='	' ;;
9467  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9468  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9469esac
9470
9471if expr a : '\(a\)' >/dev/null 2>&1; then
9472  as_expr=expr
9473else
9474  as_expr=false
9475fi
9476
9477rm -f conf$$ conf$$.exe conf$$.file
9478echo >conf$$.file
9479if ln -s conf$$.file conf$$ 2>/dev/null; then
9480  # We could just check for DJGPP; but this test a) works b) is more generic
9481  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9482  if test -f conf$$.exe; then
9483    # Don't use ln at all; we don't have any links
9484    as_ln_s='cp -p'
9485  else
9486    as_ln_s='ln -s'
9487  fi
9488elif ln conf$$.file conf$$ 2>/dev/null; then
9489  as_ln_s=ln
9490else
9491  as_ln_s='cp -p'
9492fi
9493rm -f conf$$ conf$$.exe conf$$.file
9494
9495if mkdir -p . 2>/dev/null; then
9496  as_mkdir_p=:
9497else
9498  test -d ./-p && rmdir ./-p
9499  as_mkdir_p=false
9500fi
9501
9502as_executable_p="test -f"
9503
9504# Sed expression to map a string onto a valid CPP name.
9505as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9506
9507# Sed expression to map a string onto a valid variable name.
9508as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9509
9510
9511# IFS
9512# We need space, tab and new line, in precisely that order.
9513as_nl='
9514'
9515IFS=" 	$as_nl"
9516
9517# CDPATH.
9518$as_unset CDPATH
9519
9520exec 6>&1
9521
9522# Open the log real soon, to keep \$[0] and so on meaningful, and to
9523# report actual input values of CONFIG_FILES etc. instead of their
9524# values after options handling.  Logging --version etc. is OK.
9525exec 5>>config.log
9526{
9527  echo
9528  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9529## Running $as_me. ##
9530_ASBOX
9531} >&5
9532cat >&5 <<_CSEOF
9533
9534This file was extended by $as_me, which was
9535generated by GNU Autoconf 2.59.  Invocation command line was
9536
9537  CONFIG_FILES    = $CONFIG_FILES
9538  CONFIG_HEADERS  = $CONFIG_HEADERS
9539  CONFIG_LINKS    = $CONFIG_LINKS
9540  CONFIG_COMMANDS = $CONFIG_COMMANDS
9541  $ $0 $@
9542
9543_CSEOF
9544echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9545echo >&5
9546_ACEOF
9547
9548# Files that config.status was made for.
9549if test -n "$ac_config_files"; then
9550  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9551fi
9552
9553if test -n "$ac_config_headers"; then
9554  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9555fi
9556
9557if test -n "$ac_config_links"; then
9558  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9559fi
9560
9561if test -n "$ac_config_commands"; then
9562  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9563fi
9564
9565cat >>$CONFIG_STATUS <<\_ACEOF
9566
9567ac_cs_usage="\
9568\`$as_me' instantiates files from templates according to the
9569current configuration.
9570
9571Usage: $0 [OPTIONS] [FILE]...
9572
9573  -h, --help       print this help, then exit
9574  -V, --version    print version number, then exit
9575  -q, --quiet      do not print progress messages
9576  -d, --debug      don't remove temporary files
9577      --recheck    update $as_me by reconfiguring in the same conditions
9578  --file=FILE[:TEMPLATE]
9579		   instantiate the configuration file FILE
9580  --header=FILE[:TEMPLATE]
9581		   instantiate the configuration header FILE
9582
9583Configuration files:
9584$config_files
9585
9586Configuration headers:
9587$config_headers
9588
9589Configuration commands:
9590$config_commands
9591
9592Report bugs to <bug-autoconf@gnu.org>."
9593_ACEOF
9594
9595cat >>$CONFIG_STATUS <<_ACEOF
9596ac_cs_version="\\
9597config.status
9598configured by $0, generated by GNU Autoconf 2.59,
9599  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9600
9601Copyright (C) 2003 Free Software Foundation, Inc.
9602This config.status script is free software; the Free Software Foundation
9603gives unlimited permission to copy, distribute and modify it."
9604srcdir=$srcdir
9605INSTALL="$INSTALL"
9606_ACEOF
9607
9608cat >>$CONFIG_STATUS <<\_ACEOF
9609# If no file are specified by the user, then we need to provide default
9610# value.  By we need to know if files were specified by the user.
9611ac_need_defaults=:
9612while test $# != 0
9613do
9614  case $1 in
9615  --*=*)
9616    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9617    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9618    ac_shift=:
9619    ;;
9620  -*)
9621    ac_option=$1
9622    ac_optarg=$2
9623    ac_shift=shift
9624    ;;
9625  *) # This is not an option, so the user has probably given explicit
9626     # arguments.
9627     ac_option=$1
9628     ac_need_defaults=false;;
9629  esac
9630
9631  case $ac_option in
9632  # Handling of the options.
9633_ACEOF
9634cat >>$CONFIG_STATUS <<\_ACEOF
9635  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9636    ac_cs_recheck=: ;;
9637  --version | --vers* | -V )
9638    echo "$ac_cs_version"; exit 0 ;;
9639  --he | --h)
9640    # Conflict between --help and --header
9641    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9642Try \`$0 --help' for more information." >&5
9643echo "$as_me: error: ambiguous option: $1
9644Try \`$0 --help' for more information." >&2;}
9645   { (exit 1); exit 1; }; };;
9646  --help | --hel | -h )
9647    echo "$ac_cs_usage"; exit 0 ;;
9648  --debug | --d* | -d )
9649    debug=: ;;
9650  --file | --fil | --fi | --f )
9651    $ac_shift
9652    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9653    ac_need_defaults=false;;
9654  --header | --heade | --head | --hea )
9655    $ac_shift
9656    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9657    ac_need_defaults=false;;
9658  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9659  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9660    ac_cs_silent=: ;;
9661
9662  # This is an error.
9663  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9664Try \`$0 --help' for more information." >&5
9665echo "$as_me: error: unrecognized option: $1
9666Try \`$0 --help' for more information." >&2;}
9667   { (exit 1); exit 1; }; } ;;
9668
9669  *) ac_config_targets="$ac_config_targets $1" ;;
9670
9671  esac
9672  shift
9673done
9674
9675ac_configure_extra_args=
9676
9677if $ac_cs_silent; then
9678  exec 6>/dev/null
9679  ac_configure_extra_args="$ac_configure_extra_args --silent"
9680fi
9681
9682_ACEOF
9683cat >>$CONFIG_STATUS <<_ACEOF
9684if \$ac_cs_recheck; then
9685  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9686  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9687fi
9688
9689_ACEOF
9690
9691cat >>$CONFIG_STATUS <<_ACEOF
9692#
9693# INIT-COMMANDS section.
9694#
9695
9696AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9697# Capture the value of obsolete ALL_LINGUAS because we need it to compute
9698    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9699    # from automake.
9700    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9701    # Capture the value of LINGUAS because we need it to compute CATALOGS.
9702    LINGUAS="${LINGUAS-%UNSET%}"
9703
9704
9705_ACEOF
9706
9707
9708
9709cat >>$CONFIG_STATUS <<\_ACEOF
9710for ac_config_target in $ac_config_targets
9711do
9712  case "$ac_config_target" in
9713  # Handling of arguments.
9714  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9715  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9716  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9717  "lib/contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/contrib/Makefile" ;;
9718  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9719  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9720  "doc/drafts/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/drafts/Makefile" ;;
9721  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9722  "doc/texi2pod.pl" ) CONFIG_FILES="$CONFIG_FILES doc/texi2pod.pl" ;;
9723  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9724  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9725  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9726  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9727echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9728   { (exit 1); exit 1; }; };;
9729  esac
9730done
9731
9732# If the user did not use the arguments to specify the items to instantiate,
9733# then the envvar interface is used.  Set only those that are not.
9734# We use the long form for the default assignment because of an extremely
9735# bizarre bug on SunOS 4.1.3.
9736if $ac_need_defaults; then
9737  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9738  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9739  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9740fi
9741
9742# Have a temporary directory for convenience.  Make it in the build tree
9743# simply because there is no reason to put it here, and in addition,
9744# creating and moving files from /tmp can sometimes cause problems.
9745# Create a temporary directory, and hook for its removal unless debugging.
9746$debug ||
9747{
9748  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9749  trap '{ (exit 1); exit 1; }' 1 2 13 15
9750}
9751
9752# Create a (secure) tmp directory for tmp files.
9753
9754{
9755  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9756  test -n "$tmp" && test -d "$tmp"
9757}  ||
9758{
9759  tmp=./confstat$$-$RANDOM
9760  (umask 077 && mkdir $tmp)
9761} ||
9762{
9763   echo "$me: cannot create a temporary directory in ." >&2
9764   { (exit 1); exit 1; }
9765}
9766
9767_ACEOF
9768
9769cat >>$CONFIG_STATUS <<_ACEOF
9770
9771#
9772# CONFIG_FILES section.
9773#
9774
9775# No need to generate the scripts if there are no CONFIG_FILES.
9776# This happens for instance when ./config.status config.h
9777if test -n "\$CONFIG_FILES"; then
9778  # Protect against being on the right side of a sed subst in config.status.
9779  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9780   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9781s,@SHELL@,$SHELL,;t t
9782s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9783s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9784s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9785s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9786s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9787s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9788s,@exec_prefix@,$exec_prefix,;t t
9789s,@prefix@,$prefix,;t t
9790s,@program_transform_name@,$program_transform_name,;t t
9791s,@bindir@,$bindir,;t t
9792s,@sbindir@,$sbindir,;t t
9793s,@libexecdir@,$libexecdir,;t t
9794s,@datadir@,$datadir,;t t
9795s,@sysconfdir@,$sysconfdir,;t t
9796s,@sharedstatedir@,$sharedstatedir,;t t
9797s,@localstatedir@,$localstatedir,;t t
9798s,@libdir@,$libdir,;t t
9799s,@includedir@,$includedir,;t t
9800s,@oldincludedir@,$oldincludedir,;t t
9801s,@infodir@,$infodir,;t t
9802s,@mandir@,$mandir,;t t
9803s,@build_alias@,$build_alias,;t t
9804s,@host_alias@,$host_alias,;t t
9805s,@target_alias@,$target_alias,;t t
9806s,@DEFS@,$DEFS,;t t
9807s,@ECHO_C@,$ECHO_C,;t t
9808s,@ECHO_N@,$ECHO_N,;t t
9809s,@ECHO_T@,$ECHO_T,;t t
9810s,@LIBS@,$LIBS,;t t
9811s,@build@,$build,;t t
9812s,@build_cpu@,$build_cpu,;t t
9813s,@build_vendor@,$build_vendor,;t t
9814s,@build_os@,$build_os,;t t
9815s,@host@,$host,;t t
9816s,@host_cpu@,$host_cpu,;t t
9817s,@host_vendor@,$host_vendor,;t t
9818s,@host_os@,$host_os,;t t
9819s,@target@,$target,;t t
9820s,@target_cpu@,$target_cpu,;t t
9821s,@target_vendor@,$target_vendor,;t t
9822s,@target_os@,$target_os,;t t
9823s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9824s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9825s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9826s,@CYGPATH_W@,$CYGPATH_W,;t t
9827s,@PACKAGE@,$PACKAGE,;t t
9828s,@VERSION@,$VERSION,;t t
9829s,@ACLOCAL@,$ACLOCAL,;t t
9830s,@AUTOCONF@,$AUTOCONF,;t t
9831s,@AUTOMAKE@,$AUTOMAKE,;t t
9832s,@AUTOHEADER@,$AUTOHEADER,;t t
9833s,@MAKEINFO@,$MAKEINFO,;t t
9834s,@AMTAR@,$AMTAR,;t t
9835s,@install_sh@,$install_sh,;t t
9836s,@STRIP@,$STRIP,;t t
9837s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9838s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9839s,@AWK@,$AWK,;t t
9840s,@SET_MAKE@,$SET_MAKE,;t t
9841s,@am__leading_dot@,$am__leading_dot,;t t
9842s,@CC@,$CC,;t t
9843s,@CFLAGS@,$CFLAGS,;t t
9844s,@LDFLAGS@,$LDFLAGS,;t t
9845s,@CPPFLAGS@,$CPPFLAGS,;t t
9846s,@ac_ct_CC@,$ac_ct_CC,;t t
9847s,@EXEEXT@,$EXEEXT,;t t
9848s,@OBJEXT@,$OBJEXT,;t t
9849s,@DEPDIR@,$DEPDIR,;t t
9850s,@am__include@,$am__include,;t t
9851s,@am__quote@,$am__quote,;t t
9852s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9853s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9854s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9855s,@CCDEPMODE@,$CCDEPMODE,;t t
9856s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9857s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9858s,@CPP@,$CPP,;t t
9859s,@RANLIB@,$RANLIB,;t t
9860s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9861s,@PERL@,$PERL,;t t
9862s,@POD2MAN@,$POD2MAN,;t t
9863s,@all_includes@,$all_includes,;t t
9864s,@all_libraries@,$all_libraries,;t t
9865s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9866s,@MSGFMT@,$MSGFMT,;t t
9867s,@GMSGFMT@,$GMSGFMT,;t t
9868s,@XGETTEXT@,$XGETTEXT,;t t
9869s,@MSGMERGE@,$MSGMERGE,;t t
9870s,@USE_NLS@,$USE_NLS,;t t
9871s,@LIBICONV@,$LIBICONV,;t t
9872s,@LTLIBICONV@,$LTLIBICONV,;t t
9873s,@INTLLIBS@,$INTLLIBS,;t t
9874s,@LIBINTL@,$LIBINTL,;t t
9875s,@LTLIBINTL@,$LTLIBINTL,;t t
9876s,@POSUB@,$POSUB,;t t
9877s,@EGREP@,$EGREP,;t t
9878s,@ALLOCA@,$ALLOCA,;t t
9879s,@GLIBC21@,$GLIBC21,;t t
9880s,@INTLBISON@,$INTLBISON,;t t
9881s,@CONTRIBLIBS@,$CONTRIBLIBS,;t t
9882s,@NEED_GETOPT_TRUE@,$NEED_GETOPT_TRUE,;t t
9883s,@NEED_GETOPT_FALSE@,$NEED_GETOPT_FALSE,;t t
9884s,@LIBOBJS@,$LIBOBJS,;t t
9885s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9886CEOF
9887
9888_ACEOF
9889
9890  cat >>$CONFIG_STATUS <<\_ACEOF
9891  # Split the substitutions into bite-sized pieces for seds with
9892  # small command number limits, like on Digital OSF/1 and HP-UX.
9893  ac_max_sed_lines=48
9894  ac_sed_frag=1 # Number of current file.
9895  ac_beg=1 # First line for current file.
9896  ac_end=$ac_max_sed_lines # Line after last line for current file.
9897  ac_more_lines=:
9898  ac_sed_cmds=
9899  while $ac_more_lines; do
9900    if test $ac_beg -gt 1; then
9901      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9902    else
9903      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9904    fi
9905    if test ! -s $tmp/subs.frag; then
9906      ac_more_lines=false
9907    else
9908      # The purpose of the label and of the branching condition is to
9909      # speed up the sed processing (if there are no `@' at all, there
9910      # is no need to browse any of the substitutions).
9911      # These are the two extra sed commands mentioned above.
9912      (echo ':t
9913  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9914      if test -z "$ac_sed_cmds"; then
9915	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9916      else
9917	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9918      fi
9919      ac_sed_frag=`expr $ac_sed_frag + 1`
9920      ac_beg=$ac_end
9921      ac_end=`expr $ac_end + $ac_max_sed_lines`
9922    fi
9923  done
9924  if test -z "$ac_sed_cmds"; then
9925    ac_sed_cmds=cat
9926  fi
9927fi # test -n "$CONFIG_FILES"
9928
9929_ACEOF
9930cat >>$CONFIG_STATUS <<\_ACEOF
9931for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9932  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9933  case $ac_file in
9934  - | *:- | *:-:* ) # input from stdin
9935	cat >$tmp/stdin
9936	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9937	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9938  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9939	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9940  * )   ac_file_in=$ac_file.in ;;
9941  esac
9942
9943  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9944  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9945$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9946	 X"$ac_file" : 'X\(//\)[^/]' \| \
9947	 X"$ac_file" : 'X\(//\)$' \| \
9948	 X"$ac_file" : 'X\(/\)' \| \
9949	 .     : '\(.\)' 2>/dev/null ||
9950echo X"$ac_file" |
9951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9952  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9953  	  /^X\(\/\/\)$/{ s//\1/; q; }
9954  	  /^X\(\/\).*/{ s//\1/; q; }
9955  	  s/.*/./; q'`
9956  { if $as_mkdir_p; then
9957    mkdir -p "$ac_dir"
9958  else
9959    as_dir="$ac_dir"
9960    as_dirs=
9961    while test ! -d "$as_dir"; do
9962      as_dirs="$as_dir $as_dirs"
9963      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9964$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9965	 X"$as_dir" : 'X\(//\)[^/]' \| \
9966	 X"$as_dir" : 'X\(//\)$' \| \
9967	 X"$as_dir" : 'X\(/\)' \| \
9968	 .     : '\(.\)' 2>/dev/null ||
9969echo X"$as_dir" |
9970    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9971  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9972  	  /^X\(\/\/\)$/{ s//\1/; q; }
9973  	  /^X\(\/\).*/{ s//\1/; q; }
9974  	  s/.*/./; q'`
9975    done
9976    test ! -n "$as_dirs" || mkdir $as_dirs
9977  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9978echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9979   { (exit 1); exit 1; }; }; }
9980
9981  ac_builddir=.
9982
9983if test "$ac_dir" != .; then
9984  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9985  # A "../" for each directory in $ac_dir_suffix.
9986  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9987else
9988  ac_dir_suffix= ac_top_builddir=
9989fi
9990
9991case $srcdir in
9992  .)  # No --srcdir option.  We are building in place.
9993    ac_srcdir=.
9994    if test -z "$ac_top_builddir"; then
9995       ac_top_srcdir=.
9996    else
9997       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9998    fi ;;
9999  [\\/]* | ?:[\\/]* )  # Absolute path.
10000    ac_srcdir=$srcdir$ac_dir_suffix;
10001    ac_top_srcdir=$srcdir ;;
10002  *) # Relative path.
10003    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10004    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10005esac
10006
10007# Do not use `cd foo && pwd` to compute absolute paths, because
10008# the directories may not exist.
10009case `pwd` in
10010.) ac_abs_builddir="$ac_dir";;
10011*)
10012  case "$ac_dir" in
10013  .) ac_abs_builddir=`pwd`;;
10014  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10015  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10016  esac;;
10017esac
10018case $ac_abs_builddir in
10019.) ac_abs_top_builddir=${ac_top_builddir}.;;
10020*)
10021  case ${ac_top_builddir}. in
10022  .) ac_abs_top_builddir=$ac_abs_builddir;;
10023  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10024  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10025  esac;;
10026esac
10027case $ac_abs_builddir in
10028.) ac_abs_srcdir=$ac_srcdir;;
10029*)
10030  case $ac_srcdir in
10031  .) ac_abs_srcdir=$ac_abs_builddir;;
10032  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10033  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10034  esac;;
10035esac
10036case $ac_abs_builddir in
10037.) ac_abs_top_srcdir=$ac_top_srcdir;;
10038*)
10039  case $ac_top_srcdir in
10040  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10041  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10042  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10043  esac;;
10044esac
10045
10046
10047  case $INSTALL in
10048  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10049  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10050  esac
10051
10052  if test x"$ac_file" != x-; then
10053    { echo "$as_me:$LINENO: creating $ac_file" >&5
10054echo "$as_me: creating $ac_file" >&6;}
10055    rm -f "$ac_file"
10056  fi
10057  # Let's still pretend it is `configure' which instantiates (i.e., don't
10058  # use $as_me), people would be surprised to read:
10059  #    /* config.h.  Generated by config.status.  */
10060  if test x"$ac_file" = x-; then
10061    configure_input=
10062  else
10063    configure_input="$ac_file.  "
10064  fi
10065  configure_input=$configure_input"Generated from `echo $ac_file_in |
10066				     sed 's,.*/,,'` by configure."
10067
10068  # First look for the input files in the build tree, otherwise in the
10069  # src tree.
10070  ac_file_inputs=`IFS=:
10071    for f in $ac_file_in; do
10072      case $f in
10073      -) echo $tmp/stdin ;;
10074      [\\/$]*)
10075	 # Absolute (can't be DOS-style, as IFS=:)
10076	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10077echo "$as_me: error: cannot find input file: $f" >&2;}
10078   { (exit 1); exit 1; }; }
10079	 echo "$f";;
10080      *) # Relative
10081	 if test -f "$f"; then
10082	   # Build tree
10083	   echo "$f"
10084	 elif test -f "$srcdir/$f"; then
10085	   # Source tree
10086	   echo "$srcdir/$f"
10087	 else
10088	   # /dev/null tree
10089	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10090echo "$as_me: error: cannot find input file: $f" >&2;}
10091   { (exit 1); exit 1; }; }
10092	 fi;;
10093      esac
10094    done` || { (exit 1); exit 1; }
10095_ACEOF
10096cat >>$CONFIG_STATUS <<_ACEOF
10097  sed "$ac_vpsub
10098$extrasub
10099_ACEOF
10100cat >>$CONFIG_STATUS <<\_ACEOF
10101:t
10102/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10103s,@configure_input@,$configure_input,;t t
10104s,@srcdir@,$ac_srcdir,;t t
10105s,@abs_srcdir@,$ac_abs_srcdir,;t t
10106s,@top_srcdir@,$ac_top_srcdir,;t t
10107s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10108s,@builddir@,$ac_builddir,;t t
10109s,@abs_builddir@,$ac_abs_builddir,;t t
10110s,@top_builddir@,$ac_top_builddir,;t t
10111s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10112s,@INSTALL@,$ac_INSTALL,;t t
10113" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10114  rm -f $tmp/stdin
10115  if test x"$ac_file" != x-; then
10116    mv $tmp/out $ac_file
10117  else
10118    cat $tmp/out
10119    rm -f $tmp/out
10120  fi
10121
10122  # Run the commands associated with the file.
10123  case $ac_file in
10124    doc/texi2pod.pl ) chmod +x doc/texi2pod.pl ;;
10125  esac
10126done
10127_ACEOF
10128cat >>$CONFIG_STATUS <<\_ACEOF
10129
10130#
10131# CONFIG_HEADER section.
10132#
10133
10134# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10135# NAME is the cpp macro being defined and VALUE is the value it is being given.
10136#
10137# ac_d sets the value in "#define NAME VALUE" lines.
10138ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
10139ac_dB='[	 ].*$,\1#\2'
10140ac_dC=' '
10141ac_dD=',;t'
10142# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10143ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
10144ac_uB='$,\1#\2define\3'
10145ac_uC=' '
10146ac_uD=',;t'
10147
10148for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10149  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10150  case $ac_file in
10151  - | *:- | *:-:* ) # input from stdin
10152	cat >$tmp/stdin
10153	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10154	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10155  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10156	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10157  * )   ac_file_in=$ac_file.in ;;
10158  esac
10159
10160  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10161echo "$as_me: creating $ac_file" >&6;}
10162
10163  # First look for the input files in the build tree, otherwise in the
10164  # src tree.
10165  ac_file_inputs=`IFS=:
10166    for f in $ac_file_in; do
10167      case $f in
10168      -) echo $tmp/stdin ;;
10169      [\\/$]*)
10170	 # Absolute (can't be DOS-style, as IFS=:)
10171	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10172echo "$as_me: error: cannot find input file: $f" >&2;}
10173   { (exit 1); exit 1; }; }
10174	 # Do quote $f, to prevent DOS paths from being IFS'd.
10175	 echo "$f";;
10176      *) # Relative
10177	 if test -f "$f"; then
10178	   # Build tree
10179	   echo "$f"
10180	 elif test -f "$srcdir/$f"; then
10181	   # Source tree
10182	   echo "$srcdir/$f"
10183	 else
10184	   # /dev/null tree
10185	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10186echo "$as_me: error: cannot find input file: $f" >&2;}
10187   { (exit 1); exit 1; }; }
10188	 fi;;
10189      esac
10190    done` || { (exit 1); exit 1; }
10191  # Remove the trailing spaces.
10192  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
10193
10194_ACEOF
10195
10196# Transform confdefs.h into two sed scripts, `conftest.defines' and
10197# `conftest.undefs', that substitutes the proper values into
10198# config.h.in to produce config.h.  The first handles `#define'
10199# templates, and the second `#undef' templates.
10200# And first: Protect against being on the right side of a sed subst in
10201# config.status.  Protect against being in an unquoted here document
10202# in config.status.
10203rm -f conftest.defines conftest.undefs
10204# Using a here document instead of a string reduces the quoting nightmare.
10205# Putting comments in sed scripts is not portable.
10206#
10207# `end' is used to avoid that the second main sed command (meant for
10208# 0-ary CPP macros) applies to n-ary macro definitions.
10209# See the Autoconf documentation for `clear'.
10210cat >confdef2sed.sed <<\_ACEOF
10211s/[\\&,]/\\&/g
10212s,[\\$`],\\&,g
10213t clear
10214: clear
10215s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10216t end
10217s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10218: end
10219_ACEOF
10220# If some macros were called several times there might be several times
10221# the same #defines, which is useless.  Nevertheless, we may not want to
10222# sort them, since we want the *last* AC-DEFINE to be honored.
10223uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10224sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10225rm -f confdef2sed.sed
10226
10227# This sed command replaces #undef with comments.  This is necessary, for
10228# example, in the case of _POSIX_SOURCE, which is predefined and required
10229# on some systems where configure will not decide to define it.
10230cat >>conftest.undefs <<\_ACEOF
10231s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10232_ACEOF
10233
10234# Break up conftest.defines because some shells have a limit on the size
10235# of here documents, and old seds have small limits too (100 cmds).
10236echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10237echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10238echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10239echo '  :' >>$CONFIG_STATUS
10240rm -f conftest.tail
10241while grep . conftest.defines >/dev/null
10242do
10243  # Write a limited-size here document to $tmp/defines.sed.
10244  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10245  # Speed up: don't consider the non `#define' lines.
10246  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
10247  # Work around the forget-to-reset-the-flag bug.
10248  echo 't clr' >>$CONFIG_STATUS
10249  echo ': clr' >>$CONFIG_STATUS
10250  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10251  echo 'CEOF
10252  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10253  rm -f $tmp/in
10254  mv $tmp/out $tmp/in
10255' >>$CONFIG_STATUS
10256  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10257  rm -f conftest.defines
10258  mv conftest.tail conftest.defines
10259done
10260rm -f conftest.defines
10261echo '  fi # grep' >>$CONFIG_STATUS
10262echo >>$CONFIG_STATUS
10263
10264# Break up conftest.undefs because some shells have a limit on the size
10265# of here documents, and old seds have small limits too (100 cmds).
10266echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10267rm -f conftest.tail
10268while grep . conftest.undefs >/dev/null
10269do
10270  # Write a limited-size here document to $tmp/undefs.sed.
10271  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10272  # Speed up: don't consider the non `#undef'
10273  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
10274  # Work around the forget-to-reset-the-flag bug.
10275  echo 't clr' >>$CONFIG_STATUS
10276  echo ': clr' >>$CONFIG_STATUS
10277  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10278  echo 'CEOF
10279  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10280  rm -f $tmp/in
10281  mv $tmp/out $tmp/in
10282' >>$CONFIG_STATUS
10283  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10284  rm -f conftest.undefs
10285  mv conftest.tail conftest.undefs
10286done
10287rm -f conftest.undefs
10288
10289cat >>$CONFIG_STATUS <<\_ACEOF
10290  # Let's still pretend it is `configure' which instantiates (i.e., don't
10291  # use $as_me), people would be surprised to read:
10292  #    /* config.h.  Generated by config.status.  */
10293  if test x"$ac_file" = x-; then
10294    echo "/* Generated by configure.  */" >$tmp/config.h
10295  else
10296    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10297  fi
10298  cat $tmp/in >>$tmp/config.h
10299  rm -f $tmp/in
10300  if test x"$ac_file" != x-; then
10301    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10302      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10303echo "$as_me: $ac_file is unchanged" >&6;}
10304    else
10305      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10306$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10307	 X"$ac_file" : 'X\(//\)[^/]' \| \
10308	 X"$ac_file" : 'X\(//\)$' \| \
10309	 X"$ac_file" : 'X\(/\)' \| \
10310	 .     : '\(.\)' 2>/dev/null ||
10311echo X"$ac_file" |
10312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10313  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10314  	  /^X\(\/\/\)$/{ s//\1/; q; }
10315  	  /^X\(\/\).*/{ s//\1/; q; }
10316  	  s/.*/./; q'`
10317      { if $as_mkdir_p; then
10318    mkdir -p "$ac_dir"
10319  else
10320    as_dir="$ac_dir"
10321    as_dirs=
10322    while test ! -d "$as_dir"; do
10323      as_dirs="$as_dir $as_dirs"
10324      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10326	 X"$as_dir" : 'X\(//\)[^/]' \| \
10327	 X"$as_dir" : 'X\(//\)$' \| \
10328	 X"$as_dir" : 'X\(/\)' \| \
10329	 .     : '\(.\)' 2>/dev/null ||
10330echo X"$as_dir" |
10331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10332  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10333  	  /^X\(\/\/\)$/{ s//\1/; q; }
10334  	  /^X\(\/\).*/{ s//\1/; q; }
10335  	  s/.*/./; q'`
10336    done
10337    test ! -n "$as_dirs" || mkdir $as_dirs
10338  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10339echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10340   { (exit 1); exit 1; }; }; }
10341
10342      rm -f $ac_file
10343      mv $tmp/config.h $ac_file
10344    fi
10345  else
10346    cat $tmp/config.h
10347    rm -f $tmp/config.h
10348  fi
10349# Compute $ac_file's index in $config_headers.
10350_am_stamp_count=1
10351for _am_header in $config_headers :; do
10352  case $_am_header in
10353    $ac_file | $ac_file:* )
10354      break ;;
10355    * )
10356      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10357  esac
10358done
10359echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10360$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10361	 X$ac_file : 'X\(//\)[^/]' \| \
10362	 X$ac_file : 'X\(//\)$' \| \
10363	 X$ac_file : 'X\(/\)' \| \
10364	 .     : '\(.\)' 2>/dev/null ||
10365echo X$ac_file |
10366    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10367  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10368  	  /^X\(\/\/\)$/{ s//\1/; q; }
10369  	  /^X\(\/\).*/{ s//\1/; q; }
10370  	  s/.*/./; q'`/stamp-h$_am_stamp_count
10371done
10372_ACEOF
10373cat >>$CONFIG_STATUS <<\_ACEOF
10374
10375#
10376# CONFIG_COMMANDS section.
10377#
10378for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10379  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10380  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10381  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10382$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10383	 X"$ac_dest" : 'X\(//\)[^/]' \| \
10384	 X"$ac_dest" : 'X\(//\)$' \| \
10385	 X"$ac_dest" : 'X\(/\)' \| \
10386	 .     : '\(.\)' 2>/dev/null ||
10387echo X"$ac_dest" |
10388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10389  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10390  	  /^X\(\/\/\)$/{ s//\1/; q; }
10391  	  /^X\(\/\).*/{ s//\1/; q; }
10392  	  s/.*/./; q'`
10393  { if $as_mkdir_p; then
10394    mkdir -p "$ac_dir"
10395  else
10396    as_dir="$ac_dir"
10397    as_dirs=
10398    while test ! -d "$as_dir"; do
10399      as_dirs="$as_dir $as_dirs"
10400      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10402	 X"$as_dir" : 'X\(//\)[^/]' \| \
10403	 X"$as_dir" : 'X\(//\)$' \| \
10404	 X"$as_dir" : 'X\(/\)' \| \
10405	 .     : '\(.\)' 2>/dev/null ||
10406echo X"$as_dir" |
10407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10408  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10409  	  /^X\(\/\/\)$/{ s//\1/; q; }
10410  	  /^X\(\/\).*/{ s//\1/; q; }
10411  	  s/.*/./; q'`
10412    done
10413    test ! -n "$as_dirs" || mkdir $as_dirs
10414  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10415echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10416   { (exit 1); exit 1; }; }; }
10417
10418  ac_builddir=.
10419
10420if test "$ac_dir" != .; then
10421  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10422  # A "../" for each directory in $ac_dir_suffix.
10423  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10424else
10425  ac_dir_suffix= ac_top_builddir=
10426fi
10427
10428case $srcdir in
10429  .)  # No --srcdir option.  We are building in place.
10430    ac_srcdir=.
10431    if test -z "$ac_top_builddir"; then
10432       ac_top_srcdir=.
10433    else
10434       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10435    fi ;;
10436  [\\/]* | ?:[\\/]* )  # Absolute path.
10437    ac_srcdir=$srcdir$ac_dir_suffix;
10438    ac_top_srcdir=$srcdir ;;
10439  *) # Relative path.
10440    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10441    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10442esac
10443
10444# Do not use `cd foo && pwd` to compute absolute paths, because
10445# the directories may not exist.
10446case `pwd` in
10447.) ac_abs_builddir="$ac_dir";;
10448*)
10449  case "$ac_dir" in
10450  .) ac_abs_builddir=`pwd`;;
10451  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10452  *) ac_abs_builddir=`pwd`/"$ac_dir";;
10453  esac;;
10454esac
10455case $ac_abs_builddir in
10456.) ac_abs_top_builddir=${ac_top_builddir}.;;
10457*)
10458  case ${ac_top_builddir}. in
10459  .) ac_abs_top_builddir=$ac_abs_builddir;;
10460  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10461  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10462  esac;;
10463esac
10464case $ac_abs_builddir in
10465.) ac_abs_srcdir=$ac_srcdir;;
10466*)
10467  case $ac_srcdir in
10468  .) ac_abs_srcdir=$ac_abs_builddir;;
10469  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10470  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10471  esac;;
10472esac
10473case $ac_abs_builddir in
10474.) ac_abs_top_srcdir=$ac_top_srcdir;;
10475*)
10476  case $ac_top_srcdir in
10477  .) ac_abs_top_srcdir=$ac_abs_builddir;;
10478  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10479  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10480  esac;;
10481esac
10482
10483
10484  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10485echo "$as_me: executing $ac_dest commands" >&6;}
10486  case $ac_dest in
10487    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10488  # Strip MF so we end up with the name of the file.
10489  mf=`echo "$mf" | sed -e 's/:.*$//'`
10490  # Check whether this is an Automake generated Makefile or not.
10491  # We used to match only the files named `Makefile.in', but
10492  # some people rename them; so instead we look at the file content.
10493  # Grep'ing the first line is not enough: some people post-process
10494  # each Makefile.in and add a new line on top of each file to say so.
10495  # So let's grep whole file.
10496  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10497    dirpart=`(dirname "$mf") 2>/dev/null ||
10498$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10499	 X"$mf" : 'X\(//\)[^/]' \| \
10500	 X"$mf" : 'X\(//\)$' \| \
10501	 X"$mf" : 'X\(/\)' \| \
10502	 .     : '\(.\)' 2>/dev/null ||
10503echo X"$mf" |
10504    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10505  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10506  	  /^X\(\/\/\)$/{ s//\1/; q; }
10507  	  /^X\(\/\).*/{ s//\1/; q; }
10508  	  s/.*/./; q'`
10509  else
10510    continue
10511  fi
10512  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10513  # Extract the definition of DEP_FILES from the Makefile without
10514  # running `make'.
10515  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10516  test -z "$DEPDIR" && continue
10517  # When using ansi2knr, U may be empty or an underscore; expand it
10518  U=`sed -n -e '/^U = / s///p' < "$mf"`
10519  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10520  # We invoke sed twice because it is the simplest approach to
10521  # changing $(DEPDIR) to its actual value in the expansion.
10522  for file in `sed -n -e '
10523    /^DEP_FILES = .*\\\\$/ {
10524      s/^DEP_FILES = //
10525      :loop
10526	s/\\\\$//
10527	p
10528	n
10529	/\\\\$/ b loop
10530      p
10531    }
10532    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10533       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10534    # Make sure the directory exists.
10535    test -f "$dirpart/$file" && continue
10536    fdir=`(dirname "$file") 2>/dev/null ||
10537$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10538	 X"$file" : 'X\(//\)[^/]' \| \
10539	 X"$file" : 'X\(//\)$' \| \
10540	 X"$file" : 'X\(/\)' \| \
10541	 .     : '\(.\)' 2>/dev/null ||
10542echo X"$file" |
10543    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10544  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10545  	  /^X\(\/\/\)$/{ s//\1/; q; }
10546  	  /^X\(\/\).*/{ s//\1/; q; }
10547  	  s/.*/./; q'`
10548    { if $as_mkdir_p; then
10549    mkdir -p $dirpart/$fdir
10550  else
10551    as_dir=$dirpart/$fdir
10552    as_dirs=
10553    while test ! -d "$as_dir"; do
10554      as_dirs="$as_dir $as_dirs"
10555      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10557	 X"$as_dir" : 'X\(//\)[^/]' \| \
10558	 X"$as_dir" : 'X\(//\)$' \| \
10559	 X"$as_dir" : 'X\(/\)' \| \
10560	 .     : '\(.\)' 2>/dev/null ||
10561echo X"$as_dir" |
10562    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10563  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10564  	  /^X\(\/\/\)$/{ s//\1/; q; }
10565  	  /^X\(\/\).*/{ s//\1/; q; }
10566  	  s/.*/./; q'`
10567    done
10568    test ! -n "$as_dirs" || mkdir $as_dirs
10569  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10570echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10571   { (exit 1); exit 1; }; }; }
10572
10573    # echo "creating $dirpart/$file"
10574    echo '# dummy' > "$dirpart/$file"
10575  done
10576done
10577 ;;
10578    default-1 )
10579    for ac_file in $CONFIG_FILES; do
10580      # Support "outfile[:infile[:infile...]]"
10581      case "$ac_file" in
10582        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10583      esac
10584      # PO directories have a Makefile.in generated from Makefile.in.in.
10585      case "$ac_file" in */Makefile.in)
10586        # Adjust a relative srcdir.
10587        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10588        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10589        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10590        # In autoconf-2.13 it is called $ac_given_srcdir.
10591        # In autoconf-2.50 it is called $srcdir.
10592        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10593        case "$ac_given_srcdir" in
10594          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10595          /*) top_srcdir="$ac_given_srcdir" ;;
10596          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10597        esac
10598        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10599          rm -f "$ac_dir/POTFILES"
10600          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10601          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10602          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10603          # on $ac_dir but don't depend on user-specified configuration
10604          # parameters.
10605          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10606            # The LINGUAS file contains the set of available languages.
10607            if test -n "$ALL_LINGUAS"; then
10608              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10609            fi
10610            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10611            # Hide the ALL_LINGUAS assigment from automake.
10612            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10613          fi
10614          case "$ac_given_srcdir" in
10615            .) srcdirpre= ;;
10616            *) srcdirpre='$(srcdir)/' ;;
10617          esac
10618          POFILES=
10619          GMOFILES=
10620          UPDATEPOFILES=
10621          DUMMYPOFILES=
10622          for lang in $ALL_LINGUAS; do
10623            POFILES="$POFILES $srcdirpre$lang.po"
10624            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10625            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10626            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10627          done
10628          # CATALOGS depends on both $ac_dir and the user's LINGUAS
10629          # environment variable.
10630          INST_LINGUAS=
10631          if test -n "$ALL_LINGUAS"; then
10632            for presentlang in $ALL_LINGUAS; do
10633              useit=no
10634              if test "%UNSET%" != "$LINGUAS"; then
10635                desiredlanguages="$LINGUAS"
10636              else
10637                desiredlanguages="$ALL_LINGUAS"
10638              fi
10639              for desiredlang in $desiredlanguages; do
10640                # Use the presentlang catalog if desiredlang is
10641                #   a. equal to presentlang, or
10642                #   b. a variant of presentlang (because in this case,
10643                #      presentlang can be used as a fallback for messages
10644                #      which are not translated in the desiredlang catalog).
10645                case "$desiredlang" in
10646                  "$presentlang"*) useit=yes;;
10647                esac
10648              done
10649              if test $useit = yes; then
10650                INST_LINGUAS="$INST_LINGUAS $presentlang"
10651              fi
10652            done
10653          fi
10654          CATALOGS=
10655          if test -n "$INST_LINGUAS"; then
10656            for lang in $INST_LINGUAS; do
10657              CATALOGS="$CATALOGS $lang.gmo"
10658            done
10659          fi
10660          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10661          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10662          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10663            if test -f "$f"; then
10664              case "$f" in
10665                *.orig | *.bak | *~) ;;
10666                *) cat "$f" >> "$ac_dir/Makefile" ;;
10667              esac
10668            fi
10669          done
10670        fi
10671        ;;
10672      esac
10673    done ;;
10674  esac
10675done
10676_ACEOF
10677
10678cat >>$CONFIG_STATUS <<\_ACEOF
10679
10680{ (exit 0); exit 0; }
10681_ACEOF
10682chmod +x $CONFIG_STATUS
10683ac_clean_files=$ac_clean_files_save
10684
10685
10686# configure is writing to config.log, and then calls config.status.
10687# config.status does its own redirection, appending to config.log.
10688# Unfortunately, on DOS this fails, as config.log is still kept open
10689# by configure, so config.status won't be able to write to it; its
10690# output is simply discarded.  So we exec the FD to /dev/null,
10691# effectively closing config.log, so it can be properly (re)opened and
10692# appended to by config.status.  When coming back to configure, we
10693# need to make the FD available again.
10694if test "$no_create" != yes; then
10695  ac_cs_success=:
10696  ac_config_status_args=
10697  test "$silent" = yes &&
10698    ac_config_status_args="$ac_config_status_args --quiet"
10699  exec 5>/dev/null
10700  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10701  exec 5>>config.log
10702  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10703  # would make configure fail if this is the last instruction.
10704  $ac_cs_success || { (exit 1); exit 1; }
10705fi
10706
10707