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