source: trunk/third/jwgc/configure @ 22406

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